From 3a643a850411c72bb254791e60ade783efd524df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 22:12:58 +0000 Subject: [PATCH 1/2] chore(deps): bump uuid from 11.1.0 to 14.0.0 Bumps [uuid](https://github.com/uuidjs/uuid) from 11.1.0 to 14.0.0. - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](https://github.com/uuidjs/uuid/compare/v11.1.0...v14.0.0) --- updated-dependencies: - dependency-name: uuid dependency-version: 14.0.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f98428..0a3dffa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MPL-2.0", "dependencies": { "@hey-api/client-fetch": "0.12.0", - "uuid": "11.1.0" + "uuid": "14.0.0" }, "devDependencies": { "@eslint/js": "^9.29.0", @@ -10628,16 +10628,16 @@ } }, "node_modules/uuid": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", - "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz", + "integrity": "sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], "license": "MIT", "bin": { - "uuid": "dist/esm/bin/uuid" + "uuid": "dist-node/bin/uuid" } }, "node_modules/v8-to-istanbul": { diff --git a/package.json b/package.json index 951c197..93eb1b2 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "dependencies": { "@hey-api/client-fetch": "0.12.0", - "uuid": "11.1.0" + "uuid": "14.0.0" }, "devDependencies": { "@eslint/js": "^9.29.0", From 4bd7eeee8e6ac752e4dade12ecbe75710aaa96a8 Mon Sep 17 00:00:00 2001 From: ahanot Date: Mon, 25 May 2026 18:23:22 -0400 Subject: [PATCH 2/2] chore(test): fix Jest config to resolve uuid ESM after major bump uuid 12+ ships ESM-only. ts-jest was configured to only transform .ts/.tsx, and Jest's default transformIgnorePatterns ignores all of node_modules, so importing uuid from any test suite threw a SyntaxError on the ESM export. Extend ts-jest to also handle .js files (with allowJs + module=commonjs for the test environment only), and exempt uuid from transformIgnorePatterns so its ESM gets transformed. --- jest.config.mjs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jest.config.mjs b/jest.config.mjs index 767a60f..ae211c1 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -23,8 +23,20 @@ export default { testEnvironment: "jsdom", testPathIgnorePatterns: ["examples/tests"], transform: { - "^.+.(ts|tsx)?$": ["ts-jest", {}], + "^.+\\.(ts|tsx)$": ["ts-jest", {}], + "^.+\\.js$": ["ts-jest", { + useESM: false, + tsconfig: { + allowJs: true, + module: "commonjs", + esModuleInterop: true, + allowSyntheticDefaultImports: true, + }, + }], }, + transformIgnorePatterns: [ + "node_modules/(?!uuid/)", + ], moduleNameMapper: { "@/jest.setup": ["/jest.setup.ts"], "@/package.json": ["/package.json"],