update
This commit is contained in:
+23
-1
@@ -1,4 +1,4 @@
|
||||
# unicode-match-property-ecmascript [](https://travis-ci.org/mathiasbynens/unicode-match-property-ecmascript)
|
||||
# unicode-match-property-ecmascript [](https://travis-ci.org/mathiasbynens/unicode-match-property-ecmascript) [](https://www.npmjs.com/package/unicode-match-property-ecmascript)
|
||||
|
||||
_unicode-match-property-ecmascript_ matches a given Unicode property or [property alias](https://github.com/mathiasbynens/unicode-property-aliases-ecmascript) to its canonical property name without applying [loose matching](https://github.com/mathiasbynens/unicode-loose-match) per the algorithm used for [RegExp Unicode property escapes in ECMAScript](https://github.com/tc39/proposal-regexp-unicode-property-escapes). Consider it a strict alternative to loose matching.
|
||||
|
||||
@@ -36,6 +36,28 @@ matchProperty('script') // Note: incorrect casing.
|
||||
// → throws
|
||||
```
|
||||
|
||||
## For maintainers
|
||||
|
||||
### How to publish a new release
|
||||
|
||||
1. On the `main` branch, bump the version number in `package.json`:
|
||||
|
||||
```sh
|
||||
npm version patch -m 'Release v%s'
|
||||
```
|
||||
|
||||
Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
|
||||
|
||||
Note that this produces a Git commit + tag.
|
||||
|
||||
1. Push the release commit and tag:
|
||||
|
||||
```sh
|
||||
git push && git push --tags
|
||||
```
|
||||
|
||||
Our CI then automatically publishes the new release to npm.
|
||||
|
||||
## Author
|
||||
|
||||
| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
|
||||
|
||||
+15
-15
@@ -1,32 +1,32 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"unicode-match-property-ecmascript@1.0.4",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"unicode-match-property-ecmascript@2.0.0",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "unicode-match-property-ecmascript@1.0.4",
|
||||
"_id": "unicode-match-property-ecmascript@1.0.4",
|
||||
"_from": "unicode-match-property-ecmascript@2.0.0",
|
||||
"_id": "unicode-match-property-ecmascript@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==",
|
||||
"_integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",
|
||||
"_location": "/unicode-match-property-ecmascript",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "unicode-match-property-ecmascript@1.0.4",
|
||||
"raw": "unicode-match-property-ecmascript@2.0.0",
|
||||
"name": "unicode-match-property-ecmascript",
|
||||
"escapedName": "unicode-match-property-ecmascript",
|
||||
"rawSpec": "1.0.4",
|
||||
"rawSpec": "2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.4"
|
||||
"fetchSpec": "2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/regexpu-core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
|
||||
"_spec": "1.0.4",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz",
|
||||
"_spec": "2.0.0",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Mathias Bynens",
|
||||
"url": "https://mathiasbynens.be/"
|
||||
@@ -35,8 +35,8 @@
|
||||
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"unicode-canonical-property-names-ecmascript": "^1.0.4",
|
||||
"unicode-property-aliases-ecmascript": "^1.0.4"
|
||||
"unicode-canonical-property-names-ecmascript": "^2.0.0",
|
||||
"unicode-property-aliases-ecmascript": "^2.0.0"
|
||||
},
|
||||
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.",
|
||||
"devDependencies": {
|
||||
@@ -63,7 +63,7 @@
|
||||
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "ava ./tests"
|
||||
"test": "ava ./tests/*"
|
||||
},
|
||||
"version": "1.0.4"
|
||||
"version": "2.0.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user