Skip to content

chore(deps/backend): bump @nestjs/swagger from 11.4.7 to 12.0.1 in /backend - #413

Merged
dzekojohn4 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/nestjs/swagger-12.0.1
Aug 31, 2026
Merged

chore(deps/backend): bump @nestjs/swagger from 11.4.7 to 12.0.1 in /backend#413
dzekojohn4 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/nestjs/swagger-12.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bumps @nestjs/swagger from 11.4.7 to 12.0.1.

Release notes

Sourced from @​nestjs/swagger's releases.

Release 12.0.1

12.0.1 (2026-08-28)

Bug fixes

Dependencies

Committers: 1

Release 12.0.0

What's Changed

@nestjs/swagger is now a native ES module, requires Nest 12, and changes how nullable schemas are spelled in the generated document.

ESM migration

The package is published as pure ESM ("type": "module", compiled with NodeNext) behind a proper exports map. The legacy root index.ts / plugin.js / plugin.ts shims are gone, and deep imports into build internals are no longer resolvable — import from the package root (@nestjs/swagger) or from @nestjs/swagger/plugin.

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 { SwaggerModule } = require('@nestjs/swagger'). The CLI plugin entry (@nestjs/swagger/plugin) also keeps a require condition so nest-cli.json setups load it unchanged.

This is why the package now declares "engines": { "node": "^20.19.0 || >=22.12.0" } — those are the Node versions where require(esm) is available without a flag.

Nest 12 peer dependencies

@nestjs/common and @nestjs/core peers are now ^12.0.0. @nestjs/mapped-types moves to 12.0.0 (itself ESM, with its major aligned to the Nest 12 line), so PartialType, PickType, OmitType and IntersectionType come from an ESM build too.

Standard Schema support

Schemas passed to Nest 12's route decorators (for example @Body({ schema: z.object({ ... }) })) can now be reflected into the OpenAPI document. Supply an adapter via the new standardSchemaConverter document option:

import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import type { SwaggerDocumentOptions } from '@nestjs/swagger';
import { createSchema } from 'zod-openapi';
import type { ZodType } from 'zod';
// Standard Schema exposes the producing library under ~standard.vendor,
// which is how you narrow the raw value to a library-specific type.
function isZodSchema(schema: unknown): schema is ZodType {
return (
!!schema &&
typeof schema === 'object' &&
(schema as { '~standard'?: { vendor?: string } })['~standard']?.vendor ===
'zod'
);
</tr></table>

... (truncated)

Commits
  • 4274e7c chore(): release v12.0.1
  • 325d009 Merge pull request #4082 from nestjs/fix/esm-hoist-static-imports
  • 8980a54 fix: esm hoist static imports
  • 31b0bf4 chore(deps): update dependency lint-staged to v17.4.1 (#4078)
  • b71a812 Merge pull request #4077 from nestjs/renovate/swagger-ui-dist-5.x-lockfile
  • ec18a13 chore(deps): update dependency swagger-ui-dist to v5.32.14
  • 0f85b4c Merge pull request #4072 from nestjs/renovate/js-yaml-5.x
  • 7d8b38e Merge pull request #4076 from nestjs/renovate/vite-8.x-lockfile
  • ebc4cb8 Merge pull request #4069 from nestjs/renovate/zod-openapi-6.x
  • 71e1769 Merge pull request #4068 from nestjs/renovate/swagger-ui-dist-5.x
  • Additional commits viewable in compare view

@dependabot @github

dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: backend, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dzekojohn4 dzekojohn4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, merging in.

Bumps [@nestjs/swagger](https://github.com/nestjs/swagger) from 11.4.7 to 12.0.1.
- [Release notes](https://github.com/nestjs/swagger/releases)
- [Commits](nestjs/swagger@11.4.7...12.0.1)

---
updated-dependencies:
- dependency-name: "@nestjs/swagger"
  dependency-version: 12.0.1
  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/backend/nestjs/swagger-12.0.1 branch from 9d8c3af to 82783b6 Compare August 31, 2026 09:41
@dzekojohn4
dzekojohn4 merged commit 421e911 into main Aug 31, 2026
6 of 13 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/backend/nestjs/swagger-12.0.1 branch August 31, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant