Skip to content

Latest commit

 

History

History
496 lines (206 loc) · 13.6 KB

CHANGELOG.md

File metadata and controls

496 lines (206 loc) · 13.6 KB

6.1.0 (2020-01-06)

Features

  • enable overwritting options on building and matching methods (#47) (605c7f9)

This reverts a breaking change below.

6.0.0 (2020-01-05)

Features

  • add option urlParamsEncoding for specifying encoding and decoding of URL params (#46) (eb8d728)

BREAKING CHANGES

  • queryParams options from build, test and partialTest has been moved to Path 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)

Features

  • add generic type to Path (#45) (33eaed2)
  • Update search-params to latest version

Bug Fixes

  • Fix missing dependency tslib

5.0.1 (2019-12-29)

Bug Fixes

Note: not all cases were accounted for and the benefits of this fix is currently unclear.

5.0.0 (2019-12-29)

Bug Fixes

  • use encodeURIComponent to encode URL params (#43) (946d256)

Maintenance

BREAKING CHANGES

  • default export has been removed, now Path is only available as a named export.

4.2.0 (2018-07-11)

Features

  • allow star as a param value (14bb91c)
  • allow @ characters in path params (d773d8e)

4.1.1 (2018-06-05)

Bug Fixes

  • update search-params to decode unicode values when parsing (f0c4396)

4.1.0 (2018-05-14)

Features

  • support sign in parameters (adc36b0)

4.0.5 (2018-05-14)

Bug Fixes

  • allow equal signs in parameters (commonly found at the end of base 64 encoded strings) (5c98fb6)

4.0.4 (2018-04-09)

Bug Fixes

  • match pipe characters in parameters (Firefox) (d6e6d27)

4.0.3 (2018-04-03)

Bug Fixes

4.0.2 (2018-03-27)

4.0.1 (2018-03-26)

Bug Fixes

  • fix matching with strictTrailingSlash option (353ecc0)

4.0.0 (2018-03-25)

Features

  • make matching case insensitive, add support for 'caseSentive' option (063aca6)

BREAKING CHANGES

  • 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' and booleanFormat 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)

BREAKING CHANGES

  • amd and umd builds are no longer provided

2.1.0 (2017-11-08)

Features

  • improve other error messages (bf5bea5)
  • provide more details in "Missing parameters" error [router5/router5#208] (b562e5c)

2.0.2 (2016-11-01)

Bug Fixes

  • add possibility to use ' and : characters in path. (2f445e7)
  • use properly encodeURI and encodeURIComponent (1270364)

2.0.1 (2016-10-13)

Bug Fixes

  • don't partially match '' against '/' (eeb378e)

2.0.0 (2016-10-12)

Features

  • add a 'delimited' option to partialMatch (969c1bf)
  • add search-params as a dependency (6ab04d7)

BREAKING CHANGES

  • .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. Option delimited 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)

Bug Fixes

  • encode all parameters and not only query parameters (19d5131)

1.0.3 (2016-06-29)

Bug Fixes

1.0.2 (2016-01-06)

Bug Fixes

  • 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)

Features

  • add support for query parameters with brackets (658d491)

0.4.4 (2015-11-24)

Bug Fixes

  • encode and decode query parameters special characters (5c69712)

0.4.3 (2015-10-11)

0.4.2 (2015-10-07)

Bug Fixes

  • format multiple query parameters with same key as array when matching partially (d7f57f0)

0.4.1 (2015-10-07)

Features

  • build paths with query parameters as arrays (9e0f644)

0.4.0 (2015-10-07)

Features

  • 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)

Bug Fixes

  • make query parameters optional when matching and match them on partial match (303b240)

0.3.1 (2015-09-04)

Bug Fixes

  • better building and matching of query params (5e8f881)

0.3.0 (2015-09-03)

Bug Fixes

  • build a path without all query parameters (208fd8a)

Features

  • build paths without search part (c9973be)

BREAKING CHANGES

  • .build() now takes an options object as a second parameter

Issue router5/router5#19

0.2.4 (2015-09-01)

Features

  • allow optional trailing slash for '/' (570a0c4)

0.2.3 (2015-08-20)

Bug Fixes

  • better escape regular expression special chars so built source matches regexp so (21d30b7)

0.2.2 (2015-08-19)

Bug Fixes

  • escape special characters properly in regular expressions (f573957)

0.2.1 (2015-08-19)

Bug Fixes

  • don't apply optional trailing slashes on paths === / (36e0180)

0.2.0 (2015-08-19)

Features

  • support optional trailing slashes (6785886)

0.1.1 (2015-07-22)

0.1.0 (2015-07-06)

Features

  • add matrix and url parameter constraints (a567ba1)

0.0.7 (2015-07-01)

Features

  • support matrix parameters (0451290)

0.0.6 (2015-06-30)

0.0.5 (2015-06-30)

0.0.4 (2015-06-28)

Bug Fixes

  • fix bug when multiple query params (880bae0)

Features

  • improve tokenisation and tests (5b9e1fe)

0.0.3 (2015-06-26)

Bug Fixes

  • fix path building with splats (7bd7d74)

0.0.2 (2015-06-25)

Features

  • add splat support with query params (96bcd6d)

0.0.1 (2015-06-25)

Features

  • add spat param flag (b77174a)
  • add support for query parameters (4ee86cf)
  • add support for splats (e346bbf)