Releases: inngest/inngest-js
[email protected]
Patch Changes
- #831
c331190
Thanks @BrunoScheufler! - - Read signing key from env var for connect
[email protected]
Patch Changes
-
#824
1d72eae
Thanks @BrunoScheufler! - - Handle immediate WebSocket failure when connecting to gateway -
#822
1136087
Thanks @jpwilliams! - Sending events now has retries, backing off over 5 attempts
[email protected]
Patch Changes
-
#817
446be1b
Thanks @jpwilliams! -serve()
andconnect()
now have looser typing forclient
andfunctions
, resulting in easier use of multipleinngest
packages in a single process -
#823
f1d2385
Thanks @jpwilliams! - Allow wildcard event typing with.fromRecord()
The following schema is now valid:
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:
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
661ed7b
Thanks @jpwilliams! - If nofunctions
are provided toinngest.connect()
, it will now use any functions that have been created with the client instead -
Updated dependencies [
fadd94a
]:- @inngest/[email protected]
@inngest/[email protected]
Patch Changes
- #816
fadd94a
Thanks @joelhooks! - Add Deepseek support
[email protected]
Minor Changes
-
#820
cb02190
Thanks @amh4r! - Make INNGEST_ALLOW_IN_BAND_SYNC opt out -
#813
f42ab05
Thanks @BrunoScheufler! - Add initialconnect()
support
Patch Changes
-
#818
c99b05f
Thanks @BrunoScheufler! - Add reconnection support toconnect()
-
#819
7a5f4a5
Thanks @jpwilliams! - Setinngest
's ALS in global state to be able access it across versions and package boundaries
@inngest/[email protected]
Patch Changes
- #810
47b08dd
Thanks @djfarrelly! - Updated to use Sentry's withIsolationScope
[email protected]
Minor Changes
-
#805
9f4244f
Thanks @jpwilliams! - You can now add adescription
when creating an Inngest function -
#804
7459239
Thanks @jpwilliams! - AddInngestFunction#absoluteId()
to get the absolute ID of anInngestFunction
Patch Changes
-
#803
008d971
Thanks @jpwilliams! -myFn["client"]
is now typed -
#802
32518bf
Thanks @jpwilliams! - Use@inngest/ai
to expose AI models, adapters, and types -
Updated dependencies [
32518bf
]:- @inngest/[email protected]
@inngest/[email protected]
Patch Changes
- #808
46d270f
Thanks @jpwilliams! - Add a license
[email protected]
Patch Changes
-
#798
f426ba6
Thanks @jpwilliams! - Fix named functions returningnever[]
for their parameters when passed tostep.run()
// This now works step.run("", function named() {});