UNPKG

3.47 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## 10.1.0
6
7- ec78099 Feat: Add support for JSON Schema `const` and `$defs` keywords (#263)
8
9## 10.0.0
10
11Lots of bugfixes, some of which may be breaking changes.
12
13- 4aabd23 Bugfix: Correctly generate intersection types when a schema combines multiple JSON Schema directives (eg. `properties` and `allOf`) (#157, #243, #256, #314)
14- 3a45990 Bugfix: Referenced schemas are now correctly normalized, improving emitted type declarations for some kinds of referenced schemas with properies using `minItems` or `maxItems`
15- 800c076 1ec105d Bugfix: Fix bugs where complex unions were partially emitted in some cases (#277, #320, #326, #327)
16- 828cc05 Bugfix: Fixed an issue where enum names were sometimes incorrectly generated (#339)
17- e038017 Bugfix: Fixed an issue where union member names and comments were incorrect or omitted in some cases (#329)
18- 2b406f9 Bugfix: Fixed an issue where base types were not deduped before emission when using `extends` (#322)
19- 47036f5 ba4aa65 Perf: Significant performance improvements
20
21## 9.1.0
22
23- d88a514 Bugfix: Improve deduping logic for `anyOf` (#273)
24- 8f3f101 Bugfix: Multiple fixes for CLI
25- d0ad44b Perf: Improve normalizer performance (#286)
26
27## 9.0.0
28
29This release brings improved typesafety, thorough testing of all supported NodeJS version and operating systems on CI, and bugfixes.
30
31- 105d239 Feat: Emit `unknown` instead of `any` by default
32- 8f0b1bc Feat: Add `unknownAny` CLI option (#281)
33- 375dfd2 Bugfix: Fix generated type names to increment counters, instead of appending when we're unable to infer a type's name
34- 7f52f98 Drop support for NodeJS <10
35
36## 8.2.0
37
38- a0257d8 Feat: Add support for directories and globs as inputs (#238)
39
40## 8.1.0
41
42- 1d24618 Feat: Add `ignoreMinAndMaxItems` CLI option, defaulting to false (#274)
43
44## 8.0.0
45
46- e144890 Bugfix: Improve generated output when mixing nulls and unions (#261)
47
48## 7.1.0
49
50- ddbd627 Feat: Add `strictIndexSignatures` CLI option, defaulting to false (#252)
51
52## 7.0.0
53
54- b9c4bcb Feat: Add support for `additionalItems` for tuple types
55- c5f4f03 Feat: Add support for `minItems` and `maxItems`
56
57## 6.1.0
58
59- 57f759f Feat: Add `@tslint` directive to disable linting for generated files by default (#192)
60
61## 6.0.0
62
63- b7737b7 Bugfix: Improve generated type & interface names to take input casing into account (#159)
64
65## 5.7.0
66
67- f1f4030 Feat: Add `tsType` schema extension to allow custom TypeScript types (#168)
68- 8599262 Feat: Add support for passing custom options when resolving `$ref`s (#180)
69- 25ef03b Feat: Improve error output for certain kinds of errors (#188)
70
71## 5.6.0
72
73- 923dbfc Feat: Add declarations for tuple types (#184)
74
75## 5.4.0
76
77- fc8540f Feat: Add partial support for `patternProperties`
78- 9167902 Feat: Add declarations for enums referenced by arrays (#146)
79
80## 5.3.0
81
82- 83e4a29 Feat: Add support for passing options in CLI
83
84## 5.2.0
85
86- 9187237 Feat: Add support for generating typings from `definitions` that are not directly referenced by a schema (#133)
87- 7d864b9 Feat: Add support for generating typings from `patternProperties` (#124)
88
89## 5.0.0
90
91- f59a837 Feat: Use [Prettier](prettier.io) for code formatting (#118)
92- 43484fc Debug: Use [Ava Snapshot testing](https://github.com/avajs/ava#snapshot-testing) for testing output (#45)
93
\No newline at end of file