UNPKG

4.81 kBMarkdownView Raw
1# 3.0.0 / 2019-01-13
2
3- Always use prefix character as delimiter token, allowing any character to be a delimiter (e.g. `/:att1-:att2-:att3-:att4-:att5`)
4- Remove `partial` support, prefer escaping the prefix delimiter explicitly (e.g. `\\/(apple-)?icon-:res(\\d+).png`)
5
6# 2.4.0 / 2018-08-26
7
8- Support `start` option to disable anchoring from beginning of the string
9
10# 2.3.0 / 2018-08-20
11
12- Use `delimiter` when processing repeated matching groups (e.g. `foo/bar` has no prefix, but has a delimiter)
13
14# 2.2.1 / 2018-04-24
15
16- Allow empty string with `end: false` to match both relative and absolute paths
17
18# 2.2.0 / 2018-03-06
19
20- Pass `token` as second argument to `encode` option (e.g. `encode(value, token)`)
21
22# 2.1.0 / 2017-10-20
23
24- Handle non-ending paths where the final character is a delimiter
25 - E.g. `/foo/` before required either `/foo/` or `/foo//` to match in non-ending mode
26
27# 2.0.0 / 2017-08-23
28
29- New option! Ability to set `endsWith` to match paths like `/test?query=string` up to the query string
30- New option! Set `delimiters` for specific characters to be treated as parameter prefixes (e.g. `/:test`)
31- Remove `isarray` dependency
32- Explicitly handle trailing delimiters instead of trimming them (e.g. `/test/` is now treated as `/test/` instead of `/test` when matching)
33- Remove overloaded `keys` argument that accepted `options`
34- Remove `keys` list attached to the `RegExp` output
35- Remove asterisk functionality (it's a real pain to properly encode)
36- Change `tokensToFunction` (e.g. `compile`) to accept an `encode` function for pretty encoding (e.g. pass your own implementation)
37
38# 1.7.0 / 2016-11-08
39
40- Allow a `delimiter` option to be passed in with `tokensToRegExp` which will be used for "non-ending" token match situations
41
42# 1.6.0 / 2016-10-03
43
44- Populate `RegExp.keys` when using the `tokensToRegExp` method (making it consistent with the main export)
45- Allow a `delimiter` option to be passed in with `parse`
46- Updated TypeScript definition with `Keys` and `Options` updated
47
48# 1.5.3 / 2016-06-15
49
50- Add `\\` to the ignore character group to avoid backtracking on mismatched parens
51
52# 1.5.2 / 2016-06-15
53
54- Escape `\\` in string segments of regexp
55
56# 1.5.1 / 2016-06-08
57
58- Add `index.d.ts` to NPM package
59
60# 1.5.0 / 2016-05-20
61
62- Handle partial token segments (better)
63- Allow compile to handle asterisk token segments
64
65# 1.4.0 / 2016-05-18
66
67- Handle RegExp unions in path matching groups
68
69# 1.3.0 / 2016-05-08
70
71- Clarify README language and named parameter token support
72- Support advanced Closure Compiler with type annotations
73- Add pretty paths options to compiled function output
74- Add TypeScript definition to project
75- Improved prefix handling with non-complete segment parameters (E.g. `/:foo?-bar`)
76
77# 1.2.1 / 2015-08-17
78
79- Encode values before validation with path compilation function
80- More examples of using compilation in README
81
82# 1.2.0 / 2015-05-20
83
84- Add support for matching an asterisk (`*`) as an unnamed match everything group (`(.*)`)
85
86# 1.1.1 / 2015-05-11
87
88- Expose methods for working with path tokens
89
90# 1.1.0 / 2015-05-09
91
92- Expose the parser implementation to consumers
93- Implement a compiler function to generate valid strings
94- Huge refactor of tests to be more DRY and cover new parse and compile functions
95- Use chai in tests
96- Add .editorconfig
97
98# 1.0.3 / 2015-01-17
99
100- Optimised function runtime
101- Added `files` to `package.json`
102
103# 1.0.2 / 2014-12-17
104
105- Use `Array.isArray` shim
106- Remove ES5 incompatible code
107- Fixed repository path
108- Added new readme badges
109
110# 1.0.1 / 2014-08-27
111
112- Ensure installation works correctly on 0.8
113
114# 1.0.0 / 2014-08-17
115
116- No more API changes
117
118# 0.2.5 / 2014-08-07
119
120- Allow keys parameter to be omitted
121
122# 0.2.4 / 2014-08-02
123
124- Code coverage badge
125- Updated readme
126- Attach keys to the generated regexp
127
128# 0.2.3 / 2014-07-09
129
130- Add MIT license
131
132# 0.2.2 / 2014-07-06
133
134- A passed in trailing slash in non-strict mode will become optional
135- In non-end mode, the optional trailing slash will only match at the end
136
137# 0.2.1 / 2014-06-11
138
139- Fixed a major capturing group regexp regression
140
141# 0.2.0 / 2014-06-09
142
143- Improved support for arrays
144- Improved support for regexps
145- Better support for non-ending strict mode matches with a trailing slash
146- Travis CI support
147- Block using regexp special characters in the path
148- Removed support for the asterisk to match all
149- New support for parameter suffixes - `*`, `+` and `?`
150- Updated readme
151- Provide delimiter information with keys array
152
153# 0.1.2 / 2014-03-10
154
155- Move testing dependencies to `devDependencies`
156
157# 0.1.1 / 2014-03-10
158
159- Match entire substring with `options.end`
160- Properly handle ending and non-ending matches
161
162# 0.1.0 / 2014-03-06
163
164- Add `options.end`
165
166# 0.0.2 / 2013-02-10
167
168- Update to match current express
169- Add .license property to component.json