Releases: node-cron/nestjs
Releases · node-cron/nestjs
Release list
v0.1.0
First release of @node-cron/nestjs: a NestJS integration for node-cron and a drop-in replacement for @nestjs/schedule.
Highlights
- Same API.
@Cron,@Interval,@Timeout,CronExpression,ScheduleModule.forRoot/forRootAsync,SchedulerRegistry. Migrating is a one-line import change. @BackgroundCron. Run a task in a forked child process (its own event loop), declared with a self-referencing single-file pattern.- Distributed-ready.
distributed: truewith a global or per-jobRunCoordinator. Works with@node-cron/redis-coordinatorfor per-fire, highly-available coordination across a fleet. - node-cron extras. Overlap control (
noOverlap/waitForCompletion), execution caps (maxExecutions), jitter (maxRandomDelay). - Ships ESM + CJS + TypeScript types. Node 20+, NestJS 9/10/11.
Install
npm install @node-cron/nestjs node-cron
Notes
SchedulerRegistry.getCronJob()returns a node-cronScheduledTask(not thecronpackage'sCronJob).utcOffsetis not supported; usetimeZone.