@nestjs/schedule
12.0.2 · 14 Sep 2026MIT2.8M / weekRepositoryHomepagenpmAtom feed
46 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 12.x · latest line
12.0.2
14 Sep 2026scheduler: add generic return type parameter to getInterval and getTimeout
cron: do not resurrect a deleted job after its initialDelay elapses
12.0.1
27 Aug 2026export ScheduleExplorer from the package entry point
12.0.0
27 Aug 2026Duplicate scheduler names are now rejected at startup. Two
@Cron,@Interval, or@Timeoutdeclarations sharing an explicit name previously slipped past decorator collection and only conflicted later; theDUPLICATE_SCHEDULERerror is now thrown during initialization, where you can actually see it.Node 20.19+ (or 22.12+) is required.
Replace any deep imports with root imports.
What's Changed
@nestjs/scheduleis now a native ES module, and the major version is aligned with the Nest 12 release line (there is no 7.x — 6.1.3 goes straight to 12.0.0).ESM migration
The package is published as pure ESM (
"type": "module", compiled withNodeNext) behind a properexportsmap. The legacy rootindex.js/index.d.ts/index.tsshims are gone, and deep imports into build internals are no longer resolvable — import from the package root.// ✅ import { ScheduleModule, Cron, CronExpression } from '@nestjs/schedule'; // ❌ no longer resolvable import { CronExpression } from '@nestjs/schedule/dist/enums/cron-expression.enum';Only
.and./package.jsonare exported.require(esm) — CommonJS still works
You do not need to convert your app to ESM. Thanks to Node's
require(esm)support, a CommonJS app can keep doing:const { ScheduleModule } = require('@nestjs/schedule');This is why the package now declares
"engines": { "node": ">=20.19.0" }—require(esm)is unflagged from Node 20.19 / 22.12 onward. On older Node versions the require will throwERR_REQUIRE_ESM.Fixes
Duplicate scheduler names are now rejected at startup. Two
@Cron,@Interval, or@Timeoutdeclarations sharing an explicit name previously slipped past decorator collection and only conflicted later; theDUPLICATE_SCHEDULERerror is now thrown during initialization, where you can actually see it.
Upgrading
npm i @nestjs/schedule@12
Node 20.19+ (or 22.12+) is required.
Replace any deep imports with root imports.
If you were importing from the removed root
index.jsshim path explicitly, drop the path —@nestjs/scheduleresolves on its own.
- 6.x
6.1.3
15 Apr 2026Reading the note…
6.1.2
15 Apr 2026Reading the note…
6.1.1
4 Feb 2026Reading the note…
6.1.0
8 Dec 2025Reading the note…
6.0.1
18 Sep 2025Reading the note…
6.0.0
17 Apr 2025Reading the note…
- 5.x
5.0.1
23 Jan 2025Reading the note…
5.0.0
17 Jan 2025Reading the note…
- 4.x
4.1.2
9 Dec 2024Reading the note…
4.1.1
16 Sep 2024Reading the note…
4.1.0
3 Jul 2024Reading the note…
4.0.2
16 Apr 2024Reading the note…
4.0.1
7 Feb 2024Reading the note…
4.0.0
23 Oct 2023Reading the note…
- 3.x
3.0.4
21 Sep 2023Reading the note…
3.0.3
22 Aug 2023Reading the note…
3.0.2
4 Aug 2023Reading the note…
3.0.1
17 Jun 2023Reading the note…
3.0.0
15 Jun 2023Reading the note…
- 2.x
2.2.3
9 Jun 2023Reading the note…
2.2.2
17 May 2023Reading the note…
2.2.1
4 Apr 2023Reading the note…
2.2.0
3 Feb 2023Reading the note…
2.1.0
8 Jul 2022Reading the note…
2.0.1
20 May 2022Reading the note…
2.0.0
29 Mar 2022Reading the note…
- 1.x
1.1.0
29 Mar 2022Reading the note…
1.0.2
16 Nov 2021Reading the note…
1.0.1
28 Jul 2021Reading the note…
1.0.0
7 Jul 2021Reading the note…
- 0.4.x
0.4.3
11 Mar 2021Reading the note…
0.4.2
22 Jan 2021Reading the note…
0.4.1
23 Sep 2020Reading the note…
0.4.0
14 May 2020Reading the note…
- 0.3.x
0.3.1
20 Apr 2020Reading the note…
0.3.0
14 Mar 2020Reading the note…
- 0.2.x
0.2.1
10 Mar 2020Reading the note…
0.2.0
24 Jan 2020Reading the note…
- 0.1.x
0.1.1
19 Dec 2019Reading the note…
0.1.0
19 Dec 2019Reading the note…
- 0.0.x
0.0.4
15 Dec 2019Reading the note…
0.0.2
14 Dec 2019Reading the note…
0.0.1
14 Dec 2019Reading the note…