uuid 3.3.2 → 7.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 +74 -49
- package/CONTRIBUTING.md +20 -0
- package/README.md +246 -156
- package/dist/bin/uuid +2 -0
- package/dist/bytesToUuid.js +27 -0
- package/dist/esm-browser/bytesToUuid.js +18 -0
- package/dist/esm-browser/index.js +4 -0
- package/{lib/md5-browser.js → dist/esm-browser/md5.js} +53 -51
- package/dist/esm-browser/rng.js +15 -0
- package/dist/esm-browser/sha1.js +91 -0
- package/dist/esm-browser/v1.js +95 -0
- package/dist/esm-browser/v3.js +4 -0
- package/{lib → dist/esm-browser}/v35.js +21 -22
- package/dist/esm-browser/v4.js +27 -0
- package/dist/esm-browser/v5.js +4 -0
- package/dist/index.js +39 -0
- package/dist/md5.js +24 -0
- package/dist/rng.js +16 -0
- package/dist/sha1.js +24 -0
- package/dist/umd/uuid.min.js +1 -0
- package/dist/umd/uuidv1.min.js +1 -0
- package/dist/umd/uuidv3.min.js +1 -0
- package/dist/umd/uuidv4.min.js +1 -0
- package/dist/umd/uuidv5.min.js +1 -0
- package/dist/uuid-bin.js +67 -0
- package/dist/v1.js +108 -0
- package/dist/v3.js +17 -0
- package/dist/v35.js +69 -0
- package/dist/v4.js +41 -0
- package/dist/v5.js +17 -0
- package/package.json +79 -19
- package/v1.js +6 -107
- package/v3.js +7 -3
- package/v4.js +6 -27
- package/v5.js +8 -3
- package/.eslintrc.json +0 -47
- package/AUTHORS +0 -5
- package/README_js.md +0 -280
- package/bin/uuid +0 -65
- package/index.js +0 -8
- package/lib/bytesToUuid.js +0 -24
- package/lib/md5.js +0 -25
- package/lib/rng-browser.js +0 -34
- package/lib/rng.js +0 -8
- package/lib/sha1-browser.js +0 -89
- package/lib/sha1.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,110 +1,135 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24)
|
|
6
|
+
|
|
7
|
+
### ⚠ BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
- The default export, which used to be the v4() method
|
|
10
|
+
but which was already discouraged in v3.x of this library, has been
|
|
11
|
+
removed.
|
|
12
|
+
- Explicitly note that deep imports of the different uuid
|
|
13
|
+
version functions are deprecated and no longer encouraged and that
|
|
14
|
+
ECMAScript module named imports should be used instead.
|
|
15
|
+
Emit a deprecation warning for people who deep-require the different
|
|
16
|
+
algorithm variants.
|
|
17
|
+
- Remove builtin support for insecure random number
|
|
18
|
+
generators in the browser. Users who want that will have to supply their
|
|
19
|
+
own random number generator function.
|
|
20
|
+
- Remove support for generating v3 and v5 UUIDs in
|
|
21
|
+
Node.js<4.x
|
|
22
|
+
- Convert code base to ECMAScript Modules (ESM) and
|
|
23
|
+
release CommonJS build for node and ESM build for browser bundlers.
|
|
7
24
|
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c)), closes [#345](https://github.com/uuidjs/uuid/issues/345)
|
|
28
|
+
- add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555))
|
|
29
|
+
- ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b))
|
|
30
|
+
- hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0))
|
|
31
|
+
- remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173)
|
|
32
|
+
- remove support for pre Node.js v4 Buffer API ([#356](https://github.com/uuidjs/uuid/issues/356)) ([b59b5c5](https://github.com/uuidjs/uuid/commit/b59b5c5ecad271c5453f1a156f011671f6d35627))
|
|
33
|
+
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([c37a518](https://github.com/uuidjs/uuid/commit/c37a518e367ac4b6d0aa62dba1bc6ce9e85020f7)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
|
8
34
|
|
|
9
35
|
### Bug Fixes
|
|
10
36
|
|
|
11
|
-
|
|
37
|
+
- add deep-require proxies for local testing and adjust tests ([#365](https://github.com/uuidjs/uuid/issues/365)) ([7fedc79](https://github.com/uuidjs/uuid/commit/7fedc79ac8fda4bfd1c566c7f05ef4ac13b2db48))
|
|
38
|
+
- add note about removal of default export ([#372](https://github.com/uuidjs/uuid/issues/372)) ([12749b7](https://github.com/uuidjs/uuid/commit/12749b700eb49db8a9759fd306d8be05dbfbd58c)), closes [#370](https://github.com/uuidjs/uuid/issues/370)
|
|
39
|
+
- deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23))
|
|
12
40
|
|
|
41
|
+
## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16)
|
|
13
42
|
|
|
43
|
+
### Features
|
|
14
44
|
|
|
15
|
-
|
|
16
|
-
## [3.3.1](https://github.com/kelektiv/node-uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
|
|
45
|
+
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
|
17
46
|
|
|
47
|
+
## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19)
|
|
18
48
|
|
|
19
49
|
### Bug Fixes
|
|
20
50
|
|
|
21
|
-
|
|
51
|
+
- no longer run ci tests on node v4
|
|
52
|
+
- upgrade dependencies
|
|
22
53
|
|
|
54
|
+
## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
|
|
23
55
|
|
|
56
|
+
### Bug Fixes
|
|
24
57
|
|
|
25
|
-
|
|
26
|
-
# [3.3.0](https://github.com/kelektiv/node-uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
|
|
58
|
+
- typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877))
|
|
27
59
|
|
|
60
|
+
## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
|
|
28
61
|
|
|
29
62
|
### Bug Fixes
|
|
30
63
|
|
|
31
|
-
|
|
32
|
-
* fix [#229](https://github.com/kelektiv/node-uuid/issues/229) ([c9684d4](https://github.com/kelektiv/node-uuid/commit/c9684d4))
|
|
33
|
-
* Get correct version of IE11 crypto ([#274](https://github.com/kelektiv/node-uuid/issues/274)) ([153d331](https://github.com/kelektiv/node-uuid/commit/153d331))
|
|
34
|
-
* mem issue when generating uuid ([#267](https://github.com/kelektiv/node-uuid/issues/267)) ([c47702c](https://github.com/kelektiv/node-uuid/commit/c47702c))
|
|
64
|
+
- fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2))
|
|
35
65
|
|
|
36
|
-
|
|
66
|
+
# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
|
|
37
67
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<a name="3.2.1"></a>
|
|
42
|
-
## [3.2.1](https://github.com/kelektiv/node-uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
|
|
68
|
+
### Bug Fixes
|
|
43
69
|
|
|
70
|
+
- assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc))
|
|
71
|
+
- fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4))
|
|
72
|
+
- Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331))
|
|
73
|
+
- mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c))
|
|
44
74
|
|
|
45
|
-
###
|
|
75
|
+
### Features
|
|
46
76
|
|
|
47
|
-
|
|
77
|
+
- enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182))
|
|
48
78
|
|
|
79
|
+
## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
|
|
49
80
|
|
|
81
|
+
### Bug Fixes
|
|
50
82
|
|
|
51
|
-
|
|
52
|
-
# [3.2.0](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
|
|
83
|
+
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
|
53
84
|
|
|
85
|
+
# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
|
|
54
86
|
|
|
55
87
|
### Bug Fixes
|
|
56
88
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
89
|
+
- remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824))
|
|
90
|
+
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
|
60
91
|
|
|
61
92
|
### Features
|
|
62
93
|
|
|
63
|
-
|
|
94
|
+
- Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726))
|
|
64
95
|
|
|
65
|
-
|
|
66
|
-
# [3.1.0](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
|
|
96
|
+
# [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
|
|
67
97
|
|
|
68
98
|
### Bug Fixes
|
|
69
99
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
100
|
+
- (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183)
|
|
101
|
+
- Fix typo (#178)
|
|
102
|
+
- Simple typo fix (#165)
|
|
73
103
|
|
|
74
104
|
### Features
|
|
75
|
-
* v5 support in CLI (#197)
|
|
76
|
-
* V5 support (#188)
|
|
77
105
|
|
|
106
|
+
- v5 support in CLI (#197)
|
|
107
|
+
- V5 support (#188)
|
|
78
108
|
|
|
79
109
|
# 3.0.1 (2016-11-28)
|
|
80
110
|
|
|
81
|
-
|
|
82
|
-
|
|
111
|
+
- split uuid versions into separate files
|
|
83
112
|
|
|
84
113
|
# 3.0.0 (2016-11-17)
|
|
85
114
|
|
|
86
|
-
|
|
87
|
-
|
|
115
|
+
- remove .parse and .unparse
|
|
88
116
|
|
|
89
117
|
# 2.0.0
|
|
90
118
|
|
|
91
|
-
|
|
92
|
-
|
|
119
|
+
- Removed uuid.BufferClass
|
|
93
120
|
|
|
94
121
|
# 1.4.0
|
|
95
122
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
123
|
+
- Improved module context detection
|
|
124
|
+
- Removed public RNG functions
|
|
99
125
|
|
|
100
126
|
# 1.3.2
|
|
101
127
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
128
|
+
- Improve tests and handling of v1() options (Issue #24)
|
|
129
|
+
- Expose RNG option to allow for perf testing with different generators
|
|
105
130
|
|
|
106
131
|
# 1.3.0
|
|
107
132
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
133
|
+
- Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
|
|
134
|
+
- Support for node.js crypto API
|
|
135
|
+
- De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss
|
|
4
|
+
improvements to this library!
|
|
5
|
+
|
|
6
|
+
## Testing
|
|
7
|
+
|
|
8
|
+
```shell
|
|
9
|
+
npm test
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Releasing
|
|
13
|
+
|
|
14
|
+
Releases are supposed to be done from master, version bumping is automated through
|
|
15
|
+
[`standard-version`](https://github.com/conventional-changelog/standard-version):
|
|
16
|
+
|
|
17
|
+
```shell
|
|
18
|
+
npm run release -- --dry-run # verify output manually
|
|
19
|
+
npm run release # follow the instructions from the output of this command
|
|
20
|
+
```
|