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 tRPC_Plugin 2.1.0-alpha.1 #1031

Closed
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 @@ -6,7 +6,7 @@
"packages/plugins/openapi": "2.0.0-alpha.1",
"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",
"packages/plugins/trpc": "2.1.0-alpha.1",
"packages/runtime": "2.0.0-alpha.1",
"packages/sdk": "2.0.0-alpha.1",
"packages/server": "2.0.0-alpha.1",
Expand Down
88 changes: 88 additions & 0 deletions packages/plugins/trpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Changelog

## [2.1.0-alpha.1](https://github.com/zenstackhq/zenstack/compare/tRPC_Plugin-v2.0.0-alpha.1...tRPC_Plugin-v2.1.0-alpha.1) (2024-02-21)


### Features

* a better "zod" plugin ([#521](https://github.com/zenstackhq/zenstack/issues/521)) ([2280f83](https://github.com/zenstackhq/zenstack/commit/2280f83cd7f1f597fddfd6ab0c99417200124452))
* add prisma passthrough attribute for working around discripancies between zmodel and prisma ([#245](https://github.com/zenstackhq/zenstack/issues/245)) ([cef96d4](https://github.com/zenstackhq/zenstack/commit/cef96d4b6fe0a4d7d38742565817aca8e6533933))
* add support for filter operator functions ([#289](https://github.com/zenstackhq/zenstack/issues/289)) ([7914470](https://github.com/zenstackhq/zenstack/commit/79144709b3bd56adf0a30f27b69426702980b95f))
* add support for type modifier attributes ([#240](https://github.com/zenstackhq/zenstack/issues/240)) ([a05d320](https://github.com/zenstackhq/zenstack/commit/a05d320e7135440c20f3d75746c62ae67bfabd58))
* express.js adapter ([#271](https://github.com/zenstackhq/zenstack/issues/271)) ([e12fc5a](https://github.com/zenstackhq/zenstack/commit/e12fc5a4ca4c71c10c1d34fc4a1d19f9fb9f75bb))
* flexible 'createRouter' typings ([#654](https://github.com/zenstackhq/zenstack/issues/654)) ([e147412](https://github.com/zenstackhq/zenstack/commit/e14741231b37ef1430fa8a02446f5748a76a02d7))
* improved automatic query invalidation for tanstack-query ([#790](https://github.com/zenstackhq/zenstack/issues/790)) ([42d654f](https://github.com/zenstackhq/zenstack/commit/42d654fcfaa40b09fde578db79792c69e1e3b908))
* make parameters of transactions configurable ([#988](https://github.com/zenstackhq/zenstack/issues/988)) ([d0745b1](https://github.com/zenstackhq/zenstack/commit/d0745b149a5ce6abfef546de0b9243ddc4f6e765))
* more flexible "createRouter" typings ([#651](https://github.com/zenstackhq/zenstack/issues/651)) ([d2bffb6](https://github.com/zenstackhq/zenstack/commit/d2bffb62d48a550937ebe3c147f55b6fab55f172))
* OpenAPI & fastify adapter ([#254](https://github.com/zenstackhq/zenstack/issues/254)) ([dd9963c](https://github.com/zenstackhq/zenstack/commit/dd9963cd35d414ebf61727bb4a5d9ad0c31100e0))
* react-hooks generator and runtime targeting @tanstack/react-query ([#309](https://github.com/zenstackhq/zenstack/issues/309)) ([21ccddb](https://github.com/zenstackhq/zenstack/commit/21ccddb9be437eabed35fbc62ae43c1e192d289e))
* support configuring what models to include for zod and trpc plugins ([#747](https://github.com/zenstackhq/zenstack/issues/747)) ([a5d15a3](https://github.com/zenstackhq/zenstack/commit/a5d15a30e7a22a3e875cc974391feb9ad6da7646))
* support multi-id-field models (@[@id](https://github.com/id)([f1, f2, ...])) ([#243](https://github.com/zenstackhq/zenstack/issues/243)) ([7e55e65](https://github.com/zenstackhq/zenstack/commit/7e55e652eceacec108dd4966ff08cfef184cd8ab))
* support Prisma v5 ([#587](https://github.com/zenstackhq/zenstack/issues/587)) ([b0d9154](https://github.com/zenstackhq/zenstack/commit/b0d9154270a89c6c93c7a8f1aada85c413d16d6f))
* support self relations ([#244](https://github.com/zenstackhq/zenstack/issues/244)) ([93cb6bf](https://github.com/zenstackhq/zenstack/commit/93cb6bfc847d8b97612e849cffcbfe7723630ad9))
* trpc plugin, add "generateModelActions" option to control what operations to generate ([#482](https://github.com/zenstackhq/zenstack/issues/482)) ([8693852](https://github.com/zenstackhq/zenstack/commit/8693852a36522baf44ff7eb3a8c76d839c8a8081))
* trpc plugin, generate client helpers to provide prisima-like typing ([#510](https://github.com/zenstackhq/zenstack/issues/510)) ([c41980d](https://github.com/zenstackhq/zenstack/commit/c41980dddbbeacd51c72d109e09a8c7b4c17617c))
* zod plugin and zod validation for open-api requests ([#262](https://github.com/zenstackhq/zenstack/issues/262)) ([51c094e](https://github.com/zenstackhq/zenstack/commit/51c094e329df0d1ebb28239d5fe5ff4608065280))


### Bug Fixes

* add "exports" to generated package.json, make trpc code-gen compatible with vite ([#677](https://github.com/zenstackhq/zenstack/issues/677)) ([df67f30](https://github.com/zenstackhq/zenstack/commit/df67f301119db23e5048464de2f73bff1a2adffc))
* add `CheckSelect` type into code for Prisma version backward compatibility ([#619](https://github.com/zenstackhq/zenstack/issues/619)) ([3e09a3a](https://github.com/zenstackhq/zenstack/commit/3e09a3a6646ae0f6e393cc0f92991c9b5d0c4d29))
* add eslint ignore to generated trpc helper source ([#759](https://github.com/zenstackhq/zenstack/issues/759)) ([f7e8a08](https://github.com/zenstackhq/zenstack/commit/f7e8a08987da4f6af3ad5058209cdc22720dce8f))
* add support for @[@schema](https://github.com/schema) attribute, and allow arbitrary fields in datasource ([#250](https://github.com/zenstackhq/zenstack/issues/250)) ([9d45384](https://github.com/zenstackhq/zenstack/commit/9d4538445600b856962b200ca0faa0bbfff68f8a))
* add the missing "count" schema/router for zod/trpc ([#667](https://github.com/zenstackhq/zenstack/issues/667)) ([6e9a3b3](https://github.com/zenstackhq/zenstack/commit/6e9a3b3ce4f306716234a9598e4aac3c89e1e0be))
* batch bug fixes ([#273](https://github.com/zenstackhq/zenstack/issues/273)) ([e1600c8](https://github.com/zenstackhq/zenstack/commit/e1600c8bc69cb3cf51fb763a86b06834810236eb))
* bugs related to model name casing ([#645](https://github.com/zenstackhq/zenstack/issues/645)) ([32d5b26](https://github.com/zenstackhq/zenstack/commit/32d5b262cacdd03209a56027e4c2cbda1bc408c0))
* build, lint and etc. ([#833](https://github.com/zenstackhq/zenstack/issues/833)) ([cccbc3c](https://github.com/zenstackhq/zenstack/commit/cccbc3c82ad522d40bc76ad7b84b1305d378b1db))
* canonicalize plugin's output folder detection; don't generate aux field unnecessarily ([#423](https://github.com/zenstackhq/zenstack/issues/423)) ([9eaf235](https://github.com/zenstackhq/zenstack/commit/9eaf2353e479a7c967af42a0cd6ed6b9afeded4a))
* change back to loading from literal ".zenstack" path otherwise Vercel breaks :( ([#701](https://github.com/zenstackhq/zenstack/issues/701)) ([2d41a9f](https://github.com/zenstackhq/zenstack/commit/2d41a9fcffab2fa228356a5cc45b4c2ecd62fd63))
* change openapi plugin's default flavor to "rpc" ([#439](https://github.com/zenstackhq/zenstack/issues/439)) ([ec65e53](https://github.com/zenstackhq/zenstack/commit/ec65e53f202e3e02ea98a9c88682c106dcbafc76))
* clean up zod generation ([#883](https://github.com/zenstackhq/zenstack/issues/883)) ([909281f](https://github.com/zenstackhq/zenstack/commit/909281f8090734322c0cab09d0187b6b5e813c9a))
* clean up zod generation ([#883](https://github.com/zenstackhq/zenstack/issues/883)) ([9d4a8ed](https://github.com/zenstackhq/zenstack/commit/9d4a8ede7d42d1966fd5a12d64a5992092f4bc7d))
* disable eslint in generated hooks, refactor package inter-dependencies ([9e84126](https://github.com/zenstackhq/zenstack/commit/9e8412645e06f0bf63f85c8bb61ad00384fdef99))
* enhanced client doesn't work with client extensions that add new model methods ([#851](https://github.com/zenstackhq/zenstack/issues/851)) ([ea564c9](https://github.com/zenstackhq/zenstack/commit/ea564c93e9ca2a888c0e53216633d66c733f6beb))
* fix react-query code-gen and improve mutation options merging ([#314](https://github.com/zenstackhq/zenstack/issues/314)) ([51484a7](https://github.com/zenstackhq/zenstack/commit/51484a76f90e5efd0a651bab9f6aa864baab95f2))
* handle @[@ignore](https://github.com/ignore) models properly in plugins ([#283](https://github.com/zenstackhq/zenstack/issues/283)) ([6f7cb0e](https://github.com/zenstackhq/zenstack/commit/6f7cb0e6513d606c98b097c65c0573ad1f006b2c))
* hooks generation emits Provider export for backward compatibility ([#594](https://github.com/zenstackhq/zenstack/issues/594)) ([ca3ebda](https://github.com/zenstackhq/zenstack/commit/ca3ebdae4e213d3901bb5834fd9ebf1217da94a7))
* improve consistency of generated guard code ([#616](https://github.com/zenstackhq/zenstack/issues/616)) ([1b7b5bd](https://github.com/zenstackhq/zenstack/commit/1b7b5bda3f5106d31b7f5e70be27158fb8217600))
* incorrect relation owner analysis ([#610](https://github.com/zenstackhq/zenstack/issues/610)) ([c89012b](https://github.com/zenstackhq/zenstack/commit/c89012bcb8d32588cc7f5a1df19088292e571cec))
* incorrect reverse query built for to-many relation ([#815](https://github.com/zenstackhq/zenstack/issues/815)) ([2c345e1](https://github.com/zenstackhq/zenstack/commit/2c345e1d4fe7274b7a08c1178afccede1d694327))
* issue [#627](https://github.com/zenstackhq/zenstack/issues/627) ([#628](https://github.com/zenstackhq/zenstack/issues/628)) ([2ef93cb](https://github.com/zenstackhq/zenstack/commit/2ef93cb932e7aed6923cd3d7e69069d0c9ff161b))
* issue 961, incorrect policy injection for nested `updateMany` ([#962](https://github.com/zenstackhq/zenstack/issues/962)) ([2b2bfcf](https://github.com/zenstackhq/zenstack/commit/2b2bfcff965f9a70ff2764e6fbc7613b6f061685))
* issue with client typing generation in trpc plugin ([#673](https://github.com/zenstackhq/zenstack/issues/673)) ([576c4f7](https://github.com/zenstackhq/zenstack/commit/576c4f7a4858dfa2dcb9c1a7f75af8d1ca48a8ce))
* issue with connecting multiple relations ([#450](https://github.com/zenstackhq/zenstack/issues/450)) ([dd6be95](https://github.com/zenstackhq/zenstack/commit/dd6be9509c46fd4dfff500a53070259410b6a61f))
* make core plugins compile generated ts files by default ([#373](https://github.com/zenstackhq/zenstack/issues/373)) ([4bf1304](https://github.com/zenstackhq/zenstack/commit/4bf1304c6518cc027b1a1f2d33fea70979d9d94b))
* make sure Buffer is imported ([#596](https://github.com/zenstackhq/zenstack/issues/596)) ([76a0bac](https://github.com/zenstackhq/zenstack/commit/76a0bac9c63707baf34a072e398b63156c1e0640))
* make sure zod schemas are lazily loaded ([#265](https://github.com/zenstackhq/zenstack/issues/265)) ([b7548d1](https://github.com/zenstackhq/zenstack/commit/b7548d17999df1862bd15be470b611625e8e5445))
* make sure zod schemas have type annotations ([#574](https://github.com/zenstackhq/zenstack/issues/574)) ([51985b1](https://github.com/zenstackhq/zenstack/commit/51985b1279dca8e82a7275330a7b6597f37d15a4))
* missing string quote during function arg gen ([#234](https://github.com/zenstackhq/zenstack/issues/234)) ([88828e3](https://github.com/zenstackhq/zenstack/commit/88828e309c8aab2a43bd06c7f9beaadcb070d3a6))
* more tests and bump version ([#225](https://github.com/zenstackhq/zenstack/issues/225)) ([cabe9dc](https://github.com/zenstackhq/zenstack/commit/cabe9dc956b32bd854a3bbbfe88e9203412703ca))
* nullify field instead of reject when an optional relation field is not readable ([#588](https://github.com/zenstackhq/zenstack/issues/588)) ([fc16008](https://github.com/zenstackhq/zenstack/commit/fc16008ba20aba18f39948f3ff13ec3bc79729e3))
* open-api issues ([#446](https://github.com/zenstackhq/zenstack/issues/446)) ([2855647](https://github.com/zenstackhq/zenstack/commit/285564751094797da8484bf041a9d3a4eafafc9d))
* openapi generator relation handling ([#320](https://github.com/zenstackhq/zenstack/issues/320)) ([f1c9765](https://github.com/zenstackhq/zenstack/commit/f1c9765b778f8fb476c015a2f3bbe72dd94ef6b0))
* optimize generated trpc typing and fix "select" issue ([#972](https://github.com/zenstackhq/zenstack/issues/972)) ([c0d60a0](https://github.com/zenstackhq/zenstack/commit/c0d60a00eac9392cb061927126a41a5287467289))
* post-update rules incorrectly reject update ([#826](https://github.com/zenstackhq/zenstack/issues/826)) ([d921a7c](https://github.com/zenstackhq/zenstack/commit/d921a7ca6bef0341ccf5bc50e195156695129e7f))
* post-update rules incorrectly reject update ([#826](https://github.com/zenstackhq/zenstack/issues/826)) ([e85831e](https://github.com/zenstackhq/zenstack/commit/e85831e98d08a433febb5a8fecf8d539150ced08))
* properly handle nullable fields in openapi generator ([#906](https://github.com/zenstackhq/zenstack/issues/906)) ([0e422ad](https://github.com/zenstackhq/zenstack/commit/0e422adf1a7f274b850eeba09ef1781b13ce9f1b))
* short-circuit post-read check when policy rules don't depend on model fields ([#376](https://github.com/zenstackhq/zenstack/issues/376)) ([a54eba4](https://github.com/zenstackhq/zenstack/commit/a54eba45f64382ed070e5aeabe0c8dc263bebc0d))
* support for custom prisma client output path ([#514](https://github.com/zenstackhq/zenstack/issues/514)) ([5f3669e](https://github.com/zenstackhq/zenstack/commit/5f3669e53363bbfb035f100d0c6e2d14cef69c24))
* support object literal in plugin fields processing ([#351](https://github.com/zenstackhq/zenstack/issues/351)) ([8284988](https://github.com/zenstackhq/zenstack/commit/8284988cf12c3c4f3983c36c3658201db5509b2c))
* trpc client helper bugs ([#532](https://github.com/zenstackhq/zenstack/issues/532)) ([4097915](https://github.com/zenstackhq/zenstack/commit/40979154c88d31d3891c361caf4ab16a4888b178))
* trpc mutation route should return undefined when result is not readable ([#227](https://github.com/zenstackhq/zenstack/issues/227)) ([a3926c2](https://github.com/zenstackhq/zenstack/commit/a3926c2d69353c5f047f68d70f717db6872cce20))
* trpc plugin, generate schema for supporting unchecked input in mutation routes ([#512](https://github.com/zenstackhq/zenstack/issues/512)) ([304979f](https://github.com/zenstackhq/zenstack/commit/304979f4847258eff8b04675bc3e199ac0857173))
* undefined field access when selecting with _count ([#403](https://github.com/zenstackhq/zenstack/issues/403)) ([d90d7c8](https://github.com/zenstackhq/zenstack/commit/d90d7c83e95d33c85e9c3b4b650e014ee76136c3))
* update langium version ([26dd30f](https://github.com/zenstackhq/zenstack/commit/26dd30f8a00e030d4ec605cf0b88261e2944c43a))
* update langium version ([#290](https://github.com/zenstackhq/zenstack/issues/290)) ([23180ce](https://github.com/zenstackhq/zenstack/commit/23180cee63fd5a140d154857c170d597224679e6))
* vscode language accidentally bundles prisma packages ([#625](https://github.com/zenstackhq/zenstack/issues/625)) ([f6b68da](https://github.com/zenstackhq/zenstack/commit/f6b68dabc9e089230bc6d8f8e802e8fbc43a8a69))
* wrap generated trpc routes with error handling ([#338](https://github.com/zenstackhq/zenstack/issues/338)) ([7012ef5](https://github.com/zenstackhq/zenstack/commit/7012ef55afbf374ededaf23b6afb64afe497e592))
* wrong dev dependency in cli project ([#318](https://github.com/zenstackhq/zenstack/issues/318)) ([181f9ef](https://github.com/zenstackhq/zenstack/commit/181f9ef17899d11d23369f1d485c2d964e2d4561))
* wrong return type of generated `count` hook ([#347](https://github.com/zenstackhq/zenstack/issues/347)) ([2035319](https://github.com/zenstackhq/zenstack/commit/2035319a030369dc0c847eaac248f2d9acdc7c7b))
* wrong type generated for `groupBy` hook ([#344](https://github.com/zenstackhq/zenstack/issues/344)) ([83fd21e](https://github.com/zenstackhq/zenstack/commit/83fd21e5b2c55ca182386be61151386f0400bdd0))
* zod plugin issue with lower-case model names ([#396](https://github.com/zenstackhq/zenstack/issues/396)) ([d6fba93](https://github.com/zenstackhq/zenstack/commit/d6fba93e2f0149c14f67d4cd0b4e9cdb6eee73a5))
* zod typing for `DateTime` field, improve overall code generation ([#363](https://github.com/zenstackhq/zenstack/issues/363)) ([e93ca5b](https://github.com/zenstackhq/zenstack/commit/e93ca5bf10c6afdfd723961d3c91c2cd512eb8c8))


### Performance Improvements

* improve runtime performance by removing expensive verbose logging ([#371](https://github.com/zenstackhq/zenstack/issues/371)) ([0d7a2bf](https://github.com/zenstackhq/zenstack/commit/0d7a2bf417c6ea5cc5c6c3568593a0fbe7d7903e))
6 changes: 4 additions & 2 deletions packages/plugins/trpc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/trpc",
"displayName": "ZenStack plugin for tRPC",
"version": "2.0.0-alpha.1",
"version": "2.1.0-alpha.1",
"description": "ZenStack plugin for tRPC",
"main": "index.js",
"repository": {
Expand All @@ -20,7 +20,9 @@
"directory": "dist",
"linkDirectory": true
},
"keywords": ["trpc"],
"keywords": [
"trpc"
],
"author": "ZenStack Team",
"license": "MIT",
"dependencies": {
Expand Down