uuid 11.0.3 → 11.0.4

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 (122) hide show
  1. package/README.md +29 -16
  2. package/dist/cjs/md5.d.ts +1 -1
  3. package/dist/cjs/parse.d.ts +1 -1
  4. package/dist/cjs/rng.d.ts +1 -1
  5. package/dist/cjs/sha1.d.ts +1 -1
  6. package/dist/cjs/v1.js +8 -0
  7. package/dist/cjs/v35.d.ts +2 -2
  8. package/dist/cjs/v4.js +7 -1
  9. package/dist/cjs/v7.js +8 -0
  10. package/dist/cjs-browser/md5.d.ts +1 -1
  11. package/dist/cjs-browser/parse.d.ts +1 -1
  12. package/dist/cjs-browser/rng.d.ts +1 -1
  13. package/dist/cjs-browser/v1.js +8 -0
  14. package/dist/cjs-browser/v35.d.ts +2 -2
  15. package/dist/cjs-browser/v4.js +7 -1
  16. package/dist/cjs-browser/v7.js +8 -0
  17. package/dist/esm/md5.d.ts +1 -1
  18. package/dist/esm/parse.d.ts +1 -1
  19. package/dist/esm/rng.d.ts +1 -1
  20. package/dist/esm/sha1.d.ts +1 -1
  21. package/dist/esm/v1.js +8 -0
  22. package/dist/esm/v35.d.ts +2 -2
  23. package/dist/esm/v4.js +7 -1
  24. package/dist/esm/v7.js +8 -0
  25. package/dist/esm-browser/md5.d.ts +1 -1
  26. package/dist/esm-browser/parse.d.ts +1 -1
  27. package/dist/esm-browser/rng.d.ts +1 -1
  28. package/dist/esm-browser/v1.js +8 -0
  29. package/dist/esm-browser/v35.d.ts +2 -2
  30. package/dist/esm-browser/v4.js +7 -1
  31. package/dist/esm-browser/v7.js +8 -0
  32. package/package.json +17 -20
  33. package/CHANGELOG.md +0 -335
  34. package/CONTRIBUTING.md +0 -18
  35. package/dist/cjs/test/parse.test.d.ts +0 -1
  36. package/dist/cjs/test/parse.test.js +0 -50
  37. package/dist/cjs/test/rng.test.d.ts +0 -1
  38. package/dist/cjs/test/rng.test.js +0 -14
  39. package/dist/cjs/test/stringify.test.d.ts +0 -1
  40. package/dist/cjs/test/stringify.test.js +0 -23
  41. package/dist/cjs/test/test_constants.d.ts +0 -33
  42. package/dist/cjs/test/test_constants.js +0 -91
  43. package/dist/cjs/test/v1.test.d.ts +0 -1
  44. package/dist/cjs/test/v1.test.js +0 -127
  45. package/dist/cjs/test/v35.test.d.ts +0 -1
  46. package/dist/cjs/test/v35.test.js +0 -143
  47. package/dist/cjs/test/v4.test.d.ts +0 -1
  48. package/dist/cjs/test/v4.test.js +0 -60
  49. package/dist/cjs/test/v6.test.d.ts +0 -1
  50. package/dist/cjs/test/v6.test.js +0 -56
  51. package/dist/cjs/test/v7.test.d.ts +0 -1
  52. package/dist/cjs/test/v7.test.js +0 -194
  53. package/dist/cjs/test/validate.test.d.ts +0 -1
  54. package/dist/cjs/test/validate.test.js +0 -13
  55. package/dist/cjs/test/version.test.d.ts +0 -1
  56. package/dist/cjs/test/version.test.js +0 -20
  57. package/dist/cjs-browser/test/parse.test.d.ts +0 -1
  58. package/dist/cjs-browser/test/parse.test.js +0 -50
  59. package/dist/cjs-browser/test/rng.test.d.ts +0 -1
  60. package/dist/cjs-browser/test/rng.test.js +0 -14
  61. package/dist/cjs-browser/test/stringify.test.d.ts +0 -1
  62. package/dist/cjs-browser/test/stringify.test.js +0 -23
  63. package/dist/cjs-browser/test/test_constants.d.ts +0 -33
  64. package/dist/cjs-browser/test/test_constants.js +0 -91
  65. package/dist/cjs-browser/test/v1.test.d.ts +0 -1
  66. package/dist/cjs-browser/test/v1.test.js +0 -127
  67. package/dist/cjs-browser/test/v35.test.d.ts +0 -1
  68. package/dist/cjs-browser/test/v35.test.js +0 -143
  69. package/dist/cjs-browser/test/v4.test.d.ts +0 -1
  70. package/dist/cjs-browser/test/v4.test.js +0 -60
  71. package/dist/cjs-browser/test/v6.test.d.ts +0 -1
  72. package/dist/cjs-browser/test/v6.test.js +0 -56
  73. package/dist/cjs-browser/test/v7.test.d.ts +0 -1
  74. package/dist/cjs-browser/test/v7.test.js +0 -194
  75. package/dist/cjs-browser/test/validate.test.d.ts +0 -1
  76. package/dist/cjs-browser/test/validate.test.js +0 -13
  77. package/dist/cjs-browser/test/version.test.d.ts +0 -1
  78. package/dist/cjs-browser/test/version.test.js +0 -20
  79. package/dist/esm/test/parse.test.d.ts +0 -1
  80. package/dist/esm/test/parse.test.js +0 -48
  81. package/dist/esm/test/rng.test.d.ts +0 -1
  82. package/dist/esm/test/rng.test.js +0 -12
  83. package/dist/esm/test/stringify.test.d.ts +0 -1
  84. package/dist/esm/test/stringify.test.js +0 -21
  85. package/dist/esm/test/test_constants.d.ts +0 -33
  86. package/dist/esm/test/test_constants.js +0 -88
  87. package/dist/esm/test/v1.test.d.ts +0 -1
  88. package/dist/esm/test/v1.test.js +0 -125
  89. package/dist/esm/test/v35.test.d.ts +0 -1
  90. package/dist/esm/test/v35.test.js +0 -141
  91. package/dist/esm/test/v4.test.d.ts +0 -1
  92. package/dist/esm/test/v4.test.js +0 -58
  93. package/dist/esm/test/v6.test.d.ts +0 -1
  94. package/dist/esm/test/v6.test.js +0 -54
  95. package/dist/esm/test/v7.test.d.ts +0 -1
  96. package/dist/esm/test/v7.test.js +0 -192
  97. package/dist/esm/test/validate.test.d.ts +0 -1
  98. package/dist/esm/test/validate.test.js +0 -11
  99. package/dist/esm/test/version.test.d.ts +0 -1
  100. package/dist/esm/test/version.test.js +0 -18
  101. package/dist/esm-browser/test/parse.test.d.ts +0 -1
  102. package/dist/esm-browser/test/parse.test.js +0 -48
  103. package/dist/esm-browser/test/rng.test.d.ts +0 -1
  104. package/dist/esm-browser/test/rng.test.js +0 -12
  105. package/dist/esm-browser/test/stringify.test.d.ts +0 -1
  106. package/dist/esm-browser/test/stringify.test.js +0 -21
  107. package/dist/esm-browser/test/test_constants.d.ts +0 -33
  108. package/dist/esm-browser/test/test_constants.js +0 -88
  109. package/dist/esm-browser/test/v1.test.d.ts +0 -1
  110. package/dist/esm-browser/test/v1.test.js +0 -125
  111. package/dist/esm-browser/test/v35.test.d.ts +0 -1
  112. package/dist/esm-browser/test/v35.test.js +0 -141
  113. package/dist/esm-browser/test/v4.test.d.ts +0 -1
  114. package/dist/esm-browser/test/v4.test.js +0 -58
  115. package/dist/esm-browser/test/v6.test.d.ts +0 -1
  116. package/dist/esm-browser/test/v6.test.js +0 -54
  117. package/dist/esm-browser/test/v7.test.d.ts +0 -1
  118. package/dist/esm-browser/test/v7.test.js +0 -192
  119. package/dist/esm-browser/test/validate.test.d.ts +0 -1
  120. package/dist/esm-browser/test/validate.test.js +0 -11
  121. package/dist/esm-browser/test/version.test.d.ts +0 -1
  122. package/dist/esm-browser/test/version.test.js +0 -18
