Skip to content

Commit

Permalink
Standardize TypeScript package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 11, 2019
1 parent 4124c3c commit 0f6c929
Show file tree
Hide file tree
Showing 12 changed files with 13,241 additions and 6,064 deletions.
12 changes: 5 additions & 7 deletions .gitignore
@@ -1,7 +1,5 @@
node_modules
.nyc_output
coverage
components
dist
dist.es2015
typings
.vscode/
node_modules/
coverage/
dist/
dist.es2015/
241 changes: 104 additions & 137 deletions History.md
@@ -1,202 +1,169 @@
3.0.0 / 2019-01-13
==================
# 3.0.0 / 2019-01-13

* Always use prefix character as delimiter token, allowing any character to be a delimiter (e.g. `/:att1-:att2-:att3-:att4-:att5`)
* Remove `partial` support, prefer escaping the prefix delimiter explicitly (e.g. `\\/(apple-)?icon-:res(\\d+).png`)
- Always use prefix character as delimiter token, allowing any character to be a delimiter (e.g. `/:att1-:att2-:att3-:att4-:att5`)
- Remove `partial` support, prefer escaping the prefix delimiter explicitly (e.g. `\\/(apple-)?icon-:res(\\d+).png`)

2.4.0 / 2018-08-26
==================
# 2.4.0 / 2018-08-26

* Support `start` option to disable anchoring from beginning of the string
- Support `start` option to disable anchoring from beginning of the string

2.3.0 / 2018-08-20
==================
# 2.3.0 / 2018-08-20

* Use `delimiter` when processing repeated matching groups (e.g. `foo/bar` has no prefix, but has a delimiter)
- Use `delimiter` when processing repeated matching groups (e.g. `foo/bar` has no prefix, but has a delimiter)

2.2.1 / 2018-04-24
==================
# 2.2.1 / 2018-04-24

* Allow empty string with `end: false` to match both relative and absolute paths
- Allow empty string with `end: false` to match both relative and absolute paths

2.2.0 / 2018-03-06
==================
# 2.2.0 / 2018-03-06

* Pass `token` as second argument to `encode` option (e.g. `encode(value, token)`)
- Pass `token` as second argument to `encode` option (e.g. `encode(value, token)`)

2.1.0 / 2017-10-20
==================
# 2.1.0 / 2017-10-20

* Handle non-ending paths where the final character is a delimiter
* E.g. `/foo/` before required either `/foo/` or `/foo//` to match in non-ending mode
- Handle non-ending paths where the final character is a delimiter
- E.g. `/foo/` before required either `/foo/` or `/foo//` to match in non-ending mode

2.0.0 / 2017-08-23
==================
# 2.0.0 / 2017-08-23

