diff --git a/README.md b/README.md index 46c54456..52356f61 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ -- This file is auto-generated from README_js.md. Changes should be made there. --> - # 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) -For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs +For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (formally [RFC4122](https://www.rfc-editor.org/rfc/rfc4122.html)) UUIDs -- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs +- **Complete** - Support for all RFC9562 UUID versions - **Cross-platform** - Support for ... - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds) - NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release)) @@ -173,7 +172,7 @@ Create an RFC version 1 (timestamp) UUID > [!NOTE] -> The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. +> The default [node id](https://datatracker.ietf.org/doc/html/rfc9562#section-5.1) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. > [!NOTE] @@ -386,7 +385,7 @@ Usage: uuid --help Note: may be "URL" or "DNS" to use the corresponding UUIDs -defined by RFC4122 +defined by RFC9562 ``` ## ECMAScript Modules @@ -521,6 +520,5 @@ const uuid = require('uuid'); // <== REMOVED! This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`. ---- - -Markdown generated from [README_js.md](README_js.md) by +---- +Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](https://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) \ No newline at end of file diff --git a/README_js.md b/README_js.md index 014b6c89..6e097eab 100644 --- a/README_js.md +++ b/README_js.md @@ -19,9 +19,9 @@ require('crypto').randomUUID = undefined; # 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) -For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs +For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (formally [RFC4122](https://www.rfc-editor.org/rfc/rfc4122.html)) UUIDs -- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs +- **Complete** - Support for RFC9562 version 1, 3, 4, 5, and 7 UUIDs - **Cross-platform** - Support for ... - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds) - NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release)) @@ -181,7 +181,7 @@ Create an RFC version 1 (timestamp) UUID > [!NOTE] -> The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. +> The default [node id](https://datatracker.ietf.org/doc/html/rfc9562#section-5.1) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. > [!NOTE] @@ -394,7 +394,7 @@ Usage: uuid --help Note: may be "URL" or "DNS" to use the corresponding UUIDs -defined by RFC4122 +defined by RFC9562 ``` ## ECMAScript Modules diff --git a/examples/benchmark/benchmark.js b/examples/benchmark/benchmark.js index beda5105..d5c51db1 100644 --- a/examples/benchmark/benchmark.js +++ b/examples/benchmark/benchmark.js @@ -46,7 +46,7 @@ export default function benchmark(uuid, Benchmark) { try { uuid.v1(null, array, 0); } catch (err) { - // The spec (https://tools.ietf.org/html/rfc4122#section-4.2.1.2) defines that only 10M/s v1 + // The spec (https://datatracker.ietf.org/doc/html/rfc9562#name-timestamp-considerations) defines that only 10M/s v1 // UUIDs can be generated on a single node. This library throws an error if we hit that limit // (which can happen on modern hardware and modern Node.js versions). } diff --git a/package.json b/package.json index 082b419b..9f90fa30 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "uuid", "version": "9.0.1", - "description": "RFC4122 (v1, v3, v4, v5, and v7) UUIDs", + "description": "RFC9562 UUIDs", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -14,7 +14,8 @@ "keywords": [ "uuid", "guid", - "rfc4122" + "rfc4122", + "rfc9562" ], "license": "MIT", "bin": { diff --git a/src/uuid-bin.js b/src/uuid-bin.js index 164e6458..9dcdd150 100644 --- a/src/uuid-bin.js +++ b/src/uuid-bin.js @@ -16,7 +16,7 @@ function usage() { console.log(' uuid v7'); console.log(' uuid --help'); console.log( - '\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122' + '\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562' ); }