From b3f142f7efa6d335cd667413b8a5860d2dd04ebf Mon Sep 17 00:00:00 2001 From: Christoph Tavan Date: Tue, 12 Sep 2023 10:50:44 +0200 Subject: [PATCH 1/2] chore(release): 9.0.1 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4d3972c..7e4aab47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ 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. +### [9.0.1](https://github.com/uuidjs/uuid/compare/v9.0.0...v9.0.1) (2023-09-12) + ## [9.0.0](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) (2022-09-05) ### ⚠ BREAKING CHANGES diff --git a/package-lock.json b/package-lock.json index c4cfaf1f..b997326d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "uuid", - "version": "9.0.0", + "version": "9.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "uuid", - "version": "9.0.0", + "version": "9.0.1", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" diff --git a/package.json b/package.json index 2d39f6ac..6cc33618 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uuid", - "version": "9.0.0", + "version": "9.0.1", "description": "RFC4122 (v1, v4, and v5) UUIDs", "funding": [ "https://github.com/sponsors/broofa", From ddf309d6a0de0455147f0ebb5c6265b19acc49db Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Wed, 11 Oct 2023 15:48:03 -0700 Subject: [PATCH 2/2] fix: revert "perf: remove superfluous call to toLowerCase (#677)" (#738) --- src/stringify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stringify.js b/src/stringify.js index 3d15e61a..8e80d2d1 100644 --- a/src/stringify.js +++ b/src/stringify.js @@ -13,6 +13,9 @@ for (let i = 0; i < 256; ++i) { export function unsafeStringify(arr, offset = 0) { // Note: Be careful editing this code! It's been tuned for performance // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + // + // Note to future-self: No, you can't remove the `toLowerCase()` call. + // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351 return ( byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + @@ -34,7 +37,7 @@ export function unsafeStringify(arr, offset = 0) { byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]] - ); + ).toLowerCase(); } function stringify(arr, offset = 0) {