Giter Site home page Giter Site logo

nestjs / class-transformer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from typestack/class-transformer

56.0 56.0 2.0 2.93 MB

Fork of the class-transformer package. Decorator-based transformation, serialization, and deserialization between objects and classes.

License: MIT License

JavaScript 0.36% TypeScript 99.64%

class-transformer's People

Contributors

247gradlabs avatar artemln avatar ballomud avatar cojack avatar cvlvxi avatar dependabot[bot] avatar driccio avatar jotamorais avatar kamilmysliwiec avatar mateusgrb avatar maxint137 avatar mtschannett avatar nadavk avatar nimaen avatar nonameprovided avatar nouc23 avatar pahuta avatar pleerock avatar rasmussyberg avatar renovate-bot avatar renovate[bot] avatar rmuchall avatar saulotoledo avatar sheiidan avatar snirs90 avatar sparebytes avatar strictd avatar tbreug avatar tmtron avatar velmisov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lucas-labs caucik

class-transformer's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/node to v20.12.7
  • chore(deps): update dependency eslint-plugin-jest to v28
  • chore(deps): update dependency rollup to v4
  • chore(deps): update dessant/lock-threads action to v5
  • chore(deps): update github/codeql-action action to v3
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v2
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
.github/workflows/continuous-deployment-workflow.yml
  • actions/checkout v2
  • actions/setup-node v2
.github/workflows/continuous-integration-workflow.yml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/checkout v2
  • actions/setup-node v2
  • actions/checkout v2
  • actions/setup-node v2
.github/workflows/lock-closed-issues-workflow.yml
  • dessant/lock-threads v3
npm
package.json
  • @rollup/plugin-commonjs ^21.0.1
  • @rollup/plugin-node-resolve ^13.0.6
  • @types/jest ^27.0.3
  • @types/node ^20.0.0
  • @typescript-eslint/eslint-plugin ^4.33.0
  • @typescript-eslint/parser ^4.33.0
  • eslint ^7.32.0
  • eslint-config-prettier ^9.0.0
  • eslint-plugin-jest ^25.2.4
  • husky ^9.0.0
  • jest ^26.6.3
  • lint-staged ^15.0.0
  • prettier ^2.4.1
  • reflect-metadata 0.2.2
  • rimraf 3.0.2
  • rollup ^2.60.1
  • rollup-plugin-terser ^7.0.2
  • ts-jest ^26.5.6
  • ts-node ^10.4.0
  • typescript ^4.5.2

  • Check this box to trigger a request for Renovate to run again on this repository

Documentation needs to flag that this is not compatible with class-transformer

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

I spend a frustrating few hours wondering why my Expose() decorator was not being honoured. I was using the @nestjs/class-transformer package which felt appropriate. However the ClassSerializerInterceptor class from @nestjs/common does not read this meta data store by default.

This is incongrous and has caused many members of my team to hit the same problem.

Describe the solution you'd like

The README needs to be clear why this package exists, and why is it better then class-transformer, but most importantly, how should it be enabled, and how to handle libraries that might use class-transformer decorators.

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

The motivation is simply to improve the developer experience.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: includeForks

`plainToInstance` support

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

plainToClass is incorrectly named. class-transformer has since provided a properly named plainToInstance function with seemingly identical interface. Please pull in this change from upstream.

Describe the solution you'd like

Pull in plainToInstance from upstream class-transformer repo

Teachability, documentation, adoption, migration strategy

Identically to plainToClass but plainToInstance.

What is the motivation / use case for changing the behavior?

  • Accuracy of function names
  • Minimize difference between class-transformer and @nestjs/class-transformer
  • This bug means we need to blacklist class-transformer from our imports, which means either @nestjs/class-transformer updates to include the correct interface or we revert to the inaccurate interface

version 0.5.1 is not published on npm

Did you read the migration guide?

  • I have read the whole migration guide

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Potential Commit/PR that introduced the regression

No response

Versions

0.4.0 -> 0.5.1

Describe the regression

The version published on npm is not sync with github release

image
image

Minimum reproduction code

Expected behavior

publish a new release

Other

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.