Skip to content

Releases: kafkas/typesync

v0.10.0

24 Jun 15:54
Compare
Choose a tag to compare

Breaking Changes

  • double types now compile to number in Security Rules type validators
  • Renamed the validatorNamePattern option for the generate-rules command to typeValidatorNamePattern.
  • Renamed the validatorParamName option for the generate-rules command to typeValidatorParamName.

v0.9.0

23 May 09:32
Compare
Choose a tag to compare

New Features

  • Implemented the Mermaid graph generator. The generate-graph command will now generate a Mermaid graph for a given schema and inject it into the specified Markdown file.

Breaking Changes

  • Document models are now required to have a path field.

v0.8.0

12 May 12:13
Compare
Choose a tag to compare

New Features

  • Implemented the objectTypeFormat config option for TypeScript.
  • JSON definition files can now include a $schema key. This key will be ignored since it's used to load the JSON schema.
  • Added any type to the spec.

v0.7.0

11 May 05:04
Compare
Choose a tag to compare

New Features

  • Implemented the undefinedSentinelName config option for Python.
  • Implemented a change to expose factory methods for schema and schema types.
  • Implemented generateRepresentation() in the programmatic API.

Improvements

  • The debug key in ValidateOptions is now optional.
  • The startMarker and endMarker options are now required to be distinct non-empty strings.
  • Improved the check that searches for markers in the Rules file.
  • Optional discriminant fields are now disallowed.

Breaking Changes

  • Dropped support for mixed enums. Enum members must be either string or int.

v0.6.3

05 May 18:37
Compare
Choose a tag to compare
  • The programmatic API is now exposed as CommonJS

v0.6.2

05 May 16:47
Compare
Choose a tag to compare

Bug Fixes

  • Fixed a bug where the process would exit with code 0 for failed commands. Exit code will now be 1 for errors.

v0.6.1

05 May 06:47
Compare
Choose a tag to compare
  • Models are now sorted alphabetically in the schema.

v0.6.0

04 May 10:48
Compare
Choose a tag to compare

New Features

  • Implemented a programmatic API that allows developers to import typesync-cli into their Node applications and generate types programmatically.
  • Implemented the Security Rules generator. The new generate-rules command will generate and inject type validators for a given schema into the specified Security Rules file.

Breaking Changes

  • Changed platform names to remove the language prefix and change the last : to @ (e.g. ts:firebase:10 -> firebase@10)
  • Renamed the platform option to target.
  • Split generate into generate-ts, generate-swift, and generate-py commands.

v0.5.0

27 Apr 11:14
Compare
Choose a tag to compare
  • Changed the default indentation to 2.
  • Implemented the customPydanticBase option that makes the generated models extend from a custom Pydantic base class.

v0.4.2

26 Apr 12:52
Compare
Choose a tag to compare
  • Fixed a bug where the Swift generator was ignoring the indentation parameter.