Releases: ggoodman/json-schema-to-dts
Release list
v2.0.1
v2.0.0
2.0.0 (2024-04-12)
Bug Fixes
- correct the event name for manual dispatch (fe9db03)
- escape property names that are invalid identifiers (#9) (67e439c), closes #7
- improve typescript specificity on util func (39f8ef9)
- rename release workflow to get around GitHub bug (hopefully) (92451db)
- tweak actions syntax for repository_dispatch event (d40f1a5)
chore
BREAKING CHANGES
-
This change bumps the minimum node version to Node 18.12.0 (LTS).
-
chore: drop node 16 from CI matrix
-
This commit introduces semantic release and for that
we're bumping the major version.
v1.5.0
Added
- Added support for opting out of emitting the
@seedirectives in schema doc comments through theomitIdCommentsoption. By default, these tags will be emitted to preserve backwards-compatibility. To omit these comments,omitIdComments: truecan be specified as an option. - Introduce the
shouldOmitTypeEmitoption to thecompilemethod ofParserinstances. This option allows consumers to conditionally skip the emit of some sub-schemas' types. This function receives references to the child node being emitted and the parent node.
v1.4.1
v1.4.0
Added
-
The type used for open-ended schemas can be passed via the
anyTypeoption in the Partser'sgenerateTypingsmethod.Some use-cases may demand strict typing for values whose shape cannot be known a priori, in which case
"unknown"would be a good fit. In other cases, a consumer of an object typed using this library might find it helpful to know that only JSON-serializable values can be present. In that case, the"JSONValue"option would be suitable. Finally, in cases where consumers of the type definitions may want minimal friction from the type-checker,"any"might be the best choice.