@nestjs/config breaking changes
@nestjs/config 12.1.0 (November 4, 2026) is its newest release with breaking changes, 6 of them. The first: Validation errors no longer include the rejected value in @nestjs/config 12.1.0. Every breaking API change we have recorded in @nestjs/config on npm: 28 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 12.1.1, released November 6, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 4.0.1 to 12.1.0: 18 breaking changes in 2 versions.
- From 3.0.0 to 12.1.0: 27 breaking changes in 4 versions.
@nestjs/config 12.1.0 breaking changes
- Behavior changed
Error messages omit the rejected value, so code that parses them may need updating. github.com - Behavior changed
Startup fails for such values instead of truncating them in process.env. github.com - Behavior changed
ConfigService.get
Members inherited from built-ins such as toString or constructor now return undefined. Code relying on them must change. github.com - Behavior changed
ConfigService.set
A dependent variable re-expanded to more than 128 KiB now makes set() throw. github.com - Signature changed
ConfigModuleOptions.validate
Was validate?: (config: Record<string, any>) => Record<string, any>; now validate?: (config: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>. npmjs.com - Signature changed
ConfigService.constructor
Was constructor(internalConfig?: Record<string, any>); now constructor(internalConfig?: Record<string | symbol, any>). npmjs.com
@nestjs/config 12.0.0 breaking changes
- Removed
The lodash dependency is gone. This only breaks code that relied on lodash being installed transitively. github.com - Removed
The peer dependency on @nestjs/common is now ^11.0.0 || ^12.0.0. Users still on Nest 10 must stay on @nestjs/config@4. github.com - Removed
Imports such as '@nestjs/config/dist/config.service' no longer resolve. Import from the package root instead. github.com - Behavior changed
The package is published as pure ESM behind an exports map. CommonJS apps can keep using require('@nestjs/config'), but deep imports into build internals no longer resolve, so import from the package root. github.com - Behavior changed
validationSchema
Each issue is rendered as 'path: message' with newline-separated issues. Code that asserts on the old single-line Joi message must be updated. github.com - Signature changed
ConditionalModule.registerWhen
Was static registerWhen(module: Required<ModuleMetadata>['imports'][number], condition: string | ((env: NodeJS.ProcessEnv) => boolean), options?: {timeout?: number; debug?: boolean;}): Promise<Required<Pick<DynamicModule, "module" |... npmjs.com - Signature changed
ConfigModule.forRoot
Was static forRoot<ValidationOptions extends Record<string, any>>(options?: ConfigModuleOptions<ValidationOptions>): Promise<DynamicModule>; now static forRoot(options?: ConfigModuleOptions): Promise<DynamicModule>. npmjs.com - Signature changed
ConfigModuleOptions
Was interface ConfigModuleOptions<ValidationOptions extends Record<string, any> = Record<string, any>>; now interface ConfigModuleOptions<ValidationOptions extends StandardSchemaV1.Options = StandardSchemaV1.Options>. npmjs.com - Signature changed
ConfigModuleOptions.validationSchema
A schema that does not implement the Standard Schema spec is now a compile-time error instead of a runtime one. npmjs.com - Signature changed
ConfigService.get
Explicit types inconsistent with the config value at the given path now fail to compile. npmjs.com
And 2 more in this version. Sign up to see every change
@nestjs/config 4.0.1 breaking changes
- Signature changed
ConfigFactoryKeyHost.asProvider
Was asProvider(): {imports: [ReturnType<typeof ConfigModule.forFeature>]; useFactory: (config: T) => T; inject: [string];}; now asProvider(): {imports: [ReturnType<typeof ConfigModule.forFeature>]; useFactory: (config: T) => T; inject... npmjs.com - Signature changed
ConfigFactoryKeyHost.KEY
Was KEY: string; now KEY: string | symbol. npmjs.com - Signature changed
ConfigService
Was class ConfigService<K = Record<string, unknown>, WasValidated extends boolean = false>; now class ConfigService<K = Record<string | symbol, unknown>, WasValidated extends boolean = false>. npmjs.com - Signature changed
getConfigToken
Was function getConfigToken(token: string): string; now function getConfigToken(token: string | symbol): string. npmjs.com - Signature changed
registerAs
Was function registerAs<TConfig extends ConfigObject, TFactory extends ConfigFactory = ConfigFactory<TConfig>>(token: string, configFactory: TFactory): TFactory & ConfigFactoryKeyHost<ReturnType<TFactory>>; now function registerAs<TConfig... npmjs.com
@nestjs/config 4.0.0 breaking changes
- Behavior changed
ConfigService.get
Internal configuration (namespaces and custom config files) now takes precedence over validated environment variables and process.env. Code that relied on env vars overriding internal config must change. github.com - Signature changed
ConfigModule.forRoot
Was static forRoot(options?: ConfigModuleOptions): Promise<DynamicModule>; now static forRoot<ValidationOptions extends Record<string, any>>(options?: ConfigModuleOptions<ValidationOptions>): Promise<DynamicModule>. npmjs.com - Signature changed
ConfigModuleOptions
Was interface ConfigModuleOptions; now interface ConfigModuleOptions<ValidationOptions extends Record<string, any> = Record<string, any>>. npmjs.com - Signature changed
ConfigModuleOptions.validationOptions
Was validationOptions?: Record<string, any>; now validationOptions?: ValidationOptions. npmjs.com
@nestjs/config 3.0.0 breaking changes
- Removed
ConfigModuleOptions.encoding
The unused encoding option was removed from the module options. Code that passes encoding should remove it. npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.