Skip to content

Latest commit

 

History

History
162 lines (97 loc) · 3.55 KB

CHANGELOG.md

File metadata and controls

162 lines (97 loc) · 3.55 KB

Changelog

[1.3.11]

  • Better argument names for Decimal types for MySQL

[1.3.9] [1.3.10]

  • Expose schema generation without writing via Refract.generate

[1.3.8]

  • Actually fix Enum fields

[1.3.7]

  • Fixes inability to have non-nullable non-default enum columns
  • Fixes issue where enum keys without a comment, would always have a comment which would be the name of the key itself

[1.3.5]

  • Fixes MySQL native type argument for Char (#16)

[1.3.4]

  • Fixes crash when previewFeatures are not available in generator (#12)

[1.3.3]

  • Allows Mixins to use .Block() for @@index etc.

[1.3.2]

  • Relationships fields in more type safe and shorter way (#9)

[1.3.1]

  • Documentation improvements

[1.3.0]

  • Deprecated Comment modifier over changing .Field() & Enum signatures to include an optional ending parameter

[1.2.3]

  • Update README image

[1.2.2]

  • Adds @@fulltext compound field

[1.2.1]

  • Improved documentation

[1.2.0]

  • Adds ability to add comments to models / enums
  • Adds Comment modifier

[1.1.4]

  • Refactors and fixes bugs in the postgresql native db modifiers (#5)
  • Adds support to CockroachDB native modifiers and scallar array modifier (#6)

[1.1.3]

  • Fixes nullable enums

[1.1.2]

  • Allows for direct schema imports into Refract
    • e.g. import schema from './schema'

[1.1.1]

Spoke too soon

  • Adds all the @db attributes for mysql, postgresql & mongodb providers
  • Adds .Block() for properties like @@map, @@id etc.
  • Adds Unsupported type

[1.1.0]

Should be at parity with Prisma schema now

  • Adds OnUpdate & OnDelete referential action modifiers
  • Adds pre-generation checks for relations (assert both sides have Ids etc.)
  • Adds support for name field to Relation fields for ambigious relations
  • Renames Pk().Fk() to Fields & References modifiers

Once again thanks to bacali95 for contributing!

[1.0.12]

  • Fixes String type to be able to have @id decorator #3
  • Improved formatting (decorator alignment) #2
  • Fixes transforming function calls as values #1

Big thanks to bacali95 for these changes :)

[1.0.11]

[1.0.10]

  • Adds Raw decorator escape hatch, similar to .Raw() model method
    • Can now do Raw('@db.ObjectId') etc to use un-supported decorators
  • Fixes some out of date documentation

[1.0.9]

  • Adds Map decorator (e.g. @map("foo"))
  • Renames Varchar to String
  • Renames Index to Id
    • Adds cuid(), uuid()
  • Adds Ignore decorator (e.g. @ignore)
  • Adds Float, BigInt, Bytes, Decimal scalars
  • Refactors how Enums are created
    • Adds Key
    • Enums definitions can now have decorators
  • Refactors types on data-types to be more specific

[1.0.8]

[1.0.7]

[1.0.6]

  • Fix issue with Enum codegen always being nullable when having >=1 modifier
  • Improve documentation

[1.0.5]

  • Useage documentation
  • Added CI testing

[1.0.4]

  • Removed field checking on relationships because of fails with circular relationships

[1.0.3]

  • Added block alignment
  • Added OneToOne() relationships

[1.0.2]

  • Added .Raw() Prisma escape hatch
  • Added .Mixin() utility field

[1.0.1]

  • Added enums

[1.0.0]

  • Initial release