Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json2typescript

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2typescript - npm Package Versions

13

1.2.0

Diff

Changelog

Source

v1.2.0 (2019-02-21)

Features

  • Allow optional properties to be null, closes #58

Breaking Changes

  • If a property is declared optional (by @JsonProperty(name, Type, true)), then null is now ignored in both serialization and deserialization. Before this version, json2typescript would have thrown an error if ValueChecking.DISALLOW_NULL was used.
andreas-aeschlimann
published 1.1.1 •

Changelog

Source

v1.1.1 (2019-02-12)

Features

  • Improved documentation for v1.1.0
andreas-aeschlimann
published 1.1.0 •

Changelog

Source

v1.1.0 (2019-02-12)

Bug Fixes

  • Implemented pull request that fixes an issue with child class properties, closes #80
  • Fixed bug in constructor parameters, closes #82

Features

  • Added generics in order to allow the compiler to detect types, closes #73
  • Allow case insensitive lookup in json deserializing, closes #81

Breaking Changes

  • It is not possible to serialize undefined anymore; instead, an error is thrown. Before this version, json2typescript serialized undefined to null.
unibasel
published 1.0.6 •

Changelog

Source

v1.0.6 (2018-08-12)

Bug Fixes

  • Fixed serialization and deserialization of null and undefined values, closes #33 and #69
  • Adjusted README to close #40
  • Removed js map files, closes #60
  • Allowed custom class identifiers in the @JsonObject property, closes #66
unibasel
published 1.0.5 •

Changelog

Source

v1.0.5 (2017-10-09)

Bug Fixes

  • Fixed issues with activated strictNullChecks

Features

  • Added README note about circular dependency issues
  • Removed ts files from publishing, added declaration files instead

Breaking Changes

  • json2typescript will now throw an exception if the JsonProperty decorator has undefined as second parameter. Pass Any if you want to skip the type check instead or don't pass the second parameter at all. Any is a type from json2typescript and needs to be imported
unibasel
published 1.0.4 •

Changelog

Source

v1.0.4 (2017-09-12)

Bug Fixes

  • Fixed bug in serialization mode
unibasel
published 1.0.3 •

Changelog

Source

v1.0.3 (2017-09-10)

Bug Fixes

  • Fixed issue with class properties when extending another class, closes #22

Features

  • Allow json2typescript to work with noImplicitAny, closes #23
unibasel
published 1.0.2 •

Changelog

Source

v1.0.2 (2017-07-31)

Bug Fixes

  • Fixed issue with ValueCheckingMode by using an enum instead of a nested class, closes #10 and #11
  • Added missing js references, closes #11 and #16

Features

  • Allow serialization the same way as deserialization, closes #4
  • Added smart methods serialize() and deserialize() for simplified usage
  • Added custom converters, closes #6
  • Use class methods instead of static methods, closes #14

Breaking Changes

  • Use an instance of JsonConvert and its class methods instead of the static methods
  • The static class properties valueCheckingMode and debugMode are not static anymore. debugMode has been renamed to operationMode. Their values should be assigned through the given enums with the same name
  • Removed the string method deserializeString() due to the fact that it is the same as jsonConvert.deserialize() combined with JSON.stringify()
unibasel
published 0.9.5 •

Changelog

Source

0.9.5 (2017-12-11):

New method for deserializing array of objects.

unibasel
published 0.9.4 •

Changelog

Source

0.9.4 (2017-11-22):

Class properties are now not overridden to undefined if there is no decorator and no matching json value.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc