Skip to content

Latest commit

 

History

History
84 lines (50 loc) · 2.39 KB

RELEASE_NOTES.md

File metadata and controls

84 lines (50 loc) · 2.39 KB

2.1.0

  • A field "jsdoc" is added to fields. It accepts either a string, or an array of strings that represent lines. This is used to add jsdoc comments to the field in the typescript output.

2.0.0

  • Mongoose is no longer included as a regular or peer dependency as it in many cases is not even used. If you do need to do mongoose output, you have to call setMongoose from the package

    import { setMongoose } from 'schematar' import * as mongoose from 'mongoose'

    setMongoose(mongoose)

1.12.0

  • Support arrays of an enum
  • Updated dependencies

1.11.1

  • Updated dependencies

1.11.0

  • mongoose schema generation now supports an options object which can include a transformer for altering the schema generation conditionally using code

1.9.0

  • Added allowAdditionalFieldsNested to json schema options. There is a potentially breaking change for subclassed Complex objects, as the second parameter was converted from a boolean to JSONSchemaOptions

1.8.0

  • Support for jsonSchema as a plain object added to the json schemadefinition

1.8.0

  • Support for mongoose as a plain object added to the mongoose field definition (not supported when outputting as file)

1.7.0

  • Schemas can now be used as types (as fields, etc.)

1.6.0

  • There is now an API for outputting a typescript interface
  • Mongoose is now an optional dependency

1.5.0

  • now is also compatible across schematar versions (starting from 1.5.0)

1.4.0

  • Arrays in mongoose support things like refs, indices and such
  • Complex types that come from different versions of schematar can be used interchangeable (the foreign version needs to be 1.4.0+ though)

1.3.2

  • Make mkdirp a regular dependency instead of a dev dependency

1.3.1

  • Generated typescript interface files have tslint and eslint completely disabled

1.3.0

  • Complex can now be subclassed and the subclasses can modify the output
  • Explicit exports for typescriptSchemas can have a complex as the schema
  • hashSchema can be called on complexes

1.2.0

  • Some dependency updates
  • Mongoose nested objects are not wrapped with a {type: ...} as it did not seem to have the intended effect

1.1.0

  • ObjectId is now a const string instead a symbol to make is work better in situations with multiple schematar installations
  • TypescriptSchemaDefinition is now exported to help set up proper types in schema files

1.0.2

  • Updated dependencies