- 6cb6719: Allow filtering of events within triggers
- 55c889c: Expose raw error message if status is unknown
- 7792a62: Add support for streaming to
inngest/remix
- 1120e29: Genercize mixed async error; the same symptom can be caused by a few different errors
-
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.
- The batch is full
- 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 }; } );
- 591f73d: Set
ts
field on sent events if undefined - 1cbf65e: Alter registration response to include
modified
for deployment deduplication
- b74477f: Add optional
id
property to all step tooling, allowing users to override state recovery
- 023d761: Harden error serialization to ensure uncaught exceptions don't slip through during function runs
- 3ef0b36: Add better visibility into serve handlers issues
- 4226b85: Fix middleware
transformOutput
hook not running if an asynchronous, non-step function's body threw - cc3929d: Fix a very rare bug in which
step.sleep()
hashing could produce different IDs across different executions
- 4f29f5c: Removed
tools
parameter (breaking). This was marked as@deprecated
in v1, but is being fully removed in v2. Usestep
instead. See the v2 migration guide. - 4f29f5c: Renamed
throttle
torateLimit
. See the v2 migration guide. - 4f29f5c: Added the ability to provide middleware when defining Inngest clients and functions, hooking into a client's lifecycle to add custom functionality like error monitoring, data transformations, and more. See Advanced: Middleware - Inngest Documentation.
- 4f29f5c: Removed ability to
serve()
without a client (breaking). See the v2 migration guide. - 4f29f5c: Better event schema definitions (breaking), providing an extensible metho of creating and maintaining event payloads with a variety of native tools and third-party libraries. See Defining Event Payload Types - Inngest Documentation.
- 4f29f5c: Removed some overloads of
inngest.send()
to provide a better TS experience when sending events (breaking). See the v2 migration guide.
- 4f29f5c: Added a
logger
to Inngest functions in addition to allowing users to provide a custom logger to reliably push logs to external services and handle flushing on serverless environments. See Logging in Inngest - Inngest Documentation. - 4f29f5c: Add
GetEvents<>
export which can be used to pull final event types from an Inngest client. See Defining Event Payload Types. - 4f29f5c: Add ability to provide
concurrency: { limit: number }
in function config, ready for more config options.
- b62cd6d: Update landing page vite dependency to v3.2.7
- 7d025d6: Fix
NonRetriableError
not working when thrown from within a step
- 64c397e: Handle circular JSON errors while stringifying across the SDK
- 71b1a17: Fix Vercel platform check to support local dev while using
vercel env pull
- 49ddbb5: Add platform deploy checks
- 48d94a2: Allow user provided logger to be used within functions (experimental)
- 34f9ee8: INN-1253 Show actionable error when steps are nested
- aaac9e5: When recommending event key fixes, recommend setting env vars first
- c09261b: INN-1348 Throw an actionable error when we detect mixed async logic
- 98c15b3: INN-1347 Fix deadlock when an async function finds a step
- 5462bdd: Ensure Inngest client's env object is used within serve()
- 0b0c0ad: Add consistent type imports for slightly better tree-shaking
- 5573be3: INN-1270 Create an internal handler to enforce more actionable user-facing errors
- 65966f5: INN-1087 Add edge streaming support to
"inngest/next"
serve handler
- 164fd5c: INN-1266 Fix bad link for fetching Inngest signing key on landing page
- 34b6d39: INN-1240 Add
queueMicrotask()
fallback for restrictive environments
- c999896: INN-1029 Add
env
option toInngest
client to explicitly push to a particular Inngest env
- 131727a: Adjust README to have a slightly clearer intro
- c999896: INN-1186 Send
x-inngest-platform
andx-inngest-framework
headers during registration - 0728308: Expose run ID to function executions for user-managed logging and tracing
- 3ac579f: Warn users when some functions appear undefined when serving
- eb1ea34: Allow signing keys with multiple prefixes, as required for branch environment support
-
a840e67: INN-1126 Execute a step early if it's the only pending item during a discovery
This reduces the number of "Function steps" used for simple step functions.
- c7d1bee: Add
onFailure
handler tocreateFunction
options, allowing you to specify a new function to run when the initial handler fails
- 071fe89: INN-1054 Ensure serve handlers return
any
instead ofunknown
so that they don't needlessly conflict with user types
-
906aca5: INN-1009 Show warnings when using the package with TS versions
<4.7.2
and Node versions<14
This includes tests to assert we appropriately support these versions now and in the future.
-
ca7d79e: Detect env vars from Node and Deno in serve handlers (INN-1012)
- 2d6e0b5: Fix infinite type instantiation using a looping type in serve handlers (thanks for the report, @grempe)
- 0836145: Refactor
InngestCommHandler
to better detect env and reduce duplication (INN-997)
- ac81320: Add
"inngest/lambda"
serve handler for AWS Lambda environments - f73a346: Add
"inngest/edge"
serve handler for use in v8 edge runtimes
-
43162d3: The "Connected to
inngest dev
" pill at the top of the SDK's landing page now links to the connected dev server.Thanks, @khill-fbmc!
-
56b8e9a: Removes many
any
types from the internal and public APIs.Affects the public API, so will therefore be a package bump, but shouldn't affect any expected areas of use.
-
a45601e: Update dependency typescript to v5
Including a bump for this as it does seem to fix some complex inference for future features.
- ebb8740: Add ability to control the concurrency of a specific function via the
concurrency
option when creating an Inngest function - e61cf0f: Add
cancelOn
option when creating a function, allowing you cancel execution of a function based on incoming events.
-
a4f8ae8: Fixes a typing bug where both
event
andcron
could be specified as a trigger at the same time.Multiple event triggers will be coming in a later update, but not in this format.
-
d6a8329: Ensure signatures are not validated during development
-
950a2bc: Ensure
inngest.send()
andstep.sendEvent()
can be given an empty array without error