@frontity/router
Version:
Types for the Frontity router namespace
178 lines (93 loc) • 9.64 kB
Markdown
# Change Log
## 1.3.0
### Minor Changes
- [`31102365`](https://github.com/frontity/frontity/commit/311023655594f7bb6f8bc1332e79ecc333e0571b) [#429](https://github.com/frontity/frontity/pull/429) Thanks [@orballo](https://github.com/orballo)! - Implements actions.router.updateState() which takes a browser state object as an argument and executes a window.history.replaceState() with that object and the current url.
### Patch Changes
- Updated dependencies [[`7c3f0769`](https://github.com/frontity/frontity/commit/7c3f076999d243de4f7dee631f40d2e71d47337d), [`49020718`](https://github.com/frontity/frontity/commit/49020718c569de081391c114a5684d092fd9769d), [`15e8f1d8`](https://github.com/frontity/frontity/commit/15e8f1d8cf66394d20034370df171a0c19ad51d3), [`7992fb85`](https://github.com/frontity/frontity/commit/7992fb854ec563b0781f375ebcdd2d83f5a6a562)]:
- frontity@1.14.2
## 1.2.0-infinite-scroll-beta.0
### Minor Changes
- [`31102365`](https://github.com/frontity/frontity/commit/311023655594f7bb6f8bc1332e79ecc333e0571b) [#429](https://github.com/frontity/frontity/pull/429) Thanks [@orballo](https://github.com/orballo)! - Implements actions.router.updateState() which takes a browser state object as an argument and executes a window.history.replaceState() with that object and the current url.
### Patch Changes
- Updated dependencies []:
- frontity@1.8.1-infinite-scroll-beta.0
## 1.1.4
### Patch Changes
- [`b41175d0`](https://github.com/frontity/frontity/commit/b41175d0f5df9ca95fc449ca1a0eca6649f1bccf) [#683](https://github.com/frontity/frontity/pull/683) Thanks [@cristianbote](https://github.com/cristianbote)! - Reverts the preinstall hook added for development workflows.
- Updated dependencies [[`b41175d0`](https://github.com/frontity/frontity/commit/b41175d0f5df9ca95fc449ca1a0eca6649f1bccf)]:
- frontity@1.14.1
## 1.1.3
### Patch Changes
- [`5f329dab`](https://github.com/frontity/frontity/commit/5f329dabe9d67d0b3664938865491674ef798433) [#655](https://github.com/frontity/frontity/pull/655) Thanks [@mburridge](https://github.com/mburridge)! - Fix broken links in README files.
- Updated dependencies [[`a5520f56`](https://github.com/frontity/frontity/commit/a5520f5605cfda2323e0c9ea4a553658a021fd15), [`01880c34`](https://github.com/frontity/frontity/commit/01880c34c111f55c23169adb7365ea9262e6cca8), [`3ced7fdf`](https://github.com/frontity/frontity/commit/3ced7fdfd93004c210bb47692ffae265874828e7), [`5f329dab`](https://github.com/frontity/frontity/commit/5f329dabe9d67d0b3664938865491674ef798433), [`09f07484`](https://github.com/frontity/frontity/commit/09f07484c920e99d46290986d7a64b8f3c20e53c), [`e4221d4b`](https://github.com/frontity/frontity/commit/e4221d4b451268b5c951197a08b4021d50394c1b), [`9346f560`](https://github.com/frontity/frontity/commit/9346f560c4806483b914aa3fb7a37e373f48f712), [`5f329dab`](https://github.com/frontity/frontity/commit/5f329dabe9d67d0b3664938865491674ef798433), [`c5b0b8f7`](https://github.com/frontity/frontity/commit/c5b0b8f7e5ebfdf02f40ded7d7347a1d28039c2d)]:
- frontity@1.14.0
## 1.1.2
### Patch Changes
- [`44f44e3f`](https://github.com/frontity/frontity/commit/44f44e3f2ba436236b65518ddac30cd4af57ea18) [#590](https://github.com/frontity/frontity/pull/590) Thanks [@luisherranz](https://github.com/luisherranz)! - Update TypeScript definitions.
- Updated dependencies [[`362b02f1`](https://github.com/frontity/frontity/commit/362b02f1beb100ffb178a1d4e775e89b84b99ccc), [`6b4bf82b`](https://github.com/frontity/frontity/commit/6b4bf82b5eee698f7ea8ea3b0bfd69a989caaba3), [`44f44e3f`](https://github.com/frontity/frontity/commit/44f44e3f2ba436236b65518ddac30cd4af57ea18)]:
- frontity@1.13.0
## 1.1.1
### Patch Changes
- [`868c120f`](https://github.com/frontity/frontity/commit/868c120f2ede7a2f9013f6e659e1b0a1bf2785fe) [#492](https://github.com/frontity/frontity/pull/492) Thanks [@juanmaguitar](https://github.com/juanmaguitar)! - README created.
- Updated dependencies [[`ba13f70a`](https://github.com/frontity/frontity/commit/ba13f70ae2a4360ca21c77aed1c920c02e9d45b8), [`62fce1e5`](https://github.com/frontity/frontity/commit/62fce1e5c117faeb5902dc0ddae3b13d95cd925b)]:
- frontity@1.9.0
## 1.1.0
### Minor Changes
- [`0b09d627`](https://github.com/frontity/frontity/commit/0b09d627a247fa77f1627a91600f0daa029d4dd9) [#380](https://github.com/frontity/frontity/pull/380) Thanks [@orballo](https://github.com/orballo)! - - Add `method` option to `actions.router.set()` to allow `"replace"` in addition to `"push"`.
- Add `state` option to `actions.router.set()` to allow storing an object in `window.history`.
More information in this Feature Discussion: https://community.frontity.org/t/router-set-options-method-title-and-state/1508/14
## 1.0.19
### Patch Changes
- [`fe790be6`](https://github.com/frontity/frontity/commit/fe790be6b806d19edecb0b1eb980b1af13999ee7) [#332](https://github.com/frontity/frontity/pull/332) Thanks [@luisherranz](https://github.com/luisherranz)! - Move router types to @frontity/router/types file to match the placement of the rest of the packages.
## [1.0.18](https://github.com/frontity/frontity/compare/@frontity/router@1.0.17...@frontity/router@1.0.18) (2019-12-10)
**Note:** Version bump only for package @frontity/router
## [1.0.17](https://github.com/frontity/frontity/compare/@frontity/router@1.0.16...@frontity/router@1.0.17) (2019-11-04)
**Note:** Version bump only for package @frontity/router
## [1.0.16](https://github.com/frontity/frontity/compare/@frontity/router@1.0.15...@frontity/router@1.0.16) (2019-10-10)
**Note:** Version bump only for package @frontity/router
## [1.0.15](https://github.com/frontity/frontity/compare/@frontity/router@1.0.14...@frontity/router@1.0.15) (2019-10-02)
### Bug Fixes
- **typescript:** update to latest version ([a89b11c](https://github.com/frontity/frontity/commit/a89b11c))
## [1.0.14](https://github.com/frontity/frontity/compare/@frontity/router@1.0.13...@frontity/router@1.0.14) (2019-09-10)
**Note:** Version bump only for package @frontity/router
## [1.0.13](https://github.com/frontity/frontity/compare/@frontity/router@1.0.12...@frontity/router@1.0.13) (2019-08-12)
**Note:** Version bump only for package @frontity/router
## [1.0.12](https://github.com/frontity/frontity/compare/@frontity/router@1.0.11...@frontity/router@1.0.12) (2019-07-12)
**Note:** Version bump only for package @frontity/router
## [1.0.11](https://github.com/frontity/frontity/compare/@frontity/router@1.0.10...@frontity/router@1.0.11) (2019-07-04)
**Note:** Version bump only for package @frontity/router
## [1.0.10](https://github.com/frontity/frontity/compare/@frontity/router@1.0.9...@frontity/router@1.0.10) (2019-07-04)
**Note:** Version bump only for package @frontity/router
## [1.0.9](https://github.com/frontity/frontity/compare/@frontity/router@1.0.8...@frontity/router@1.0.9) (2019-07-01)
**Note:** Version bump only for package @frontity/router
## [1.0.8](https://github.com/frontity/frontity/compare/@frontity/router@1.0.7...@frontity/router@1.0.8) (2019-06-20)
**Note:** Version bump only for package @frontity/router
## [1.0.7](https://github.com/frontity/frontity/compare/@frontity/router@1.0.6...@frontity/router@1.0.7) (2019-06-20)
**Note:** Version bump only for package @frontity/router
## [1.0.6](https://github.com/frontity/frontity/compare/@frontity/router@1.0.5...@frontity/router@1.0.6) (2019-06-20)
**Note:** Version bump only for package @frontity/router
## [1.0.5](https://github.com/frontity/frontity/compare/@frontity/router@1.0.4...@frontity/router@1.0.5) (2019-06-19)
**Note:** Version bump only for package @frontity/router
## [1.0.4](https://github.com/frontity/frontity/compare/@frontity/router@1.0.3...@frontity/router@1.0.4) (2019-06-19)
**Note:** Version bump only for package @frontity/router
## [1.0.3](https://github.com/frontity/frontity/compare/@frontity/router@1.0.2...@frontity/router@1.0.3) (2019-06-05)
**Note:** Version bump only for package @frontity/router
## [1.0.2](https://github.com/frontity/frontity/compare/@frontity/router@1.0.1...@frontity/router@1.0.2) (2019-06-05)
**Note:** Version bump only for package @frontity/router
## [1.0.1](https://github.com/frontity/frontity/compare/@frontity/router@1.0.0...@frontity/router@1.0.1) (2019-06-05)
### Bug Fixes
- **all:** update typscript and fix some keywords ([1fe5fec](https://github.com/frontity/frontity/commit/1fe5fec))
# [1.0.0](https://github.com/frontity/frontity/compare/@frontity/router@0.1.3...@frontity/router@1.0.0) (2019-06-05)
### Features
- **core:** refactor entry-points for new modes and files ([#98](https://github.com/frontity/frontity/issues/98)) ([1713522](https://github.com/frontity/frontity/commit/1713522))
- **router:** accept only strings in 'router.set' and add 'link' ([294ef53](https://github.com/frontity/frontity/commit/294ef53))
- **router:** add 'query' to router ([50ecd1c](https://github.com/frontity/frontity/commit/50ecd1c))
### BREAKING CHANGES
- **router:** Only a string as argument in 'router.set', add 'link' and remove 'path', 'page' and 'query'.
## [0.1.3](https://github.com/frontity/frontity/compare/@frontity/router@0.1.2...@frontity/router@0.1.3) (2019-05-16)
### Bug Fixes
- **tiny-router:** accept any type of url in the path parameter ([6ba2c3c](https://github.com/frontity/frontity/commit/6ba2c3c))
## [0.1.2](https://github.com/frontity/frontity/compare/@frontity/router@0.1.1...@frontity/router@0.1.2) (2019-05-15)
**Note:** Version bump only for package @frontity/router
## 0.1.1 (2019-05-15)
**Note:** Version bump only for package @frontity/router