Skip to content

Commit

Permalink
Release @latest (#826)
Browse files Browse the repository at this point in the history
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/[email protected]

### Patch Changes

- [#816](#816)
[`fadd94a`](fadd94a)
Thanks [@joelhooks](https://github.com/joelhooks)! - Add Deepseek
support

## [email protected]

### Patch Changes

- [#817](#817)
[`446be1b`](446be1b)
Thanks [@jpwilliams](https://github.com/jpwilliams)! - `serve()` and
`connect()` now have looser typing for `client` and `functions`,
resulting in easier use of multiple `inngest` packages in a single
process

- [#823](#823)
[`f1d2385`](f1d2385)
Thanks [@jpwilliams](https://github.com/jpwilliams)! - Allow wildcard
event typing with `.fromRecord()`

    The following schema is now valid:

    ```ts
    export const schemas = new EventSchemas().fromRecord<{
      "app/blog.post.*":
        | {
            name: "app/blog.post.created";
            data: {
              postId: string;
              authorId: string;
              createdAt: string;
            };
          }
        | {
            name: "app/blog.post.published";
            data: {
              postId: string;
              authorId: string;
              publishedAt: string;
            };
          };
    }>();
    ```

When creating a function, this allows you to appropriately type narrow
the event to pull out the correct data:

    ```ts
    inngest.createFunction(
      { id: "my-fn" },
      { event: "app/blog.post.*" },
      async ({ event }) => {
        if (event.name === "app/blog.post.created") {
          console.log("Blog post created at:", event.data.createdAt);
        } else if (event.name === "app/blog.post.published") {
console.log("Blog post published at:", event.data.publishedAt);
        }
      },
    );
    ```

- [#825](#825)
[`661ed7b`](661ed7b)
Thanks [@jpwilliams](https://github.com/jpwilliams)! - If no `functions`
are provided to `inngest.connect()`, it will now use any functions that
have been created with the client instead

- Updated dependencies
\[[`fadd94a`](fadd94a)]:
    -   @inngest/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
inngest-release-bot and github-actions[bot] authored Jan 30, 2025
1 parent 661ed7b commit 125e19f
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 64 deletions.
5 changes: 0 additions & 5 deletions .changeset/late-cups-smell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-cycles-add.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/rotten-carrots-search.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-jokes-pull.md

This file was deleted.

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

## 0.0.3

### Patch Changes

- [#816](https://github.com/inngest/inngest-js/pull/816) [`fadd94a`](https://github.com/inngest/inngest-js/commit/fadd94a998ae1e996941e88830d0f468fc649a85) Thanks [@joelhooks](https://github.com/joelhooks)! - Add Deepseek support

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/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/ai",
"description": "",
"version": "0.0.2",
"version": "0.0.3",
"include": [
"./src/**/*.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inngest/ai",
"version": "0.0.2",
"version": "0.0.3",
"description": "",
"main": "dist/index.js",
"publishConfig": {
Expand Down
53 changes: 53 additions & 0 deletions packages/inngest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# inngest

## 3.31.1

### Patch Changes

- [#817](https://github.com/inngest/inngest-js/pull/817) [`446be1b`](https://github.com/inngest/inngest-js/commit/446be1b5f1aa5c30328e95d0aa23260b586f04d0) Thanks [@jpwilliams](https://github.com/jpwilliams)! - `serve()` and `connect()` now have looser typing for `client` and `functions`, resulting in easier use of multiple `inngest` packages in a single process

- [#823](https://github.com/inngest/inngest-js/pull/823) [`f1d2385`](https://github.com/inngest/inngest-js/commit/f1d23855bc412c0c255dc108e4edefffb203af04) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Allow wildcard event typing with `.fromRecord()`

The following schema is now valid:

```ts
export const schemas = new EventSchemas().fromRecord<{
"app/blog.post.*":
| {
name: "app/blog.post.created";
data: {
postId: string;
authorId: string;
createdAt: string;
};
}
| {
name: "app/blog.post.published";
data: {
postId: string;
authorId: string;
publishedAt: string;
};
};
}>();
```

When creating a function, this allows you to appropriately type narrow the event to pull out the correct data:

```ts
inngest.createFunction(
{ id: "my-fn" },
{ event: "app/blog.post.*" },
async ({ event }) => {
if (event.name === "app/blog.post.created") {
console.log("Blog post created at:", event.data.createdAt);
} else if (event.name === "app/blog.post.published") {
console.log("Blog post published at:", event.data.publishedAt);
}
},
);
```

- [#825](https://github.com/inngest/inngest-js/pull/825) [`661ed7b`](https://github.com/inngest/inngest-js/commit/661ed7b278b017958b38e9add6987e35d1a8c616) Thanks [@jpwilliams](https://github.com/jpwilliams)! - If no `functions` are provided to `inngest.connect()`, it will now use any functions that have been created with the client instead

- Updated dependencies [[`fadd94a`](https://github.com/inngest/inngest-js/commit/fadd94a998ae1e996941e88830d0f468fc649a85)]:
- @inngest/ai@0.0.3

## 3.31.0

### Minor 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.31.0",
"version": "3.31.1",
"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.31.0",
"version": "3.31.1",
"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

0 comments on commit 125e19f

Please sign in to comment.