* New option! Ability to set `endsWith` to match paths like `/test?query=string` up to the query string
* New option! Set `delimiters` for specific characters to be treated as parameter prefixes (e.g. `/:test`)
* Remove `isarray` dependency
* Explicitly handle trailing delimiters instead of trimming them (e.g. `/test/` is now treated as `/test/` instead of `/test` when matching)
* Remove overloaded `keys` argument that accepted `options`
* Remove `keys` list attached to the `RegExp` output
* Remove asterisk functionality (it's a real pain to properly encode)
* Change `tokensToFunction` (e.g. `compile`) to accept an `encode` function for pretty encoding (e.g. pass your own implementation)
- New option! Ability to set `endsWith` to match paths like `/test?query=string` up to the query string
- New option! Set `delimiters` for specific characters to be treated as parameter prefixes (e.g. `/:test`)
- Remove `isarray` dependency
- Explicitly handle trailing delimiters instead of trimming them (e.g. `/test/` is now treated as `/test/` instead of `/test` when matching)
- Remove overloaded `keys` argument that accepted `options`
- Remove `keys` list attached to the `RegExp` output
- Remove asterisk functionality (it's a real pain to properly encode)
- Change `tokensToFunction` (e.g. `compile`) to accept an `encode` function for pretty encoding (e.g. pass your own implementation)

1.7.0 / 2016-11-08
==================
# 1.7.0 / 2016-11-08

* Allow a `delimiter` option to be passed in with `tokensToRegExp` which will be used for "non-ending" token match situations
- Allow a `delimiter` option to be passed in with `tokensToRegExp` which will be used for "non-ending" token match situations

1.6.0 / 2016-10-03
==================
# 1.6.0 / 2016-10-03

* Populate `RegExp.keys` when using the `tokensToRegExp` method (making it consistent with the main export)
* Allow a `delimiter` option to be passed in with `parse`
* Updated TypeScript definition with `Keys` and `Options` updated
- Populate `RegExp.keys` when using the `tokensToRegExp` method (making it consistent with the main export)
- Allow a `delimiter` option to be passed in with `parse`
- Updated TypeScript definition with `Keys` and `Options` updated

1.5.3 / 2016-06-15
==================
# 1.5.3 / 2016-06-15

* Add `\\` to the ignore character group to avoid backtracking on mismatched parens
- Add `\\` to the ignore character group to avoid backtracking on mismatched parens

1.5.2 / 2016-06-15
==================
# 1.5.2 / 2016-06-15

* Escape `\\` in string segments of regexp
- Escape `\\` in string segments of regexp

1.5.1 / 2016-06-08
==================
# 1.5.1 / 2016-06-08

* Add `index.d.ts` to NPM package
- Add `index.d.ts` to NPM package

1.5.0 / 2016-05-20
==================
# 1.5.0 / 2016-05-20

* Handle partial token segments (better)
* Allow compile to handle asterisk token segments
- Handle partial token segments (better)
- Allow compile to handle asterisk token segments

1.4.0 / 2016-05-18
==================
# 1.4.0 / 2016-05-18

* Handle RegExp unions in path matching groups
- Handle RegExp unions in path matching groups

1.3.0 / 2016-05-08
==================
# 1.3.0 / 2016-05-08

* Clarify README language and named parameter token support
* Support advanced Closure Compiler with type annotations
* Add pretty paths options to compiled function output
* Add TypeScript definition to project
* Improved prefix handling with non-complete segment parameters (E.g. `/:foo?-bar`)
- Clarify README language and named parameter token support
- Support advanced Closure Compiler with type annotations
- Add pretty paths options to compiled function output
- Add TypeScript definition to project
- Improved prefix handling with non-complete segment parameters (E.g. `/:foo?-bar`)

1.2.1 / 2015-08-17
==================
# 1.2.1 / 2015-08-17

* Encode values before validation with path compilation function
* More examples of using compilation in README
- Encode values before validation with path compilation function
- More examples of using compilation in README

1.2.0 / 2015-05-20
==================
# 1.2.0 / 2015-05-20

* Add support for matching an asterisk (`*`) as an unnamed match everything group (`(.*)`)
- Add support for matching an asterisk (`*`) as an unnamed match everything group (`(.*)`)

1.1.1 / 2015-05-11
==================
# 1.1.1 / 2015-05-11

* Expose methods for working with path tokens
- Expose methods for working with path tokens

1.1.0 / 2015-05-09
==================
# 1.1.0 / 2015-05-09

* Expose the parser implementation to consumers
* Implement a compiler function to generate valid strings
* Huge refactor of tests to be more DRY and cover new parse and compile functions
* Use chai in tests
* Add .editorconfig
- Expose the parser implementation to consumers
- Implement a compiler function to generate valid strings
- Huge refactor of tests to be more DRY and cover new parse and compile functions
- Use chai in tests
- Add .editorconfig

1.0.3 / 2015-01-17
==================
# 1.0.3 / 2015-01-17

* Optimised function runtime
* Added `files` to `package.json`
- Optimised function runtime
- Added `files` to `package.json`

1.0.2 / 2014-12-17
==================
# 1.0.2 / 2014-12-17

* Use `Array.isArray` shim
* Remove ES5 incompatible code
* Fixed repository path
* Added new readme badges
- Use `Array.isArray` shim
- Remove ES5 incompatible code
- Fixed repository path
- Added new readme badges

1.0.1 / 2014-08-27
==================
# 1.0.1 / 2014-08-27

* Ensure installation works correctly on 0.8
- Ensure installation works correctly on 0.8

1.0.0 / 2014-08-17
==================
# 1.0.0 / 2014-08-17

* No more API changes
- No more API changes

0.2.5 / 2014-08-07
==================
# 0.2.5 / 2014-08-07

* Allow keys parameter to be omitted
- Allow keys parameter to be omitted

0.2.4 / 2014-08-02
==================
# 0.2.4 / 2014-08-02

* Code coverage badge
* Updated readme
* Attach keys to the generated regexp
- Code coverage badge
- Updated readme
- Attach keys to the generated regexp

0.2.3 / 2014-07-09
==================
# 0.2.3 / 2014-07-09

* Add MIT license
- Add MIT license

0.2.2 / 2014-07-06
==================
# 0.2.2 / 2014-07-06

* A passed in trailing slash in non-strict mode will become optional
* In non-end mode, the optional trailing slash will only match at the end
- A passed in trailing slash in non-strict mode will become optional
- In non-end mode, the optional trailing slash will only match at the end

0.2.1 / 2014-06-11
==================
# 0.2.1 / 2014-06-11

* Fixed a major capturing group regexp regression
- Fixed a major capturing group regexp regression

0.2.0 / 2014-06-09
==================
# 0.2.0 / 2014-06-09

* Improved support for arrays
* Improved support for regexps
* Better support for non-ending strict mode matches with a trailing slash
* Travis CI support
* Block using regexp special characters in the path
* Removed support for the asterisk to match all
* New support for parameter suffixes - `*`, `+` and `?`
* Updated readme
* Provide delimiter information with keys array
- Improved support for arrays
- Improved support for regexps
- Better support for non-ending strict mode matches with a trailing slash
- Travis CI support
- Block using regexp special characters in the path
- Removed support for the asterisk to match all
- New support for parameter suffixes - `*`, `+` and `?`
- Updated readme
- Provide delimiter information with keys array

0.1.2 / 2014-03-10
==================
# 0.1.2 / 2014-03-10

* Move testing dependencies to `devDependencies`
- Move testing dependencies to `devDependencies`

0.1.1 / 2014-03-10
==================
# 0.1.1 / 2014-03-10

* Match entire substring with `options.end`
* Properly handle ending and non-ending matches
- Match entire substring with `options.end`
- Properly handle ending and non-ending matches

0.1.0 / 2014-03-06
==================
# 0.1.0 / 2014-03-06

* Add `options.end`
- Add `options.end`

0.0.2 / 2013-02-10
==================
# 0.0.2 / 2013-02-10

* Update to match current express
* Add .license property to component.json
- Update to match current express
- Add .license property to component.json

0 comments on commit 0f6c929

Please sign in to comment.