---
# System prepended metadata

title: Change log
tags: [brew-js]

---

---
tags: brew-js
---

# Change log

## v0.5.3 (2023/06/13)

#### Router

- Add `app.sessionId`, `app.sessionStorage` and `app.cache` property [[link]](/YDsOUedaTduqqovdx3hJRw#Session-storage)
- Add `app.page` property
- <kbd>fix</kbd> corrupted state after reload with `urlMode` set to `none`

## v0.5.2 (2023/06/06)

#### App

- Add `app.readyState`
- Halt app ready when any init callback throws or rejects


#### Router

- Add `resumeOnReload` option [[link]](/_uOyYYGrTBSl9n6yh2yzSg#Resume-journey-after-reload)
- `app.canNavigateBack` and `app.canNavigateForward` now return `false` if the previous/next history entry will cause page reload

#### Others

- Add `has` method to object storage


## v0.5.1 (2023/05/29)

#### Router

- <kbd>fix</kbd> unable to back/forward when lock cancelled immediately
- <kbd>fix</kbd> current state id not persisted on back_forward action
- <kbd>fix</kbd> should clone history storage when snapshot
- <kbd>fix</kbd> tates misaligned with browser history after resumed
- <kbd>fix</kbd> reload should land on initial path when urlMode is none

## v0.5.0 (2023/05/24)

#### Router

- Add `resume` option [[link]](/_uOyYYGrTBSl9n6yh2yzSg)
- add `app.historyStorage` [[link]](/YDsOUedaTduqqovdx3hJRw#History-storage)
- Persist data passed to `app.navigate` in session storage
- Add `navigationType` to `navigate` and `beforepageload` event
- <kbd>fix</kbd> unable to traverse between snapshot when dom locked
- <kbd>fix</kbd> should carry data from previous state for snapshot
- <kbd>fix</kbd> unable to resume path in history state when urlMode is none

#### Others

- Add `createObjectStorage`

## v0.4.10 (2023/05/16)

#### Router

- Add `app.toHref` [[link]](/_0M99V4lSK23cyl_L9BKEQ#apptoHref) and `app.fromHref` method [[link]](/_0M99V4lSK23cyl_L9BKEQ#appfromHref)
- allow passing additional data to `navigate` and `beforepageload` event
- Include pathname from toHref in query mode
- <kbd>fix</kbd> `fromPathname` should convert input path in query mode
- <kbd>fix</kbd> include query and hash to determine app path in popstate event
- <kbd>fix</kbd> isAppPath incorrect result in implicit mode

#### Others

- <kbd>fix</kbd> error when init tree if root elm has attr to evaluate
  > Error will occur when having variable in root element `<html var="...">`
- <kbd>fix</kbd> incorrect sign of x, y values reported in `scrollBy` event
- <kbd>fix</kbd> convert href before navigate

## v0.4.9 (2023/04/24)

#### Router

- Add `canNavigateForward` property [[link]](/xnKAy-mpR_WpParR1pSghg#appcanNavigateForward)
- Add `snapshot` method [[link]](/_0M99V4lSK23cyl_L9BKEQ#appsnapshot)

## v0.4.8 (2023/03/30)

#### Router

- Add `urlMode` option [[link]](/fdKwbbNxSIa3Ven3N5japA)
- Add `isAppPath` method [[link]](/_0M99V4lSK23cyl_L9BKEQ#appisAppPath)

#### Scrollable

- Add support for `scrollProgressChange` event

#### I18n

- Add `detectLanguage` option [[link]](/iAaLL0FbT4Sz10Z1nr1rzQ#detectLanguage)

#### Others

- Improve performance by delaying `tabindex` update
- Add `parsePath` and `setQueryParam` util
- <kbd>fix</kbd> compability issue with `react-refresh` plugin
- <kbd>fix</kbd> bind event directly on `[async-action]` elements
  > Default action and other handlerd may failed to be postponed
- <kbd>fix</kbd> keep opened flyout at first page load

## v0.4.7 (2023/02/02)