diff --git a/.github/release/.release-manifest.json b/.github/release/.release-manifest.json index 93df5a09b..295b1f5e2 100644 --- a/.github/release/.release-manifest.json +++ b/.github/release/.release-manifest.json @@ -1,7 +1,7 @@ { ".": "2.0.0", "packages/ide/jetbrains": "2.0.0-alpha.1", - "packages/language": "2.0.0-alpha.1", + "packages/language": "2.0.0", "packages/misc/redwood": "2.0.0-alpha.1", "packages/plugins/openapi": "2.0.0-alpha.1", "packages/plugins/swr": "2.0.0-alpha.1", diff --git a/packages/language/CHANGELOG.md b/packages/language/CHANGELOG.md new file mode 100644 index 000000000..4bbfd8292 --- /dev/null +++ b/packages/language/CHANGELOG.md @@ -0,0 +1,87 @@ +# Changelog + +## [2.0.0](https://github.com/Eventiva/zenstack/compare/Language-v2.0.0-alpha.1...Language-v2.0.0) (2024-02-19) + + +### Features + +* a better "zod" plugin ([#521](https://github.com/Eventiva/zenstack/issues/521)) ([2280f83](https://github.com/Eventiva/zenstack/commit/2280f83cd7f1f597fddfd6ab0c99417200124452)) +* Add multi-schema file support ([#368](https://github.com/Eventiva/zenstack/issues/368)) ([4e57b96](https://github.com/Eventiva/zenstack/commit/4e57b9640e6c9d0cca25a3c12a981ea6c9dbfda6)) +* add prisma passthrough attribute for working around discripancies between zmodel and prisma ([#245](https://github.com/Eventiva/zenstack/issues/245)) ([cef96d4](https://github.com/Eventiva/zenstack/commit/cef96d4b6fe0a4d7d38742565817aca8e6533933)) +* add support for filter operator functions ([#289](https://github.com/Eventiva/zenstack/issues/289)) ([7914470](https://github.com/Eventiva/zenstack/commit/79144709b3bd56adf0a30f27b69426702980b95f)) +* add support for type modifier attributes ([#240](https://github.com/Eventiva/zenstack/issues/240)) ([a05d320](https://github.com/Eventiva/zenstack/commit/a05d320e7135440c20f3d75746c62ae67bfabd58)) +* express.js adapter ([#271](https://github.com/Eventiva/zenstack/issues/271)) ([e12fc5a](https://github.com/Eventiva/zenstack/commit/e12fc5a4ca4c71c10c1d34fc4a1d19f9fb9f75bb)) +* improvements of openapi plugin ([#335](https://github.com/Eventiva/zenstack/issues/335)) ([3b9e356](https://github.com/Eventiva/zenstack/commit/3b9e3567b81eec050f208ae5e97ae0c2e544ab0f)) +* JetBrains plugin for ZModel ([#904](https://github.com/Eventiva/zenstack/issues/904)) ([c79be9e](https://github.com/Eventiva/zenstack/commit/c79be9eb7f6b602bc84214bded2b927935b6273a)) +* make parameters of transactions configurable ([#988](https://github.com/Eventiva/zenstack/issues/988)) ([d0745b1](https://github.com/Eventiva/zenstack/commit/d0745b149a5ce6abfef546de0b9243ddc4f6e765)) +* OpenAPI & fastify adapter ([#254](https://github.com/Eventiva/zenstack/issues/254)) ([dd9963c](https://github.com/Eventiva/zenstack/commit/dd9963cd35d414ebf61727bb4a5d9ad0c31100e0)) +* polymorphism ([#990](https://github.com/Eventiva/zenstack/issues/990)) ([bac3683](https://github.com/Eventiva/zenstack/commit/bac368382b6c92585bc983861a56d141093b7896)) +* react-hooks generator and runtime targeting @tanstack/react-query ([#309](https://github.com/Eventiva/zenstack/issues/309)) ([21ccddb](https://github.com/Eventiva/zenstack/commit/21ccddb9be437eabed35fbc62ae43c1e192d289e)) +* support "Unsupported" field type ([#366](https://github.com/Eventiva/zenstack/issues/366)) ([e232271](https://github.com/Eventiva/zenstack/commit/e23227151d963b5a7d65ee31a4bddaf10d8db759)) +* support abstract model ([#308](https://github.com/Eventiva/zenstack/issues/308)) ([2fa3aee](https://github.com/Eventiva/zenstack/commit/2fa3aeefffd7b8425836107d4e0e69cfe0187921)) +* support multi-id-field models (@[@id](https://github.com/id)([f1, f2, ...])) ([#243](https://github.com/Eventiva/zenstack/issues/243)) ([7e55e65](https://github.com/Eventiva/zenstack/commit/7e55e652eceacec108dd4966ff08cfef184cd8ab)) +* support Prisma view ([#579](https://github.com/Eventiva/zenstack/issues/579)) ([af151b7](https://github.com/Eventiva/zenstack/commit/af151b7b311ee96b626376b8a17103b18c261f65)) +* support self relations ([#244](https://github.com/Eventiva/zenstack/issues/244)) ([93cb6bf](https://github.com/Eventiva/zenstack/commit/93cb6bfc847d8b97612e849cffcbfe7723630ad9)) +* zod plugin and zod validation for open-api requests ([#262](https://github.com/Eventiva/zenstack/issues/262)) ([51c094e](https://github.com/Eventiva/zenstack/commit/51c094e329df0d1ebb28239d5fe5ff4608065280)) + + +### Bug Fixes + +* add "exports" to generated package.json, make trpc code-gen compatible with vite ([#677](https://github.com/Eventiva/zenstack/issues/677)) ([df67f30](https://github.com/Eventiva/zenstack/commit/df67f301119db23e5048464de2f73bff1a2adffc)) +* add `CheckSelect` type into code for Prisma version backward compatibility ([#619](https://github.com/Eventiva/zenstack/issues/619)) ([3e09a3a](https://github.com/Eventiva/zenstack/commit/3e09a3a6646ae0f6e393cc0f92991c9b5d0c4d29)) +* add missing attribute parameters and loosen keyword restrictions ([#394](https://github.com/Eventiva/zenstack/issues/394)) ([ef7acd7](https://github.com/Eventiva/zenstack/commit/ef7acd7c069225775e83411a4dfd8c31b2bf0c00)) +* add support for @[@schema](https://github.com/schema) attribute, and allow arbitrary fields in datasource ([#250](https://github.com/Eventiva/zenstack/issues/250)) ([9d45384](https://github.com/Eventiva/zenstack/commit/9d4538445600b856962b200ca0faa0bbfff68f8a)) +* allow "view" and "import" as identifier ([#750](https://github.com/Eventiva/zenstack/issues/750)) ([2e15dfb](https://github.com/Eventiva/zenstack/commit/2e15dfb747fa871a5b25661e3e320a1a5f3cc92a)) +* allow models without field declarations ([#749](https://github.com/Eventiva/zenstack/issues/749)) ([43322e1](https://github.com/Eventiva/zenstack/commit/43322e111adfc7d888aa8dc04445a5b0f8c2dbcc)) +* automatically enable "@core/zod" plugin when there're validation rules ([#535](https://github.com/Eventiva/zenstack/issues/535)) ([0519421](https://github.com/Eventiva/zenstack/commit/05194219f28e49ee11d1a1bd9a78146e9b76eada)) +* batch bug fixes ([#273](https://github.com/Eventiva/zenstack/issues/273)) ([e1600c8](https://github.com/Eventiva/zenstack/commit/e1600c8bc69cb3cf51fb763a86b06834810236eb)) +* build, lint and etc. ([#833](https://github.com/Eventiva/zenstack/issues/833)) ([cccbc3c](https://github.com/Eventiva/zenstack/commit/cccbc3c82ad522d40bc76ad7b84b1305d378b1db)) +* change back to loading from literal ".zenstack" path otherwise Vercel breaks :( ([#701](https://github.com/Eventiva/zenstack/issues/701)) ([2d41a9f](https://github.com/Eventiva/zenstack/commit/2d41a9fcffab2fa228356a5cc45b4c2ecd62fd63)) +* change openapi plugin's default flavor to "rpc" ([#439](https://github.com/Eventiva/zenstack/issues/439)) ([ec65e53](https://github.com/Eventiva/zenstack/commit/ec65e53f202e3e02ea98a9c88682c106dcbafc76)) +* clean up peer dependencies ([#218](https://github.com/Eventiva/zenstack/issues/218)) ([a9283cd](https://github.com/Eventiva/zenstack/commit/a9283cde3bb20408ffcaca97cf6871e7a0b9c1c4)) +* clean up zod generation ([#883](https://github.com/Eventiva/zenstack/issues/883)) ([909281f](https://github.com/Eventiva/zenstack/commit/909281f8090734322c0cab09d0187b6b5e813c9a)) +* clean up zod generation ([#883](https://github.com/Eventiva/zenstack/issues/883)) ([9d4a8ed](https://github.com/Eventiva/zenstack/commit/9d4a8ede7d42d1966fd5a12d64a5992092f4bc7d)) +* disable eslint in generated hooks, refactor package inter-dependencies ([9e84126](https://github.com/Eventiva/zenstack/commit/9e8412645e06f0bf63f85c8bb61ad00384fdef99)) +* enable auto completion inside attribute ([#949](https://github.com/Eventiva/zenstack/issues/949)) ([20d5bfc](https://github.com/Eventiva/zenstack/commit/20d5bfc506a42b520eb1cf390149b7afc7c38701)) +* enhanced client doesn't work with client extensions that add new model methods ([#851](https://github.com/Eventiva/zenstack/issues/851)) ([ea564c9](https://github.com/Eventiva/zenstack/commit/ea564c93e9ca2a888c0e53216633d66c733f6beb)) +* fix react-query code-gen and improve mutation options merging ([#314](https://github.com/Eventiva/zenstack/issues/314)) ([51484a7](https://github.com/Eventiva/zenstack/commit/51484a76f90e5efd0a651bab9f6aa864baab95f2)) +* handle @[@ignore](https://github.com/ignore) models properly in plugins ([#283](https://github.com/Eventiva/zenstack/issues/283)) ([6f7cb0e](https://github.com/Eventiva/zenstack/commit/6f7cb0e6513d606c98b097c65c0573ad1f006b2c)) +* hooks generation emits Provider export for backward compatibility ([#594](https://github.com/Eventiva/zenstack/issues/594)) ([ca3ebda](https://github.com/Eventiva/zenstack/commit/ca3ebdae4e213d3901bb5834fd9ebf1217da94a7)) +* improve clarity of dealing with `auth()` during policy generation ([#293](https://github.com/Eventiva/zenstack/issues/293)) ([c3b456a](https://github.com/Eventiva/zenstack/commit/c3b456a3b6e841d7eedc7565ef87cafd90fca2d6)) +* improve consistency of generated guard code ([#616](https://github.com/Eventiva/zenstack/issues/616)) ([1b7b5bd](https://github.com/Eventiva/zenstack/commit/1b7b5bda3f5106d31b7f5e70be27158fb8217600)) +* incorrect relation owner analysis ([#610](https://github.com/Eventiva/zenstack/issues/610)) ([c89012b](https://github.com/Eventiva/zenstack/commit/c89012bcb8d32588cc7f5a1df19088292e571cec)) +* incorrect reverse query built for to-many relation ([#815](https://github.com/Eventiva/zenstack/issues/815)) ([2c345e1](https://github.com/Eventiva/zenstack/commit/2c345e1d4fe7274b7a08c1178afccede1d694327)) +* issue [#627](https://github.com/Eventiva/zenstack/issues/627) ([#628](https://github.com/Eventiva/zenstack/issues/628)) ([2ef93cb](https://github.com/Eventiva/zenstack/commit/2ef93cb932e7aed6923cd3d7e69069d0c9ff161b)) +* issue 961, incorrect policy injection for nested `updateMany` ([#962](https://github.com/Eventiva/zenstack/issues/962)) ([2b2bfcf](https://github.com/Eventiva/zenstack/commit/2b2bfcff965f9a70ff2764e6fbc7613b6f061685)) +* issue with connecting multiple relations ([#450](https://github.com/Eventiva/zenstack/issues/450)) ([dd6be95](https://github.com/Eventiva/zenstack/commit/dd6be9509c46fd4dfff500a53070259410b6a61f)) +* issue with dealing with result read-back for nextjs and react hooks ([8e630e0](https://github.com/Eventiva/zenstack/commit/8e630e0855b55de4b67b7055b0e6f88cc72e352f)) +* issue with dealing with result read-back for nextjs and react hooks ([#223](https://github.com/Eventiva/zenstack/issues/223)) ([fb1ec3d](https://github.com/Eventiva/zenstack/commit/fb1ec3d916295fdf9da71e0cd8372423e606d2da)) +* make core plugins compile generated ts files by default ([#373](https://github.com/Eventiva/zenstack/issues/373)) ([4bf1304](https://github.com/Eventiva/zenstack/commit/4bf1304c6518cc027b1a1f2d33fea70979d9d94b)) +* make sure Buffer is imported ([#596](https://github.com/Eventiva/zenstack/issues/596)) ([76a0bac](https://github.com/Eventiva/zenstack/commit/76a0bac9c63707baf34a072e398b63156c1e0640)) +* make sure zod schemas have type annotations ([#574](https://github.com/Eventiva/zenstack/issues/574)) ([51985b1](https://github.com/Eventiva/zenstack/commit/51985b1279dca8e82a7275330a7b6597f37d15a4)) +* missing string quote during function arg gen ([#234](https://github.com/Eventiva/zenstack/issues/234)) ([88828e3](https://github.com/Eventiva/zenstack/commit/88828e309c8aab2a43bd06c7f9beaadcb070d3a6)) +* more tests and bump version ([#225](https://github.com/Eventiva/zenstack/issues/225)) ([cabe9dc](https://github.com/Eventiva/zenstack/commit/cabe9dc956b32bd854a3bbbfe88e9203412703ca)) +* number literal precision issue ([#659](https://github.com/Eventiva/zenstack/issues/659)) ([6275701](https://github.com/Eventiva/zenstack/commit/627570166f858488aa7fb6a6291fccfadb0d9f9f)) +* open-api issues ([#446](https://github.com/Eventiva/zenstack/issues/446)) ([2855647](https://github.com/Eventiva/zenstack/commit/285564751094797da8484bf041a9d3a4eafafc9d)) +* openapi generator relation handling ([#320](https://github.com/Eventiva/zenstack/issues/320)) ([f1c9765](https://github.com/Eventiva/zenstack/commit/f1c9765b778f8fb476c015a2f3bbe72dd94ef6b0)) +* post-update rules incorrectly reject update ([#826](https://github.com/Eventiva/zenstack/issues/826)) ([d921a7c](https://github.com/Eventiva/zenstack/commit/d921a7ca6bef0341ccf5bc50e195156695129e7f)) +* post-update rules incorrectly reject update ([#826](https://github.com/Eventiva/zenstack/issues/826)) ([e85831e](https://github.com/Eventiva/zenstack/commit/e85831e98d08a433febb5a8fecf8d539150ced08)) +* short-circuit post-read check when policy rules don't depend on model fields ([#376](https://github.com/Eventiva/zenstack/issues/376)) ([a54eba4](https://github.com/Eventiva/zenstack/commit/a54eba45f64382ed070e5aeabe0c8dc263bebc0d)) +* support for string escaping in ZModel ([#668](https://github.com/Eventiva/zenstack/issues/668)) ([f034839](https://github.com/Eventiva/zenstack/commit/f034839867fa438da866bd87548b4a18246dee21)) +* support object literal in plugin fields processing ([#351](https://github.com/Eventiva/zenstack/issues/351)) ([8284988](https://github.com/Eventiva/zenstack/commit/8284988cf12c3c4f3983c36c3658201db5509b2c)) +* support postgres extensions ([#718](https://github.com/Eventiva/zenstack/issues/718)) ([cdc98e0](https://github.com/Eventiva/zenstack/commit/cdc98e08224a23ea3f6e5d620c11c90a34ed6435)) +* support string literal keys for object expressions in ZModel ([#752](https://github.com/Eventiva/zenstack/issues/752)) ([22b1bf9](https://github.com/Eventiva/zenstack/commit/22b1bf9ddd4062000f2cd7d183e004dd3d5917c6)) +* trpc mutation route should return undefined when result is not readable ([#227](https://github.com/Eventiva/zenstack/issues/227)) ([a3926c2](https://github.com/Eventiva/zenstack/commit/a3926c2d69353c5f047f68d70f717db6872cce20)) +* undefined field access when selecting with _count ([#403](https://github.com/Eventiva/zenstack/issues/403)) ([d90d7c8](https://github.com/Eventiva/zenstack/commit/d90d7c83e95d33c85e9c3b4b650e014ee76136c3)) +* update langium version ([26dd30f](https://github.com/Eventiva/zenstack/commit/26dd30f8a00e030d4ec605cf0b88261e2944c43a)) +* update langium version ([#290](https://github.com/Eventiva/zenstack/issues/290)) ([23180ce](https://github.com/Eventiva/zenstack/commit/23180cee63fd5a140d154857c170d597224679e6)) +* Validation errors when using true or false as prefix of id ([#530](https://github.com/Eventiva/zenstack/issues/530)) ([551b33d](https://github.com/Eventiva/zenstack/commit/551b33d8bec622e445b5635ae4a147774c91c0fe)) +* vscode language accidentally bundles prisma packages ([#625](https://github.com/Eventiva/zenstack/issues/625)) ([f6b68da](https://github.com/Eventiva/zenstack/commit/f6b68dabc9e089230bc6d8f8e802e8fbc43a8a69)) +* wrong dev dependency in cli project ([#318](https://github.com/Eventiva/zenstack/issues/318)) ([181f9ef](https://github.com/Eventiva/zenstack/commit/181f9ef17899d11d23369f1d485c2d964e2d4561)) +* wrong return type of generated `count` hook ([#347](https://github.com/Eventiva/zenstack/issues/347)) ([2035319](https://github.com/Eventiva/zenstack/commit/2035319a030369dc0c847eaac248f2d9acdc7c7b)) +* wrong type generated for `groupBy` hook ([#344](https://github.com/Eventiva/zenstack/issues/344)) ([83fd21e](https://github.com/Eventiva/zenstack/commit/83fd21e5b2c55ca182386be61151386f0400bdd0)) + + +### Performance Improvements + +* improve runtime performance by removing expensive verbose logging ([#371](https://github.com/Eventiva/zenstack/issues/371)) ([0d7a2bf](https://github.com/Eventiva/zenstack/commit/0d7a2bf417c6ea5cc5c6c3568593a0fbe7d7903e)) diff --git a/packages/language/package.json b/packages/language/package.json index a222a6d95..665f6b020 100644 --- a/packages/language/package.json +++ b/packages/language/package.json @@ -1,6 +1,6 @@ { "name": "@zenstackhq/language", - "version": "2.0.0-alpha.1", + "version": "2.0.0", "displayName": "ZenStack modeling language compiler", "description": "ZenStack modeling language compiler", "homepage": "https://zenstack.dev", @@ -23,7 +23,7 @@ "plist2": "^1.1.3" }, "dependencies": { - "langium": "1.3.1" + "langium": "1.3.1" }, "contributes": { "languages": [