Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(v2): release OpenAPI_Plugin 2.0.0 #8

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release/.release-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages/ide/jetbrains": "2.0.0-alpha.1",
"packages/language": "2.0.0-alpha.1",
"packages/misc/redwood": "2.0.0-alpha.1",
"packages/plugins/openapi": "2.0.0-alpha.1",
"packages/plugins/openapi": "2.0.0",
"packages/plugins/swr": "2.0.0-alpha.1",
"packages/plugins/tanstack-query": "2.0.0-alpha.1",
"packages/plugins/trpc": "2.0.0-alpha.1",
Expand Down
78 changes: 78 additions & 0 deletions packages/plugins/openapi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Changelog

## [2.0.0](https://github.com/Eventiva/zenstack/compare/OpenAPI_Plugin-v2.0.0-alpha.1...OpenAPI_Plugin-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 support for filter operator functions ([#289](https://github.com/Eventiva/zenstack/issues/289)) ([7914470](https://github.com/Eventiva/zenstack/commit/79144709b3bd56adf0a30f27b69426702980b95f))
* always use superjson to serialize/deserialize in the api layer ([#585](https://github.com/Eventiva/zenstack/issues/585)) ([46fec66](https://github.com/Eventiva/zenstack/commit/46fec666c3af971010c69e467f08f55830655441))
* express.js adapter ([#271](https://github.com/Eventiva/zenstack/issues/271)) ([e12fc5a](https://github.com/Eventiva/zenstack/commit/e12fc5a4ca4c71c10c1d34fc4a1d19f9fb9f75bb))
* generate openapi doc with 3.1.0 version ([fe74a80](https://github.com/Eventiva/zenstack/commit/fe74a805db4f84a534a1f2e6777d295bee66d3a8))
* generate openapi doc with 3.1.0 version ([#304](https://github.com/Eventiva/zenstack/issues/304)) ([920b13e](https://github.com/Eventiva/zenstack/commit/920b13e28bd28daa385c7cebf413733c71eb81b9))
* implement openapi security inferrence and override ([#341](https://github.com/Eventiva/zenstack/issues/341)) ([2860f00](https://github.com/Eventiva/zenstack/commit/2860f002e57d7772c0b7b9e9feabce7bae73c18c))
* improved automatic query invalidation for tanstack-query ([#790](https://github.com/Eventiva/zenstack/issues/790)) ([42d654f](https://github.com/Eventiva/zenstack/commit/42d654fcfaa40b09fde578db79792c69e1e3b908))
* improvements of openapi plugin ([#335](https://github.com/Eventiva/zenstack/issues/335)) ([3b9e356](https://github.com/Eventiva/zenstack/commit/3b9e3567b81eec050f208ae5e97ae0c2e544ab0f))
* include raw zod errors in response ([#691](https://github.com/Eventiva/zenstack/issues/691)) ([b5da998](https://github.com/Eventiva/zenstack/commit/b5da998b7fa11c19b85cebd0956803d854332b4d))
* 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))
* 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))
* restful style openapi spec generation ([#410](https://github.com/Eventiva/zenstack/issues/410)) ([4ebaa1f](https://github.com/Eventiva/zenstack/commit/4ebaa1fa4aa8e762a11fb24700f5cb4e1bfbe688))
* support Prisma v5 ([#587](https://github.com/Eventiva/zenstack/issues/587)) ([b0d9154](https://github.com/Eventiva/zenstack/commit/b0d9154270a89c6c93c7a8f1aada85c413d16d6f))
* 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))
* batch bug fixes ([#273](https://github.com/Eventiva/zenstack/issues/273)) ([e1600c8](https://github.com/Eventiva/zenstack/commit/e1600c8bc69cb3cf51fb763a86b06834810236eb))
* bug fixes for openapi plugin ([#432](https://github.com/Eventiva/zenstack/issues/432)) ([e76ee35](https://github.com/Eventiva/zenstack/commit/e76ee35bdb9fb1ae3d4d99e94ccfc40a3b59f373))
* bugs related to model name casing ([#645](https://github.com/Eventiva/zenstack/issues/645)) ([32d5b26](https://github.com/Eventiva/zenstack/commit/32d5b262cacdd03209a56027e4c2cbda1bc408c0))
* build, lint and etc. ([#833](https://github.com/Eventiva/zenstack/issues/833)) ([cccbc3c](https://github.com/Eventiva/zenstack/commit/cccbc3c82ad522d40bc76ad7b84b1305d378b1db))
* canonicalize plugin's output folder detection; don't generate aux field unnecessarily ([#423](https://github.com/Eventiva/zenstack/issues/423)) ([9eaf235](https://github.com/Eventiva/zenstack/commit/9eaf2353e479a7c967af42a0cd6ed6b9afeded4a))
* 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 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))
* 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 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 client typing generation in trpc plugin ([#673](https://github.com/Eventiva/zenstack/issues/673)) ([576c4f7](https://github.com/Eventiva/zenstack/commit/576c4f7a4858dfa2dcb9c1a7f75af8d1ca48a8ce))
* issue with connecting multiple relations ([#450](https://github.com/Eventiva/zenstack/issues/450)) ([dd6be95](https://github.com/Eventiva/zenstack/commit/dd6be9509c46fd4dfff500a53070259410b6a61f))
* 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))
* open-api issues ([#446](https://github.com/Eventiva/zenstack/issues/446)) ([2855647](https://github.com/Eventiva/zenstack/commit/285564751094797da8484bf041a9d3a4eafafc9d))
* openapi - do not generate "id" field in create input if the field has default value ([#758](https://github.com/Eventiva/zenstack/issues/758)) ([787a244](https://github.com/Eventiva/zenstack/commit/787a24453c3a32250260ebc138c26a829074ae8f))
* openapi generator relation handling ([#320](https://github.com/Eventiva/zenstack/issues/320)) ([f1c9765](https://github.com/Eventiva/zenstack/commit/f1c9765b778f8fb476c015a2f3bbe72dd94ef6b0))
* openapi plugin - make sure components are generated even model is marked ignored ([#422](https://github.com/Eventiva/zenstack/issues/422)) ([a5848ea](https://github.com/Eventiva/zenstack/commit/a5848ea5ef85e4715d8618a67c427c8f2e081b3f))
* openapi plugin bugs - relation handling and spec version ([#317](https://github.com/Eventiva/zenstack/issues/317)) ([dd62f8d](https://github.com/Eventiva/zenstack/commit/dd62f8d13c97c56a4247245b619c1fce46b82f89))
* 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))
* properly handle nullable fields in openapi generator ([#906](https://github.com/Eventiva/zenstack/issues/906)) ([0e422ad](https://github.com/Eventiva/zenstack/commit/0e422adf1a7f274b850eeba09ef1781b13ce9f1b))
* 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 object literal in plugin fields processing ([#351](https://github.com/Eventiva/zenstack/issues/351)) ([8284988](https://github.com/Eventiva/zenstack/commit/8284988cf12c3c4f3983c36c3658201db5509b2c))
* 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))
* Update start line of JsDoc comments in zmodel to start with two … ([#428](https://github.com/Eventiva/zenstack/issues/428)) ([a3473ea](https://github.com/Eventiva/zenstack/commit/a3473eaec2d32d06c2a51442fbd0d81a435e1197))
* 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))
* zod and openapi generation error when "fullTextSearch" is enabled ([#658](https://github.com/Eventiva/zenstack/issues/658)) ([0cb7cd1](https://github.com/Eventiva/zenstack/commit/0cb7cd1ae5e8c5d4a72d0891c9624291aafcbcd8))
* zod plugin issue with lower-case model names ([#396](https://github.com/Eventiva/zenstack/issues/396)) ([d6fba93](https://github.com/Eventiva/zenstack/commit/d6fba93e2f0149c14f67d4cd0b4e9cdb6eee73a5))


### 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))
2 changes: 1 addition & 1 deletion packages/plugins/openapi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/openapi",
"displayName": "ZenStack Plugin and Runtime for OpenAPI",
"version": "2.0.0-alpha.1",
"version": "2.0.0",
"description": "ZenStack plugin and runtime supporting OpenAPI",
"main": "index.js",
"repository": {
Expand Down