UNPKG

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