UNPKG

4.99 kBMarkdownView Raw
1# Changelog
2
3*Note: This is a partial changelog, covering significant & breaking changes. For a full list of changes, please consult the [commit log](https://github.com/bcherny/json-schema-to-typescript/commits).
4
5## 15.0.0
6
7- 62cc052 Fixed bug where intersection schemas didn't generate complete types. Improved output readability for intersection types (#603)
8
9## 14.1.0
10
11- 3e2e1e9 Added `inferStringEnumKeysFromValues` option (#578)
12
13## 14.0.5
14
15- b7fee29 Added .yaml support for CLI (#598)
16
17## 14.0.2
18
19- 9ec0c70 Added .yaml support (#577)
20
21## 14.0.1
22
23- 2f29f19 Added `customName` option
24
25## 14.0.0
26
27- 967eb13 Require Node v16+
28
29## 13.1.0
30
31- f797848 Feat: Add support for `deprecated` keyword
32
33## 13.0.1
34
35- b13a6f2 Bugfix: Boolean CLI flags were not respected (#524)
36
37## 13.0.0
38
39- 05b0103 Bugfix: Parse boolean schemas as schemas, rather than as literals (#515)
40- 8f973d1 Bugfix: Fix edge case where emitted names were corrupted when using `strictIndexSignature` (#423)
41
42## 12.0.0
43
44- b73e1c7 Bugfix: Parse enums as literals, rather than as schemas (#508)
45
46## 11.0.0
47
48This is a major release with lots of bugfixes, some of which may change emitted types.
49
50- 2ca6e50 Bugfix: Fix crash that may happen when emitting types for cyclical schemas (#323, #376)
51- 8fa728e Bugfix: Fix tests on Windows, make snapshot ordering consistent
52- b78a616 Bugfix: Make `compile()` non-mutating (#370, #443)
53- a89ffe1 Bugfix: Add maximum size heuristic for tuple types (#438)
54- 6fbcbc8 Bugfix: Improve performance & stability issue caused by JSON serialization (#422)
55- 7aa353d Feat: Add support for `$id` (#436)
56- 59747b1 Feat: Add support for specifying a default for `additionalProperties` (#335)
57- 966cca5 Cleanup: Drop support for Node 10
58
59
60## 10.1.0
61
62- ec78099 Feat: Add support for JSON Schema `const` and `$defs` keywords (#263)
63
64## 10.0.0
65
66Lots of bugfixes, some of which may be breaking changes.
67
68- 4aabd23 Bugfix: Correctly generate intersection types when a schema combines multiple JSON Schema directives (eg. `properties` and `allOf`) (#157, #243, #256, #314)
69- 3a45990 Bugfix: Referenced schemas are now correctly normalized, improving emitted type declarations for some kinds of referenced schemas with properies using `minItems` or `maxItems`
70- 800c076 1ec105d Bugfix: Fix bugs where complex unions were partially emitted in some cases (#277, #320, #326, #327)
71- 828cc05 Bugfix: Fixed an issue where enum names were sometimes incorrectly generated (#339)
72- e038017 Bugfix: Fixed an issue where union member names and comments were incorrect or omitted in some cases (#329)
73- 2b406f9 Bugfix: Fixed an issue where base types were not deduped before emission when using `extends` (#322)
74- 47036f5 ba4aa65 Perf: Significant performance improvements
75
76## 9.1.0
77
78- d88a514 Bugfix: Improve deduping logic for `anyOf` (#273)
79- 8f3f101 Bugfix: Multiple fixes for CLI
80- d0ad44b Perf: Improve normalizer performance (#286)
81
82## 9.0.0
83
84This release brings improved typesafety, thorough testing of all supported NodeJS version and operating systems on CI, and bugfixes.
85
86- 105d239 Feat: Emit `unknown` instead of `any` by default
87- 8f0b1bc Feat: Add `unknownAny` CLI option (#281)
88- 375dfd2 Bugfix: Fix generated type names to increment counters, instead of appending when we're unable to infer a type's name
89- 7f52f98 Drop support for NodeJS <10
90
91## 8.2.0
92
93- a0257d8 Feat: Add support for directories and globs as inputs (#238)
94
95## 8.1.0
96
97- 1d24618 Feat: Add `ignoreMinAndMaxItems` CLI option, defaulting to false (#274)
98
99## 8.0.0
100
101- e144890 Bugfix: Improve generated output when mixing nulls and unions (#261)
102
103## 7.1.0
104
105- ddbd627 Feat: Add `strictIndexSignatures` CLI option, defaulting to false (#252)
106
107## 7.0.0
108
109- b9c4bcb Feat: Add support for `additionalItems` for tuple types
110- c5f4f03 Feat: Add support for `minItems` and `maxItems`
111
112## 6.1.0
113
114- 57f759f Feat: Add `@tslint` directive to disable linting for generated files by default (#192)
115
116## 6.0.0
117
118- b7737b7 Bugfix: Improve generated type & interface names to take input casing into account (#159)
119
120## 5.7.0
121
122- f1f4030 Feat: Add `tsType` schema extension to allow custom TypeScript types (#168)
123- 8599262 Feat: Add support for passing custom options when resolving `$ref`s (#180)
124- 25ef03b Feat: Improve error output for certain kinds of errors (#188)
125
126## 5.6.0
127
128- 923dbfc Feat: Add declarations for tuple types (#184)
129
130## 5.4.0
131
132- fc8540f Feat: Add partial support for `patternProperties`
133- 9167902 Feat: Add declarations for enums referenced by arrays (#146)
134
135## 5.3.0
136
137- 83e4a29 Feat: Add support for passing options in CLI
138
139## 5.2.0
140
141- 9187237 Feat: Add support for generating typings from `definitions` that are not directly referenced by a schema (#133)
142- 7d864b9 Feat: Add support for generating typings from `patternProperties` (#124)
143
144## 5.0.0
145
146- f59a837 Feat: Use [Prettier](prettier.io) for code formatting (#118)
147- 43484fc Debug: Use [Ava Snapshot testing](https://github.com/avajs/ava#snapshot-testing) for testing output (#45)
148
\No newline at end of file