This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+23 -1
View File
@@ -1,4 +1,4 @@
# unicode-match-property-value-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-match-property-value-ecmascript.svg?branch=master)](https://travis-ci.org/mathiasbynens/unicode-match-property-value-ecmascript)
# unicode-match-property-value-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-match-property-value-ecmascript.svg?branch=main)](https://travis-ci.org/mathiasbynens/unicode-match-property-value-ecmascript) [![unicode-match-property-value-ecmascript on npm](https://img.shields.io/npm/v/unicode-match-property-value-ecmascript)](https://www.npmjs.com/package/unicode-match-property-value-ecmascript)
_unicode-match-property-value-ecmascript_ matches a given Unicode property value or [property value alias](https://github.com/mathiasbynens/unicode-property-value-aliases) to its canonical property value 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.
@@ -39,6 +39,28 @@ matchPropertyValue('Script_Extensions', 'caucasian_albanian') // Note: incorrect
// → 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
| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
+18
View File
@@ -108,6 +108,7 @@ module.exports = new Map([
['Chrs', 'Chorasmian'],
['Copt', 'Coptic'],
['Qaac', 'Coptic'],
['Cpmn', 'Cypro_Minoan'],
['Cprt', 'Cypriot'],
['Cyrl', 'Cyrillic'],
['Deva', 'Devanagari'],
@@ -187,6 +188,7 @@ module.exports = new Map([
['Orya', 'Oriya'],
['Osge', 'Osage'],
['Osma', 'Osmanya'],
['Ougr', 'Old_Uyghur'],
['Palm', 'Palmyrene'],
['Pauc', 'Pau_Cin_Hau'],
['Perm', 'Old_Permic'],
@@ -229,8 +231,11 @@ module.exports = new Map([
['Thai', 'Thai'],
['Tibt', 'Tibetan'],
['Tirh', 'Tirhuta'],
['Tnsa', 'Tangsa'],
['Toto', 'Toto'],
['Ugar', 'Ugaritic'],
['Vaii', 'Vai'],
['Vith', 'Vithkuqi'],
['Wara', 'Warang_Citi'],
['Wcho', 'Wancho'],
['Xpeo', 'Old_Persian'],
@@ -265,6 +270,7 @@ module.exports = new Map([
['Cherokee', 'Cherokee'],
['Chorasmian', 'Chorasmian'],
['Coptic', 'Coptic'],
['Cypro_Minoan', 'Cypro_Minoan'],
['Cypriot', 'Cypriot'],
['Cyrillic', 'Cyrillic'],
['Devanagari', 'Devanagari'],
@@ -341,6 +347,7 @@ module.exports = new Map([
['Oriya', 'Oriya'],
['Osage', 'Osage'],
['Osmanya', 'Osmanya'],
['Old_Uyghur', 'Old_Uyghur'],
['Palmyrene', 'Palmyrene'],
['Pau_Cin_Hau', 'Pau_Cin_Hau'],
['Old_Permic', 'Old_Permic'],
@@ -382,8 +389,10 @@ module.exports = new Map([
['Thaana', 'Thaana'],
['Tibetan', 'Tibetan'],
['Tirhuta', 'Tirhuta'],
['Tangsa', 'Tangsa'],
['Ugaritic', 'Ugaritic'],
['Vai', 'Vai'],
['Vithkuqi', 'Vithkuqi'],
['Warang_Citi', 'Warang_Citi'],
['Wancho', 'Wancho'],
['Old_Persian', 'Old_Persian'],
@@ -422,6 +431,7 @@ module.exports = new Map([
['Chrs', 'Chorasmian'],
['Copt', 'Coptic'],
['Qaac', 'Coptic'],
['Cpmn', 'Cypro_Minoan'],
['Cprt', 'Cypriot'],
['Cyrl', 'Cyrillic'],
['Deva', 'Devanagari'],
@@ -501,6 +511,7 @@ module.exports = new Map([
['Orya', 'Oriya'],
['Osge', 'Osage'],
['Osma', 'Osmanya'],
['Ougr', 'Old_Uyghur'],
['Palm', 'Palmyrene'],
['Pauc', 'Pau_Cin_Hau'],
['Perm', 'Old_Permic'],
@@ -543,8 +554,11 @@ module.exports = new Map([
['Thai', 'Thai'],
['Tibt', 'Tibetan'],
['Tirh', 'Tirhuta'],
['Tnsa', 'Tangsa'],
['Toto', 'Toto'],
['Ugar', 'Ugaritic'],
['Vaii', 'Vai'],
['Vith', 'Vithkuqi'],
['Wara', 'Warang_Citi'],
['Wcho', 'Wancho'],
['Xpeo', 'Old_Persian'],
@@ -579,6 +593,7 @@ module.exports = new Map([
['Cherokee', 'Cherokee'],
['Chorasmian', 'Chorasmian'],
['Coptic', 'Coptic'],
['Cypro_Minoan', 'Cypro_Minoan'],
['Cypriot', 'Cypriot'],
['Cyrillic', 'Cyrillic'],
['Devanagari', 'Devanagari'],
@@ -655,6 +670,7 @@ module.exports = new Map([
['Oriya', 'Oriya'],
['Osage', 'Osage'],
['Osmanya', 'Osmanya'],
['Old_Uyghur', 'Old_Uyghur'],
['Palmyrene', 'Palmyrene'],
['Pau_Cin_Hau', 'Pau_Cin_Hau'],
['Old_Permic', 'Old_Permic'],
@@ -696,8 +712,10 @@ module.exports = new Map([
['Thaana', 'Thaana'],
['Tibetan', 'Tibetan'],
['Tirhuta', 'Tirhuta'],
['Tangsa', 'Tangsa'],
['Ugaritic', 'Ugaritic'],
['Vai', 'Vai'],
['Vithkuqi', 'Vithkuqi'],
['Warang_Citi', 'Warang_Citi'],
['Wancho', 'Wancho'],
['Old_Persian', 'Old_Persian'],
+14 -14
View File
@@ -1,32 +1,32 @@
{
"_args": [
[
"unicode-match-property-value-ecmascript@1.2.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"unicode-match-property-value-ecmascript@2.0.0",
"/home/node/nuxt"
]
],
"_from": "unicode-match-property-value-ecmascript@1.2.0",
"_id": "unicode-match-property-value-ecmascript@1.2.0",
"_from": "unicode-match-property-value-ecmascript@2.0.0",
"_id": "unicode-match-property-value-ecmascript@2.0.0",
"_inBundle": false,
"_integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==",
"_integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==",
"_location": "/unicode-match-property-value-ecmascript",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "unicode-match-property-value-ecmascript@1.2.0",
"raw": "unicode-match-property-value-ecmascript@2.0.0",
"name": "unicode-match-property-value-ecmascript",
"escapedName": "unicode-match-property-value-ecmascript",
"rawSpec": "1.2.0",
"rawSpec": "2.0.0",
"saveSpec": null,
"fetchSpec": "1.2.0"
"fetchSpec": "2.0.0"
},
"_requiredBy": [
"/regexpu-core"
],
"_resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
"_spec": "1.2.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "/home/node/nuxt",
"author": {
"name": "Mathias Bynens",
"url": "https://mathiasbynens.be/"
@@ -37,8 +37,8 @@
"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": {
"ava": "*",
"jsesc": "^2.5.2",
"unicode-property-value-aliases-ecmascript": "^1.1.0"
"jsesc": "^3.0.2",
"unicode-property-value-aliases-ecmascript": "^2.0.0"
},
"engines": {
"node": ">=4"
@@ -65,5 +65,5 @@
"build": "node scripts/build.js",
"test": "ava tests/tests.js"
},
"version": "1.2.0"
"version": "2.0.0"
}