Back to Explore

MichalLytek/class-transformer-validator

GitHub
1 watchersOpen source

Last release:

class-transformer-validator is a TypeScript/JavaScript plugin that combines class-transformer and class-validator into a single, programmer-friendly API. It provides transformAndValidate (and transformAndValidateSync) to convert JSON or plain objects into class instances and validate them using class-validator decorators, including support for validating arrays of objects.

Project status

  • The repository appears quiet or in maintenance mode, with the last upstream push on 2023-01-11 and no updates shown after 2020, so there is no evidence of active maintenance as of 2026-08-12.
  • Apparent update cadence is sporadic, with visible tags in 2020 (v0.9.1, v0.9.0) and earlier (v0.8.0 in 2019), suggesting long gaps rather than a steady release rhythm.

AI summary generated

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

Recent updates

  • v0.9.1

    v0.9.1 mainly updates project metadata and the development/test toolchain. The only consumer-impacting change visible in the diff is a peer dependency range change for class-transformer, while the test changes shown are renames and wording fixes.

  • v0.9.0

    No release notes were provided for v0.9.0. The diff for this tag shows only changes to README, Prettier configuration, and npm metadata (package.json and package-lock.json), with no library source code changes visible in the provided diff.

    Breaking
  • v0.8.0

    This release is tagged v0.8.0, but the publisher did not provide any release notes or change log details. As a result, there is no information available here about new functionality, fixes, breaking changes, or required migrations.

  • v0.7.1

    Version v0.7.1 mainly updates dependency metadata and the declared peer dependency for class-transformer. The code changes in this release appear to be limited to README and package metadata, with no application logic changes shown in the diff.

  • v0.7.0

    Release v0.7.0 primarily updates the project version metadata and bumps the `class-transformer` dependency. The only actual changes in the diff are dependency version updates in `package.json` and `package-lock.json`, plus a README entry describing the update.

  • v0.6.0

    Release v0.6.0 makes this package version bump and primarily updates dependency versions. The diff shows changes only to README.md and the npm dependency manifests (package.json and package-lock.json), with no application or API implementation changes visible.

  • v0.5.0

    In v0.5.0, the package removes the misspelled/deprecated `TransformValdiationOptions` export from `src/index.ts`. It also bumps `class-validator` and `class-transformer` versions (including peerDependencies), and updates the dependency tree accordingly. No publisher release notes were provided in the release metadata, so most user-impacting changes are not clearly documented there.

  • v0.4.1

    v0.4.1 primarily fixes a misspelling in the exported TypeScript options interface name. The code introduces the correctly spelled TransformValidationOptions type while keeping the old misspelled name as an alias, and updates docs accordingly.

  • v0.4.0

    v0.4.0 significantly expands the API by adding synchronous validation support and updating the async API to handle JSON strings that parse to either a single object or an array. The release notes field provided for this task is empty, so the changes below represent undocumented behavior changes visible in the code diff.

    BreakingFeatures
  • v0.3.0

    Release v0.3.0 was published on 2017-06-24, but the publisher did not provide any release notes. As a result, there is no documented information here about new features, bug fixes, breaking changes, security issues, or dependency updates.