uuid 3.3.3 → 7.0.1

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