uuid 11.0.0-0 → 11.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +147 -4
  2. package/README.md +15 -16
  3. package/package.json +23 -28
package/CHANGELOG.md CHANGED
@@ -2,6 +2,153 @@
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
+ ## [11.0.0](https://github.com/uuidjs/uuid/compare/v11.0.0...v11.0.0) (2024-10-27)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780))
11
+ * refactor v7 internal state and options logic, fixes #764 ([#779](https://github.com/uuidjs/uuid/issues/779))
12
+ * Port to TypeScript, closes #762 ([#763](https://github.com/uuidjs/uuid/issues/763))
13
+ * update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750))
14
+ * This library always aims at supporting one EOLed LTS release which by this time now is 12.x which has reached EOL 30 Apr 2022.
15
+ * Remove the minified UMD build from the package.
16
+ * Drop support for browsers that don't correctly implement const/let and default arguments, and no longer transpile the browser build to ES2015.
17
+ * Although in practice this is currently a noop since the resulting build does not change, the build will no longer transpiles future changes for Node.js 8.x targets, so semantically this is still a breaking change.
18
+ * Deep requiring specific algorithms of this library like require('uuid/v4'), which has been deprecated in uuid@7, is no longer supported.
19
+ * The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed.
20
+ * Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants.
21
+ * Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function.
22
+ * Remove support for generating v3 and v5 UUIDs in Node.js<4.x
23
+ * Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers.
24
+
25
+ ### Features
26
+
27
+ * add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4))
28
+ * add support for MAX uuid (new in RFC9562) ([#714](https://github.com/uuidjs/uuid/issues/714)) ([0385cd3](https://github.com/uuidjs/uuid/commit/0385cd3f18ae9920678b2849932fa7a9d9aee7d0))
29
+ * add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c))
30
+ * add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555))
31
+ * enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([0705cd5](https://github.com/uuidjs/uuid/commit/0705cd5bae3ab07415294e5544901ffcf0ad4e23))
32
+ * ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b))
33
+ * hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0))
34
+ * improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5))
35
+ * improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d))
36
+ * optimize uuid.v1 by 1.3x uuid.v4 by 4.3x (430%) ([#597](https://github.com/uuidjs/uuid/issues/597)) ([3a033f6](https://github.com/uuidjs/uuid/commit/3a033f6bab6bb3780ece6d645b902548043280bc))
37
+ * optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2))
38
+ * Port to TypeScript, closes [#762](https://github.com/uuidjs/uuid/issues/762) ([#763](https://github.com/uuidjs/uuid/issues/763)) ([1e0f987](https://github.com/uuidjs/uuid/commit/1e0f9870db864ca93f7a69db0d468b5e1b7605e7))
39
+ * remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba))
40
+ * remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c))
41
+ * remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9))
42
+ * 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))
43
+ * remove UMD build ([#645](https://github.com/uuidjs/uuid/issues/645)) ([e948a0f](https://github.com/uuidjs/uuid/commit/e948a0f22bf22f4619b27bd913885e478e20fe6f)), closes [#620](https://github.com/uuidjs/uuid/issues/620)
44
+ * 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)
45
+ * rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d731463b680c5b816d144f66feef902586410e)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
46
+ * support v6 uuids ([#754](https://github.com/uuidjs/uuid/issues/754)) ([c4ed13e](https://github.com/uuidjs/uuid/commit/c4ed13e7159d87c9e42a349bdd9dc955f1af46b6))
47
+ * update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750)) ([883b163](https://github.com/uuidjs/uuid/commit/883b163b9ab9d6655bfbd8a35e61a3c71674dfe1))
48
+ * use native crypto.randomUUID when available ([#600](https://github.com/uuidjs/uuid/issues/600)) ([c9e076c](https://github.com/uuidjs/uuid/commit/c9e076c852edad7e9a06baaa1d148cf4eda6c6c4))
49
+ * v8 support ([#759](https://github.com/uuidjs/uuid/issues/759)) ([35a5342](https://github.com/uuidjs/uuid/commit/35a53428202657e402e6b4aa68f56c08194541bf))
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * 248 ([#251](https://github.com/uuidjs/uuid/issues/251)) ([67d697c](https://github.com/uuidjs/uuid/commit/67d697cd83580a5be090eb18c935da2e402c5657))
55
+ * 30, _rb not defined for lesser node.js versions ([8a6c03f](https://github.com/uuidjs/uuid/commit/8a6c03f969b3332846159312dc583d1746609eea))
56
+ * add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0))
57
+ * 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))
58
+ * add Jest/jsdom compatibility ([#642](https://github.com/uuidjs/uuid/issues/642)) ([16f9c46](https://github.com/uuidjs/uuid/commit/16f9c469edf46f0786164cdf4dc980743984a6fd))
59
+ * add missing exports and tests for new APIs ([#495](https://github.com/uuidjs/uuid/issues/495)) ([681e1da](https://github.com/uuidjs/uuid/commit/681e1dabfb21314e6b11a564ed6d3d1fa558dcd7))
60
+ * 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/d062fdc14aae6980cbd6c8350c4af70c1db30b0f))
61
+ * change default export to named function ([#545](https://github.com/uuidjs/uuid/issues/545)) ([c57bc5a](https://github.com/uuidjs/uuid/commit/c57bc5a9a0653273aa639cda9177ce52efabe42a))
62
+ * clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc))
63
+ * export package.json required by react-native and bundlers ([#449](https://github.com/uuidjs/uuid/issues/449)) ([be1c8fe](https://github.com/uuidjs/uuid/commit/be1c8fe9a3206c358e0059b52fafd7213aa48a52)), closes [#444](https://github.com/uuidjs/uuid/issues/444)
64
+ * fix [#229](https://github.com/uuidjs/uuid/issues/229) ([d9033cf](https://github.com/uuidjs/uuid/commit/d9033cf35881c867aa028b851d1da80bb47ddfb1))
65
+ * fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2fcdd7957cc7ae201165377af698e5b0ef))
66
+ * Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([205e0ed](https://github.com/uuidjs/uuid/commit/205e0ed1f710199e4afbc3480da58e042d899b11))
67
+ * handle error when parameter is not set in v3 and v5 ([#622](https://github.com/uuidjs/uuid/issues/622)) ([fcd7388](https://github.com/uuidjs/uuid/commit/fcd73881692d9fabb63872576ba28e30ff852091))
68
+ * lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536)
69
+ * make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c))
70
+ * make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf))
71
+ * mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c29172e70a5da5650ba905c067d37f3658))
72
+ * missing v7 expectations in browser spec ([#751](https://github.com/uuidjs/uuid/issues/751)) ([f54a866](https://github.com/uuidjs/uuid/commit/f54a866cedb2b3b96581157c1f4ac935a0b11411))
73
+ * prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8))
74
+ * provide browser versions independent from module system ([#380](https://github.com/uuidjs/uuid/issues/380)) ([4344a22](https://github.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753))
75
+ * refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780)) ([031b3d3](https://github.com/uuidjs/uuid/commit/031b3d3d738bc6694501ac0a37152b95ed500989))
76
+ * refactor v7 internal state and options logic, fixes [#764](https://github.com/uuidjs/uuid/issues/764) ([#779](https://github.com/uuidjs/uuid/issues/779)) ([9dbd1cd](https://github.com/uuidjs/uuid/commit/9dbd1cd4177c43fcaac961a3b16fb2d044c9940a))
77
+ * remove v4 options default assignment preventing native.randomUUID from being used ([#786](https://github.com/uuidjs/uuid/issues/786)) ([afe6232](https://github.com/uuidjs/uuid/commit/afe62323c4408a824755a39d7b971a8ae06f7199))
78
+ * revert "perf: remove superfluous call to toLowerCase ([#677](https://github.com/uuidjs/uuid/issues/677))" ([#738](https://github.com/uuidjs/uuid/issues/738)) ([e267b90](https://github.com/uuidjs/uuid/commit/e267b9073df1d0ce119ee53c0487fe76acb2be37))
79
+ * run npm audit fix ([#644](https://github.com/uuidjs/uuid/issues/644)) ([04686f5](https://github.com/uuidjs/uuid/commit/04686f54c5fed2cfffc1b619f4970c4bb8532353))
80
+ * seq_hi shift for byte 6 ([#775](https://github.com/uuidjs/uuid/issues/775)) ([1d532ca](https://github.com/uuidjs/uuid/commit/1d532ca374f181932a24a83fa98f71a5bd4f3e96))
81
+ * simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7))
82
+ * support expo&gt;=39.0.0 ([#515](https://github.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://github.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#375](https://github.com/uuidjs/uuid/issues/375)
83
+ * tsconfig module type ([#778](https://github.com/uuidjs/uuid/issues/778)) ([7eff835](https://github.com/uuidjs/uuid/commit/7eff835cba334ad418f57768c00d15b918a9b419))
84
+ * typo ([305d877](https://github.com/uuidjs/uuid/commit/305d87779000d9b0e40ab4d481eb3b79c5965607))
85
+ * update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4))
86
+ * upgrading from uuid3 broken link ([#568](https://github.com/uuidjs/uuid/issues/568)) ([1c849da](https://github.com/uuidjs/uuid/commit/1c849da6e164259e72e18636726345b13a7eddd6))
87
+ * 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/1fef18baf249867ad12bc35f5a239e5339073758))
88
+
89
+
90
+ ### Performance Improvements
91
+
92
+ * **nodejs:** introduce pool into default rng ([#513](https://github.com/uuidjs/uuid/issues/513)) ([7f1af04](https://github.com/uuidjs/uuid/commit/7f1af044be4a21c5cc41e410b3bb86048be14093))
93
+ * remove superfluous call to toLowerCase ([#677](https://github.com/uuidjs/uuid/issues/677)) ([e53793f](https://github.com/uuidjs/uuid/commit/e53793f5be93413cad68b05b3a339ca23e993342))
94
+
95
+
96
+ ### Documentation
97
+
98
+ * 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)
99
+ * deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23))
100
+
101
+
102
+ ### Miscellaneous Chores
103
+
104
+ * drop node 10.x to upgrade dev dependencies ([#653](https://github.com/uuidjs/uuid/issues/653)) ([28a5712](https://github.com/uuidjs/uuid/commit/28a571283f8abda6b9d85e689f95b7d3ee9e282e))
105
+ * release 11.0.0 ([#805](https://github.com/uuidjs/uuid/issues/805)) ([b003cde](https://github.com/uuidjs/uuid/commit/b003cdeda4c6a7ab525f79b9a3d87d1395a1fb4e))
106
+
107
+
108
+ ### Build System
109
+
110
+ * drop Node.js 8.x from babel transpile target ([#603](https://github.com/uuidjs/uuid/issues/603)) ([aa11485](https://github.com/uuidjs/uuid/commit/aa114858260402107ec8a1e1a825dea0a259bcb5))
111
+ * drop support for legacy browsers (IE11, Safari 10) ([#604](https://github.com/uuidjs/uuid/issues/604)) ([0f433e5](https://github.com/uuidjs/uuid/commit/0f433e5ec444edacd53016de67db021102f36148))
112
+
113
+ ## [11.0.0](https://github.com/uuidjs/uuid/compare/v9.0.0...v11.0.0) (2024-10-27)
114
+
115
+
116
+ ### ⚠ BREAKING CHANGES
117
+
118
+ * refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780))
119
+ * refactor v7 internal state and options logic, fixes #764 ([#779](https://github.com/uuidjs/uuid/issues/779))
120
+ * Port to TypeScript, closes #762 ([#763](https://github.com/uuidjs/uuid/issues/763))
121
+ * update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750))
122
+
123
+ ### Features
124
+
125
+ * add support for MAX uuid (new in RFC9562) ([#714](https://github.com/uuidjs/uuid/issues/714)) ([0385cd3](https://github.com/uuidjs/uuid/commit/0385cd3f18ae9920678b2849932fa7a9d9aee7d0))
126
+ * Port to TypeScript, closes [#762](https://github.com/uuidjs/uuid/issues/762) ([#763](https://github.com/uuidjs/uuid/issues/763)) ([1e0f987](https://github.com/uuidjs/uuid/commit/1e0f9870db864ca93f7a69db0d468b5e1b7605e7))
127
+ * support v6 uuids ([#754](https://github.com/uuidjs/uuid/issues/754)) ([c4ed13e](https://github.com/uuidjs/uuid/commit/c4ed13e7159d87c9e42a349bdd9dc955f1af46b6))
128
+ * update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750)) ([883b163](https://github.com/uuidjs/uuid/commit/883b163b9ab9d6655bfbd8a35e61a3c71674dfe1))
129
+ * v8 support ([#759](https://github.com/uuidjs/uuid/issues/759)) ([35a5342](https://github.com/uuidjs/uuid/commit/35a53428202657e402e6b4aa68f56c08194541bf))
130
+
131
+
132
+ ### Bug Fixes
133
+
134
+ * missing v7 expectations in browser spec ([#751](https://github.com/uuidjs/uuid/issues/751)) ([f54a866](https://github.com/uuidjs/uuid/commit/f54a866cedb2b3b96581157c1f4ac935a0b11411))
135
+ * refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780)) ([031b3d3](https://github.com/uuidjs/uuid/commit/031b3d3d738bc6694501ac0a37152b95ed500989))
136
+ * refactor v7 internal state and options logic, fixes [#764](https://github.com/uuidjs/uuid/issues/764) ([#779](https://github.com/uuidjs/uuid/issues/779)) ([9dbd1cd](https://github.com/uuidjs/uuid/commit/9dbd1cd4177c43fcaac961a3b16fb2d044c9940a))
137
+ * remove v4 options default assignment preventing native.randomUUID from being used ([#786](https://github.com/uuidjs/uuid/issues/786)) ([afe6232](https://github.com/uuidjs/uuid/commit/afe62323c4408a824755a39d7b971a8ae06f7199))
138
+ * revert "perf: remove superfluous call to toLowerCase ([#677](https://github.com/uuidjs/uuid/issues/677))" ([#738](https://github.com/uuidjs/uuid/issues/738)) ([e267b90](https://github.com/uuidjs/uuid/commit/e267b9073df1d0ce119ee53c0487fe76acb2be37))
139
+ * seq_hi shift for byte 6 ([#775](https://github.com/uuidjs/uuid/issues/775)) ([1d532ca](https://github.com/uuidjs/uuid/commit/1d532ca374f181932a24a83fa98f71a5bd4f3e96))
140
+ * tsconfig module type ([#778](https://github.com/uuidjs/uuid/issues/778)) ([7eff835](https://github.com/uuidjs/uuid/commit/7eff835cba334ad418f57768c00d15b918a9b419))
141
+
142
+
143
+ ### Performance Improvements
144
+
145
+ * remove superfluous call to toLowerCase ([#677](https://github.com/uuidjs/uuid/issues/677)) ([e53793f](https://github.com/uuidjs/uuid/commit/e53793f5be93413cad68b05b3a339ca23e993342))
146
+
147
+
148
+ ### Miscellaneous Chores
149
+
150
+ * release 11.0.0 ([#805](https://github.com/uuidjs/uuid/issues/805)) ([b003cde](https://github.com/uuidjs/uuid/commit/b003cdeda4c6a7ab525f79b9a3d87d1395a1fb4e))
151
+
5
152
  ## [11.0.0-0](https://github.com/uuidjs/uuid/compare/v9.0.0...v11.0.0-0) (2024-09-05)
6
153
 
7
154
  ### ⚠ BREAKING CHANGES
@@ -13,11 +160,8 @@ All notable changes to this project will be documented in this file. See [standa
13
160
 
14
161
  ### Features
15
162
 
16
- - add support for MAX uuid (new in RFC9562) ([#714](https://github.com/uuidjs/uuid/issues/714)) ([0385cd3](https://github.com/uuidjs/uuid/commit/0385cd3f18ae9920678b2849932fa7a9d9aee7d0))
17
163
  - Port to TypeScript, closes [#762](https://github.com/uuidjs/uuid/issues/762) ([#763](https://github.com/uuidjs/uuid/issues/763)) ([1e0f987](https://github.com/uuidjs/uuid/commit/1e0f9870db864ca93f7a69db0d468b5e1b7605e7))
18
- - support v6 uuids ([#754](https://github.com/uuidjs/uuid/issues/754)) ([c4ed13e](https://github.com/uuidjs/uuid/commit/c4ed13e7159d87c9e42a349bdd9dc955f1af46b6))
19
164
  - update node support matrix (only support node 16-20) ([#750](https://github.com/uuidjs/uuid/issues/750)) ([883b163](https://github.com/uuidjs/uuid/commit/883b163b9ab9d6655bfbd8a35e61a3c71674dfe1))
20
- - v8 support ([#759](https://github.com/uuidjs/uuid/issues/759)) ([35a5342](https://github.com/uuidjs/uuid/commit/35a53428202657e402e6b4aa68f56c08194541bf))
21
165
 
22
166
  ### Bug Fixes
23
167
 
@@ -25,7 +169,6 @@ All notable changes to this project will be documented in this file. See [standa
25
169
  - refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780)) ([031b3d3](https://github.com/uuidjs/uuid/commit/031b3d3d738bc6694501ac0a37152b95ed500989))
26
170
  - refactor v7 internal state and options logic, fixes [#764](https://github.com/uuidjs/uuid/issues/764) ([#779](https://github.com/uuidjs/uuid/issues/779)) ([9dbd1cd](https://github.com/uuidjs/uuid/commit/9dbd1cd4177c43fcaac961a3b16fb2d044c9940a))
27
171
  - remove v4 options default assignment preventing native.randomUUID from being used ([#786](https://github.com/uuidjs/uuid/issues/786)) ([afe6232](https://github.com/uuidjs/uuid/commit/afe62323c4408a824755a39d7b971a8ae06f7199)), closes [#763](https://github.com/uuidjs/uuid/issues/763)
28
- - revert "perf: remove superfluous call to toLowerCase ([#677](https://github.com/uuidjs/uuid/issues/677))" ([#738](https://github.com/uuidjs/uuid/issues/738)) ([e267b90](https://github.com/uuidjs/uuid/commit/e267b9073df1d0ce119ee53c0487fe76acb2be37))
29
172
  - seq_hi shift for byte 6 ([#775](https://github.com/uuidjs/uuid/issues/775)) ([1d532ca](https://github.com/uuidjs/uuid/commit/1d532ca374f181932a24a83fa98f71a5bd4f3e96))
30
173
  - tsconfig module type ([#778](https://github.com/uuidjs/uuid/issues/778)) ([7eff835](https://github.com/uuidjs/uuid/commit/7eff835cba334ad418f57768c00d15b918a9b419))
31
174
 
package/README.md CHANGED
@@ -19,9 +19,10 @@ For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (form
19
19
 
20
20
  <!-- prettier-ignore -->
21
21
  > [!NOTE]
22
- > `uuid@11` has the following breaking changes:
23
- > * Passing `options` to `v1()`, `v6()`, and `v7()` now behaves slightly differently. [See details](#options-handling-for-timestamp-uuids)
24
- > * Binary UUIDs are now of type `Uint8Array`. This may affect code utilizing `parse()`, `stringify()`, or that passes a `buf` argument to any of the `v1()`-`v7()` methods.
22
+ w> `uuid@11` is now available: See the [CHANGELOG](./CHANGELOG.md) for details. TL;DR:
23
+ > * TypeScript support is now included (remove `@types/uuid` from your dependencies)
24
+ > * Subtle changes to how the `options` arg is interpreted for `v1()`, `v6()`, and `v7()`. [See details](#options-handling-for-timestamp-uuids)
25
+ > * Binary UUIDs are now `Uint8Array`s. (May impact callers of `parse()`, `stringify()`, or that pass an `option#buf` argument to `v1()`-`v7()`.)
25
26
 
26
27
  ## Quickstart
27
28
 
@@ -173,11 +174,11 @@ Create an RFC version 1 (timestamp) UUID
173
174
  | | |
174
175
  | --- | --- |
175
176
  | [`options`] | `Object` with one or more of the following properties: |
176
- | [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
177
- | [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
178
- | [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
179
- | [`options.nsecs`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
180
- | [`options.random`] | `Array` of 16 random bytes (0-255) |
177
+ | [`options.node = (random)` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
178
+ | [`options.clockseq = (random)`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
179
+ | [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
180
+ | [`options.nsecs = 0`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
181
+ | [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above |
181
182
  | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
182
183
  | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
183
184
  | [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
@@ -362,10 +363,10 @@ Create an RFC version 7 (random) UUID
362
363
  | | |
363
364
  | --- | --- |
364
365
  | [`options`] | `Object` with one or more of the following properties: |
365
- | [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch). Default = `Date.now()` |
366
- | [`options.random`] | `Array` of 16 random bytes (0-255) |
366
+ | [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
367
+ | [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above |
367
368
  | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
368
- | [`options.seq`] | 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. |
369
+ | [`options.seq = (random)`] | 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. |
369
370
  | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
370
371
  | [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
371
372
  | _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` |
@@ -473,12 +474,10 @@ defined by RFC9562
473
474
 
474
475
  ## `options` Handling for Timestamp UUIDs
475
476
 
476
- As of `uuid@11`, all timestamp-based UUID APIs (`v1()`, `v6()`, and `v7()`) now operate in two distinct modes:
477
-
478
- - Without `options`: If no `options` argument is passed, these APIs will make use of internal state such as a sequence counter to improve UUID uniqueness.
479
- - With `options`: If an `options` argument of any kind is passed, no internal state is used or updated. Instead, appropriate defaults are used. See the respective APIs for details.
477
+ Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to insure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
480
478
 
481
- Prior to `uuid@11`, this distinction was less clear. Internal state was was being combined with `options` values in ways that were difficult to rationalize about, and that could lead to unpredictable behavior. Hence, this change.
479
+ - Without `options`: Internal state is utilized to improve UUID uniqueness.
480
+ - With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed.
482
481
 
483
482
  ---
484
483
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "11.0.0-0",
3
+ "version": "11.0.0",
4
4
  "description": "RFC9562 UUIDs",
5
5
  "type": "module",
6
6
  "funding": [
@@ -49,41 +49,36 @@
49
49
  "wrapper.mjs"
50
50
  ],
51
51
  "devDependencies": {
52
- "@babel/eslint-parser": "7.24.8",
53
- "@commitlint/cli": "19.3.0",
54
- "@commitlint/config-conventional": "19.2.2",
55
- "@eslint/js": "9.7.0",
52
+ "@babel/eslint-parser": "7.25.9",
53
+ "@commitlint/cli": "19.5.0",
54
+ "@commitlint/config-conventional": "19.5.0",
55
+ "@eslint/js": "9.13.0",
56
56
  "@types/eslint__js": "8.42.3",
57
- "@wdio/browserstack-service": "9.0.9",
58
- "@wdio/cli": "9.0.9",
59
- "@wdio/jasmine-framework": "9.0.9",
60
- "@wdio/local-runner": "9.0.9",
61
- "@wdio/spec-reporter": "9.0.8",
62
- "@wdio/static-server-service": "9.0.8",
63
- "bundlewatch": "0.3.3",
64
- "eslint": "9.7.0",
57
+ "bundlewatch": "0.4.0",
58
+ "eslint": "9.13.0",
65
59
  "eslint-config-prettier": "9.1.0",
66
60
  "eslint-plugin-prettier": "5.2.1",
67
- "globals": "15.8.0",
68
- "husky": "9.1.1",
61
+ "globals": "15.11.0",
62
+ "husky": "9.1.6",
69
63
  "jest": "29.7.0",
70
- "lint-staged": "15.2.7",
71
- "neostandard": "0.11.1",
64
+ "lint-staged": "15.2.10",
65
+ "neostandard": "0.11.7",
72
66
  "npm-run-all": "4.1.5",
73
67
  "optional-dev-dependency": "2.0.1",
74
68
  "prettier": "3.3.3",
69
+ "release-please": "16.14.3",
75
70
  "runmd": "1.3.9",
76
71
  "standard-version": "9.5.0",
77
- "typescript": "5.5.3",
78
- "typescript-eslint": "8.0.0-alpha.30"
72
+ "typescript": "5.6.3",
73
+ "typescript-eslint": "8.11.0"
79
74
  },
80
75
  "optionalDevDependencies": {
81
- "@wdio/browserstack-service": "9.0.9",
82
- "@wdio/cli": "9.0.9",
83
- "@wdio/jasmine-framework": "9.0.9",
84
- "@wdio/local-runner": "9.0.9",
85
- "@wdio/spec-reporter": "9.0.8",
86
- "@wdio/static-server-service": "9.0.8"
76
+ "@wdio/browserstack-service": "9.2.1",
77
+ "@wdio/cli": "9.2.1",
78
+ "@wdio/jasmine-framework": "9.2.1",
79
+ "@wdio/local-runner": "9.2.1",
80
+ "@wdio/spec-reporter": "9.1.3",
81
+ "@wdio/static-server-service": "9.1.3"
87
82
  },
88
83
  "scripts": {
89
84
  "build": "./scripts/build.sh",
@@ -113,8 +108,8 @@
113
108
  "test:browser": "wdio run ./wdio.conf.js",
114
109
  "test:node": "npm-run-all --parallel examples:node:**",
115
110
  "test:pack": "./scripts/testpack.sh",
116
- "test:watch": "node --test --enable-source-maps --watch dist/esm/test",
117
- "test": "node --test --enable-source-maps dist/esm/test"
111
+ "test:watch": "node --test --enable-source-maps --watch dist/esm/test/*.js",
112
+ "test": "node --test --enable-source-maps dist/esm/test/*.js"
118
113
  },
119
114
  "repository": {
120
115
  "type": "git",
@@ -133,5 +128,5 @@
133
128
  "postchangelog": "prettier --write CHANGELOG.md"
134
129
  }
135
130
  },
136
- "packageManager": "npm@10.8.2+sha256.c8c61ba0fa0ab3b5120efd5ba97fdaf0e0b495eef647a97c4413919eda0a878b"
131
+ "packageManager": "npm@10.9.0"
137
132
  }