From 6f0352d807744cd2e817c172f5205a0f4e20d045 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Tue, 12 Nov 2024 13:20:27 +0000 Subject: [PATCH 1/2] Fix `next` JSR export (#743) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fixes an annoying release bug, with JSR failing for `inngest`. See https://github.com/inngest/inngest-js/actions/runs/11741974959/job/32711752350 We don't usually require extensions for libraries because we expect packages to also have ESM exports declared in their `package.json`, but `next` does not do this, so we must explicitly use the extension still. Annoyingly, a dry run publish with `jsr` doesn't reveal this. 🙄 ## Checklist - [ ] ~Added a [docs PR](https://github.com/inngest/website) that references this PR~ N/A CI fix - [ ] ~Added unit/integration tests~ N/A CI fix - [x] Added changesets if applicable --- packages/inngest/src/next.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/inngest/src/next.ts b/packages/inngest/src/next.ts index 1e80e8df..e1b41738 100644 --- a/packages/inngest/src/next.ts +++ b/packages/inngest/src/next.ts @@ -21,7 +21,7 @@ */ import { type NextApiRequest, type NextApiResponse } from "next"; -import { type NextRequest } from "next/server"; +import { type NextRequest } from "next/server.js"; import { InngestCommHandler, type ServeHandlerOptions, From deec6552e1e7315b8b8e85b1ce6765cd7186666b Mon Sep 17 00:00:00 2001 From: Inngest Release Bot <126702797+inngest-release-bot@users.noreply.github.com> Date: Tue, 12 Nov 2024 13:42:32 +0000 Subject: [PATCH 2/2] Release @latest (#742) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @inngest/test@0.1.1 ### Patch Changes - [#741](https://github.com/inngest/inngest-js/pull/741) [`6782497`](https://github.com/inngest/inngest-js/commit/67824978ddd3cab7b923555341a2fbfe4ae96280) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix the first step in a run running twice - [#741](https://github.com/inngest/inngest-js/pull/741) [`6782497`](https://github.com/inngest/inngest-js/commit/67824978ddd3cab7b923555341a2fbfe4ae96280) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix immediate function/step failures not returning `error` correctly Co-authored-by: github-actions[bot] --- .changeset/angry-pants-brush.md | 5 ----- .changeset/spicy-parents-drive.md | 5 ----- packages/test/CHANGELOG.md | 8 ++++++++ packages/test/jsr.json | 2 +- packages/test/package.json | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 .changeset/angry-pants-brush.md delete mode 100644 .changeset/spicy-parents-drive.md diff --git a/.changeset/angry-pants-brush.md b/.changeset/angry-pants-brush.md deleted file mode 100644 index 938656ed..00000000 --- a/.changeset/angry-pants-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@inngest/test": patch ---- - -Fix the first step in a run running twice diff --git a/.changeset/spicy-parents-drive.md b/.changeset/spicy-parents-drive.md deleted file mode 100644 index 0160b37c..00000000 --- a/.changeset/spicy-parents-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@inngest/test": patch ---- - -Fix immediate function/step failures not returning `error` correctly diff --git a/packages/test/CHANGELOG.md b/packages/test/CHANGELOG.md index 9c280373..6f3a4af6 100644 --- a/packages/test/CHANGELOG.md +++ b/packages/test/CHANGELOG.md @@ -1,5 +1,13 @@ # @inngest/test +## 0.1.1 + +### Patch Changes + +- [#741](https://github.com/inngest/inngest-js/pull/741) [`6782497`](https://github.com/inngest/inngest-js/commit/67824978ddd3cab7b923555341a2fbfe4ae96280) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix the first step in a run running twice + +- [#741](https://github.com/inngest/inngest-js/pull/741) [`6782497`](https://github.com/inngest/inngest-js/commit/67824978ddd3cab7b923555341a2fbfe4ae96280) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix immediate function/step failures not returning `error` correctly + ## 0.1.0 ### Minor Changes diff --git a/packages/test/jsr.json b/packages/test/jsr.json index de2af8da..1fd2e193 100644 --- a/packages/test/jsr.json +++ b/packages/test/jsr.json @@ -2,7 +2,7 @@ "$schema": "https://jsr.io/schema/config-file.v1.json", "name": "@inngest/test", "description": "Tooling for testing Inngest functions.", - "version": "0.1.0", + "version": "0.1.1", "include": [ "./src/**/*.ts" ], diff --git a/packages/test/package.json b/packages/test/package.json index bc952502..d0b3130b 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -1,6 +1,6 @@ { "name": "@inngest/test", - "version": "0.1.0", + "version": "0.1.1", "description": "Tooling for testing Inngest functions.", "main": "./index.js", "types": "./index.d.ts",