From 6497f5772f84027a07ef2c728cb10b2f8a172dda Mon Sep 17 00:00:00 2001 From: Hadeeb Farhan <16823042+hadeeb@users.noreply.github.com> Date: Fri, 19 Apr 2024 05:30:06 +0530 Subject: [PATCH 1/4] fix(clerk-auth): export esm (#460) * fix(clerk-auth): export esm * update extension of `jest.config` --- .changeset/calm-taxis-smell.md | 5 +++++ .../{jest.config.js => jest.config.cjs} | 0 packages/clerk-auth/package.json | 20 ++++++++++++++++--- yarn.lock | 2 +- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .changeset/calm-taxis-smell.md rename packages/clerk-auth/{jest.config.js => jest.config.cjs} (100%) diff --git a/.changeset/calm-taxis-smell.md b/.changeset/calm-taxis-smell.md new file mode 100644 index 00000000..19919d8d --- /dev/null +++ b/.changeset/calm-taxis-smell.md @@ -0,0 +1,5 @@ +--- +'@hono/clerk-auth': patch +--- + +fix: export esm diff --git a/packages/clerk-auth/jest.config.js b/packages/clerk-auth/jest.config.cjs similarity index 100% rename from packages/clerk-auth/jest.config.js rename to packages/clerk-auth/jest.config.cjs diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index 69a52add..9f3af27b 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -2,17 +2,31 @@ "name": "@hono/clerk-auth", "version": "1.0.1", "description": "A third-party Clerk auth middleware for Hono", - "main": "dist/index.js", + "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "test": "jest", - "build": "rimraf dist && tsc", + "build": "tsup ./src/index.ts --format esm,cjs --dts", "prerelease": "yarn build && yarn test", "release": "yarn publish" }, + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } + } + }, "license": "MIT", "publishConfig": { "registry": "https://registry.npmjs.org", @@ -34,6 +48,6 @@ "jest": "^29.7.0", "node-fetch-native": "^1.4.0", "react": "^18.2.0", - "rimraf": "^5.0.5" + "tsup": "^8.0.1" } } diff --git a/yarn.lock b/yarn.lock index afd74818..f744899e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1824,7 +1824,7 @@ __metadata: jest: "npm:^29.7.0" node-fetch-native: "npm:^1.4.0" react: "npm:^18.2.0" - rimraf: "npm:^5.0.5" + tsup: "npm:^8.0.1" peerDependencies: "@clerk/backend": 0.30.* hono: ">=3.*" From afcb36f053bea47ba3225163480793a1ce5de3ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:06:11 +0900 Subject: [PATCH 2/4] Version Packages (#462) --- .changeset/calm-taxis-smell.md | 5 ----- packages/clerk-auth/CHANGELOG.md | 6 ++++++ packages/clerk-auth/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/calm-taxis-smell.md diff --git a/.changeset/calm-taxis-smell.md b/.changeset/calm-taxis-smell.md deleted file mode 100644 index 19919d8d..00000000 --- a/.changeset/calm-taxis-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hono/clerk-auth': patch ---- - -fix: export esm diff --git a/packages/clerk-auth/CHANGELOG.md b/packages/clerk-auth/CHANGELOG.md index c2d69163..08fd45fb 100644 --- a/packages/clerk-auth/CHANGELOG.md +++ b/packages/clerk-auth/CHANGELOG.md @@ -1,5 +1,11 @@ # @hono/clerk-auth +## 1.0.2 + +### Patch Changes + +- [#460](https://github.com/honojs/middleware/pull/460) [`6497f5772f84027a07ef2c728cb10b2f8a172dda`](https://github.com/honojs/middleware/commit/6497f5772f84027a07ef2c728cb10b2f8a172dda) Thanks [@hadeeb](https://github.com/hadeeb)! - fix: export esm + ## 1.0.1 ### Patch Changes diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index 9f3af27b..3ae296d2 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -1,6 +1,6 @@ { "name": "@hono/clerk-auth", - "version": "1.0.1", + "version": "1.0.2", "description": "A third-party Clerk auth middleware for Hono", "type": "module", "main": "dist/index.cjs", From 892ea7da85fb2c799eacc4d29651e1fa45a6aec0 Mon Sep 17 00:00:00 2001 From: Yudai Nakata Date: Sat, 20 Apr 2024 16:28:36 +0900 Subject: [PATCH 3/4] chore(peer-deps): install newer peer depenencies (#463) * chore(peer-deps): install newer peer depenencies fix #442. * chore: add a changeset entry * chore: update lockfile --- .changeset/eighty-doors-pull.md | 7 +++++++ packages/clerk-auth/package.json | 2 +- packages/typebox-validator/package.json | 2 +- packages/valibot-validator/package.json | 2 +- yarn.lock | 6 +++--- 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .changeset/eighty-doors-pull.md diff --git a/.changeset/eighty-doors-pull.md b/.changeset/eighty-doors-pull.md new file mode 100644 index 00000000..a329e1cc --- /dev/null +++ b/.changeset/eighty-doors-pull.md @@ -0,0 +1,7 @@ +--- +'@hono/typebox-validator': patch +'@hono/valibot-validator': patch +'@hono/clerk-auth': patch +--- + +Update peer dependencies so that newer validators can be installed. diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index 3ae296d2..513ec9bc 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -38,7 +38,7 @@ }, "homepage": "https://github.com/honojs/middleware", "peerDependencies": { - "@clerk/backend": "0.30.*", + "@clerk/backend": ">=0.30.0 <1", "hono": ">=3.*" }, "devDependencies": { diff --git a/packages/typebox-validator/package.json b/packages/typebox-validator/package.json index 7680bd62..911345f4 100644 --- a/packages/typebox-validator/package.json +++ b/packages/typebox-validator/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/honojs/middleware", "peerDependencies": { - "@sinclair/typebox": "^0.31.15", + "@sinclair/typebox": ">=0.31.15 <1", "hono": ">=3.9.0" }, "devDependencies": { diff --git a/packages/valibot-validator/package.json b/packages/valibot-validator/package.json index d714a0df..533ce8fc 100644 --- a/packages/valibot-validator/package.json +++ b/packages/valibot-validator/package.json @@ -28,7 +28,7 @@ "homepage": "https://github.com/honojs/middleware", "peerDependencies": { "hono": ">=3.9.0", - "valibot": "^0.13.1" + "valibot": ">=0.13.1 <1" }, "devDependencies": { "hono": "^3.11.7", diff --git a/yarn.lock b/yarn.lock index f744899e..c659deed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1826,7 +1826,7 @@ __metadata: react: "npm:^18.2.0" tsup: "npm:^8.0.1" peerDependencies: - "@clerk/backend": 0.30.* + "@clerk/backend": ">=0.30.0 <1" hono: ">=3.*" languageName: unknown linkType: soft @@ -2092,7 +2092,7 @@ __metadata: jest: "npm:^29.7.0" rimraf: "npm:^5.0.5" peerDependencies: - "@sinclair/typebox": ^0.31.15 + "@sinclair/typebox": ">=0.31.15 <1" hono: ">=3.9.0" languageName: unknown linkType: soft @@ -2121,7 +2121,7 @@ __metadata: valibot: "npm:^0.24.1" peerDependencies: hono: ">=3.9.0" - valibot: ^0.13.1 + valibot: ">=0.13.1 <1" languageName: unknown linkType: soft From 3c351e109738639e2858c9fb106c6fcb7fdd03c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Apr 2024 16:31:53 +0900 Subject: [PATCH 4/4] Version Packages (#464) --- .changeset/eighty-doors-pull.md | 7 ------- packages/clerk-auth/CHANGELOG.md | 6 ++++++ packages/clerk-auth/package.json | 2 +- packages/typebox-validator/CHANGELOG.md | 6 ++++++ packages/typebox-validator/package.json | 2 +- packages/valibot-validator/CHANGELOG.md | 6 ++++++ packages/valibot-validator/package.json | 2 +- 7 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 .changeset/eighty-doors-pull.md diff --git a/.changeset/eighty-doors-pull.md b/.changeset/eighty-doors-pull.md deleted file mode 100644 index a329e1cc..00000000 --- a/.changeset/eighty-doors-pull.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hono/typebox-validator': patch -'@hono/valibot-validator': patch -'@hono/clerk-auth': patch ---- - -Update peer dependencies so that newer validators can be installed. diff --git a/packages/clerk-auth/CHANGELOG.md b/packages/clerk-auth/CHANGELOG.md index 08fd45fb..0309bebc 100644 --- a/packages/clerk-auth/CHANGELOG.md +++ b/packages/clerk-auth/CHANGELOG.md @@ -1,5 +1,11 @@ # @hono/clerk-auth +## 1.0.3 + +### Patch Changes + +- [#463](https://github.com/honojs/middleware/pull/463) [`892ea7da85fb2c799eacc4d29651e1fa45a6aec0`](https://github.com/honojs/middleware/commit/892ea7da85fb2c799eacc4d29651e1fa45a6aec0) Thanks [@yudai-nkt](https://github.com/yudai-nkt)! - Update peer dependencies so that newer validators can be installed. + ## 1.0.2 ### Patch Changes diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index 513ec9bc..a5b79576 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -1,6 +1,6 @@ { "name": "@hono/clerk-auth", - "version": "1.0.2", + "version": "1.0.3", "description": "A third-party Clerk auth middleware for Hono", "type": "module", "main": "dist/index.cjs", diff --git a/packages/typebox-validator/CHANGELOG.md b/packages/typebox-validator/CHANGELOG.md index b4aba0ac..61efb42d 100644 --- a/packages/typebox-validator/CHANGELOG.md +++ b/packages/typebox-validator/CHANGELOG.md @@ -1,5 +1,11 @@ # @hono/typebox-validator +## 0.2.3 + +### Patch Changes + +- [#463](https://github.com/honojs/middleware/pull/463) [`892ea7da85fb2c799eacc4d29651e1fa45a6aec0`](https://github.com/honojs/middleware/commit/892ea7da85fb2c799eacc4d29651e1fa45a6aec0) Thanks [@yudai-nkt](https://github.com/yudai-nkt)! - Update peer dependencies so that newer validators can be installed. + ## 0.2.2 ### Patch Changes diff --git a/packages/typebox-validator/package.json b/packages/typebox-validator/package.json index 911345f4..a67f4e37 100644 --- a/packages/typebox-validator/package.json +++ b/packages/typebox-validator/package.json @@ -1,6 +1,6 @@ { "name": "@hono/typebox-validator", - "version": "0.2.2", + "version": "0.2.3", "description": "Validator middleware using TypeBox", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/packages/valibot-validator/CHANGELOG.md b/packages/valibot-validator/CHANGELOG.md index fa6dd563..a45c0202 100644 --- a/packages/valibot-validator/CHANGELOG.md +++ b/packages/valibot-validator/CHANGELOG.md @@ -1,5 +1,11 @@ # @hono/valibot-validator +## 0.2.3 + +### Patch Changes + +- [#463](https://github.com/honojs/middleware/pull/463) [`892ea7da85fb2c799eacc4d29651e1fa45a6aec0`](https://github.com/honojs/middleware/commit/892ea7da85fb2c799eacc4d29651e1fa45a6aec0) Thanks [@yudai-nkt](https://github.com/yudai-nkt)! - Update peer dependencies so that newer validators can be installed. + ## 0.2.2 ### Patch Changes diff --git a/packages/valibot-validator/package.json b/packages/valibot-validator/package.json index 533ce8fc..491026e4 100644 --- a/packages/valibot-validator/package.json +++ b/packages/valibot-validator/package.json @@ -1,6 +1,6 @@ { "name": "@hono/valibot-validator", - "version": "0.2.2", + "version": "0.2.3", "description": "Validator middleware using Valibot", "main": "dist/cjs/index.js", "module": "dist/esm/index.js",