uuid 9.0.0 → 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 +24 -0
- package/README.md +140 -18
- 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 +9 -15
- 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 +8 -10
- 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 +6 -8
- 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 +7 -13
- 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 +46 -35
- package/wrapper.mjs +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uuid",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
|
+
"description": "RFC9562 UUIDs",
|
|
5
|
+
"funding": [
|
|
6
|
+
"https://github.com/sponsors/broofa",
|
|
7
|
+
"https://github.com/sponsors/ctavan"
|
|
8
|
+
],
|
|
5
9
|
"commitlint": {
|
|
6
10
|
"extends": [
|
|
7
11
|
"@commitlint/config-conventional"
|
|
@@ -10,11 +14,12 @@
|
|
|
10
14
|
"keywords": [
|
|
11
15
|
"uuid",
|
|
12
16
|
"guid",
|
|
13
|
-
"rfc4122"
|
|
17
|
+
"rfc4122",
|
|
18
|
+
"rfc9562"
|
|
14
19
|
],
|
|
15
20
|
"license": "MIT",
|
|
16
21
|
"bin": {
|
|
17
|
-
"uuid": "
|
|
22
|
+
"uuid": "dist/bin/uuid"
|
|
18
23
|
},
|
|
19
24
|
"sideEffects": false,
|
|
20
25
|
"main": "./dist/index.js",
|
|
@@ -35,11 +40,11 @@
|
|
|
35
40
|
},
|
|
36
41
|
"module": "./dist/esm-node/index.js",
|
|
37
42
|
"browser": {
|
|
43
|
+
"./dist/esm-node/index.js": "./dist/esm-browser/index.js",
|
|
38
44
|
"./dist/md5.js": "./dist/md5-browser.js",
|
|
39
45
|
"./dist/native.js": "./dist/native-browser.js",
|
|
40
46
|
"./dist/rng.js": "./dist/rng-browser.js",
|
|
41
|
-
"./dist/sha1.js": "./dist/sha1-browser.js"
|
|
42
|
-
"./dist/esm-node/index.js": "./dist/esm-browser/index.js"
|
|
47
|
+
"./dist/sha1.js": "./dist/sha1-browser.js"
|
|
43
48
|
},
|
|
44
49
|
"files": [
|
|
45
50
|
"CHANGELOG.md",
|
|
@@ -50,28 +55,32 @@
|
|
|
50
55
|
"wrapper.mjs"
|
|
51
56
|
],
|
|
52
57
|
"devDependencies": {
|
|
53
|
-
"@babel/cli": "7.
|
|
54
|
-
"@babel/core": "7.
|
|
55
|
-
"@babel/eslint-parser": "7.
|
|
56
|
-
"@babel/
|
|
57
|
-
"@
|
|
58
|
-
"@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",
|
|
59
71
|
"bundlewatch": "0.3.3",
|
|
60
|
-
"eslint": "
|
|
61
|
-
"eslint-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"husky": "8.0.1",
|
|
68
|
-
"jest": "28.1.3",
|
|
69
|
-
"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",
|
|
70
79
|
"npm-run-all": "4.1.5",
|
|
71
80
|
"optional-dev-dependency": "2.0.1",
|
|
72
|
-
"prettier": "
|
|
81
|
+
"prettier": "3.3.0",
|
|
73
82
|
"random-seed": "0.3.0",
|
|
74
|
-
"runmd": "1.3.
|
|
83
|
+
"runmd": "1.3.9",
|
|
75
84
|
"standard-version": "9.5.0"
|
|
76
85
|
},
|
|
77
86
|
"optionalDevDependencies": {
|
|
@@ -88,24 +97,25 @@
|
|
|
88
97
|
"examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
|
|
89
98
|
"examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
|
|
90
99
|
"examples:node:jest:test": "cd examples/node-jest && npm install && npm test",
|
|
91
|
-
"prepare": "
|
|
100
|
+
"prepare": "husky install",
|
|
92
101
|
"lint": "npm run eslint:check && npm run prettier:check",
|
|
93
102
|
"eslint:check": "eslint src/ test/ examples/ *.js",
|
|
94
103
|
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
|
|
95
|
-
"pretest": "
|
|
104
|
+
"pretest": "npm run build",
|
|
96
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",
|
|
97
107
|
"pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
|
|
98
108
|
"test:browser": "wdio run ./wdio.conf.js",
|
|
99
109
|
"pretest:node": "npm run build",
|
|
100
110
|
"test:node": "npm-run-all --parallel examples:node:**",
|
|
101
111
|
"test:pack": "./scripts/testpack.sh",
|
|
102
112
|
"pretest:benchmark": "npm run build",
|
|
103
|
-
"test:benchmark": "cd examples/benchmark && npm install && npm test",
|
|
104
|
-
"prettier:check": "prettier --check
|
|
105
|
-
"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 .",
|
|
106
116
|
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
|
|
107
117
|
"md": "runmd --watch --output=README.md README_js.md",
|
|
108
|
-
"docs": "
|
|
118
|
+
"docs": "npm run build && npx runmd --output=README.md README_js.md",
|
|
109
119
|
"docs:diff": "npm run docs && git diff --quiet README.md",
|
|
110
120
|
"build": "./scripts/build.sh",
|
|
111
121
|
"prepack": "npm run build",
|
|
@@ -113,19 +123,20 @@
|
|
|
113
123
|
},
|
|
114
124
|
"repository": {
|
|
115
125
|
"type": "git",
|
|
116
|
-
"url": "https://github.com/uuidjs/uuid.git"
|
|
126
|
+
"url": "git+https://github.com/uuidjs/uuid.git"
|
|
117
127
|
},
|
|
118
128
|
"lint-staged": {
|
|
119
|
-
"
|
|
120
|
-
"prettier --write"
|
|
129
|
+
"*": [
|
|
130
|
+
"prettier --no-error-on-unmatched-pattern --write"
|
|
121
131
|
],
|
|
122
132
|
"*.{js,jsx}": [
|
|
123
|
-
"eslint --fix"
|
|
133
|
+
"eslint --no-error-on-unmatched-pattern --fix"
|
|
124
134
|
]
|
|
125
135
|
},
|
|
126
136
|
"standard-version": {
|
|
127
137
|
"scripts": {
|
|
128
138
|
"postchangelog": "prettier --write CHANGELOG.md"
|
|
129
139
|
}
|
|
130
|
-
}
|
|
140
|
+
},
|
|
141
|
+
"packageManager": "npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483"
|
|
131
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;
|