diff --git a/bun.lock b/bun.lock index c4bf343..f8a04e9 100644 --- a/bun.lock +++ b/bun.lock @@ -14,18 +14,19 @@ }, "packages/adapters": { "name": "@abacatepay/adapters", - "version": "1.0.2", + "version": "2.0.2", "dependencies": { - "@abacatepay/zod": "^1.0.0", + "@abacatepay/zod": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0", }, }, "packages/better-auth": { "name": "@abacatepay/better-auth", - "version": "1.0.0", + "version": "1.0.2", "devDependencies": { "@biomejs/biome": "^2.3.11", "typescript": "^5.0.0", @@ -36,9 +37,9 @@ }, "packages/elysia": { "name": "@abacatepay/elysia", - "version": "1.0.2", + "version": "2.0.2", "dependencies": { - "@abacatepay/adapters": "^1.0.1", + "@abacatepay/adapters": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", @@ -50,7 +51,7 @@ }, "packages/eslint-plugin": { "name": "@abacatepay/eslint-plugin", - "version": "0.1.2", + "version": "0.1.4", "devDependencies": { "@types/eslint": "^9.6.1", "typescript": "^5", @@ -61,9 +62,9 @@ }, "packages/express": { "name": "@abacatepay/express", - "version": "1.0.2", + "version": "2.0.2", "dependencies": { - "@abacatepay/adapters": "^1.0.1", + "@abacatepay/adapters": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", @@ -76,9 +77,9 @@ }, "packages/fastify": { "name": "@abacatepay/fastify", - "version": "1.0.3", + "version": "2.0.2", "dependencies": { - "@abacatepay/adapters": "^1.0.1", + "@abacatepay/adapters": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", @@ -90,9 +91,9 @@ }, "packages/hono": { "name": "@abacatepay/hono", - "version": "1.0.1", + "version": "2.0.2", "dependencies": { - "@abacatepay/adapters": "^1.0.1", + "@abacatepay/adapters": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", @@ -104,29 +105,31 @@ }, "packages/rest": { "name": "@abacatepay/rest", - "version": "0.0.3", + "version": "1.0.1", "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0", }, }, "packages/sdk": { "name": "@abacatepay/sdk", - "version": "1.2.0", + "version": "2.0.2", "dependencies": { - "@abacatepay/rest": "^0.0.3", - "@abacatepay/types": "^2.0.3", + "@abacatepay/rest": "^1.0.0", + "@abacatepay/types": "^3.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0", }, }, "packages/supabase": { "name": "@abacatepay/supabase", - "version": "1.0.3", + "version": "2.0.2", "dependencies": { - "@abacatepay/adapters": "^1.0.1", + "@abacatepay/adapters": "^2.0.0", }, "devDependencies": { "@biomejs/biome": "^2.3.11", @@ -135,9 +138,10 @@ }, "packages/typebox": { "name": "@abacatepay/typebox", - "version": "1.0.1", + "version": "2.0.2", "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0", }, "peerDependencies": { @@ -147,17 +151,19 @@ }, "packages/types": { "name": "@abacatepay/types", - "version": "2.0.3", + "version": "3.0.2", "devDependencies": { "@biomejs/biome": "^2.3.8", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.9.3", }, }, "packages/zod": { "name": "@abacatepay/zod", - "version": "1.0.1", + "version": "2.0.2", "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0", }, "peerDependencies": { @@ -433,6 +439,8 @@ "dot-prop": ["dot-prop@5.3.0", "", { "dependencies": { "is-obj": "^2.0.0" } }, "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q=="], + "dts-bundle-generator": ["dts-bundle-generator@9.5.1", "", { "dependencies": { "typescript": ">=5.0.2", "yargs": "^17.6.0" }, "bin": { "dts-bundle-generator": "dist/bin/dts-bundle-generator.js" } }, "sha512-DxpJOb2FNnEyOzMkG11sxO2dmxPjthoVWxfKqWYJ/bI/rT1rvTMktF5EKjAYrRZu6Z6t3NhOUZ0sZ5ZXevOfbA=="], + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], @@ -839,6 +847,8 @@ "@abacatepay/supabase/@biomejs/biome": ["@biomejs/biome@2.3.12", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.12", "@biomejs/cli-darwin-x64": "2.3.12", "@biomejs/cli-linux-arm64": "2.3.12", "@biomejs/cli-linux-arm64-musl": "2.3.12", "@biomejs/cli-linux-x64": "2.3.12", "@biomejs/cli-linux-x64-musl": "2.3.12", "@biomejs/cli-win32-arm64": "2.3.12", "@biomejs/cli-win32-x64": "2.3.12" }, "bin": { "biome": "bin/biome" } }, "sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA=="], + "@abacatepay/typebox/@biomejs/biome": ["@biomejs/biome@2.3.12", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.12", "@biomejs/cli-darwin-x64": "2.3.12", "@biomejs/cli-linux-arm64": "2.3.12", "@biomejs/cli-linux-arm64-musl": "2.3.12", "@biomejs/cli-linux-x64": "2.3.12", "@biomejs/cli-linux-x64-musl": "2.3.12", "@biomejs/cli-win32-arm64": "2.3.12", "@biomejs/cli-win32-x64": "2.3.12" }, "bin": { "biome": "bin/biome" } }, "sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA=="], + "@abacatepay/types/@biomejs/biome": ["@biomejs/biome@2.3.12", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.12", "@biomejs/cli-darwin-x64": "2.3.12", "@biomejs/cli-linux-arm64": "2.3.12", "@biomejs/cli-linux-arm64-musl": "2.3.12", "@biomejs/cli-linux-x64": "2.3.12", "@biomejs/cli-linux-x64-musl": "2.3.12", "@biomejs/cli-win32-arm64": "2.3.12", "@biomejs/cli-win32-x64": "2.3.12" }, "bin": { "biome": "bin/biome" } }, "sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA=="], "@abacatepay/zod/@biomejs/biome": ["@biomejs/biome@2.3.12", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.12", "@biomejs/cli-darwin-x64": "2.3.12", "@biomejs/cli-linux-arm64": "2.3.12", "@biomejs/cli-linux-arm64-musl": "2.3.12", "@biomejs/cli-linux-x64": "2.3.12", "@biomejs/cli-linux-x64-musl": "2.3.12", "@biomejs/cli-win32-arm64": "2.3.12", "@biomejs/cli-win32-x64": "2.3.12" }, "bin": { "biome": "bin/biome" } }, "sha512-AR7h4aSlAvXj7TAajW/V12BOw2EiS0AqZWV5dGozf4nlLoUF/ifvD0+YgKSskT0ylA6dY1A8AwgP8kZ6yaCQnA=="], @@ -1013,6 +1023,22 @@ "@abacatepay/supabase/@biomejs/biome/@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.12", "", { "os": "win32", "cpu": "x64" }, "sha512-qqGVWqNNek0KikwPZlOIoxtXgsNGsX+rgdEzgw82Re8nF02W+E2WokaQhpF5TdBh/D/RQ3TLppH+otp6ztN0lw=="], + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-cO6fn+KiMBemva6EARDLQBxeyvLzgidaFRJi8G7OeRqz54kWK0E+uSjgFaiHlc3DZYoa0+1UFE8mDxozpc9ieg=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-/fiF/qmudKwSdvmSrSe/gOTkW77mHHkH8Iy7YC2rmpLuk27kbaUOPa7kPiH5l+3lJzTUfU/t6x1OuIq/7SGtxg=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-nbOsuQROa3DLla5vvsTZg+T5WVPGi9/vYxETm9BOuLHBJN3oWQIg3MIkE2OfL18df1ZtNkqXkH6Yg9mdTPem7A=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-aqkeSf7IH+wkzFpKeDVPSXy9uDjxtLpYA6yzkYsY+tVjwFFirSuajHDI3ul8en90XNs1NA0n8kgBrjwRi5JeyA=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.12", "", { "os": "linux", "cpu": "x64" }, "sha512-CQtqrJ+qEEI8tgRSTjjzk6wJAwfH3wQlkIGsM5dlecfRZaoT+XCms/mf7G4kWNexrke6mnkRzNy6w8ebV177ow=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.12", "", { "os": "linux", "cpu": "x64" }, "sha512-kVGWtupRRsOjvw47YFkk5mLiAdpCPMWBo1jOwAzh+juDpUb2sWarIp+iq+CPL1Wt0LLZnYtP7hH5kD6fskcxmg=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.12", "", { "os": "win32", "cpu": "arm64" }, "sha512-Re4I7UnOoyE4kHMqpgtG6UvSBGBbbtvsOvBROgCCoH7EgANN6plSQhvo2W7OCITvTp7gD6oZOyZy72lUdXjqZg=="], + + "@abacatepay/typebox/@biomejs/biome/@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.12", "", { "os": "win32", "cpu": "x64" }, "sha512-qqGVWqNNek0KikwPZlOIoxtXgsNGsX+rgdEzgw82Re8nF02W+E2WokaQhpF5TdBh/D/RQ3TLppH+otp6ztN0lw=="], + "@abacatepay/types/@biomejs/biome/@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-cO6fn+KiMBemva6EARDLQBxeyvLzgidaFRJi8G7OeRqz54kWK0E+uSjgFaiHlc3DZYoa0+1UFE8mDxozpc9ieg=="], "@abacatepay/types/@biomejs/biome/@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-/fiF/qmudKwSdvmSrSe/gOTkW77mHHkH8Iy7YC2rmpLuk27kbaUOPa7kPiH5l+3lJzTUfU/t6x1OuIq/7SGtxg=="], diff --git a/packages/adapters/CHANGELOG.md b/packages/adapters/CHANGELOG.md index b7eab27..1a3a100 100644 --- a/packages/adapters/CHANGELOG.md +++ b/packages/adapters/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/adapters` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- Declaration files (`.d.ts`) are now bundled into a single self-contained file per entrypoint (via `dts-bundle-generator`), same as the `.js` output already was. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions` from the unbundled `.d.ts` output the earlier `.js`-bundling fix never touched. `@abacatepay/zod` stays as a real `import` in the bundled declaration, not inlined. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/adapters/package.json b/packages/adapters/package.json index 90b3adb..72fa7b9 100644 --- a/packages/adapters/package.json +++ b/packages/adapters/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/adapters", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" @@ -19,6 +19,7 @@ "main": "./dist/index.js", "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0" }, "exports": { @@ -54,7 +55,7 @@ "scripts": { "test": "bun test", "build": "rm -rf dist && bun run scripts/version.ts && bun build src/index.ts src/webhooks/index.ts --outdir dist --target node --external '@abacatepay/zod' --external '@abacatepay/zod/*' && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/webhooks/index.d.ts src/webhooks/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build" }, "sideEffects": false, diff --git a/packages/adapters/src/version.ts b/packages/adapters/src/version.ts index 6d25f7f..8ae74d5 100644 --- a/packages/adapters/src/version.ts +++ b/packages/adapters/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/adapters](https://www.npmjs.com/package/@abacatepay/adapters). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/better-auth/CHANGELOG.md b/packages/better-auth/CHANGELOG.md index a25b015..583f35e 100644 --- a/packages/better-auth/CHANGELOG.md +++ b/packages/better-auth/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/better-auth` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [1.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [1.0.2] - 2026-07-27 ### Fixed diff --git a/packages/better-auth/package.json b/packages/better-auth/package.json index 295a057..26ff02c 100644 --- a/packages/better-auth/package.json +++ b/packages/better-auth/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/better-auth", - "version": "1.0.2", + "version": "1.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/better-auth/src/index.ts b/packages/better-auth/src/index.ts index 1b98705..a97dc1a 100644 --- a/packages/better-auth/src/index.ts +++ b/packages/better-auth/src/index.ts @@ -1 +1 @@ -export { version } from './version'; +export { version } from './version.js'; diff --git a/packages/better-auth/src/version.ts b/packages/better-auth/src/version.ts index b83418a..1c55229 100644 --- a/packages/better-auth/src/version.ts +++ b/packages/better-auth/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/better-auth](https://www.npmjs.com/package/@abacatepay/better-auth). */ -export const version = '1.0.2' as const; +export const version = '1.0.3' as const; diff --git a/packages/elysia/CHANGELOG.md b/packages/elysia/CHANGELOG.md index 50fe194..a91d19f 100644 --- a/packages/elysia/CHANGELOG.md +++ b/packages/elysia/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/elysia` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/elysia/package.json b/packages/elysia/package.json index 56f90ae..2006fad 100644 --- a/packages/elysia/package.json +++ b/packages/elysia/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/elysia", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/elysia/src/index.ts b/packages/elysia/src/index.ts index 6a72b4f..3945c31 100644 --- a/packages/elysia/src/index.ts +++ b/packages/elysia/src/index.ts @@ -6,7 +6,7 @@ import { } from '@abacatepay/adapters/webhooks'; import { type Context, status } from 'elysia'; -export { version } from './version'; +export { version } from './version.js'; export type WebhooksHandler = (context: Context) => Promise; diff --git a/packages/elysia/src/version.ts b/packages/elysia/src/version.ts index 67878f8..925fbf4 100644 --- a/packages/elysia/src/version.ts +++ b/packages/elysia/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/elysia](https://www.npmjs.com/package/@abacatepay/elysia). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index d3b3446..2853293 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/eslint-plugin` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.1.5] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s internal reference (`import noSecretKey from './rules/no-secret-key'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [0.1.4] - 2026-07-27 ### Fixed diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 9fa3de1..f4fb815 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/eslint-plugin", - "version": "0.1.4", + "version": "0.1.5", "type": "module", "main": "dist/index.js", "exports": { diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.ts index d3566ad..47ccb9b 100644 --- a/packages/eslint-plugin/src/index.ts +++ b/packages/eslint-plugin/src/index.ts @@ -1,4 +1,4 @@ -import noSecretKey from './rules/no-secret-key'; +import noSecretKey from './rules/no-secret-key.js'; const plugin = { rules: { diff --git a/packages/eslint-plugin/src/version.ts b/packages/eslint-plugin/src/version.ts index 9de6d10..29fb291 100644 --- a/packages/eslint-plugin/src/version.ts +++ b/packages/eslint-plugin/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/eslint-plugin](https://www.npmjs.com/package/@abacatepay/eslint-plugin). */ -export const version = '0.1.4' as const; +export const version = '0.1.5' as const; diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index 7a43203..fd97630 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/express` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/express/package.json b/packages/express/package.json index 32808f4..83397d0 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/express", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/express/src/index.ts b/packages/express/src/index.ts index 4e2382c..96e1d45 100644 --- a/packages/express/src/index.ts +++ b/packages/express/src/index.ts @@ -10,7 +10,7 @@ const BAD_REQUEST_STATUS_CODE = 400; const UNAUTHORIZED_STATUS_CODE = 401; const NO_CONTENT_STATUS_CODE = 204; -export { version } from './version'; +export { version } from './version.js'; export type WebhooksHandler = ( req: Request, diff --git a/packages/express/src/version.ts b/packages/express/src/version.ts index dbb112e..a432ce4 100644 --- a/packages/express/src/version.ts +++ b/packages/express/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/express](https://www.npmjs.com/package/@abacatepay/express). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 2625539..ee59360 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/fastify` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 09408ee..20e361b 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/fastify", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/fastify/src/index.ts b/packages/fastify/src/index.ts index 208e4cc..542cba0 100644 --- a/packages/fastify/src/index.ts +++ b/packages/fastify/src/index.ts @@ -10,7 +10,7 @@ const BAD_REQUEST_STATUS_CODE = 400; const UNAUTHORIZED_STATUS_CODE = 401; const NO_CONTENT_STATUS_CODE = 204; -export { version } from './version'; +export { version } from './version.js'; export type WebhooksHandler = ( req: FastifyRequest, diff --git a/packages/fastify/src/version.ts b/packages/fastify/src/version.ts index 2c3bb31..083a6df 100644 --- a/packages/fastify/src/version.ts +++ b/packages/fastify/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/fastify](https://www.npmjs.com/package/@abacatepay/fastify). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/hono/CHANGELOG.md b/packages/hono/CHANGELOG.md index 7e83afe..4747a1e 100644 --- a/packages/hono/CHANGELOG.md +++ b/packages/hono/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/hono` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/hono/package.json b/packages/hono/package.json index 1188732..719ce15 100644 --- a/packages/hono/package.json +++ b/packages/hono/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/hono", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/hono/src/index.ts b/packages/hono/src/index.ts index e4bc8f5..ac21017 100644 --- a/packages/hono/src/index.ts +++ b/packages/hono/src/index.ts @@ -9,7 +9,7 @@ import type { Context } from 'hono'; const BAD_REQUEST_STATUS_CODE = 400; const UNAUTHORIZED_STATUS_CODE = 401; -export { version } from './version'; +export { version } from './version.js'; export type WebhooksHandler = (ctx: Context) => Promise; diff --git a/packages/hono/src/version.ts b/packages/hono/src/version.ts index 7178af3..01c239d 100644 --- a/packages/hono/src/version.ts +++ b/packages/hono/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/hono](https://www.npmjs.com/package/@abacatepay/hono). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/rest/CHANGELOG.md b/packages/rest/CHANGELOG.md index 6398600..0753047 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/rest` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [1.0.2] - 2026-07-27 + +### Fixed + +- Declaration file (`.d.ts`) is now bundled into a single self-contained file (via `dts-bundle-generator`), same as the `.js` output already was. The `.js` bundling fix never touched declaration emission — `tsc --emitDeclarationOnly` still walked the original multi-file source tree (`client.ts`, `types.ts`, `utils.ts`, `version.ts`), so `dist/index.d.ts` still had extension-less relative exports. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [1.0.1] - 2026-07-27 ### Fixed diff --git a/packages/rest/package.json b/packages/rest/package.json index a2b798f..efb7d46 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/rest", - "version": "1.0.1", + "version": "1.0.2", "type": "module", "sideEffects": false, "license": "Apache-2.0", @@ -31,7 +31,7 @@ "scripts": { "test": "bun test", "build": "rm -rf dist && bun run scripts/version.ts && bun build src/index.ts --outdir dist --target node && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build" }, "engines": { @@ -55,6 +55,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0" }, "description": "A REST client for AbacatePay API" diff --git a/packages/rest/src/version.ts b/packages/rest/src/version.ts index 49c4531..525c728 100644 --- a/packages/rest/src/version.ts +++ b/packages/rest/src/version.ts @@ -3,7 +3,7 @@ /** * Current version of [@abacatepay/rest](https://www.npmjs.com/package/@abacatepay/rest). */ -export const version = '1.0.1' as const; +export const version = '1.0.2' as const; /** * Current version of the AbacatePay API. */ diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 2288fcb..dfa956f 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/sdk` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- Declaration files (`.d.ts`) are now bundled into a single self-contained file per entrypoint (via `dts-bundle-generator`), same as the `.js` output already was. Found by testing a real, strict TypeScript consumer (`moduleResolution: "nodenext"`): `dist/index.d.ts` still said `export * from './v2'` after the earlier `.js`-bundling fix, since declaration emission is a separate step that walks the original unbundled source. `@abacatepay/rest`/`@abacatepay/types` stay as real `import`s in the bundled declaration (not inlined) — inlining would have silently duplicated `@abacatepay/types`'s `enum` declarations into a nominally incompatible copy, breaking any consumer code that mixes a value returned by this SDK with a type imported directly from `@abacatepay/types`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 3a88eff..05263e7 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/sdk", - "version": "2.0.2", + "version": "2.0.3", "type": "module", "sideEffects": false, "license": "Apache-2.0", @@ -47,7 +47,7 @@ "scripts": { "test": "bun test", "build": "rm -rf dist && bun run scripts/version.ts && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node --external '@abacatepay/rest' --external '@abacatepay/rest/*' --external '@abacatepay/types' --external '@abacatepay/types/*' && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v1/index.d.ts src/v1/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v2/index.d.ts src/v2/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build" }, "engines": { @@ -71,6 +71,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0" }, "description": "An ergonomic SDK for integration with AbacatePay", diff --git a/packages/sdk/src/version.ts b/packages/sdk/src/version.ts index 9dda0bf..399c724 100644 --- a/packages/sdk/src/version.ts +++ b/packages/sdk/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/sdk](https://www.npmjs.com/package/@abacatepay/sdk). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/supabase/CHANGELOG.md b/packages/supabase/CHANGELOG.md index 51522b5..90eb72f 100644 --- a/packages/supabase/CHANGELOG.md +++ b/packages/supabase/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/supabase` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- `dist/index.d.ts`'s one internal reference (`export { version } from './version'`) now has an explicit `.js` extension. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions`. + ## [2.0.2] - 2026-07-27 ### Changed diff --git a/packages/supabase/package.json b/packages/supabase/package.json index 1d29254..a4cf56c 100644 --- a/packages/supabase/package.json +++ b/packages/supabase/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/supabase", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "git+https://github.com/AbacatePay/ecosystem.git" diff --git a/packages/supabase/src/index.ts b/packages/supabase/src/index.ts index 2e3e37c..ba89aff 100644 --- a/packages/supabase/src/index.ts +++ b/packages/supabase/src/index.ts @@ -9,7 +9,7 @@ const NO_CONTENT = 204; const BAD_REQUEST = 400; const UNAUTHORIZED = 401; -export { version } from './version'; +export { version } from './version.js'; export type WebhooksHandler = (req: Request) => Promise; diff --git a/packages/supabase/src/version.ts b/packages/supabase/src/version.ts index 2cc2ca7..1ef4a84 100644 --- a/packages/supabase/src/version.ts +++ b/packages/supabase/src/version.ts @@ -3,4 +3,4 @@ /** * Current version of [@abacatepay/supabase](https://www.npmjs.com/package/@abacatepay/supabase). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; diff --git a/packages/typebox/CHANGELOG.md b/packages/typebox/CHANGELOG.md index 46f7092..84db3d9 100644 --- a/packages/typebox/CHANGELOG.md +++ b/packages/typebox/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/typebox` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- Declaration files (`.d.ts`) are now bundled into a single self-contained file per entrypoint (via `dts-bundle-generator`), same as the `.js` output already was. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions` from the unbundled `.d.ts` output the earlier `.js`-bundling fix never touched. + ## [2.0.2] - 2026-07-27 ### Fixed diff --git a/packages/typebox/package.json b/packages/typebox/package.json index 9f6e724..d634d16 100644 --- a/packages/typebox/package.json +++ b/packages/typebox/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/typebox", - "version": "2.0.2", + "version": "2.0.3", "description": "Official TypeBox schemas for the AbacatePay API, including requests, responses, and webhooks.", "type": "module", "sideEffects": false, @@ -59,7 +59,7 @@ "scripts": { "test": "bun test", "build": "rm -rf dist && bun run gen:version && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v1/index.d.ts src/v1/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v2/index.d.ts src/v2/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build", "gen:version": "bun run scripts/version.ts" }, @@ -83,6 +83,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0" }, "peerDependencies": { diff --git a/packages/typebox/src/version.ts b/packages/typebox/src/version.ts index b91181e..fa70489 100644 --- a/packages/typebox/src/version.ts +++ b/packages/typebox/src/version.ts @@ -3,7 +3,7 @@ /** * Current version of [@abacatepay/typebox](https://www.npmjs.com/package/@abacatepay/typebox). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; /** * Current version of the AbacatePay API. */ diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index e6ab87d..e0c2261 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/types` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [3.0.3] - 2026-07-27 + +### Fixed + +- Declaration files (`.d.ts`) are now bundled into a single self-contained file per entrypoint (via `dts-bundle-generator`), same as the `.js` output already was. Fixing the `.js` bundling earlier didn't touch declaration emission at all — `tsc --emitDeclarationOnly` still walked the original unbundled source tree, so `dist/v2/index.d.ts` still had extension-less relative exports like `export * from './entities/checkout'`. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` (a common, often-recommended setting) would get `error TS2834: Relative import paths need explicit file extensions`. Cross-package types (nothing to bundle against here, but see `@abacatepay/sdk`'s changelog) stay as real `import`s, not inlined — inlining would have silently duplicated the `enum` declarations (`PaymentStatus`, `PaymentMethod`, etc.) into a nominally incompatible copy for anyone using both packages together. + ## [3.0.2] - 2026-07-27 ### Fixed diff --git a/packages/types/package.json b/packages/types/package.json index 6c9a9ae..5882349 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,5 +1,5 @@ { - "version": "3.0.2", + "version": "3.0.3", "name": "@abacatepay/types", "description": "Abacate Pay API typings that are always up to date.", "type": "module", @@ -45,7 +45,7 @@ ], "scripts": { "build": "rm -rf dist && bun run gen:version && bun build types/index.ts types/v1/index.ts types/v2/index.ts --outdir dist --target node && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts types/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v1/index.d.ts types/v1/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v2/index.d.ts types/v2/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build", "gen:version": "bun run scripts/version.ts", "test": "bun test", @@ -53,6 +53,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.8", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.9.3" }, "author": { diff --git a/packages/types/types/version.ts b/packages/types/types/version.ts index 0e51873..8528b5c 100644 --- a/packages/types/types/version.ts +++ b/packages/types/types/version.ts @@ -3,7 +3,7 @@ /** * Current version of [@abacatepay/types](https://www.npmjs.com/package/@abacatepay/types). */ -export const version = '3.0.2' as const; +export const version = '3.0.3' as const; /** * Current version of the AbacatePay API. */ diff --git a/packages/zod/CHANGELOG.md b/packages/zod/CHANGELOG.md index ba8f16a..59f3399 100644 --- a/packages/zod/CHANGELOG.md +++ b/packages/zod/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `@abacatepay/zod` are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.0.3] - 2026-07-27 + +### Fixed + +- Declaration files (`.d.ts`) are now bundled into a single self-contained file per entrypoint (via `dts-bundle-generator`), same as the `.js` output already was. Any TypeScript consumer using `moduleResolution: "nodenext"`/`"node16"` would get `error TS2834: Relative import paths need explicit file extensions` from the unbundled `.d.ts` output the earlier `.js`-bundling fix never touched. + ## [2.0.2] - 2026-07-27 ### Fixed diff --git a/packages/zod/package.json b/packages/zod/package.json index 91e974b..a2ff602 100644 --- a/packages/zod/package.json +++ b/packages/zod/package.json @@ -1,6 +1,6 @@ { "name": "@abacatepay/zod", - "version": "2.0.2", + "version": "2.0.3", "description": "Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.", "type": "module", "sideEffects": false, @@ -63,7 +63,7 @@ "scripts": { "test": "bun test", "build": "rm -rf dist && bun run gen:version && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node && bun run types", - "types": "bunx tsc --emitDeclarationOnly", + "types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v1/index.d.ts src/v1/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v2/index.d.ts src/v2/index.ts --disable-symlinks-following", "prepublishOnly": "bun run build", "gen:version": "bun run scripts/version.ts" }, @@ -87,6 +87,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.11", + "dts-bundle-generator": "^9.5.1", "typescript": "^5.0.0" }, "peerDependencies": { diff --git a/packages/zod/src/version.ts b/packages/zod/src/version.ts index 5635a3f..c1e6f8c 100644 --- a/packages/zod/src/version.ts +++ b/packages/zod/src/version.ts @@ -3,7 +3,7 @@ /** * Current version of [@abacatepay/zod](https://www.npmjs.com/package/@abacatepay/zod). */ -export const version = '2.0.2' as const; +export const version = '2.0.3' as const; /** * Current version of the AbacatePay API. */