uuid 7.0.2 → 7.0.3
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 +6 -0
- package/deprecate.js +20 -0
- package/package.json +17 -13
- package/v1.js +2 -2
- package/v3.js +2 -2
- package/v4.js +2 -2
- package/v5.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#408](https://github.com/uuidjs/uuid/issues/408)
|
|
10
|
+
|
|
5
11
|
### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/deprecate.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Extracted from: https://github.com/TooTallNate/util-deprecate
|
|
2
|
+
let deprecate;
|
|
3
|
+
try {
|
|
4
|
+
const util = require('util');
|
|
5
|
+
deprecate = util.deprecate;
|
|
6
|
+
} catch (err) {
|
|
7
|
+
deprecate = function deprecate(fn, msg) {
|
|
8
|
+
var warned = false;
|
|
9
|
+
function deprecated() {
|
|
10
|
+
if (!warned) {
|
|
11
|
+
console.warn(msg);
|
|
12
|
+
warned = true;
|
|
13
|
+
}
|
|
14
|
+
return fn.apply(this, arguments);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return deprecated;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
module.exports = deprecate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uuid",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "RFC4122 (v1, v4, and v5) UUIDs",
|
|
5
5
|
"commitlint": {
|
|
6
6
|
"extends": [
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"CONTRIBUTING.md",
|
|
31
31
|
"LICENSE.md",
|
|
32
32
|
"README.md",
|
|
33
|
+
"deprecate.js",
|
|
33
34
|
"dist",
|
|
34
35
|
"v1.js",
|
|
35
36
|
"v3.js",
|
|
@@ -38,29 +39,32 @@
|
|
|
38
39
|
],
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@babel/cli": "7.8.4",
|
|
41
|
-
"@babel/core": "7.8.
|
|
42
|
-
"@babel/preset-env": "7.8.
|
|
42
|
+
"@babel/core": "7.8.7",
|
|
43
|
+
"@babel/preset-env": "7.8.7",
|
|
43
44
|
"@commitlint/cli": "8.3.5",
|
|
44
45
|
"@commitlint/config-conventional": "8.3.4",
|
|
45
46
|
"@rollup/plugin-node-resolve": "7.1.1",
|
|
46
|
-
"
|
|
47
|
+
"@wdio/browserstack-service": "5.18.7",
|
|
48
|
+
"@wdio/cli": "5.18.7",
|
|
49
|
+
"@wdio/jasmine-framework": "5.18.6",
|
|
50
|
+
"@wdio/local-runner": "5.18.7",
|
|
51
|
+
"@wdio/spec-reporter": "5.18.7",
|
|
52
|
+
"@wdio/static-server-service": "5.16.10",
|
|
53
|
+
"@wdio/sync": "5.18.7",
|
|
54
|
+
"babel-eslint": "10.1.0",
|
|
47
55
|
"babel-plugin-add-module-exports": "1.0.2",
|
|
48
|
-
"
|
|
49
|
-
"bundlewatch": "0.2.5",
|
|
56
|
+
"bundlewatch": "0.2.6",
|
|
50
57
|
"eslint": "6.8.0",
|
|
51
58
|
"eslint-config-prettier": "6.10.0",
|
|
52
59
|
"eslint-plugin-prettier": "3.1.2",
|
|
53
|
-
"esm": "3.2.25",
|
|
54
|
-
"http-server": "0.12.1",
|
|
55
60
|
"husky": "3.0.9",
|
|
56
61
|
"jest": "25.1.0",
|
|
57
|
-
"lint-staged": "10.0.
|
|
62
|
+
"lint-staged": "10.0.8",
|
|
58
63
|
"npm-run-all": "4.1.5",
|
|
59
64
|
"prettier": "1.19.1",
|
|
60
|
-
"rollup": "1.
|
|
65
|
+
"rollup": "1.32.0",
|
|
61
66
|
"rollup-plugin-terser": "5.2.0",
|
|
62
67
|
"runmd": "1.3.2",
|
|
63
|
-
"selenium-webdriver": "3.6.0",
|
|
64
68
|
"standard-version": "7.1.0"
|
|
65
69
|
},
|
|
66
70
|
"scripts": {
|
|
@@ -73,11 +77,11 @@
|
|
|
73
77
|
"pretest": "npm run build",
|
|
74
78
|
"test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
|
|
75
79
|
"pretest:browser": "npm run build && npm-run-all --parallel examples:**",
|
|
76
|
-
"test:browser": "
|
|
80
|
+
"test:browser": "wdio run ./wdio.conf.js",
|
|
77
81
|
"prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
|
|
78
82
|
"prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
|
|
79
83
|
"ci": "npm run lint && npm run test && npm run prettier:check && npm run docs:diff && npm run bundlewatch",
|
|
80
|
-
"bundlewatch": "( node --version | grep -vq 'v12' ) || ( npm run pretest:browser &&
|
|
84
|
+
"bundlewatch": "( node --version | grep -vq 'v12' ) || ( npm run pretest:browser && bundlewatch --config bundlewatch.config.json )",
|
|
81
85
|
"md": "runmd --watch --output=README.md README_js.md",
|
|
82
86
|
"docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
|
|
83
87
|
"docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",
|
package/v1.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const deprecate = require('./deprecate.js');
|
|
2
2
|
|
|
3
3
|
const v1 = require('./dist/v1.js');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = deprecate(
|
|
6
6
|
v1,
|
|
7
7
|
"Deep requiring like `const uuidv1 = require('uuid/v1');` is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.",
|
|
8
8
|
);
|
package/v3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const deprecate = require('./deprecate.js');
|
|
2
2
|
|
|
3
3
|
const v3 = require('./dist/v3.js');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = deprecate(
|
|
6
6
|
v3,
|
|
7
7
|
"Deep requiring like `const uuidv3 = require('uuid/v3');` is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.",
|
|
8
8
|
);
|
package/v4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const deprecate = require('./deprecate.js');
|
|
2
2
|
|
|
3
3
|
const v4 = require('./dist/v4.js');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = deprecate(
|
|
6
6
|
v4,
|
|
7
7
|
"Deep requiring like `const uuidv4 = require('uuid/v4');` is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.",
|
|
8
8
|
);
|
package/v5.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const deprecate = require('./deprecate.js');
|
|
2
2
|
|
|
3
3
|
const v5 = require('./dist/v5.js');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = deprecate(
|
|
6
6
|
v5,
|
|
7
7
|
"Deep requiring like `const uuidv5 = require('uuid/v5');` is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.",
|
|
8
8
|
);
|