library: { name: "inngest", versions: ">=3 <5" } and reads both v3, where triggers are the second argument to createFunction, and v4, where they live in the options. It only narrates files that import from inngest or belong to a package that depends on it (see Dependency detection), so res.send and other libraries’ serve functions are left alone.
Examples
A function with durable steps
English
A scheduled function (v4)
English
What it covers
- Clients and functions:
new Inngest,createFunctionwith v3 and v4 triggers, event types,cancelOnandonFailure. - Flow control:
concurrency,throttle,rateLimit,debounce,priority,batchEvents,idempotency,singleton,timeoutsandretries, each as a plain limit on when runs start. - Steps:
step.run,step.sleep,step.sleepUntil,step.waitForEventwith its match and timeout,step.sendEventandstep.invoke, with their step IDs. - Events and serving:
inngest.sendandservefor each framework adapter. - Durations such as
"1h30m"and cron patterns read as words.
Translating
The English phrasebook is exported asen and typed as InngestPhrases. Its time section has the same shape as the other job plugins’ (TimePhrases).