@gradientedge/cdk-utils 6.8.0 → 6.9.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.
Files changed (115) hide show
  1. package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +22 -12
  2. package/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +30 -73
  3. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  4. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  5. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  6. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  7. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  8. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  9. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  10. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  11. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  12. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  13. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  14. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  15. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  16. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  17. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  18. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  19. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  20. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/native.js +4 -0
  21. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  22. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  23. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  24. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  25. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  26. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  27. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  28. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  29. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  30. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +1 -1
  31. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/native.js +4 -0
  32. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  33. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +2 -2
  34. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +6 -4
  35. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +7 -2
  36. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +1 -1
  37. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +18 -18
  38. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native-browser.js +11 -0
  39. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native.js +15 -0
  40. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +2 -3
  41. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +8 -3
  42. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +2 -2
  43. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +7 -5
  44. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +8 -2
  45. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +1 -1
  46. package/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +37 -41
  47. package/app/api-destined-function/layers/nodejs/package.json +1 -1
  48. package/app/api-destined-function/node_modules/.yarn-integrity +22 -12
  49. package/app/api-destined-function/node_modules/uuid/README.md +30 -73
  50. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  51. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  52. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  53. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  54. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  55. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  56. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  57. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  58. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  59. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  60. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  61. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  62. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  63. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  64. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  65. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  66. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  67. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/native.js +4 -0
  68. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  69. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  70. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  71. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  72. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  73. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  74. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  75. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  76. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  77. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +1 -1
  78. package/app/api-destined-function/node_modules/uuid/dist/esm-node/native.js +4 -0
  79. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  80. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +2 -2
  81. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +6 -4
  82. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +7 -2
  83. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +1 -1
  84. package/app/api-destined-function/node_modules/uuid/dist/index.js +18 -18
  85. package/app/api-destined-function/node_modules/uuid/dist/native-browser.js +11 -0
  86. package/app/api-destined-function/node_modules/uuid/dist/native.js +15 -0
  87. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +2 -3
  88. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +8 -3
  89. package/app/api-destined-function/node_modules/uuid/dist/v1.js +2 -2
  90. package/app/api-destined-function/node_modules/uuid/dist/v35.js +7 -5
  91. package/app/api-destined-function/node_modules/uuid/dist/v4.js +8 -2
  92. package/app/api-destined-function/node_modules/uuid/dist/version.js +1 -1
  93. package/app/api-destined-function/node_modules/uuid/package.json +37 -41
  94. package/app/api-destined-function/package.json +1 -1
  95. package/package.json +4 -4
  96. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  97. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  98. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  99. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  100. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  101. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  102. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  103. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  104. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  105. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  106. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  107. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  108. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  109. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  110. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  111. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  112. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  113. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  114. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  115. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "8.3.2",
3
+ "version": "9.0.0",
4
4
  "description": "RFC4122 (v1, v4, and v5) UUIDs",
5
5
  "commitlint": {
6
6
  "extends": [
@@ -25,6 +25,10 @@
25
25
  "require": "./dist/index.js",
26
26
  "import": "./wrapper.mjs"
27
27
  },
28
+ "browser": {
29
+ "import": "./dist/esm-browser/index.js",
30
+ "require": "./dist/commonjs-browser/index.js"
31
+ },
28
32
  "default": "./dist/esm-browser/index.js"
29
33
  },
30
34
  "./package.json": "./package.json"
@@ -32,6 +36,7 @@
32
36
  "module": "./dist/esm-node/index.js",
33
37
  "browser": {
34
38
  "./dist/md5.js": "./dist/md5-browser.js",
39
+ "./dist/native.js": "./dist/native-browser.js",
35
40
  "./dist/rng.js": "./dist/rng-browser.js",
36
41
  "./dist/sha1.js": "./dist/sha1-browser.js",
37
42
  "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
@@ -45,53 +50,50 @@
45
50
  "wrapper.mjs"
46
51
  ],
