diff --git a/.changeset/esm-only.md b/.changeset/esm-only.md deleted file mode 100644 index b0f261b..0000000 --- a/.changeset/esm-only.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@labdigital/graphql-fetcher": minor ---- - -Publish as ESM-only. The CommonJS builds (`dist/*.cjs`) are removed; the `.`, `./server` and `./react` entry points now ship `dist/.js` + `dist/.d.ts` with `types` and `default` conditions. This also fixes the type resolution for `require`, which previously used the ESM declarations. CommonJS consumers on Node.js >= 22.12 can still `require()` the package. diff --git a/.changeset/security-updates-node22.md b/.changeset/security-updates-node22.md deleted file mode 100644 index aa3ea2b..0000000 --- a/.changeset/security-updates-node22.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@labdigital/graphql-fetcher": minor ---- - -Require Node.js >= 22 (Node 20 is EOL) and update development dependencies to resolve security advisories (vitest 4.1.12, @changesets/cli 3, knip 6.41, vite 8.3, postcss 8.5.30). diff --git a/CHANGELOG.md b/CHANGELOG.md index 1262936..d0a4844 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # @labdigital/graphql-fetcher +## 3.2.0 + +### Minor Changes + +- c2918c9: Publish as ESM-only. The CommonJS builds (`dist/*.cjs`) are removed; the `.`, `./server` and `./react` entry points now ship `dist/.js` + `dist/.d.ts` with `types` and `default` conditions. This also fixes the type resolution for `require`, which previously used the ESM declarations. CommonJS consumers on Node.js >= 22.12 can still `require()` the package. +- 4e62e93: Require Node.js >= 22 (Node 20 is EOL) and update development dependencies to resolve security advisories (vitest 4.1.12, @changesets/cli 3, knip 6.41, vite 8.3, postcss 8.5.30). + ## 3.1.0 ### Minor Changes diff --git a/package.json b/package.json index 421d0d5..10735c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labdigital/graphql-fetcher", - "version": "3.1.0", + "version": "3.2.0", "description": "Custom fetcher for react-query to use with @labdigital/node-federated-token", "type": "module", "main": "./dist/index.js",