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

  • The source (typestack/class-transformer) appears to have had upstream activity as of 2026-05-22, but the latest provided versioned updates are from v0.5.1 in 2021-11-22, so it is not possible to confirm active, regular maintenance from published tags alone.
  • Update cadence based on the provided version history looks dormant from late 2021 onward, with a multi-year gap (relative to 2026-08-13), indicating a maintenance mode or quiet period for released 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.