47
52
  "devDependencies": {
48
- "@babel/cli": "7.11.6",
49
- "@babel/core": "7.11.6",
50
- "@babel/preset-env": "7.11.5",
51
- "@commitlint/cli": "11.0.0",
52
- "@commitlint/config-conventional": "11.0.0",
53
- "@rollup/plugin-node-resolve": "9.0.0",
54
- "babel-eslint": "10.1.0",
55
- "bundlewatch": "0.3.1",
56
- "eslint": "7.10.0",
57
- "eslint-config-prettier": "6.12.0",
58
- "eslint-config-standard": "14.1.1",
59
- "eslint-plugin-import": "2.22.1",
53
+ "@babel/cli": "7.18.10",
54
+ "@babel/core": "7.18.10",
55
+ "@babel/eslint-parser": "7.18.9",
56
+ "@babel/preset-env": "7.18.10",
57
+ "@commitlint/cli": "17.0.3",
58
+ "@commitlint/config-conventional": "17.0.3",
59
+ "bundlewatch": "0.3.3",
60
+ "eslint": "8.21.0",
61
+ "eslint-config-prettier": "8.5.0",
62
+ "eslint-config-standard": "17.0.0",
63
+ "eslint-plugin-import": "2.26.0",
60
64
  "eslint-plugin-node": "11.1.0",
61
- "eslint-plugin-prettier": "3.1.4",
62
- "eslint-plugin-promise": "4.2.1",
63
- "eslint-plugin-standard": "4.0.1",
64
- "husky": "4.3.0",
65
- "jest": "25.5.4",
66
- "lint-staged": "10.4.0",
65
+ "eslint-plugin-prettier": "4.2.1",
66
+ "eslint-plugin-promise": "6.0.0",
67
+ "husky": "8.0.1",
68
+ "jest": "28.1.3",
69
+ "lint-staged": "13.0.3",
67
70
  "npm-run-all": "4.1.5",
68
71
  "optional-dev-dependency": "2.0.1",
69
- "prettier": "2.1.2",
72
+ "prettier": "2.7.1",
70
73
  "random-seed": "0.3.0",
71
- "rollup": "2.28.2",
72
- "rollup-plugin-terser": "7.0.2",
73
- "runmd": "1.3.2",
74
- "standard-version": "9.0.0"
74
+ "runmd": "1.3.6",
75
+ "standard-version": "9.5.0"
75
76
  },
76
77
  "optionalDevDependencies": {
77
- "@wdio/browserstack-service": "6.4.0",
78
- "@wdio/cli": "6.4.0",
79
- "@wdio/jasmine-framework": "6.4.0",
80
- "@wdio/local-runner": "6.4.0",
81
- "@wdio/spec-reporter": "6.4.0",
82
- "@wdio/static-server-service": "6.4.0",
83
- "@wdio/sync": "6.4.0"
78
+ "@wdio/browserstack-service": "7.16.10",
79
+ "@wdio/cli": "7.16.10",
80
+ "@wdio/jasmine-framework": "7.16.6",
81
+ "@wdio/local-runner": "7.16.10",
82
+ "@wdio/spec-reporter": "7.16.9",
83
+ "@wdio/static-server-service": "7.16.6"
84
84
  },
85
85
  "scripts": {
86
86
  "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
87
87
  "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
88
88
  "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
89
89
  "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
90
+ "examples:node:jest:test": "cd examples/node-jest && npm install && npm test",
91
+ "prepare": "cd $( git rev-parse --show-toplevel ) && husky install",
90
92
  "lint": "npm run eslint:check && npm run prettier:check",
91
93
  "eslint:check": "eslint src/ test/ examples/ *.js",
92
94
  "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
93
95
  "pretest": "[ -n $CI ] || npm run build",
94
- "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
96
+ "test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/",
95
97
  "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
96
98
  "test:browser": "wdio run ./wdio.conf.js",
97
99
  "pretest:node": "npm run build",
@@ -99,11 +101,11 @@
99
101
  "test:pack": "./scripts/testpack.sh",
100
102
  "pretest:benchmark": "npm run build",
101
103
  "test:benchmark": "cd examples/benchmark && npm install && npm test",
102
- "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
103
- "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
104
+ "prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
105
+ "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
104
106
  "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
105
107
  "md": "runmd --watch --output=README.md README_js.md",
106
- "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
108
+ "docs": "( node --version | grep -q 'v16' ) && ( npm run build && runmd --output=README.md README_js.md )",
107
109
  "docs:diff": "npm run docs && git diff --quiet README.md",
108
110
  "build": "./scripts/build.sh",
109
111
  "prepack": "npm run build",
@@ -113,12 +115,6 @@
113
115
  "type": "git",
114
116
  "url": "https://github.com/uuidjs/uuid.git"
115
117
  },
116
- "husky": {
117
- "hooks": {
118
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
119
- "pre-commit": "lint-staged"
120
- }
121
- },
122
118
  "lint-staged": {
123
119
  "*.{js,jsx,json,md}": [
124
120
  "prettier --write"
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@types/uuid": "^8.3.4",
23
- "uuid": "^8.3.2"
23
+ "uuid": "^9.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "mkdirp": "^1.0.4",
@@ -11,7 +11,7 @@
11
11
  "@types/uuid@^8.3.4",
12
12
  "mkdirp@^1.0.4",
13
13
  "rimraf@^3.0.2",
14
- "uuid@^8.3.2"
14
+ "uuid@^9.0.0"
15
15
  ],
16
16
  "lockfileEntries": {
17
17
  "@types/uuid@^8.3.4": "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc",
@@ -27,7 +27,7 @@
27
27
  "once@^1.3.0": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
28
28
  "path-is-absolute@^1.0.0": "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
29
29
  "rimraf@^3.0.2": "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a",
30
- "uuid@^8.3.2": "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2",
30
+ "uuid@^9.0.0": "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5",
31
31
  "wrappy@1": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
32
32
  },
33
33
  "files": [
@@ -110,8 +110,25 @@
110
110
  "uuid/LICENSE.md",
111
111
  "uuid/README.md",
112
112
  "uuid/dist/bin/uuid",
113
+ "uuid/dist/commonjs-browser/index.js",
114
+ "uuid/dist/commonjs-browser/md5.js",
115
+ "uuid/dist/commonjs-browser/native.js",
116
+ "uuid/dist/commonjs-browser/nil.js",
117
+ "uuid/dist/commonjs-browser/parse.js",
118
+ "uuid/dist/commonjs-browser/regex.js",
119
+ "uuid/dist/commonjs-browser/rng.js",
120
+ "uuid/dist/commonjs-browser/sha1.js",
121
+ "uuid/dist/commonjs-browser/stringify.js",
122
+ "uuid/dist/commonjs-browser/v1.js",
123
+ "uuid/dist/commonjs-browser/v3.js",
124
+ "uuid/dist/commonjs-browser/v35.js",
125
+ "uuid/dist/commonjs-browser/v4.js",
126
+ "uuid/dist/commonjs-browser/v5.js",
127
+ "uuid/dist/commonjs-browser/validate.js",
128
+ "uuid/dist/commonjs-browser/version.js",
113
129
  "uuid/dist/esm-browser/index.js",
114
130
  "uuid/dist/esm-browser/md5.js",
131
+ "uuid/dist/esm-browser/native.js",
115
132
  "uuid/dist/esm-browser/nil.js",
116
133
  "uuid/dist/esm-browser/parse.js",
117
134
  "uuid/dist/esm-browser/regex.js",
@@ -127,6 +144,7 @@
127
144
  "uuid/dist/esm-browser/version.js",
128
145
  "uuid/dist/esm-node/index.js",
129
146
  "uuid/dist/esm-node/md5.js",
147
+ "uuid/dist/esm-node/native.js",
130
148
  "uuid/dist/esm-node/nil.js",
131
149
  "uuid/dist/esm-node/parse.js",
132
150
  "uuid/dist/esm-node/regex.js",
@@ -143,6 +161,8 @@
143
161
  "uuid/dist/index.js",
144
162
  "uuid/dist/md5-browser.js",
145
163
  "uuid/dist/md5.js",
164
+ "uuid/dist/native-browser.js",
165
+ "uuid/dist/native.js",
146
166
  "uuid/dist/nil.js",
147
167
  "uuid/dist/parse.js",
148
168
  "uuid/dist/regex.js",
@@ -151,16 +171,6 @@
151
171
  "uuid/dist/sha1-browser.js",
152
172
  "uuid/dist/sha1.js",
153
173
  "uuid/dist/stringify.js",
154
- "uuid/dist/umd/uuid.min.js",
155
- "uuid/dist/umd/uuidNIL.min.js",
156
- "uuid/dist/umd/uuidParse.min.js",
157
- "uuid/dist/umd/uuidStringify.min.js",
158
- "uuid/dist/umd/uuidValidate.min.js",
159
- "uuid/dist/umd/uuidVersion.min.js",
160
- "uuid/dist/umd/uuidv1.min.js",
161
- "uuid/dist/umd/uuidv3.min.js",
162
- "uuid/dist/umd/uuidv4.min.js",
163
- "uuid/dist/umd/uuidv5.min.js",
164
174
  "uuid/dist/uuid-bin.js",
165
175
  "uuid/dist/v1.js",
166
176
  "uuid/dist/v3.js",
@@ -4,20 +4,20 @@
4
4
 
5
5
  # uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser)
6
6
 
7
- For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs
7
+ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
8
8
 
9
9
  - **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs
10
10
  - **Cross-platform** - Support for ...
11
11
  - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
12
- - Node 8, 10, 12, 14
13
- - Chrome, Safari, Firefox, Edge, IE 11 browsers
12
+ - Node 12, 14, 16, 18
13
+ - Chrome, Safari, Firefox, Edge browsers
14
14
  - Webpack and rollup.js module bundlers
15
15
  - [React Native / Expo](#react-native--expo)
16
16
  - **Secure** - Cryptographically-strong random values
17
17
  - **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
18
18
  - **CLI** - Includes the [`uuid` command line](#command-line) utility
19
19
 
20
- **Upgrading from `uuid@3.x`?** Your code is probably okay, but check out [Upgrading From `uuid@3.x`](#upgrading-from-uuid3x) for details.
20
+ **Upgrading from `uuid@3`?** Your code is probably okay, but check out [Upgrading From `uuid@3`](#upgrading-from-uuid3) for details.
21
21
 
22
22
  ## Quickstart
23
23
 
@@ -122,22 +122,7 @@ Example:
122
122
  import { stringify as uuidStringify } from 'uuid';
123
123
 
124
124
  const uuidBytes = [
125
- 0x6e,
126
- 0xc0,
127
- 0xbd,
128
- 0x7f,
129
- 0x11,
130
- 0xc0,
131
- 0x43,
132
- 0xda,
133
- 0x97,
134
- 0x5e,
135
- 0x2a,
136
- 0x8a,
137
- 0xd9,
138
- 0xeb,
139
- 0xae,
140
- 0x0b,
125
+ 0x6e, 0xc0, 0xbd, 0x7f, 0x11, 0xc0, 0x43, 0xda, 0x97, 0x5e, 0x2a, 0x8a, 0xd9, 0xeb, 0xae, 0x0b,
141
126
  ];
142
127
 
143
128
  uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'
@@ -223,22 +208,7 @@ import { v4 as uuidv4 } from 'uuid';
223
208
 
224
209
  const v4options = {
225
210
  random: [
226
- 0x10,
227
- 0x91,
228
- 0x56,
229
- 0xbe,
230
- 0xc4,
231
- 0xfb,
232
- 0xc1,
233
- 0xea,
234
- 0x71,
235
- 0xb4,
236
- 0xef,
237
- 0xe1,
238
- 0x67,
239
- 0x1c,
240
- 0x58,
241
- 0x36,
211
+ 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36,
242
212
  ],
243
213
  };
244
214
  uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
@@ -337,14 +307,14 @@ uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4
337
307
  UUIDs can be generated from the command line using `uuid`.
338
308
 
339
309
  ```shell
340
- $ uuid
310
+ $ npx uuid
341
311
  ddeb27fb-d9a0-4624-be4d-4615062daed4
342
312
  ```
343
313
 
344
314
  The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details:
345
315
 
346
316
  ```shell
347
- $ uuid --help
317
+ $ npx uuid --help
348
318
 
349
319
  Usage:
350
320
  uuid
@@ -388,37 +358,20 @@ To load this module directly into modern browsers that [support loading ECMAScri
388
358
 
389
359
  ### UMD
390
360
 
391
- To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs:
361
+ As of `uuid@9` [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds are no longer shipped with this library.
392
362
 
393
- **Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**:
363
+ If you need a UMD build of this library, use a bundler like Webpack or Rollup. Alternatively, refer to the documentation of [`uuid@8.3.2`](https://github.com/uuidjs/uuid/blob/v8.3.2/README.md#umd) which was the last version that shipped UMD builds.
394
364
 
395
- ```html
396
- <script src="https://unpkg.com/uuid@latest/dist/umd/uuidv4.min.js"></script>
397
- ```
365
+ ## Known issues
398
366
 
399
- **Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**:
400
-
401
- ```html
402
- <script src="https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/uuidv4.min.js"></script>
403
- ```
367
+ ### Duplicate UUIDs (Googlebot)
404
368
 
405
- **Using [cdnjs](https://cdnjs.com/libraries/uuid)**:
369
+ This module may generate duplicate UUIDs when run in clients with _deterministic_ random number generators, such as [Googlebot crawlers](https://developers.google.com/search/docs/advanced/crawling/overview-google-crawlers). This can cause problems for apps that expect client-generated UUIDs to always be unique. Developers should be prepared for this and have a strategy for dealing with possible collisions, such as:
406
370
 
407
- ```html
408
- <script src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.1.0/uuidv4.min.js"></script>
409
- ```
371
+ - Check for duplicate UUIDs, fail gracefully
372
+ - Disable write operations for Googlebot clients
410
373
 
411
- These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method:
412
-
413
- ```html
414
- <script>
415
- uuidv4(); // ⇨ '55af1e37-0734-46d8-b070-a1e42e4fc392'
416
- </script>
417
- ```
418
-
419
- Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively.
420
-
421
- ## "getRandomValues() not supported"
374
+ ### "getRandomValues() not supported"
422
375
 
423
376
  This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
424
377
 
@@ -438,11 +391,15 @@ Note: If you are using Expo, you must be using at least `react-native-get-random
438
391
 
439
392
  [In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).
440
393
 
441
- ## Upgrading From `uuid@7.x`
394
+ ### IE 11 (Internet Explorer)
395
+
396
+ Support for IE11 and other legacy browsers has been dropped as of `uuid@9`. If you need to support legacy browsers, you can always transpile the uuid module source yourself (e.g. using [Babel](https://babeljs.io/)).
397
+
398
+ ## Upgrading From `uuid@7`
442
399
 
443
400
  ### Only Named Exports Supported When Using with Node.js ESM
444
401
 
445
- `uuid@7.x` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
402
+ `uuid@7` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
446
403
 
447
404
  Instead of doing:
448
405
 
@@ -460,24 +417,24 @@ uuidv4();
460
417
 
461
418
  ### Deep Requires No Longer Supported
462
419
 
463
- Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7.x`](#deep-requires-now-deprecated) are no longer supported.
420
+ Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7`](#deep-requires-now-deprecated) are no longer supported.
464
421
 
465
- ## Upgrading From `uuid@3.x`
422
+ ## Upgrading From `uuid@3`
466
423
 
467
- "_Wait... what happened to `uuid@4.x` - `uuid@6.x`?!?_"
424
+ "_Wait... what happened to `uuid@4` thru `uuid@6`?!?_"
468
425
 
469
426
  In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped.
470
427
 
471
428
  ### Deep Requires Now Deprecated
472
429
 
473
- `uuid@3.x` encouraged the use of deep requires to minimize the bundle size of browser builds:
430
+ `uuid@3` encouraged the use of deep requires to minimize the bundle size of browser builds:
474
431
 
475
432
  ```javascript
476
433
  const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED!
477
434
  uuidv4();
478
435
  ```
479
436
 
480
- As of `uuid@7.x` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
437
+ As of `uuid@7` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
481
438
 
482
439
  ```javascript
483
440
  import { v4 as uuidv4 } from 'uuid';
@@ -493,13 +450,13 @@ uuidv4();
493
450
 
494
451
  ### Default Export Removed
495
452
 
496
- `uuid@3.x` was exporting the Version 4 UUID method as a default export:
453
+ `uuid@3` was exporting the Version 4 UUID method as a default export:
497
454
 
498
455
  ```javascript
499
456
  const uuid = require('uuid'); // <== REMOVED!
500
457
  ```
501
458
 
502
- This usage pattern was already discouraged in `uuid@3.x` and has been removed in `uuid@7.x`.
459
+ This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`.
503
460
 
504
461
  ----
505
- Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
462
+ Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](https://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "NIL", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _nil.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "parse", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _parse.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "stringify", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _stringify.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "v1", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _v.default;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "v3", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _v2.default;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "v4", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _v3.default;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "v5", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _v4.default;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "validate", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _validate.default;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "version", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _version.default;
58
+ }
59
+ });
60
+
61
+ var _v = _interopRequireDefault(require("./v1.js"));
62
+
63
+ var _v2 = _interopRequireDefault(require("./v3.js"));
64
+
65
+ var _v3 = _interopRequireDefault(require("./v4.js"));
66
+
67
+ var _v4 = _interopRequireDefault(require("./v5.js"));
68
+
69
+ var _nil = _interopRequireDefault(require("./nil.js"));
70
+
71
+ var _version = _interopRequireDefault(require("./version.js"));
72
+
73
+ var _validate = _interopRequireDefault(require("./validate.js"));
74
+
75
+ var _stringify = _interopRequireDefault(require("./stringify.js"));
76
+
77
+ var _parse = _interopRequireDefault(require("./parse.js"));
78
+
79
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }