Back to Explore

nestjs/mapped-types

GitHub
1 updates · last 90 days1 watchersOpen source

Last release:

A NestJS utility module that provides “mapped types” helpers for transforming TypeScript classes into DTO variants. It’s useful with `@nestjs/graphql` and `@nestjs/swagger`, for example to generate create and update DTOs with optional fields or to build new types by picking, omitting, or intersecting properties.

Project status

  • Actively maintained: The repo shows very recent activity (upstream push on 2026-09-01, and a library updates entry for 12.0.0 on 2026-08-27), indicating it is currently under active development.
  • Update cadence: There was a prior notable update in 2026-03-31 (2.1.1), then a major 12.0.0 update in late August 2026, followed by a very close upstream push shortly after, suggesting a somewhat irregular but currently active cadence.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 12.0.0

    Release 12.0.0 switches @nestjs/mapped-types to a pure ES module distribution aligned with the Nest 12 release line. It removes the legacy root entry shims and adds an exports map so consumers must import from the package root. CommonJS usage via require(...) is expected to keep working through Node's require(esm) behavior.

    Breaking
  • 2.1.1

    Release 2.1.1 primarily updates development dependencies, including class-validator to 0.15.1, as noted in the release notes. The code changes are mostly TypeScript-only adjustments (switching to `import type`) and documentation annotations, plus some tooling/CI and metadata updates.

  • 2.1.0

    Release 2.1.0 is primarily positioned as a dependency update for NestJS, specifically moving to @nestjs/common v11. Beyond that single documented change, the diff shows additional tooling and configuration updates, plus a change to the package peer dependency range for @nestjs/common.

  • 2.0.6

    Release 2.0.6 contains a small fix merged via PR #1523, described only as an intersection-type decorators issue. The code change specifically adjusts how transformer (class-transformer) metadata is inherited when building an IntersectionType from multiple classes.

  • 2.0.5

    Release 2.0.5 adds a new configuration option to PartialType that controls whether class-validator validations are applied to null values. In addition to that functional change, it bumps several development dependencies and updates CI to use a newer Node.js Docker image. Tests were extended to cover the new option behavior.

    Features
  • 2.0.4

    Release 2.0.4 includes a fix for incorrect inheritance of class-transformer metadata (related to issue #1224), along with a small internal refactor. It also bumps several development tooling dependencies (linting, formatting, commitlint) and corresponding lockfile entries.

  • 2.0.3

    Release 2.0.3 primarily updates development tooling and CI runtime versions. It also includes a fix for how transformer metadata is inherited during mapped-type generation (PickType), specifically addressing incorrect inheritance of transform metadata from ancestor classes.

  • 2.0.2

    Release 2.0.2 is a small maintenance update that merges a fix for the `RemoveFieldsWithType` utility type and bumps `@nestjs/common` from 10.0.2 to 10.0.3. The release notes only mention the types fix and the dependency update.

  • 2.0.1

    Release 2.0.1 contains a fix for incorrect inheritance of optional keys in the mapped types utilities. It also bumps several development dependencies (NestJS common, TypeScript ESLint tooling, and ESLint) and updates tests accordingly.

  • 2.0.0

    Release 2.0.0 updates the library to newer NestJS and tooling versions and introduces type-level utilities that remove function-valued properties from mapped type results. The code changes concentrate on mapped-type helper generics and on build/CI configuration.

    Breaking
  • 1.2.2

    Release 1.2.2 is primarily a maintenance release with extensive development tooling and dependency bumps. The code diff shows CI Node.js version upgrades and Husky hook wiring changes, alongside updates to linting and formatting configuration.

    Security