Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release @latest #255

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/five-bats-begin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-mails-look.md

This file was deleted.

36 changes: 0 additions & 36 deletions .changeset/strange-lizards-kiss.md

This file was deleted.

42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# inngest

## 2.2.0

### Minor Changes

- d0a8976: Add support for batching events.

Introduces a new configuration to function configurations.

```ts
batchEvents?: { maxSize: 100, timeout: "5s" }
```

This will take Inngest start execution when one of the following conditions are met.

1. The batch is full
2. Time is up

When the SDK gets invoked, the list of events will be available via a newly exported field `events`.

```ts
createFunction(
{ name: "my func", batchEvents: { maxSize: 100, timeout: "5s" } },
{ event: "my/event" },
async ({ event, events, step }) => {
// events is accessible with the list of events
// event will still be a single event object, which will be the
// 1st event of the list.

const result = step.run("do something with events", () => {
return events.map(() => doSomething());
});

return { success: true, result };
}
);
```

### Patch Changes

- 591f73d: Set `ts` field on sent events if undefined
- 1cbf65e: Alter registration response to include `modified` for deployment deduplication

## 2.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inngest",
"version": "2.1.0",
"version": "2.2.0",
"description": "Official SDK for Inngest.com",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
Loading