- add support for svelte 4
- support of custom RegExp pattern to
pattern
store-function. - support relative
query
links usingclick
helpers.
- fix empty state prefixing.
- (minor breaking change): revert prefixing to
query
andfragment
stores after discussion with the community. - improve types.
- fix SubmitEvent type.
- actualize README.
- (minor breaking change):
basePath
preference re-named tobase
. - (minor breaking change):
query.toString()
now returns url-encoded string NOT prefixed by?
symbol. - add support of full URL fallback in
back
helper instead of onlypathname
. - add support of URL instance instead of only string in
goto
,back
andredirect
helpers. - better support of hash-only links within
click
helper. - new preferences
scroll
,anchor
andfocus
(disabled by default) for auto-management of corresponding things. Please, read more in README. - introducing
hook
method ofpath
,query
andfragment
stores to get more control before it update and possible skip this update instantly, before actual router state change. Please, check an examples. - new
breakHooks
preference to get control the behavior of hooks execution - should it be stopped immediately after first fail (by default) or all hooks should be performed in any case.
- add missed files.
- fix back helper bug using href="#" navigation.
- better SSR support.
- extended support for special links in
click
helper (eg. blob:, data:, etc.) - code refactoring and formating.
- fix multiple
rel
attribute values. - add LICENSE file.
- fix
back
helper bug.
- (breaking change): Now
path
store contains just an array of path segments and doesn't containparams
field anymore. Please, check examples ofpath
store andparamable
custom store constructor to manipulate parameters. - (breaking change): Now
query
store contains just an object of query string parameters and doesn't containparams
field anymore. Please, check examples ofquery
store. - (breaking change): Now
pattern
store directly returns read-onlyparams
object if pattern was matched ornull
if not. Please, check examples in README. - New
paramable
custom store constructor is provided to create separateparams
stores for each of possible path patterns to manipulate path parameters in ultimate flexible manner.
- Make updating of
query
andfragment
parts of URL state in the next tick to prevent unnecessary executions of listeners when transitioning between paths.
- Check that if
convertTypes=true
and the number after conversion is not equal to an initial value, we need to cancel conversion and keep it a string, because it seems to be too large a number.
- Move redirection to next tick.
- Fix types.
- Fix
click
helper issue.
- SVG support improved.
- rel=external support to prevent some link handling.
redirect()
function added.
- Fix for duplicate records in browser history on each page load (#11).
- Fix absolute URLs in
goto
. - Few improvements.
- Update README.
- Switch to
hashbang
routing automatically if initial path contain file name with extension. - Switch to
hashbang
routing automatically ifHistory API
not available.
- Support of
hashbang
routing automatically forfile://
protocol and manually viaprefs
. - Support of working in subdirectory using
basePath
preference inprefs
.
- Improve typings.
- Fix typings
- Minor fix in
package.json
.
- Add special fields to
package.json
for CDNs. - Add babel and prettier configs to
package.json
.
- Fix typings
- Fix README
- (breacking change): Now
pattern()
is not a part ofpath
store, but separate derived store related topath
. Please, check an examples in README. - (breacking change): Now all parsed parameters of
path
andquery
stores collected inparams
property of that objects. Please, check an examples in README. - Re-write back to plain Javascript, but with typings support.
- Fix for issue #10 in original repo.
- Official SSR support. Examples coming soon!
- Move build output to a dedicated dist folder
- Use single export instead of multiple.
- Fix
prefs
export which was missed in PR.
- Fix boolean values convertation.
- Minor fix of new query array param formating.
- Improve query string parsing
- Support different formats of query string array processing, eg.
?foo[]=1&foo[]=2
(default) and NEW alternative way?foo=1,2
. - Support arrays in
path
eg. param/:variants
in example/foo|bar|baz
will be parsed as array$path.variants === ['foo', 'bar', 'baz']
.
- Re-write to Typescript (first edition).
- Add
svelte
to devDeps to get typings. - Improve query string parsing, better support for nesting objects.
- Now configurable from user-land!
- Jest setup (tests coming soon).
- Fix URL() base.
- Fix deps.
- Code formatting via Prettier.
- First release