uuid 9.0.0 → 9.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [9.0.1](https://github.com/uuidjs/uuid/compare/v9.0.0...v9.0.1) (2023-09-12)
6
+
7
+ ### build
8
+
9
+ - Fix CI to work with Node.js 20.x
10
+
5
11
  ## [9.0.0](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) (2022-09-05)
6
12
 
7
13
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
  -- This file is auto-generated from README_js.md. Changes should be made there.
3
3
  -->
4
4
 
5
+
5
6
  # uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser)
6
7
 
7
8
  For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
@@ -9,7 +10,7 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
9
10
  - **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs
10
11
  - **Cross-platform** - Support for ...
11
12
  - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
12
- - Node 12, 14, 16, 18
13
+ - NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
13
14
  - Chrome, Safari, Firefox, Edge browsers
14
15
  - Webpack and rollup.js module bundlers
15
16
  - [React Native / Expo](#react-native--expo)
@@ -17,7 +18,9 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
17
18
  - **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
18
19
  - **CLI** - Includes the [`uuid` command line](#command-line) utility
19
20
 
20
- **Upgrading from `uuid@3`?** Your code is probably okay, but check out [Upgrading From `uuid@3`](#upgrading-from-uuid3) for details.
21
+ > **Note** Upgrading from `uuid@3`? Your code is probably okay, but check out [Upgrading From `uuid@3`](#upgrading-from-uuid3) for details.
22
+
23
+ > **Note** Only interested in creating a version 4 UUID? You might be able to use [`crypto.randomUUID()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID), eliminating the need to install this library.
21
24
 
22
25
  ## Quickstart
23
26
 
@@ -138,7 +141,7 @@ Create an RFC version 1 (timestamp) UUID
138
141
  | [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
139
142
  | [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
140
143
  | [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
141
- | [`options.nsecs`] | RFC "timestamp" field (`Number` of nanseconds to add to `msecs`, should be 0-10,000) |
144
+ | [`options.nsecs`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
142
145
  | [`options.random`] | `Array` of 16 random bytes (0-255) |
143
146
  | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
144
147
  | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
@@ -458,5 +461,6 @@ const uuid = require('uuid'); // <== REMOVED!
458
461
 
459
462
  This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`.
460
463
 
461
- ----
462
- Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](https://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
464
+ ---
465
+
466
+ Markdown generated from [README_js.md](README_js.md) by <a href="https://github.com/broofa/runmd"><image height="12px" src="https://camo.githubusercontent.com/5c7c603cd1e6a43370b0a5063d457e0dabb74cf317adc7baba183acb686ee8d0/687474703a2f2f692e696d6775722e636f6d2f634a4b6f3662552e706e67" /></a>
@@ -23,7 +23,7 @@ for (let i = 0; i < 256; ++i) {
23
23
  function unsafeStringify(arr, offset = 0) {
24
24
  // Note: Be careful editing this code! It's been tuned for performance
25
25
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
26
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
26
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
27
27
  }
28
28
 
29
29
  function stringify(arr, offset = 0) {
@@ -13,7 +13,7 @@ for (let i = 0; i < 256; ++i) {
13
13
  export function unsafeStringify(arr, offset = 0) {
14
14
  // Note: Be careful editing this code! It's been tuned for performance
15
15
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
16
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
16
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
17
17
  }
18
18
 
19
19
  function stringify(arr, offset = 0) {
@@ -13,7 +13,7 @@ for (let i = 0; i < 256; ++i) {
13
13
  export function unsafeStringify(arr, offset = 0) {
14
14
  // Note: Be careful editing this code! It's been tuned for performance
15
15
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
16
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
16
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
17
17
  }
18
18
 
19
19
  function stringify(arr, offset = 0) {
package/dist/stringify.js CHANGED
@@ -23,7 +23,7 @@ for (let i = 0; i < 256; ++i) {
23
23
  function unsafeStringify(arr, offset = 0) {
24
24
  // Note: Be careful editing this code! It's been tuned for performance
25
25
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
26
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
26
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
27
27
  }
28
28
 
29
29
  function stringify(arr, offset = 0) {
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "RFC4122 (v1, v4, and v5) UUIDs",
5
+ "funding": [
6
+ "https://github.com/sponsors/broofa",
7
+ "https://github.com/sponsors/ctavan"
8
+ ],
5
9
  "commitlint": {
6
10
  "extends": [
7
11
  "@commitlint/config-conventional"
@@ -71,7 +75,7 @@
71
75
  "optional-dev-dependency": "2.0.1",
72
76
  "prettier": "2.7.1",
73
77
  "random-seed": "0.3.0",
74
- "runmd": "1.3.6",
78
+ "runmd": "1.3.9",
75
79
  "standard-version": "9.5.0"
76
80
  },
77
81
  "optionalDevDependencies": {
@@ -105,7 +109,7 @@
105
109
  "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
106
110
  "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
107
111
  "md": "runmd --watch --output=README.md README_js.md",
108
- "docs": "( node --version | grep -q 'v16' ) && ( npm run build && runmd --output=README.md README_js.md )",
112
+ "docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
109
113
  "docs:diff": "npm run docs && git diff --quiet README.md",
110
114
  "build": "./scripts/build.sh",
111
115
  "prepack": "npm run build",