uuid 9.0.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +134 -16
- package/dist/commonjs-browser/index.js +40 -15
- package/dist/commonjs-browser/max.js +7 -0
- package/dist/commonjs-browser/md5.js +30 -53
- package/dist/commonjs-browser/native.js +3 -4
- package/dist/commonjs-browser/nil.js +1 -2
- package/dist/commonjs-browser/parse.js +14 -15
- package/dist/commonjs-browser/regex.js +1 -2
- package/dist/commonjs-browser/rng.js +2 -4
- package/dist/commonjs-browser/sha1.js +27 -49
- package/dist/commonjs-browser/stringify.js +10 -16
- package/dist/commonjs-browser/v1.js +73 -49
- package/dist/commonjs-browser/v1ToV6.js +26 -0
- package/dist/commonjs-browser/v3.js +3 -8
- package/dist/commonjs-browser/v35.js +15 -32
- package/dist/commonjs-browser/v4.js +7 -18
- package/dist/commonjs-browser/v5.js +3 -8
- package/dist/commonjs-browser/v6.js +42 -0
- package/dist/commonjs-browser/v6ToV1.js +26 -0
- package/dist/commonjs-browser/v7.js +152 -0
- package/dist/commonjs-browser/validate.js +2 -7
- package/dist/commonjs-browser/version.js +2 -8
- package/dist/esm-browser/index.js +9 -4
- package/dist/esm-browser/max.js +1 -0
- package/dist/esm-browser/md5.js +29 -50
- package/dist/esm-browser/native.js +1 -1
- package/dist/esm-browser/parse.js +12 -10
- package/dist/esm-browser/regex.js +1 -1
- package/dist/esm-browser/rng.js +3 -4
- package/dist/esm-browser/sha1.js +26 -46
- package/dist/esm-browser/stringify.js +9 -11
- package/dist/esm-browser/v1.js +74 -44
- package/dist/esm-browser/v1ToV6.js +20 -0
- package/dist/esm-browser/v3.js +1 -1
- package/dist/esm-browser/v35.js +14 -25
- package/dist/esm-browser/v4.js +5 -9
- package/dist/esm-browser/v5.js +1 -1
- package/dist/esm-browser/v6.js +36 -0
- package/dist/esm-browser/v6ToV1.js +20 -0
- package/dist/esm-browser/v7.js +146 -0
- package/dist/esm-browser/validate.js +0 -2
- package/dist/esm-browser/version.js +0 -3
- package/dist/esm-node/index.js +9 -4
- package/dist/esm-node/max.js +1 -0
- package/dist/esm-node/md5.js +1 -4
- package/dist/esm-node/native.js +1 -1
- package/dist/esm-node/parse.js +11 -9
- package/dist/esm-node/regex.js +1 -1
- package/dist/esm-node/rng.js +1 -3
- package/dist/esm-node/sha1.js +1 -4
- package/dist/esm-node/stringify.js +7 -9
- package/dist/esm-node/v1.js +66 -36
- package/dist/esm-node/v1ToV6.js +20 -0
- package/dist/esm-node/v35.js +8 -19
- package/dist/esm-node/v4.js +4 -8
- package/dist/esm-node/v6.js +32 -0
- package/dist/esm-node/v6ToV1.js +20 -0
- package/dist/esm-node/v7.js +146 -0
- package/dist/esm-node/validate.js +0 -2
- package/dist/esm-node/version.js +0 -3
- package/dist/index.js +40 -15
- package/dist/max.js +7 -0
- package/dist/md5-browser.js +8 -31
- package/dist/md5.js +4 -10
- package/dist/native-browser.js +2 -3
- package/dist/native.js +5 -9
- package/dist/nil.js +1 -2
- package/dist/parse.js +13 -14
- package/dist/regex.js +1 -2
- package/dist/rng-browser.js +1 -3
- package/dist/rng.js +3 -10
- package/dist/sha1-browser.js +1 -23
- package/dist/sha1.js +4 -10
- package/dist/stringify.js +8 -14
- package/dist/uuid-bin.js +12 -22
- package/dist/v1.js +66 -42
- package/dist/v1ToV6.js +26 -0
- package/dist/v3.js +2 -7
- package/dist/v35.js +11 -28
- package/dist/v4.js +6 -17
- package/dist/v5.js +2 -7
- package/dist/v6.js +38 -0
- package/dist/v6ToV1.js +26 -0
- package/dist/v7.js +152 -0
- package/dist/validate.js +2 -7
- package/dist/version.js +2 -8
- package/package.json +41 -34
- package/wrapper.mjs +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uuid",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
|
+
"description": "RFC9562 UUIDs",
|
|
5
5
|
"funding": [
|
|
6
6
|
"https://github.com/sponsors/broofa",
|
|
7
7
|
"https://github.com/sponsors/ctavan"
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"keywords": [
|
|
15
15
|
"uuid",
|
|
16
16
|
"guid",
|
|
17
|
-
"rfc4122"
|
|
17
|
+
"rfc4122",
|
|
18
|
+
"rfc9562"
|
|
18
19
|
],
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bin": {
|
|
21
|
-
"uuid": "
|
|
22
|
+
"uuid": "dist/bin/uuid"
|
|
22
23
|
},
|
|
23
24
|
"sideEffects": false,
|
|
24
25
|
"main": "./dist/index.js",
|
|
@@ -39,11 +40,11 @@
|
|
|
39
40
|
},
|
|
40
41
|
"module": "./dist/esm-node/index.js",
|
|
41
42
|
"browser": {
|
|
43
|
+
"./dist/esm-node/index.js": "./dist/esm-browser/index.js",
|
|
42
44
|
"./dist/md5.js": "./dist/md5-browser.js",
|
|
43
45
|
"./dist/native.js": "./dist/native-browser.js",
|
|
44
46
|
"./dist/rng.js": "./dist/rng-browser.js",
|
|
45
|
-
"./dist/sha1.js": "./dist/sha1-browser.js"
|
|
46
|
-
"./dist/esm-node/index.js": "./dist/esm-browser/index.js"
|
|
47
|
+
"./dist/sha1.js": "./dist/sha1-browser.js"
|
|
47
48
|
},
|
|
48
49
|
"files": [
|
|
49
50
|
"CHANGELOG.md",
|
|
@@ -54,26 +55,30 @@
|
|
|
54
55
|
"wrapper.mjs"
|
|
55
56
|
],
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@babel/cli": "7.
|
|
58
|
-
"@babel/core": "7.
|
|
59
|
-
"@babel/eslint-parser": "7.
|
|
60
|
-
"@babel/
|
|
61
|
-
"@
|
|
62
|
-
"@commitlint/
|
|
58
|
+
"@babel/cli": "7.24.6",
|
|
59
|
+
"@babel/core": "7.24.6",
|
|
60
|
+
"@babel/eslint-parser": "7.24.6",
|
|
61
|
+
"@babel/plugin-syntax-import-attributes": "7.24.6",
|
|
62
|
+
"@babel/preset-env": "7.24.6",
|
|
63
|
+
"@commitlint/cli": "19.3.0",
|
|
64
|
+
"@commitlint/config-conventional": "19.2.2",
|
|
65
|
+
"@wdio/browserstack-service": "7.16.10",
|
|
66
|
+
"@wdio/cli": "7.16.10",
|
|
67
|
+
"@wdio/jasmine-framework": "7.16.6",
|
|
68
|
+
"@wdio/local-runner": "7.16.10",
|
|
69
|
+
"@wdio/spec-reporter": "7.16.9",
|
|
70
|
+
"@wdio/static-server-service": "7.16.6",
|
|
63
71
|
"bundlewatch": "0.3.3",
|
|
64
|
-
"eslint": "
|
|
65
|
-
"eslint-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"husky": "8.0.1",
|
|
72
|
-
"jest": "28.1.3",
|
|
73
|
-
"lint-staged": "13.0.3",
|
|
72
|
+
"eslint": "9.4.0",
|
|
73
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
74
|
+
"globals": "15.3.0",
|
|
75
|
+
"husky": "9.0.11",
|
|
76
|
+
"jest": "29.7.0",
|
|
77
|
+
"lint-staged": "15.2.5",
|
|
78
|
+
"neostandard": "0.5.1",
|
|
74
79
|
"npm-run-all": "4.1.5",
|
|
75
80
|
"optional-dev-dependency": "2.0.1",
|
|
76
|
-
"prettier": "
|
|
81
|
+
"prettier": "3.3.0",
|
|
77
82
|
"random-seed": "0.3.0",
|
|
78
83
|
"runmd": "1.3.9",
|
|
79
84
|
"standard-version": "9.5.0"
|
|
@@ -92,24 +97,25 @@
|
|
|
92
97
|
"examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
|
|
93
98
|
"examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
|
|
94
99
|
"examples:node:jest:test": "cd examples/node-jest && npm install && npm test",
|
|
95
|
-
"prepare": "
|
|
100
|
+
"prepare": "husky install",
|
|
96
101
|
"lint": "npm run eslint:check && npm run prettier:check",
|
|
97
102
|
"eslint:check": "eslint src/ test/ examples/ *.js",
|
|
98
103
|
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
|
|
99
|
-
"pretest": "
|
|
104
|
+
"pretest": "npm run build",
|
|
100
105
|
"test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/",
|
|
106
|
+
"test:matching": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t",
|
|
101
107
|
"pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
|
|
102
108
|
"test:browser": "wdio run ./wdio.conf.js",
|
|
103
109
|
"pretest:node": "npm run build",
|
|
104
110
|
"test:node": "npm-run-all --parallel examples:node:**",
|
|
105
111
|
"test:pack": "./scripts/testpack.sh",
|
|
106
112
|
"pretest:benchmark": "npm run build",
|
|
107
|
-
"test:benchmark": "cd examples/benchmark && npm install && npm test",
|
|
108
|
-
"prettier:check": "prettier --check
|
|
109
|
-
"prettier:fix": "prettier --write
|
|
113
|
+
"test:benchmark": "cd examples/benchmark && HUSKY=0 npm install && npm test",
|
|
114
|
+
"prettier:check": "prettier --check .",
|
|
115
|
+
"prettier:fix": "prettier --write .",
|
|
110
116
|
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
|
|
111
117
|
"md": "runmd --watch --output=README.md README_js.md",
|
|
112
|
-
"docs": "
|
|
118
|
+
"docs": "npm run build && npx runmd --output=README.md README_js.md",
|
|
113
119
|
"docs:diff": "npm run docs && git diff --quiet README.md",
|
|
114
120
|
"build": "./scripts/build.sh",
|
|
115
121
|
"prepack": "npm run build",
|
|
@@ -117,19 +123,20 @@
|
|
|
117
123
|
},
|
|
118
124
|
"repository": {
|
|
119
125
|
"type": "git",
|
|
120
|
-
"url": "https://github.com/uuidjs/uuid.git"
|
|
126
|
+
"url": "git+https://github.com/uuidjs/uuid.git"
|
|
121
127
|
},
|
|
122
128
|
"lint-staged": {
|
|
123
|
-
"
|
|
124
|
-
"prettier --write"
|
|
129
|
+
"*": [
|
|
130
|
+
"prettier --no-error-on-unmatched-pattern --write"
|
|
125
131
|
],
|
|
126
132
|
"*.{js,jsx}": [
|
|
127
|
-
"eslint --fix"
|
|
133
|
+
"eslint --no-error-on-unmatched-pattern --fix"
|
|
128
134
|
]
|
|
129
135
|
},
|
|
130
136
|
"standard-version": {
|
|
131
137
|
"scripts": {
|
|
132
138
|
"postchangelog": "prettier --write CHANGELOG.md"
|
|
133
139
|
}
|
|
134
|
-
}
|
|
140
|
+
},
|
|
141
|
+
"packageManager": "npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483"
|
|
135
142
|
}
|
package/wrapper.mjs
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import uuid from './dist/index.js';
|
|
2
2
|
export const v1 = uuid.v1;
|
|
3
|
+
export const v1ToV6 = uuid.v1ToV6;
|
|
3
4
|
export const v3 = uuid.v3;
|
|
4
5
|
export const v4 = uuid.v4;
|
|
5
6
|
export const v5 = uuid.v5;
|
|
7
|
+
export const v6 = uuid.v6;
|
|
8
|
+
export const v6ToV1 = uuid.v6ToV1;
|
|
9
|
+
export const v7 = uuid.v7;
|
|
6
10
|
export const NIL = uuid.NIL;
|
|
11
|
+
export const MAX = uuid.MAX;
|
|
7
12
|
export const version = uuid.version;
|
|
8
13
|
export const validate = uuid.validate;
|
|
9
14
|
export const stringify = uuid.stringify;
|