Skip to content

fix(deps): bump @nestjs/schedule from 6.1.3 to 12.0.2 - #166

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/schedule-12.0.2
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/schedule-12.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @nestjs/schedule from 6.1.3 to 12.0.2.

Release notes

Sourced from @​nestjs/schedule's releases.

Release 12.0.2

  • feat(scheduler): add generic return type parameter to getInterval and getTimeout (a178f1b)
  • fix(cron): do not resurrect a deleted job after its initialDelay elapses (4473390)

Release 12.0.1

What's Changed

Full Changelog: nestjs/schedule@12.0.0...12.0.1

Release 12.0.0

What's Changed

@nestjs/schedule is 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 with NodeNext) behind a proper exports map. The legacy root index.js / index.d.ts / index.ts shims 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.json are 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 throw ERR_REQUIRE_ESM.

Fixes

  • Duplicate scheduler names are now rejected at startup. Two @Cron, @Interval, or @Timeout declarations sharing an explicit name previously slipped past decorator collection and only conflicted later; the DUPLICATE_SCHEDULER error is now thrown during initialization, where you can actually see it.

Upgrading

npm i @nestjs/schedule@12

... (truncated)

Commits
  • 1de04b0 chore(): release v12.0.2
  • 4090c9e Merge pull request #2356 from nestjs/renovate/cimg-node-24.x
  • 680c949 Merge pull request #2359 from Asadshah7950/feat/scheduler-generic-interval-ti...
  • cdbaa32 Merge pull request #2344 from chuanghiduoc/fix/cron-initial-delay-resurrection
  • a178f1b feat(scheduler): add generic return type parameter to getInterval and getTimeout
  • 7a7ecdd chore(deps): update dependency vite to v8.3.0 (#2358)
  • 77fc72b chore(deps): update dependency lint-staged to v17.5.1 (#2357)
  • 80eec9d chore(deps): update dependency @​types/node to v24.13.4 (#2355)
  • 63ed7b8 chore(deps): update node.js to v24.21.0
  • 0ea711b chore(deps): update dependency oxlint to v1.82.0 (#2354)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency npm npm dependency updates labels Sep 28, 2026
Bumps [@nestjs/schedule](https://github.com/nestjs/schedule) from 6.1.3 to 12.0.2.
- [Release notes](https://github.com/nestjs/schedule/releases)
- [Commits](nestjs/schedule@6.1.3...12.0.2)

---
updated-dependencies:
- dependency-name: "@nestjs/schedule"
  dependency-version: 12.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/nestjs/schedule-12.0.2 branch from 8db7309 to 7c5afdb Compare September 28, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency npm npm dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants