Back to Explore

typestack/class-transformer

GitHub
1 watchersOpen source

Last release:

class-transformer is a TypeScript and JavaScript tool that uses decorators to transform plain objects into class instances, and to serialize or deserialize objects based on defined criteria. It is useful when you need class-based models with methods and getters after loading JSON data, and when controlling which properties are exposed.

Project status

  • Maintenance status: The repo shows an upstream push on 2026-05-22, which suggests ongoing maintenance activity (at least in the upstream codebase), even though the last published tagged updates in the provided history are from 2021.
  • Update cadence: Published updates appear infrequent based on the provided tag history (2021-11-22 last tag, 2021-11-20/14:54 earlier tags), so the visible release cadence is quiet. The more recent 2026 push indicates activity that does not necessarily correspond to new tagged updates.

AI summary generated

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

Recent updates

  • v0.5.1

    v0.5.1 primarily restores previously removed deprecated API entry points and updates some development dependencies. Release notes were not provided by the publisher, so the actual behavioral/API impact is inferred from the code and lockfile changes.

  • v0.5.0

    No release notes were provided by the publisher for v0.5.0. The code diff for v0.4.1 to v0.5.0 shows only version metadata bumps and updates to CHANGELOG.md, including a statement about a breaking API rename and a security fix note.

  • v0.4.1

    v0.4.1 focuses on security and robustness improvements, including mitigations for denial of service vectors involving specially crafted payloads. The code diff, however, also introduces a major public API renaming from class-based transformation functions to instance-based ones, plus several behavior changes around how values are read during transformation.

    BreakingSecurity
  • v0.4.0

    v0.4.0 introduces new transformation behavior around promises and adds a new `exposeUnsetFields` option that affects what shows up in class-to-plain output. The provided release notes are empty, so the operational changes below are derived from the actual code diff.

    Features
  • v0.3.2

    v0.3.2 refactors the library structure by introducing a new `src/decorators/` and `src/interfaces/` layout, and adds a new transformation option `exposeDefaultValues`. The functional diff also includes changes to how `@Transform` callbacks are invoked and how Map keys are handled during transformation. No publisher release notes were provided, so the changelog is the only surfaced documentation in this diff.

    BreakingFeatures
  • v0.3.1

    Release v0.3.1 was published on 2020-07-29, but no release notes were provided by the publisher. Because the change log is missing, there is no documented information about new features, bug fixes, breaking changes, or security updates.