6.1.0 (2020-01-06)
This reverts a breaking change below.
6.0.0 (2020-01-05)
queryParams
options frombuild
,test
andpartialTest
has been moved toPath
constructor- The new
urlParamsEncoding
option changes the default encoding and decoding. See the README for available encoding and decoding methods. - Option interfaces have been renamed (
PathTestOptions
,PathBuildOptions
,PathPartialTestOptions
)
5.1.0 (2019-12-30)
- Fix missing dependency
tslib
5.0.1 (2019-12-29)
- Revert encoding fix (c43c07e)
Note: not all cases were accounted for and the benefits of this fix is currently unclear.
5.0.0 (2019-12-29)
- default export has been removed, now
Path
is only available as a named export.
4.2.0 (2018-07-11)
4.1.1 (2018-06-05)
- update search-params to decode unicode values when parsing (f0c4396)
4.1.0 (2018-05-14)
- support sign in parameters (adc36b0)
4.0.5 (2018-05-14)
- allow equal signs in parameters (commonly found at the end of base 64 encoded strings) (5c98fb6)
4.0.4 (2018-04-09)
- match pipe characters in parameters (Firefox) (d6e6d27)
4.0.3 (2018-04-03)
- properly link types (b7473e9)
4.0.2 (2018-03-27)
4.0.1 (2018-03-26)
- fix matching with strictTrailingSlash option (353ecc0)
4.0.0 (2018-03-25)
- make matching case insensitive, add support for 'caseSentive' option (063aca6)
- query parameters can no longer be defined with brackets, instead options are available when matching and building to describe how arrays, booleans and null values are formatted (see 'queryParams' options in README).
- Boolean and null values in query parameters are stringified differently, see the list of options available. To keep behaviour unchanged, set
nullFormat
to'hidden'
andbooleanFormat
to'empty-true'
. - 'trailingSlash' option has been renamed to 'strictTrailingSlash'
- 'test' and 'partialTest' are now case insensitive by default, use 'caseSensitive' option to make it case sensitive
3.0.1 (2017-11-16)
3.0.0 (2017-11-16)
- amd and umd builds are no longer provided
2.1.0 (2017-11-08)
- improve other error messages (bf5bea5)
- provide more details in "Missing parameters" error [router5/router5#208] (b562e5c)
2.0.2 (2016-11-01)
- add possibility to use ' and : characters in path. (2f445e7)
- use properly encodeURI and encodeURIComponent (1270364)
2.0.1 (2016-10-13)
- don't partially match '' against '/' (eeb378e)
2.0.0 (2016-10-12)
.match()
renamed to.test()
and now takes an options object as a second parameter.partialMatch()
renamed to.partialTest()
and now takes an options object as a second parameter. Optiondelimited
is by default true, meaning a partial will be successful if the partially matched path is consumed up to a delimiter (?
,/
,.
,;
)
1.0.4 (2016-06-30)
- encode all parameters and not only query parameters (19d5131)
1.0.3 (2016-06-29)
- allow encoded URI components in URL parameters (ae1ad85), closes router5/router5#63
1.0.2 (2016-01-06)
- improve full path matching of a path with query params (ada3897)
1.0.1 (2016-01-05)
1.0.0 (2016-01-05)
0.5.0 (2015-12-08)
- add support for query parameters with brackets (658d491)
0.4.4 (2015-11-24)
- encode and decode query parameters special characters (5c69712)
0.4.3 (2015-10-11)
0.4.2 (2015-10-07)
- format multiple query parameters with same key as array when matching partially (d7f57f0)
0.4.1 (2015-10-07)
- build paths with query parameters as arrays (9e0f644)
0.4.0 (2015-10-07)
- add Path.createPath constructor shortcut (a45b781), closes #2
- store multiple query parameters with the same key in an array (3efd958), closes #3
0.3.2 (2015-09-04)
- make query parameters optional when matching and match them on partial match (303b240)
0.3.1 (2015-09-04)
- better building and matching of query params (5e8f881)
0.3.0 (2015-09-03)
- build a path without all query parameters (208fd8a)
- build paths without search part (c9973be)
- .build() now takes an options object as a second parameter
Issue router5/router5#19
0.2.4 (2015-09-01)
- allow optional trailing slash for '/' (570a0c4)
0.2.3 (2015-08-20)
- better escape regular expression special chars so built source matches regexp so (21d30b7)
0.2.2 (2015-08-19)
- escape special characters properly in regular expressions (f573957)
0.2.1 (2015-08-19)
- don't apply optional trailing slashes on paths === / (36e0180)
0.2.0 (2015-08-19)
- support optional trailing slashes (6785886)
0.1.1 (2015-07-22)
0.1.0 (2015-07-06)
- add matrix and url parameter constraints (a567ba1)
0.0.7 (2015-07-01)
- support matrix parameters (0451290)
0.0.6 (2015-06-30)
0.0.5 (2015-06-30)
0.0.4 (2015-06-28)
- fix bug when multiple query params (880bae0)
- improve tokenisation and tests (5b9e1fe)
0.0.3 (2015-06-26)
- fix path building with splats (7bd7d74)
0.0.2 (2015-06-25)
- add splat support with query params (96bcd6d)