webstone-plugins icon indicating copy to clipboard operation
webstone-plugins copied to clipboard

fix(deps): update dependency @mrleebo/prisma-ast to ^0.12.0

Open renovate[bot] opened this issue 1 year ago • 1 comments

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@mrleebo/prisma-ast ^0.4.3 -> ^0.12.0 age adoption passing confidence

Release Notes

MrLeebo/prisma-ast (@​mrleebo/prisma-ast)

v0.12.0

Compare Source

prisma-ast will now parse attributes on enums

enum Role {
  USER         @​map("usr")
  ADMIN        @​map("adm")
  ORGANIZATION @​map("org") // deprecated

  @​@​map("roles")
}

and you can add attributes using PrismaSchemaBuilder

builder.enum("Role").enumerator("GUEST").attribute("map", ['"gst"'])

which produces the following output

enum Role {
  USER         @​map("usr")
  ADMIN        @​map("adm")
  ORGANIZATION @​map("org") // deprecated
  GUEST        @​map("gst")

  @​@​map("roles")
}

v0.11.0

Compare Source

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

Compare Source

  • Add generator.assignments as a valid "findBy" source b69da60
  • Fix mismatch token on kebab case, fixes #​36 5c9c838

v0.10.0

Compare Source

  • feat: add finder methods to builder 4865f0c

v0.9.1

Compare Source

  • fix: add produceSchema to package to resolve #​32 40a1347
  • docs: move code samples to a separate document 4ca243c

v0.9.0: - Added support for composite types

Compare Source

Adds composite types to the parser, printer, and Schema Builder

model Gallery {
  photos Photo[]
}

type Photo {
  width Int
  height Int
  url String
}

The schema node is { type: "type" } and the builder method is builder.type("Photo")

v0.8.1

Compare Source

  • fix: resolves #​28 by preventing comments from breaking into the next line 866167d

v0.8.0

Compare Source

v0.7.0

Compare Source

This release adds optional location tracking stats, making it possible to use prisma-ast for linters, github workflows, IDE plugins, and the like.

  • Add config option to enable location tracking in prisma-ast (#​25) 035abad
  • Replace tsdx with dts-cli and update typescript version (#​24) 620cfa1
  • Narrow the allowed types for the .then() function's type param f71ff18

v0.6.0

Compare Source

BREAKING CHANGES
  • Add support for experimental views (#​19) 3412065 builder.modelAttribute() has been renamed to builder.blockAttribute() to reflect the fact that it can be used for models and views.

v0.5.2

Compare Source

  • fix: fixes #​17 by including group in the attribute name match if group is present 321a082

v0.5.1

Compare Source

  • Add helpers to remove fields, remove attributes, and to access elements of your prisma schema programmatically b4fd4cf

See the README for info about builder.removeField(), builder.removeAttribute(), and builder.then().

v0.5.0

Compare Source

  • Let builder.field() calls select existing fields c397d46

Configuration

📅 Schedule: Branch creation - "every weekend" in timezone America/Vancouver, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Aug 12 '23 18:08 renovate[bot]