Skip to content

v2.2.0

Choose a tag to compare

@inngest-release-bot inngest-release-bot released this 12 Jul 16:07
· 942 commits to main since this release
e8cc1f4

Minor Changes

  • d0a8976: Add support for batching events.

    Introduces a new configuration to function configurations.

    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.

    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