package/CHANGELOG.md DELETED
@@ -1,335 +0,0 @@
1
- # Change Log
2
-
3
- ## [11.0.3](https://github.com/uuidjs/uuid/compare/v11.0.2...v11.0.3) (2024-11-04)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * apply stricter typing to the v* signatures ([#831](https://github.com/uuidjs/uuid/issues/831)) ([c2d3fed](https://github.com/uuidjs/uuid/commit/c2d3fed22cfd47c22c8f22f6154abb5060648ce5))
9
- * export internal uuid types ([#833](https://github.com/uuidjs/uuid/issues/833)) ([341edf4](https://github.com/uuidjs/uuid/commit/341edf444ced63708ba336285dbec29443523939))
10
- * remove sourcemaps ([#827](https://github.com/uuidjs/uuid/issues/827)) ([b93ea10](https://github.com/uuidjs/uuid/commit/b93ea101af7382053032d4fb61cc85599d6c7216))
11
- * revert "simplify type for v3 and v5" ([#835](https://github.com/uuidjs/uuid/issues/835)) ([e2dee69](https://github.com/uuidjs/uuid/commit/e2dee691e95aba854a892d2507d8cd9f009bf61d))
12
-
13
- ## [11.0.2](https://github.com/uuidjs/uuid/compare/v11.0.1...v11.0.2) (2024-10-28)
14
-
15
- ### Bug Fixes
16
-
17
- * remove wrapper.mjs ([#822](https://github.com/uuidjs/uuid/issues/822)) ([6683ad3](https://github.com/uuidjs/uuid/commit/6683ad38b048375b451eac1194960f24ba20e0ca))
18
-
19
- ## [11.0.1](https://github.com/uuidjs/uuid/compare/v11.0.0...v11.0.1) (2024-10-27)
20
-
21
- ### Bug Fixes
22
-
23
- * restore package.json#browser field ([#817](https://github.com/uuidjs/uuid/issues/817)) ([ae8f386](https://github.com/uuidjs/uuid/commit/ae8f38657bca0ee053bf29c88c006b1ea05af1b5))
24
-
25
- ## [11.0.0](https://github.com/uuidjs/uuid/compare/v9.0.0...v11.0.0) (2024-10-26)
26
-
27
- ### ⚠ BREAKING CHANGES
28
-
29
- - refactor v1 internal state and options logic (#780)
30
- - refactor v7 internal state and options logic, fixes #764 (#779)
31
- - Port to TypeScript, closes #762 (#763)
32
- - update node support matrix (only support node 16-20) (#750)
33
-
34
- ### Features
35
-
36
- - 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))
37
- - 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))
38
-
39
- ### Bug Fixes
40
-
41
- - missing v7 expectations in browser spec ([#751](https://github.com/uuidjs/uuid/issues/751)) ([f54a866](https://github.com/uuidjs/uuid/commit/f54a866cedb2b3b96581157c1f4ac935a0b11411))
42
- - refactor v1 internal state and options logic ([#780](https://github.com/uuidjs/uuid/issues/780)) ([031b3d3](https://github.com/uuidjs/uuid/commit/031b3d3d738bc6694501ac0a37152b95ed500989))
43
- - 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))
44
- - 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)
45
- - seq_hi shift for byte 6 ([#775](https://github.com/uuidjs/uuid/issues/775)) ([1d532ca](https://github.com/uuidjs/uuid/commit/1d532ca374f181932a24a83fa98f71a5bd4f3e96))
46
- - tsconfig module type ([#778](https://github.com/uuidjs/uuid/issues/778)) ([7eff835](https://github.com/uuidjs/uuid/commit/7eff835cba334ad418f57768c00d15b918a9b419))
47
-
48
- ## [10.0.0](https://github.com/uuidjs/uuid/compare/v9.0.0...v10.0.0) (2024-06-07)
49
-
50
- ### ⚠ BREAKING CHANGES
51
-
52
- - update node support (drop node@12, node@14, add node@20) (#750)
53
-
54
- ### Features
55
-
56
- - support support rfc9562 MAX uuid (new in RFC9562) ([#714](https://github.com/uuidjs/uuid/issues/714)) ([0385cd3](https://github.com/uuidjs/uuid/commit/0385cd3f18ae9920678b2849932fa7a9d9aee7d0))
57
- - support rfc9562 v6 uuids ([#754](https://github.com/uuidjs/uuid/issues/754)) ([c4ed13e](https://github.com/uuidjs/uuid/commit/c4ed13e7159d87c9e42a349bdd9dc955f1af46b6))
58
- - support rfc9562 v7 uuids ([#681](https://github.com/uuidjs/uuid/issues/681)) ([db76a12](https://github.com/uuidjs/uuid/commit/db76a1284760c441438f50a57924b322dae08891))
59
- - 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))
60
- - support rfc9562 v8 uuids ([#759](https://github.com/uuidjs/uuid/issues/759)) ([35a5342](https://github.com/uuidjs/uuid/commit/35a53428202657e402e6b4aa68f56c08194541bf))
61
-
62
- ### Bug Fixes
63
-
64
- - 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))
65
-
66
- ## [9.0.1](https://github.com/uuidjs/uuid/compare/v9.0.0...v9.0.1) (2023-09-12)
67
-
68
- ### build
69
-
70
- - Fix CI to work with Node.js 20.x
71
-
72
- ## [9.0.0](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) (2022-09-05)
73
-
74
- ### ⚠ BREAKING CHANGES
75
-
76
- - Drop Node.js 10.x support. 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.
77
-
78
- - Remove the minified UMD build from the package.
79
-
80
- Minified code is hard to audit and since this is a widely used library it seems more appropriate nowadays to optimize for auditability than to ship a legacy module format that, at best, serves educational purposes nowadays.
81
-
82
- For production browser use cases, users should be using a bundler. For educational purposes, today's online sandboxes like replit.com offer convenient ways to load npm modules, so the use case for UMD through repos like UNPKG or jsDelivr has largely vanished.
83
-
84
- - Drop IE 11 and Safari 10 support. Drop support for browsers that don't correctly implement const/let and default arguments, and no longer transpile the browser build to ES2015.
85
-
86
- This also removes the fallback on msCrypto instead of the crypto API.
87
-
88
- Browser tests are run in the first supported version of each supported browser and in the latest (as of this commit) version available on Browserstack.
89
-
90
- ### Features
91
-
92
- - 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))
93
- - 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)
94
- - use native crypto.randomUUID when available ([#600](https://github.com/uuidjs/uuid/issues/600)) ([c9e076c](https://github.com/uuidjs/uuid/commit/c9e076c852edad7e9a06baaa1d148cf4eda6c6c4))
95
-
96
- ### Bug Fixes
97
-
98
- - add Jest/jsdom compatibility ([#642](https://github.com/uuidjs/uuid/issues/642)) ([16f9c46](https://github.com/uuidjs/uuid/commit/16f9c469edf46f0786164cdf4dc980743984a6fd))
99
- - change default export to named function ([#545](https://github.com/uuidjs/uuid/issues/545)) ([c57bc5a](https://github.com/uuidjs/uuid/commit/c57bc5a9a0653273aa639cda9177ce52efabe42a))
100
- - 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))
101
- - run npm audit fix ([#644](https://github.com/uuidjs/uuid/issues/644)) ([04686f5](https://github.com/uuidjs/uuid/commit/04686f54c5fed2cfffc1b619f4970c4bb8532353))
102
- - upgrading from uuid3 broken link ([#568](https://github.com/uuidjs/uuid/issues/568)) ([1c849da](https://github.com/uuidjs/uuid/commit/1c849da6e164259e72e18636726345b13a7eddd6))
103
-
104
- ### build
105
-
106
- - 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))
107
- - drop support for legacy browsers (IE11, Safari 10) ([#604](https://github.com/uuidjs/uuid/issues/604)) ([0f433e5](https://github.com/uuidjs/uuid/commit/0f433e5ec444edacd53016de67db021102f36148))
108
-
109
- - drop node 10.x to upgrade dev dependencies ([#653](https://github.com/uuidjs/uuid/issues/653)) ([28a5712](https://github.com/uuidjs/uuid/commit/28a571283f8abda6b9d85e689f95b7d3ee9e282e)), closes [#643](https://github.com/uuidjs/uuid/issues/643)
110
-
111
- ### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08)
112
-
113
- ### Bug Fixes
114
-
115
- - 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)
116
-
117
- ### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04)
118
-
119
- ### Bug Fixes
120
-
121
- - support expo>=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)
122
-
123
- ## [8.3.0](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) (2020-07-27)
124
-
125
- ### Features
126
-
127
- - add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4)), closes [#475](https://github.com/uuidjs/uuid/issues/475) [#478](https://github.com/uuidjs/uuid/issues/478) [#480](https://github.com/uuidjs/uuid/issues/480) [#481](https://github.com/uuidjs/uuid/issues/481) [#180](https://github.com/uuidjs/uuid/issues/180)
128
-
129
- ## [8.2.0](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0) (2020-06-23)
130
-
131
- ### Features
132
-
133
- - improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5))
134
- - remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c)), closes [#437](https://github.com/uuidjs/uuid/issues/437)
135
- - support jspm ([#473](https://github.com/uuidjs/uuid/issues/473)) ([e9f2587](https://github.com/uuidjs/uuid/commit/e9f2587a92575cac31bc1d4ae944e17c09756659))
136
-
137
- ### Bug Fixes
138
-
139
- - prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8))
140
-
141
- ## [8.1.0](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0) (2020-05-20)
142
-
143
- ### Features
144
-
145
- - improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d))
146
- - optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2))
147
-
148
- ### Bug Fixes
149
-
150
- - 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 [ai/nanoevents#44](https://github.com/ai/nanoevents/issues/44#issuecomment-602010343) [#444](https://github.com/uuidjs/uuid/issues/444)
151
-
152
- ## [8.0.0](https://github.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) (2020-04-29)
153
-
154
- ### ⚠ BREAKING CHANGES
155
-
156
- - For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
157
-
158
- ```diff
159
- -import uuid from 'uuid';
160
- -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869'
161
- +import { v4 as uuidv4 } from 'uuid';
162
- +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
163
- ```
164
-
165
- - Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported.
166
-
167
- Instead use the named exports that this module exports.
168
-
169
- For ECMAScript Modules (ESM):
170
-
171
- ```diff
172
- -import uuidv4 from 'uuid/v4';
173
- +import { v4 as uuidv4 } from 'uuid';
174
- uuidv4();
175
- ```
176
-
177
- For CommonJS:
178
-
179
- ```diff
180
- -const uuidv4 = require('uuid/v4');
181
- +const { v4: uuidv4 } = require('uuid');
182
- uuidv4();
183
- ```
184
-
185
- ### Features
186
-
187
- - native Node.js ES Modules (wrapper approach) ([#423](https://github.com/uuidjs/uuid/issues/423)) ([2d9f590](https://github.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#245](https://github.com/uuidjs/uuid/issues/245) [#419](https://github.com/uuidjs/uuid/issues/419) [#342](https://github.com/uuidjs/uuid/issues/342)
188
- - remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba))
189
-
190
- ### Bug Fixes
191
-
192
- - add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0))
193
-
194
- ### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31)
195
-
196
- ### Bug Fixes
197
-
198
- - 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)
199
-
200
- ### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04)
201
-
202
- ### Bug Fixes
203
-
204
- - make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c))
205
- - simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7))
206
- - update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4))
207
-
208
- ### [7.0.1](https://github.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25)
209
-
210
- ### Bug Fixes
211
-
212
- - clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc))
213
- - 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)
214
-
215
- ## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24)
216
-
217
- ### ⚠ BREAKING CHANGES
218
-
219
- - The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed.
220
- - 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.
221
- - 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.
222
- - Remove support for generating v3 and v5 UUIDs in Node.js<4.x
223
- - Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers.
224
-
225
- ### Features
226
-
227
- - 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)
228
- - add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555))
229
- - ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b))
230
- - hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0))
231
- - remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173)
232
- - 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))
233
- - 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)
234
-
235
- ### Bug Fixes
236
-
237
- - 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))
238
- - 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)
239
- - deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23))
240
-
241
- ## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16)
242
-
243
- ### Features
244
-
245
- - 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)
246
-
247
- ## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19)
248
-
249
- ### Bug Fixes
250
-
251
- - no longer run ci tests on node v4
252
- - upgrade dependencies
253
-
254
- ## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
255
-
256
- ### Bug Fixes
257
-
258
- - typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877))
259
-
260
- ## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
261
-
262
- ### Bug Fixes
263
-
264
- - fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2))
265
-
266
- # [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
267
-
268
- ### Bug Fixes
269
-
270
- - 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))
271
- - fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4))
272
- - Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331))
273
- - mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c))
274
-
275
- ### Features
276
-
277
- - enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182))
278
-
279
- ## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
280
-
281
- ### Bug Fixes
282
-
283
- - 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))
284
-
285
- # [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
286
-
287
- ### Bug Fixes
288
-
289
- - remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824))
290
- - 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))
291
-
292
- ### Features
293
-
294
- - Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726))
295
-
296
- # [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
297
-
298
- ### Bug Fixes
299
-
300
- - (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183)
301
- - Fix typo (#178)
302
- - Simple typo fix (#165)
303
-
304
- ### Features
305
-
306
- - v5 support in CLI (#197)
307
- - V5 support (#188)
308
-
309
- # 3.0.1 (2016-11-28)
310
-
311
- - split uuid versions into separate files
312
-
313
- # 3.0.0 (2016-11-17)
314
-
315
- - remove .parse and .unparse
316
-
317
- # 2.0.0
318
-
319
- - Removed uuid.BufferClass
320
-
321
- # 1.4.0
322
-
323
- - Improved module context detection
324
- - Removed public RNG functions
325
-
326
- # 1.3.2
327
-
328
- - Improve tests and handling of v1() options (Issue #24)
329
- - Expose RNG option to allow for perf testing with different generators
330
-
331
- # 1.3.0
332
-
333
- - Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
334
- - Support for node.js crypto API
335
- - De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
package/CONTRIBUTING.md DELETED
@@ -1,18 +0,0 @@
1
- # Contributing
2
-
3
- Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss improvements to this library!
4
-
5
- ## Testing
6
-
7
- ```shell
8
- npm test
9
- ```
10
-
11
- ## Releasing
12
-
13
- Releases are supposed to be done from master, version bumping is automated through [`standard-version`](https://github.com/conventional-changelog/standard-version):
14
-
15
- ```shell
16
- npm run release -- --dry-run # verify output manually
17
- npm run release # follow the instructions from the output of this command
18
- ```
@@ -1 +0,0 @@
1
- export {};
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert = require("assert");
4
- const node_test_1 = require("node:test");
5
- const parse_js_1 = require("../parse.js");
6
- const stringify_js_1 = require("../stringify.js");
7
- const v4_js_1 = require("../v4.js");
8
- function splitmix32(a) {
9
- return function () {
10
- a |= 0;
11
- a = (a + 0x9e3779b9) | 0;
12
- let t = a ^ (a >>> 16);
13
- t = Math.imul(t, 0x21f0aaad);
14
- t = t ^ (t >>> 15);
15
- t = Math.imul(t, 0x735a2d97);
16
- return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296;
17
- };
18
- }
19
- const rand = splitmix32(0x12345678);
20
- function rng(bytes = new Uint8Array(16)) {
21
- for (let i = 0; i < 16; i++) {
22
- bytes[i] = rand() * 256;
23
- }
24
- return bytes;
25
- }
26
- (0, node_test_1.describe)('parse', () => {
27
- (0, node_test_1.default)('String -> bytes parsing', () => {
28
- assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([
29
- 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08,
30
- 0x4b,
31
- ]));
32
- });
33
- (0, node_test_1.default)('String -> bytes -> string symmetry for assorted uuids', () => {
34
- for (let i = 0; i < 1000; i++) {
35
- const uuid = (0, v4_js_1.default)({ rng });
36
- assert.equal((0, stringify_js_1.default)((0, parse_js_1.default)(uuid)), uuid);
37
- }
38
- });
39
- (0, node_test_1.default)('Case neutrality', () => {
40
- assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), (0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()));
41
- });
42
- (0, node_test_1.default)('Null UUID case', () => {
43
- assert.deepStrictEqual((0, parse_js_1.default)('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0)));
44
- });
45
- (0, node_test_1.default)('UUID validation', () => {
46
- assert.throws(() => (0, parse_js_1.default)());
47
- assert.throws(() => (0, parse_js_1.default)('invalid uuid'));
48
- assert.throws(() => (0, parse_js_1.default)('zyxwvuts-rqpo-nmlk-jihg-fedcba000000'));
49
- });
50
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert = require("assert");
4
- const node_test_1 = require("node:test");
5
- const rng_js_1 = require("../rng.js");
6
- (0, node_test_1.describe)('rng', () => {
7
- (0, node_test_1.default)('Node.js RNG', () => {
8
- const bytes = (0, rng_js_1.default)();
9
- assert.equal(bytes.length, 16);
10
- for (let i = 0; i < bytes.length; ++i) {
11
- assert.equal(typeof bytes[i], 'number');
12
- }
13
- });
14
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert = require("assert");
4
- const node_test_1 = require("node:test");
5
- const stringify_js_1 = require("../stringify.js");
6
- const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b);
7
- (0, node_test_1.describe)('stringify', () => {
8
- (0, node_test_1.default)('Stringify Array (unsafe)', () => {
9
- assert.equal((0, stringify_js_1.unsafeStringify)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b');
10
- });
11
- (0, node_test_1.default)('Stringify w/ offset (unsafe)', () => {
12
- const bytes = new Uint8Array(19).fill(0);
13
- bytes.set(BYTES, 3);
14
- assert.equal((0, stringify_js_1.unsafeStringify)(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b');
15
- });
16
- (0, node_test_1.default)('Stringify Array (safe)', () => {
17
- assert.equal((0, stringify_js_1.default)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b');
18
- });
19
- (0, node_test_1.default)('Throws on not enough values (safe)', () => {
20
- const bytes = BYTES.slice(0, 15);
21
- assert.throws(() => (0, stringify_js_1.default)(bytes));
22
- });
23
- });
@@ -1,33 +0,0 @@
1
- export declare const TESTS: ({
2
- value: string;
3
- expectedValidate: boolean;
4
- expectedVersion: number;
5
- } | {
6
- value: string;
7
- expectedValidate: boolean;
8
- expectedVersion?: undefined;
9
- } | {
10
- value: undefined;
11
- expectedValidate: boolean;
12
- expectedVersion?: undefined;
13
- } | {
14
- value: null;
15
- expectedValidate: boolean;
16
- expectedVersion?: undefined;
17
- } | {
18
- value: number;
19
- expectedValidate: boolean;
20
- expectedVersion?: undefined;
21
- } | {
22
- value: RegExp;
23
- expectedValidate: boolean;
24
- expectedVersion?: undefined;
25
- } | {
26
- value: Date;
27
- expectedValidate: boolean;
28
- expectedVersion?: undefined;
29
- } | {
30
- value: boolean;
31
- expectedValidate: boolean;
32
- expectedVersion?: undefined;
33
- })[];
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TESTS = void 0;
4
- const max_js_1 = require("../max.js");
5
- const nil_js_1 = require("../nil.js");
6
- exports.TESTS = [
7
- { value: nil_js_1.default, expectedValidate: true, expectedVersion: 0 },
8
- { value: max_js_1.default, expectedValidate: true, expectedVersion: 15 },
9
- { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 },
10
- { value: 'ffffffff-ffff-1fff-8fff-ffffffffffff', expectedValidate: true, expectedVersion: 1 },
11
- { value: '00000000-0000-2000-8000-000000000000', expectedValidate: true, expectedVersion: 2 },
12
- { value: 'ffffffff-ffff-2fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 2 },
13
- { value: '00000000-0000-3000-8000-000000000000', expectedValidate: true, expectedVersion: 3 },
14
- { value: 'ffffffff-ffff-3fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 3 },
15
- { value: '00000000-0000-4000-8000-000000000000', expectedValidate: true, expectedVersion: 4 },
16
- { value: 'ffffffff-ffff-4fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 4 },
17
- { value: '00000000-0000-5000-8000-000000000000', expectedValidate: true, expectedVersion: 5 },
18
- { value: 'ffffffff-ffff-5fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 5 },
19
- { value: '00000000-0000-6000-8000-000000000000', expectedValidate: true, expectedVersion: 6 },
20
- { value: 'ffffffff-ffff-6fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 6 },
21
- { value: '00000000-0000-7000-8000-000000000000', expectedValidate: true, expectedVersion: 7 },
22
- { value: 'ffffffff-ffff-7fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 7 },
23
- { value: '00000000-0000-8000-8000-000000000000', expectedValidate: true, expectedVersion: 8 },
24
- { value: 'ffffffff-ffff-8fff-bfff-ffffffffffff', expectedValidate: true, expectedVersion: 8 },
25
- { value: '00000000-0000-9000-8000-000000000000', expectedValidate: false },
26
- { value: 'ffffffff-ffff-9fff-bfff-ffffffffffff', expectedValidate: false },
27
- { value: '00000000-0000-a000-8000-000000000000', expectedValidate: false },
28
- { value: 'ffffffff-ffff-afff-bfff-ffffffffffff', expectedValidate: false },
29
- { value: '00000000-0000-b000-8000-000000000000', expectedValidate: false },
30
- { value: 'ffffffff-ffff-bfff-bfff-ffffffffffff', expectedValidate: false },
31
- { value: '00000000-0000-c000-8000-000000000000', expectedValidate: false },
32
- { value: 'ffffffff-ffff-cfff-bfff-ffffffffffff', expectedValidate: false },
33
- { value: '00000000-0000-d000-8000-000000000000', expectedValidate: false },
34
- { value: 'ffffffff-ffff-dfff-bfff-ffffffffffff', expectedValidate: false },
35
- { value: '00000000-0000-e000-8000-000000000000', expectedValidate: false },
36
- { value: 'ffffffff-ffff-efff-bfff-ffffffffffff', expectedValidate: false },
37
- { value: 'd9428888-122b-11e1-b85c-61cd3cbb3210', expectedValidate: true, expectedVersion: 1 },
38
- { value: '000003e8-2363-21ef-b200-325096b39f47', expectedValidate: true, expectedVersion: 2 },
39
- { value: 'a981a0c2-68b1-35dc-bcfc-296e52ab01ec', expectedValidate: true, expectedVersion: 3 },
40
- { value: '109156be-c4fb-41ea-b1b4-efe1671c5836', expectedValidate: true, expectedVersion: 4 },
41
- { value: '90123e1c-7512-523e-bb28-76fab9f2f73d', expectedValidate: true, expectedVersion: 5 },
42
- { value: '1ef21d2f-1207-6660-8c4f-419efbd44d48', expectedValidate: true, expectedVersion: 6 },
43
- { value: '017f22e2-79b0-7cc3-98c4-dc0c0c07398f', expectedValidate: true, expectedVersion: 7 },
44
- { value: '0d8f23a0-697f-83ae-802e-48f3756dd581', expectedValidate: true, expectedVersion: 8 },
45
- { value: '00000000-0000-1000-0000-000000000000', expectedValidate: false },
46
- { value: '00000000-0000-1000-1000-000000000000', expectedValidate: false },
47
- { value: '00000000-0000-1000-2000-000000000000', expectedValidate: false },
48
- { value: '00000000-0000-1000-3000-000000000000', expectedValidate: false },
49
- { value: '00000000-0000-1000-4000-000000000000', expectedValidate: false },
50
- { value: '00000000-0000-1000-5000-000000000000', expectedValidate: false },
51
- { value: '00000000-0000-1000-6000-000000000000', expectedValidate: false },
52
- { value: '00000000-0000-1000-7000-000000000000', expectedValidate: false },
53
- { value: '00000000-0000-1000-8000-000000000000', expectedValidate: true, expectedVersion: 1 },
54
- { value: '00000000-0000-1000-9000-000000000000', expectedValidate: true, expectedVersion: 1 },
55
- { value: '00000000-0000-1000-a000-000000000000', expectedValidate: true, expectedVersion: 1 },
56
- { value: '00000000-0000-1000-b000-000000000000', expectedValidate: true, expectedVersion: 1 },
57
- { value: '00000000-0000-1000-c000-000000000000', expectedValidate: false },
58
- { value: '00000000-0000-1000-d000-000000000000', expectedValidate: false },
59
- { value: '00000000-0000-1000-e000-000000000000', expectedValidate: false },
60
- { value: '00000000-0000-1000-f000-000000000000', expectedValidate: false },
61
- { value: '00000000000000000000000000000000', expectedValidate: false },
62
- { value: '', expectedValidate: false },
63
- { value: 'invalid uuid string', expectedValidate: false },
64
- {
65
- value: '=Y00a-f*vb*-c-d#-p00f\b-g0h-#i^-j*3&-L00k-\nl---00n-fg000-00p-00r+',
66
- expectedValidate: false,
67
- },
68
- { value: undefined, expectedValidate: false },
69
- { value: null, expectedValidate: false },
70
- { value: 123, expectedValidate: false },
71
- { value: /regex/, expectedValidate: false },
72
- { value: new Date(0), expectedValidate: false },
73
- { value: false, expectedValidate: false },
74
- ];
75
- for (let charIndex = 0; charIndex < 36; charIndex++) {
76
- if (charIndex === 8 ||
77
- charIndex === 13 ||
78
- charIndex === 14 ||
79
- charIndex === 18 ||
80
- charIndex === 23) {
81
- continue;
82
- }
83
- const nilChars = nil_js_1.default.split('');
84
- const maxChars = max_js_1.default.split('');
85
- for (let i = 0; i < 4; i++) {
86
- nilChars[charIndex] = (0x0 ^ (1 << i)).toString(16);
87
- exports.TESTS.push({ value: nilChars.join(''), expectedValidate: false });
88
- maxChars[charIndex] = (0xf ^ (1 << i)).toString(16);
89
- exports.TESTS.push({ value: maxChars.join(''), expectedValidate: false });
90
- }
91
- }
@@ -1 +0,0 @@
1
- export {};