Skip to content

chore(deps): bump @nestjs/config from 4.0.4 to 12.0.0 - #240

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/config-12.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/config-12.0.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps @nestjs/config from 4.0.4 to 12.0.0.

Release notes

Sourced from @​nestjs/config's releases.

12.0.0

What's Changed

@nestjs/config is now a native ES module, environment validation is built on Standard Schema instead of Joi-specific code, and the major version is aligned with the Nest 12 release line (there is no 5.x — 4.0.4 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 shims are gone, and deep imports into build internals are no longer resolvable — import from the package root.

// ✅
import { ConfigModule, ConfigService } from '@nestjs/config';
// ❌ no longer resolvable
import { ConfigService } from '@​nestjs/config/dist/config.service';

require(esm) — CommonJS still works

You do not need to convert your app to ESM. Thanks to Node's require(esm) support (Node 20.19+ / 22.12+), a CommonJS app can keep using require('@nestjs/config') unchanged.

Validation is now Standard Schema based

validationSchema accepts any schema implementing the Standard Schema spec — Zod (v3, v4, v4-mini), Valibot, ArkType, Joi 18+, and anything else that adopts it. There is no longer any Joi-specific code path in the module, and Joi is no longer implied as the validation library.

ConfigModule.forRoot({
  validationSchema: z.object({
    PORT: z.coerce.number().default(3000),
    DATABASE_NAME: z.string(),
  }),
});

Joi keeps working — it implements Standard Schema as of v18 — and the historical abortEarly: false / allowUnknown: true defaults are still applied automatically for Joi schemas, so existing Joi setups behave as before.

Breaking: validationOptions shape

Options are now the Standard Schema Options object, and library-specific settings move under libraryOptions:

// Before (4.x)
validationOptions: { allowUnknown: false, abortEarly: true }
// Now (12.x)
validationOptions: { libraryOptions: { allowUnknown: false, abortEarly: true } }

The generic parameter changed accordingly: ConfigModuleOptions<ValidationOptions extends StandardSchemaV1.Options>, and validationSchema is typed as StandardSchemaV1 rather than any — a schema that does not implement the spec is now a compile-time error instead of a runtime one.

... (truncated)

Commits
  • 269312f chore(): release v12.0.0
  • 5748c1f chore: upgrade to v12
  • d833a6a chore(deps): update dependency oxlint to v1.80.0 (#2408)
  • 4555cbc chore(deps): update nest monorepo to v11.2.3 (#2407)
  • 4561739 chore(deps): update dependency vite to v8.2.2 (#2406)
  • 0fc13bb chore(deps): update dependency joi to v18.2.5 (#2405)
  • 22642b8 chore(deps): update dependency oxlint to v1.79.0 (#2404)
  • d3a7dd5 chore(deps): update dependency vitest to v4.1.11 (#2403)
  • 8c87973 chore(deps): update dependency zod to v4.4.3 (#2402)
  • 949dc88 Merge pull request #2356 from nestjs/renovate/cimg-node-24.x
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 3, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/nestjs/config-12.0.0 branch 2 times, most recently from 7612be7 to d1a5b34 Compare September 7, 2026 10:48
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/nestjs/config-12.0.0 branch 2 times, most recently from 1cd5aab to 71714ad Compare September 18, 2026 09:40
Bumps [@nestjs/config](https://github.com/nestjs/config) from 4.0.4 to 12.0.0.
- [Release notes](https://github.com/nestjs/config/releases)
- [Commits](nestjs/config@4.0.4...12.0.0)

---
updated-dependencies:
- dependency-name: "@nestjs/config"
  dependency-version: 12.0.0
  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/config-12.0.0 branch from 71714ad to b1f8615 Compare September 22, 2026 12:36
@dependabot @github

dependabot Bot commented on behalf of github Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #265.

@dependabot dependabot Bot closed this Sep 27, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/nestjs/config-12.0.0 branch September 27, 2026 23:04
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 file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants