Skip to content

v0.11.0

Choose a tag to compare

@MrLeebo MrLeebo released this 09 Mar 06:55
· 23 commits to main since this release

BREAKING CHANGE

In the internal parser, { type: "fieldAttribute" } and { type: "blockAttribute" } have been made into separate nodes. Previously, the same node { type: "attribute" } was reused for both. This makes it easier for the parser to distinguish which kind of node it's getting because schemas can have block attributes intermixed with their field attributes.

This is only a breaking change if you're accessing the internal AST to access attributes. Higher level abstractions, such as produceSchema / PrismaSchemaBuilder are not impacted by this.

  • Fix printing when block attributes are mixed in with fields 2e30232

v0.10.1...v0.11.0