WebstoneHQ / webstone-plugins

Start your next full-stack application with Webstone and configure it as you go.
MIT License
85 stars 6 forks source link

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

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

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`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.12.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.11.0...v0.12.0) - feat: Allow [@​map](https://togithub.com/map)() and other attributes on enums [`230ad5b`](https://togithub.com/MrLeebo/prisma-ast/commit/230ad5b) prisma-ast will now parse attributes on enums ```prisma enum Role { USER @​map("usr") ADMIN @​map("adm") ORGANIZATION @​map("org") // deprecated @​@​map("roles") } ``` and you can add attributes using `PrismaSchemaBuilder` ```ts builder.enum("Role").enumerator("GUEST").attribute("map", ['"gst"']) ``` which produces the following output ```prisma enum Role { USER @​map("usr") ADMIN @​map("adm") ORGANIZATION @​map("org") // deprecated GUEST @​map("gst") @​@​map("roles") } ``` ### [`v0.11.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.11.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.10.1...v0.11.0) 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`](https://togithub.com/MrLeebo/prisma-ast/commit/2e30232) ### [`v0.10.1`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.10.1) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.10.0...v0.10.1) - Add generator.assignments as a valid "findBy" source [`b69da60`](https://togithub.com/MrLeebo/prisma-ast/commit/b69da60) - Fix mismatch token on kebab case, fixes [#​36](https://togithub.com/MrLeebo/prisma-ast/issues/36) [`5c9c838`](https://togithub.com/MrLeebo/prisma-ast/commit/5c9c838) ### [`v0.10.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.10.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.9.1...v0.10.0) - feat: add finder methods to builder [`4865f0c`](https://togithub.com/MrLeebo/prisma-ast/commit/4865f0c) ### [`v0.9.1`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.9.1) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.9.0...v0.9.1) - fix: add produceSchema to package to resolve [#​32](https://togithub.com/MrLeebo/prisma-ast/issues/32) [`40a1347`](https://togithub.com/MrLeebo/prisma-ast/commit/40a1347) - docs: move code samples to a separate document [`4ca243c`](https://togithub.com/MrLeebo/prisma-ast/commit/4ca243c) ### [`v0.9.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.9.0): - Added support for composite types [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.8.1...v0.9.0) Adds [composite types](https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/composite-types) to the parser, printer, and Schema Builder ```prisma 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`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.8.1) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.8.0...v0.8.1) - fix: resolves [#​28](https://togithub.com/MrLeebo/prisma-ast/issues/28) by preventing comments from breaking into the next line [`866167d`](https://togithub.com/MrLeebo/prisma-ast/commit/866167d) ### [`v0.8.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.8.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.7.0...v0.8.0) - Add `parser` option to `getSchema` ([#​26](https://togithub.com/MrLeebo/prisma-ast/issues/26)) [`7dc2b97`](https://togithub.com/MrLeebo/prisma-ast/commit/7dc2b97) - Fix typo [`0162c72`](https://togithub.com/MrLeebo/prisma-ast/commit/0162c72) ### [`v0.7.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.7.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.6.0...v0.7.0) 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](https://togithub.com/MrLeebo/prisma-ast/issues/25)) [`035abad`](https://togithub.com/MrLeebo/prisma-ast/commit/035abad) - Replace tsdx with dts-cli and update typescript version ([#​24](https://togithub.com/MrLeebo/prisma-ast/issues/24)) [`620cfa1`](https://togithub.com/MrLeebo/prisma-ast/commit/620cfa1) - Narrow the allowed types for the .then() function's type param [`f71ff18`](https://togithub.com/MrLeebo/prisma-ast/commit/f71ff18) ### [`v0.6.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.6.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.5.2...v0.6.0) ##### BREAKING CHANGES - Add support for experimental views ([#​19](https://togithub.com/MrLeebo/prisma-ast/issues/19)) [`3412065`](https://togithub.com/MrLeebo/prisma-ast/commit/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`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.5.2) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.5.1...v0.5.2) - fix: fixes [#​17](https://togithub.com/MrLeebo/prisma-ast/issues/17) by including group in the attribute name match if group is present [`321a082`](https://togithub.com/MrLeebo/prisma-ast/commit/321a082) ### [`v0.5.1`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.5.1) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.5.0...v0.5.1) - Add helpers to remove fields, remove attributes, and to access elements of your prisma schema programmatically [`b4fd4cf`](https://togithub.com/MrLeebo/prisma-ast/commit/b4fd4cf) See the README for info about `builder.removeField()`, `builder.removeAttribute()`, and `builder.then()`. ### [`v0.5.0`](https://togithub.com/MrLeebo/prisma-ast/releases/tag/v0.5.0) [Compare Source](https://togithub.com/MrLeebo/prisma-ast/compare/v0.4.3...v0.5.0) - Let builder.field() calls select existing fields [`c397d46`](https://togithub.com/MrLeebo/prisma-ast/commit/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.



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

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 27655a9799622cfd8cd30f9b05f06f675c608f5b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR