Skip to content

Commit

Permalink
Merge branch 'main' into fix/body-reuse-during-error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams authored Nov 28, 2024
2 parents 2957526 + 854f451 commit d810bcf
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 35 deletions.
5 changes: 0 additions & 5 deletions .changeset/quick-buckets-cover.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twenty-buttons-retire.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/weak-worms-scream.md

This file was deleted.

12 changes: 12 additions & 0 deletions packages/inngest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# inngest

## 3.27.0

### Minor Changes

- [#762](https://github.com/inngest/inngest-js/pull/762) [`255416c`](https://github.com/inngest/inngest-js/commit/255416c4478ac367381da0c166b6762056d94e1d) Thanks [@tonyhb](https://github.com/tonyhb)! - Add `anthropic()` model for `step.ai.*()`

### Patch Changes

- [#760](https://github.com/inngest/inngest-js/pull/760) [`efc6c79`](https://github.com/inngest/inngest-js/commit/efc6c79d5a1baf7a011396b8406aea4982f03778) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Ensure support for `typescript@~5.7.0`

No notable changes have been made, though minor TypeScript versions often affect transpiled outputs.

## 3.26.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/inngest/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@inngest/sdk",
"description": "Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.",
"version": "3.26.3",
"version": "3.27.0",
"include": [
"./src/**/*.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/inngest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inngest",
"version": "3.26.3",
"version": "3.27.0",
"description": "Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/middleware-validation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# @inngest/middleware-validation

## 0.0.1

### Patch Changes

- [#744](https://github.com/inngest/inngest-js/pull/744) [`0c2bb8e`](https://github.com/inngest/inngest-js/commit/0c2bb8e048f39500e25ed0b521db210bbc4a757d) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Initial release of `@inngest/middleware-validation`

- Updated dependencies [[`255416c`](https://github.com/inngest/inngest-js/commit/255416c4478ac367381da0c166b6762056d94e1d), [`efc6c79`](https://github.com/inngest/inngest-js/commit/efc6c79d5a1baf7a011396b8406aea4982f03778)]:
- [email protected]
14 changes: 10 additions & 4 deletions packages/middleware-validation/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@inngest/middleware-validation",
"description": "Schema validation middleware for Inngest.",
"version": "0.0.0",
"include": ["./src/**/*.ts"],
"exclude": ["**/*.test.*", "*.js", "**/tsconfig.*"],
"version": "0.0.1",
"include": [
"./src/**/*.ts"
],
"exclude": [
"**/*.test.*",
"*.js",
"**/tsconfig.*"
],
"exports": {
".": "./src/index.ts"
}
}
}
2 changes: 1 addition & 1 deletion packages/middleware-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inngest/middleware-validation",
"version": "0.0.0",
"version": "0.0.1",
"description": "Schema validation middleware for Inngest.",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
44 changes: 33 additions & 11 deletions scripts/release/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,51 @@ const exec = async (...args) => {
}

// Get current latest version
let latestVersion;

const {
exitCode: latestCode,
stdout: latestStdout,
stderr: latestStderr,
} = await getExecOutput("npm", ["dist-tag", "ls"]);

if (latestCode !== 0) {
throw new Error(
`npm dist-tag ls exited with ${latestCode}:\n${latestStderr}`
);
}
// It could be a non-zero code if the package was never published before
const notFoundMsg = "is not in this registry";

const latestVersion = latestStdout
.split("\n")
.find((line) => line.startsWith("latest: "))
?.split(" ")[1];

if (!latestVersion) {
throw new Error(`Could not find "latest" dist-tag in:\n${latestStdout}`);
if (
latestStdout.includes(notFoundMsg) ||
latestStderr.includes(notFoundMsg)
) {
console.log(
"npm dist-tag ls failed but it's okay; package hasn't been published yet"
);
} else {
throw new Error(
`npm dist-tag ls exited with ${latestCode}:\n${latestStderr}`
);
}
} else {
latestVersion = latestStdout
?.split("\n")
?.find((line) => line.startsWith("latest: "))
?.split(" ")[1];

if (!latestVersion) {
throw new Error(`Could not find "latest" dist-tag in:\n${latestStdout}`);
}
}

console.log("latestVersion:", latestVersion);

// If this is going to be backport release, don't allow us to continue if we
// have no latest version to reset to
if (branch !== "main" && !latestVersion) {
throw new Error(
"Cannot continue with backport release; no latest version found"
);
}

// Release to npm
await exec("npm", ["config", "set", "git-tag-version", "false"], {
cwd: distDir,
Expand Down

0 comments on commit d810bcf

Please sign in to comment.