UNPKG

typescript-json-serializer

Version:

Typescript library to serialize classes into json and deserialize json into classes.

447 lines (262 loc) 23.7 kB
<a name="6.0.1"></a> # 6.0.1 (2023-06-07) ### Fixes - **deps:** bump minimatch from 3.0.4 to 3.1.2 ([#203](https://github.com/GillianPerard/typescript-json-serializer/pull/203)) ([108de56](https://github.com/GillianPerard/typescript-json-serializer/commit/108de560788ed22340649dd97fa47b2f9416a047)) - **JsonSerializer**: deserialize and serialize dictionary (map) having array as value ([#208](https://github.com/GillianPerard/typescript-json-serializer/issues/208)) ([1c41836](https://github.com/GillianPerard/typescript-json-serializer/commit/1c41836e2644d963675ae38db6a01454597683b0)) <a name="6.0.0"></a> # 6.0.0 (2023-03-29) Check the new [README](./README.md) to understand how to use `typescript-json-serializer` now. ### BREAKING CHANGES - `JsonObject`: empty object `{}` is no longer passed to the constructor on deserialize. This list of default params must be pass to the `JsonObject` thanks to the new `constructorParams` property of the `JsonObjectOptions` if the class contains a constructor with params used in the constructor body. ### Fixes - **deps:** bump json5 from 2.2.0 to 2.2.3 ([#196](https://github.com/GillianPerard/typescript-json-serializer/pull/196)) ([63d941d](https://github.com/GillianPerard/typescript-json-serializer/commit/63d941dcf2e77cd8749471a03bea097bd773acd7)) - **JsonObject**: `JsonObjectOptions` has been added to manage default constructor params values ([#200](https://github.com/GillianPerard/typescript-json-serializer/issues/200)) ([8f9eba8](https://github.com/GillianPerard/typescript-json-serializer/commit/8f9eba8a9b74beff602a7e30fe28b2c936c4643f)) - **JsonSerializer**: take in account the default value of properties when it checks if the value is `required` ([#201](https://github.com/GillianPerard/typescript-json-serializer/issues/201)) ([136ed86](https://github.com/GillianPerard/typescript-json-serializer/commit/136ed8685c2d94a89acd4b7f76fcf6a80fdea179)) <a name="5.1.0"></a> # 5.1.0 (2022-11-01) ### Features - **JsonObjectOptions**: `additionalPropertiesPolicy` option has been added to define what is the policy when the algorithm meet an additional property, the 3 choices are `allow`, `disallow` and `remove` ([#186](https://github.com/GillianPerard/typescript-json-serializer/issues/186)) ([07284ef](https://github.com/GillianPerard/typescript-json-serializer/commit/07284efd384efc1f87649fabc1bf17ef9dea48c2)) <a name="5.0.0"></a> # 5.0.0 (2022-10-08) Check the new [README](./README.md) to understand how to use `typescript-json-serializer` now. ### BREAKING CHANGES - `JsonProperty`: - `isDictionary` argument has been removed, now you can use the `dataStructure` argument ### Features - **JsonProperty**: `dataStructure` argument has been added to manage `array`, `dictionary`, `map` and `set` ([#185](https://github.com/GillianPerard/typescript-json-serializer/issues/185)) ([ace015f](https://github.com/GillianPerard/typescript-json-serializer/commit/ace015f9a7f263fd07100e7f2ad8d2119c18a1c2)) ### Fixes - **SerializeObject**: check required properties ([#187](https://github.com/GillianPerard/typescript-json-serializer/issues/187)) ([136ed86](https://github.com/GillianPerard/typescript-json-serializer/commit/136ed8685c2d94a89acd4b7f76fcf6a80fdea179)) <a name="4.3.0"></a> # 4.3.0 (2022-08-17) ### Features * **JsonSerializer:** add support for `Map` and `Set` types ([#181](https://github.com/GillianPerard/typescript-json-serializer/pull/181)) ([5a5ee26](https://github.com/GillianPerard/typescript-json-serializer/commit/5a5ee2641d171d7484602c71d3465c5fdb17ec89)) (special thanks to [@THUzxj](https://github.com/THUzxj)) ### Bug fixes * **deps:** bump terser from 5.7.1 to 5.14.2 ([#179](https://github.com/GillianPerard/typescript-json-serializer/pull/179)) ([861f182](https://github.com/GillianPerard/typescript-json-serializer/commit/861f182c8472a09097f6a2004dfda46f129bea3d)) <a name="4.2.0"></a> # 4.2.0 (2022-05-20) ### Features * **index:** export `isNullish` function ([#176](https://github.com/GillianPerard/typescript-json-serializer/issues/176)) ([efa82c3](https://github.com/GillianPerard/typescript-json-serializer/commit/efa82c30f8eb4522f6ab55933f62f0e01a23f35d)) <a name="4.1.1"></a> # 4.1.1 (2022-04-12) ### Bug fixes * **deps:** bump minimist from 1.2.5 to 1.2.6 ([345349c](https://github.com/GillianPerard/typescript-json-serializer/commit/345349c151726270307da84c297be76588719232)) * **deps:** bump ansi-regex from 4.1.0 to 4.1.1 ([d8c5310](https://github.com/GillianPerard/typescript-json-serializer/commit/d8c5310b17a8458cd283f7ea1b66419b9b59cb80)) <a name="4.1.0"></a> # 4.1.0 (2022-04-08) ### Features - **deserialize**: support to deserialize using instance of type ([#170](https://github.com/GillianPerard/typescript-json-serializer/issues/170)) ([f4d33f9](https://github.com/GillianPerard/typescript-json-serializer/commit/f4d33f964ffd3a18569f181e7d8051cf0bbabbcd)) - **deserializeObject**: support to deserialize using instance of type ([#170](https://github.com/GillianPerard/typescript-json-serializer/issues/170)) ([f4d33f9](https://github.com/GillianPerard/typescript-json-serializer/commit/f4d33f964ffd3a18569f181e7d8051cf0bbabbcd)) - **deserializeObjectArray**: support to deserialize using instance of type ([#170](https://github.com/GillianPerard/typescript-json-serializer/issues/170)) ([f4d33f9](https://github.com/GillianPerard/typescript-json-serializer/commit/f4d33f964ffd3a18569f181e7d8051cf0bbabbcd)) (special thanks to [@dhkatz](https://github.com/dhkatz)) <a name="4.0.1"></a> # 4.0.1 (2022-03-11) ### Bug fixes * **JsonSerializer:** apply properly `NullishPolicy` validation ([#167](https://github.com/GillianPerard/typescript-json-serializer/issues/167)) ([8faa6ae](https://github.com/GillianPerard/typescript-json-serializer/commit/8faa6aee2c18a5c3fb87005a0990ef0bfd7b23d2)) * **deps:** bump `trim-off-newlines` from 1.0.1 to 1.0.3 ([8786244](https://github.com/GillianPerard/typescript-json-serializer/commit/87862441f69665dcee98896e071507bc9d7dba24)) <a name="4.0.0"></a> # 4.0.0 (2022-02-15) New major version comes with lot of breaking changes detailed below. The purpose was to reorganize the entire project, write more tests and above all improve the usage of the library. Check the new [README](./README.md) to understand how to use `typescript-json-serializer` now. ### BREAKING CHANGES - `Serializable`: - the decorator was renamed to `JsonObject` to be more consistent - `formatPropertyNames` option has been moved to the new `JsonSerializerOptions` class. - `JsonProperty`: - `predicate` argument has been removed, now you can use the `type` argument - `names` argument has been removed, now you can use the `name` argument - `serialize` function has been moved to the new `JsonSerializer` class - `deserialize` function has been moved to the new `JsonSerializer` class ### Build - replace `tsc` by `rollup` for types generation ([ca9f08](https://github.com/GillianPerard/typescript-json-serializer/commit/ca9f0829f557caeb35442abbd3169944edb71ceb)) - bump `tmpl` from version 1.0.4 to 1.0.5 ### Features - **JsonSerializer**: new class was added to handle all the logic about serialization and deserialization ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) - **JsonSerializerOptions**: new class was added to handle all the `JsonSerializer` options as ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) - **errorCallback**: callback you can define to handle the errors, by default the library comes with 2 predefined callback `logError` and `throwError` but you can define your own - **nullishPolicy**: object to define what is the policy when the algorithm meet a `null` or an `undefined` value, the 3 choices are `allow`, `disallow` and `remove` - **formatPropertyName**: this option has been moved from `Serializable` decorator and keep the same behavior - **serializeObject**: new method added to `JsonSerializer` to serialize object only ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) - **serializeObjectArray**: new method added to `JsonSerializer` to serialize object object array only ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) - **deserializeObject**: new method added to `JsonSerializer` to deserialize object only ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) - **deserializeObjectArray**: new method added to `JsonSerializer` to deserialize object object array only ([bcc49e](https://github.com/GillianPerard/typescript-json-serializer/commit/bcc49e118e21d37f332dc6657ab94b8e25564b05)) <a name="3.4.5"></a> # 3.4.5 (2022-01-07) ### Bug fixes * **deserialize:** accept object as constructor param for type ([#161](https://github.com/GillianPerard/typescript-json-serializer/issues/161)) ([4ab2170](https://github.com/GillianPerard/typescript-json-serializer/commit/4ab2170d4f3808079e573d3acbbe3f1205a577a3)) * **deps:** bump tmpl from 1.0.4 to 1.0.5 ([05e0fc2](https://github.com/GillianPerard/typescript-json-serializer/commit/05e0fc23f5b1105a0cfa7059f44496644e2dbd5f)) <a name="3.4.4"></a> # 3.4.4 (2021-07-10) ### Bug fixes * **deps:** move `tslib` from `devDependencies` to `dependencies` to avoid the following error: `"export '__spreadArray' (imported as 'e') was not found in 'tslib'` ([#148](https://github.com/GillianPerard/typescript-json-serializer/issues/148)) ([5895ccf](https://github.com/GillianPerard/typescript-json-serializer/commit/5895ccff349cb5af1b5c5f82f10c73382d322d2d)) <a name="3.4.3"></a> # 3.4.3 (2021-07-08) ### Refactors * **getPropertyNames:** remove complexity by removing two loops ([6dd896a](https://github.com/GillianPerard/typescript-json-serializer/commit/6dd896acb9548cb0c8b145450dc778dce684331f)) <a name="3.4.2"></a> # 3.4.2 (2021-07-02) ### Bug fixes * **getPropertyNames:** remove class body before parsing ctor ([#145](https://github.com/GillianPerard/typescript-json-serializer/issues/145)) ([6ff839f](https://github.com/GillianPerard/typescript-json-serializer/commit/6ff839f0a252b8c7dd71485d3ee357447dfa8895)) <a name="3.4.1"></a> # 3.4.1 (2021-06-11) ### Bug fixes * **getPropertyNames:** improve regex to take in account Angular and React builds ([#132](https://github.com/GillianPerard/typescript-json-serializer/issues/132)) ([#135](https://github.com/GillianPerard/typescript-json-serializer/issues/135)) ([8470679](https://github.com/GillianPerard/typescript-json-serializer/commit/84706799a9e51aea17ddb6d42200af5bdcc3ed05)) * **docs:** add a section to explain how to use the library with CRA (create-react-app) ([#132](https://github.com/GillianPerard/typescript-json-serializer/issues/132)) ([2c0ddbc](https://github.com/GillianPerard/typescript-json-serializer/commit/2c0ddbc8793e44e1d8a6db00720e16df6a203df0)) <a name="3.4.0"></a> # 3.4.0 (2021-06-08) ### Build * remove sourcemaps ([b26db94](https://github.com/GillianPerard/typescript-json-serializer/commit/b26db94efa435b8285a42830db0255881bf55d7f)) ### Features * **deserialize:** allow json string as first parameter ([#141](https://github.com/GillianPerard/typescript-json-serializer/issues/141)) ([ff06ed1](https://github.com/GillianPerard/typescript-json-serializer/commit/ff06ed1b23c615c6004f3a9360205ef7241825b7)) <a name="3.3.0"></a> # 3.3.0 (2021-04-20) ### Features * **JsonProperty:** add required option ([#133](https://github.com/GillianPerard/typescript-json-serializer/issues/133)) ([efe933f](https://github.com/GillianPerard/typescript-json-serializer/commit/efe933fe42ba3ba8de0a1454ea1ce04bb98bc46a)) <a name="3.2.2"></a> # 3.2.2 (2021-03-18) ### Build * make the lib work for commonjs and ecmascript project ([#129](https://github.com/GillianPerard/typescript-json-serializer/issues/129)) ([37e1bf5](https://github.com/GillianPerard/typescript-json-serializer/commit/37e1bf53fbabc809259f830fe7b50d8db9335e66)) <a name="3.2.1"></a> # 3.2.1 (2021-03-12) ### Bug fixes * **serialize:** preserve the value of the instance on beforeSerialize ([#123](https://github.com/GillianPerard/typescript-json-serializer/issues/123)) ([8af4689](https://github.com/GillianPerard/typescript-json-serializer/commit/8af4689d58d47075458371c53ed721242cde8033)) <a name="3.2.0"></a> # 3.2.0 (2021-03-10) ### Build * add support for EcmaScript, CommonJs and UMD ([#125](https://github.com/GillianPerard/typescript-json-serializer/issues/125)) ([2c48030](https://github.com/GillianPerard/typescript-json-serializer/commit/2c48030a7300b1d4dee6c99647ac00f1844140d2)) <a name="3.1.0"></a> # 3.1.0 (2021-02-25) ### Features * **predicate:** add parentProperty param ([#121](https://github.com/GillianPerard/typescript-json-serializer/issues/121)) ([a1603ba](https://github.com/GillianPerard/typescript-json-serializer/commit/a1603ba21db36fa818c6cb6d6fa87cefe7e1cdbc)) <a name="3.0.0"></a> # 3.0.0 (2021-01-22) ### Features * **JsonProperty:** add beforeSerialize option ([#115](https://github.com/GillianPerard/typescript-json-serializer/issues/115)) ([35d3776](https://github.com/GillianPerard/typescript-json-serializer/commit/35d37762713d8490f1700c70f40a82aa09adc76b)) ### BREAKING CHANGES * onSerialize renamed by afterSerialize * onDeserialize renamed by beforeDeserialize * postDeserialize renamed by afterDeserialize <a name="2.5.3"></a> # 2.5.3 (2021-01-21) ### Bug fixes * **getBaseClassNames:** merge class maps in the correct order ([#115](https://github.com/GillianPerard/typescript-json-serializer/issues/115)) ([5256176](https://github.com/GillianPerard/typescript-json-serializer/commit/525617647be7850008d548cf3036996207337bd1)) <a name="2.5.2"></a> # 2.5.2 (2020-11-30) ### Features * **errors:** improve messages ([#108](https://github.com/GillianPerard/typescript-json-serializer/issues/108)) ([32c59ed](https://github.com/GillianPerard/typescript-json-serializer/commit/32c59ed8a0d4bac8016624d6eeba636a6575c4e9)) <a name="2.5.1"></a> # 2.5.1 (2020-11-28) ### Bug fixes * **proto:** make IOProto and PredicateProto returning any ([#107](https://github.com/GillianPerard/typescript-json-serializer/issues/107)) ([79a531f](https://github.com/GillianPerard/typescript-json-serializer/commit/79a531f2cb517ccfcbd74a1172f734e0ff74708c)) <a name="2.5.0"></a> # 2.5.0 (2020-11-11) ### Features * **Serializable:** add formatPropertyNames option ([#91](https://github.com/GillianPerard/typescript-json-serializer/issues/91)) ([f2e9f63](https://github.com/GillianPerard/typescript-json-serializer/commit/f2e9f63ad8397f8e42283bacdcb619eb15560c8f)) <a name="2.4.1"></a> # 2.4.1 (2020-11-09) ### Bug Fixes * **castSimpleData:** handle null type ([93bc7b7](https://github.com/GillianPerard/typescript-json-serializer/commit/93bc7b746623a77b492b114af2333be0fdc61e10)) ### Features * **JSonProperty:** add IOProto and PredicateProto ([#98](https://github.com/GillianPerard/typescript-json-serializer/issues/98)) ([4c4dd6f](https://github.com/GillianPerard/typescript-json-serializer/commit/4c4dd6fbb5dea285ace80290e2323b02ecb3cdff)) (special thanks to [@sco974](https://github.com/sco974)) <a name="2.4.0"></a> # 2.4.0 (2020-08-26) ### Features * **JSonProperty:** add support for Dictionary ([#94](https://github.com/GillianPerard/typescript-json-serializer/issues/94)) ([81f3ca2](https://github.com/GillianPerard/typescript-json-serializer/commit/81f3ca2b1a05dae027b7b7454eea47c3bdd9fe50)) <a name="2.3.4"></a> # 2.3.4 (2020-08-26) ### Bug Fixes * **deserialize:** remove values from instance ([#95](https://github.com/GillianPerard/typescript-json-serializer/issues/95)) ([5719bc2](https://github.com/GillianPerard/typescript-json-serializer/commit/5719bc21bdd007c11bab6920cd5ae060475439d1)) <a name="2.3.3"></a> # 2.3.3 (2020-07-31) ### Bug Fixes * **security:** update lodash ([87a5037](https://github.com/GillianPerard/typescript-json-serializer/commit/87a5037b9b3c33c04089e1310349221eed0b763e)) <a name="2.3.2"></a> # 2.3.2 (2020-07-02) ### Build * remove tslib ([36a3bc6](https://github.com/GillianPerard/typescript-json-serializer/commit/36a3bc61349d05bfe44785af7ea643dc99c50950)) <a name="2.3.1"></a> # 2.3.1 (2020-07-02) ### Build * add tslib (importHelpers) and remove comments from js files ([f739250](https://github.com/GillianPerard/typescript-json-serializer/commit/f73925081f2f18067ab5827a85b0a827889ed813)) <a name="2.3.0"></a> # 2.3.0 (2020-06-28) ### Features * **deserialize:** add possibility to predicate an union type composed by custom classes and primitive types ([#80](https://github.com/GillianPerard/typescript-json-serializer/issues/80)) ([57d7f22](https://github.com/GillianPerard/typescript-json-serializer/commit/57d7f22342b1ed0d6c978798491d7a581bb2337e)) <a name="2.2.1"></a> # 2.2.1 (2020-06-27) ### Bug Fixes * support null values ([#83](https://github.com/GillianPerard/typescript-json-serializer/issues/83)) ([44dd35d](https://github.com/GillianPerard/typescript-json-serializer/commit/44dd35dba3e365abfd117354f1e049c90c498140)) <a name="2.2.0"></a> # 2.2.0 (2020-05-17) ### Features * **JsonProperty:** add postDeserialize option ([#77](https://github.com/GillianPerard/typescript-json-serializer/issues/77)) ([f9e47f6](https://github.com/GillianPerard/typescript-json-serializer/commit/f9e47f647876c148ae50f9cc2c7e487528b44a07)) <a name="2.1.0"></a> # 2.1.0 (2020-05-01) ### Bug Fixes * **castSimpleData:** test if data is not null or undefined before using toString method ([#73](https://github.com/GillianPerard/typescript-json-serializer/issues/73)) ([efb0574](https://github.com/GillianPerard/typescript-json-serializer/commit/efb0574c28e847780d6c1ea9d6681d258ec4ce4f)) ### Features * **JsonProperty:** add names option that allows the merge of some properties ([#72](https://github.com/GillianPerard/typescript-json-serializer/issues/72)) ([f590cf7](https://github.com/GillianPerard/typescript-json-serializer/commit/f590cf74c7d1bdc50fa29e0919ea1ec3dffae651)) <a name="2.0.0"></a> # 2.0.0 (2020-04-18) ### Build * create specific tsconfig build file ([acbf02c](https://github.com/GillianPerard/typescript-json-serializer/commit/acbf02c7adbeb4015a89c22fbc21f0ad2f7aa8a2)) ### Features * **Serializable:** add support for deep inheritance ([#64](https://github.com/GillianPerard/typescript-json-serializer/issues/64)) ([c89bb3a](https://github.com/GillianPerard/typescript-json-serializer/commit/c89bb3a0ef0f114bcb093dd8ec45c80a3654a9ef)) <a name="1.4.6"></a> # 1.4.6 (2020-04-15) ### Build * only build the src folder ([768cfa2](https://github.com/GillianPerard/typescript-json-serializer/commit/768cfa20c421c845d3ea9c82005ef57ff71e5c1a)) <a name="1.4.5"></a> # 1.4.5 (2020-03-15) ### Bug Fixes * **deserialize:** empty child class now has parent properties ([#58](https://github.com/GillianPerard/typescript-json-serializer/issues/58)) ([86f89c2](https://github.com/GillianPerard/typescript-json-serializer/commit/86f89c21ff32f84a274154438a36f575028566a7)) <a name="1.4.4"></a> # 1.4.4 (2020-01-31) ### Bug Fixes * **getParamNames:** improve constructor parameter pattern ([#55](https://github.com/GillianPerard/typescript-json-serializer/pull/55)) ([a9e2a74](https://github.com/GillianPerard/typescript-json-serializer/commit/a9e2a7445491ac2653be068706425c1a47a1811b)) (special thanks to [@jiripudil](https://github.com/jiripudil)) <a name="1.4.3"></a> # 1.4.3 (2020-01-30) ### Bug Fixes * **convertPropertyToData:** manage undefined property ([#53](https://github.com/GillianPerard/typescript-json-serializer/issues/53)) ([f31bf2f](https://github.com/GillianPerard/typescript-json-serializer/commit/f31bf2f7b3a59c56ecdc802cf36b9c428c481327)) (special thanks to [@fullc0de](https://github.com/fullc0de)) <a name="1.4.2"></a> # 1.4.2 (2019-11-19) ### Bug Fixes * **convertPropertyToData:** test if a date is undefined or null before using toISOString method ([#50](https://github.com/GillianPerard/typescript-json-serializer/issues/50)) ([8d5d9cf](https://github.com/GillianPerard/typescript-json-serializer/commit/8d5d9cf56f55d508fcac9e769fb5ed20beca7c2a)) * **deserialize:** set first parameter type to object to avoid runtime error ([1ae3531](https://github.com/GillianPerard/typescript-json-serializer/commit/1ae353191d6828129fc83f5065fb8a78cdf9304a)) * **security:** update set-value ([7d07007](https://github.com/GillianPerard/typescript-json-serializer/commit/7d0700732b1f0065af4b3a97fa079cf70ebb0816)) <a name="1.4.1"></a> # 1.4.1 (2019-11-17) ### Bug fixes * **docs:** remove useless generics for deserialize function ([#45](https://github.com/GillianPerard/typescript-json-serializer/issues/45)) ([4c76893](https://github.com/GillianPerard/typescript-json-serializer/commit/4c768939ee8ee83543408b2683d90cc270bcc454)) <a name="1.4.0"></a> # 1.4.0 (2019-11-16) ### Features * **JsonProperty:** add onDeserialize and OnSerialize options ([#45](https://github.com/GillianPerard/typescript-json-serializer/issues/45)) ([d527290](https://github.com/GillianPerard/typescript-json-serializer/commit/d52729001215f5c7dc1ff2b128b2c888912baa6f)) <a name="1.3.0"></a> # 1.3.0 (2019-07-20) ### Features * **deserialize:** add generic type ([a0689eb](https://github.com/GillianPerard/typescript-json-serializer/commit/a0689eb6ff9f5b84ac44a1867c4e6214e7a76104)) <a name="1.2.5"></a> # 1.2.5 (2019-07-02) ### Bug Fixes * **getParamNames:** retrieve constructor param names from minified code ([#36](https://github.com/GillianPerard/typescript-json-serializer/issues/36)) ([14f2140](https://github.com/GillianPerard/typescript-json-serializer/commit/14f2140aa1c9a2c762b309bc5c90f6a6232c2338)) (special thanks to [@civilizeddev](https://github.com/civilizeddev)) <a name="1.2.4"></a> # 1.2.4 (2019-06-21) ### Bug Fixes * **getParamNames:** exclude comments from constructor parsing ([#33](https://github.com/GillianPerard/typescript-json-serializer/issues/33)) ([77a80c3](https://github.com/GillianPerard/typescript-json-serializer/commit/77a80c3a2fc8a5e8b4615718517313c2e4bdf95f)) ([7231455](https://github.com/GillianPerard/typescript-json-serializer/commit/7231455dd622410de973692b5d544cb4cbfd5870)) (special thanks to [@civilizeddev](https://github.com/civilizeddev)) <a name="1.2.3"></a> # 1.2.3 (2019-06-20) ### Bug Fixes * **getParamNames:** exclude simple comments from constructor parsing ([#33](https://github.com/GillianPerard/typescript-json-serializer/issues/33)) ([ad85984](https://github.com/GillianPerard/typescript-json-serializer/commit/ad85984065e6839d6093a5635ec9ba70587e3e7a)) (special thanks to [@civilizeddev](https://github.com/civilizeddev)) <a name="1.2.2"></a> # 1.2.2 (2019-06-19) * **getParamNames:** get constructor properties ([e4ba74f](https://github.com/GillianPerard/typescript-json-serializer/commit/e4ba74ff1b512c5cb8bc75db2f20f0821ce64ace)) <a name="1.2.0"></a> # 1.2.0 (2019-06-14) ### Features * **JsonProperty:** add support for using it directly inside constructor ([#28](https://github.com/GillianPerard/typescript-json-serializer/issues/28)) ([fe3d92d](https://github.com/GillianPerard/typescript-json-serializer/commit/fe3d92d8499ac3483ff81ef1a45bfa5a3ca4f4ea)) <a name="1.1.0"></a> # 1.1.0 (2019-04-21) ### Features * **JsonProperty:** add predicate option ([#19](https://github.com/GillianPerard/typescript-json-serializer/issues/19)) ([4a67bc0](https://github.com/GillianPerard/typescript-json-serializer/commit/4a67bc0f69bf27dfb010aabe87bbf665dc20f9de))