You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

json2typescript

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2typescript - npm Package Versions

23

1.6.1

Diff
a
andreas-aeschlimann
published 1.6.1 •
a
andreas-aeschlimann
published 1.6.0 •
a
andreas-aeschlimann
published 1.5.1 •

Changelog

Source

v1.5.1 (2022-05-25)

Bug Fixes

  • Throw error (again) when expected primitive type is object or array, closes #187
a
andreas-aeschlimann
published 1.5.0 •

Changelog

Source

v1.5.0 (2022-05-02)

Bug Fixes

  • Fix handling of array property type mapping, fixed with PR #142

Features

  • Improve method types, closes #137
  • Change property decorator flags, closes #138
  • Add esm module format in order to fix CommonJS issue with Angular 10, closes #147
  • Improved docs about property initialization, closes #149
  • Implement discriminator feature, closes #165
  • Improve discriminator feature and add lazy-loading to prevent circular dependencies, closes #181

Breaking Changes

  • There are no breaking changes to be expected. The usage of the third parameter of the @JsonProperty decorator has slightly changed but is downward compatible. Collisions with class identifiers in the @JsonObject decorators now throw an error.
a
andreas-aeschlimann
published 1.5.0-rc.0 •
a
andreas-aeschlimann
published 1.4.1 •

Changelog

Source

v1.4.1 (2020-04-14)

Bug Fixes

  • Fixed compile due to bad package.json when using older TypeScript versions, closes #132
a
andreas-aeschlimann
published 1.4.0 •

Changelog

Source

v1.4.0 (2020-04-14)

Bug Fixes

  • Fixed compile issues when using older TypeScript versions, closes #131

Breaking Changes

  • The older versions did not enforce developers the use of the @JsonObject(classIdentifier) decorator. If you do not use the class decorator or have no parameter given, please update according to the docs. This is now mandatory, closes #129 and #130
a
andreas-aeschlimann
published 1.3.0 •

Changelog

Source

v1.3.0 (2020-04-13)

Bug Fixes

  • Fixed content of package-lock.json, closes #125

Features

  • Implemented ignoreRequiredCheck flag and allow serialization without having instances, closes #126

Breaking Changes

  • In previous version, the serialization of plain objects failed, because instances of classes were required. As of now, the serialization of plain object may succeed if the structure matches the class structure. Thus, this is considered a soft breaking change.
a
andreas-aeschlimann
published 1.2.5 •

Changelog

Source

v1.2.5 (2020-03-01)

Bug Fixes

  • Added missing Changelog for current version, closes #124
a
andreas-aeschlimann
published 1.2.4 •

Changelog

Source

v1.2.4 (2020-03-01)

Features

  • Added automation tests on the repository with Travis CI

Bug Fixes

  • Fixed bug in property mapping of complex class inheritances, closes #121