From 89aa9b01061e519201ab42d07313a5ec76a6971a Mon Sep 17 00:00:00 2001 From: sanny-io Date: Tue, 3 Feb 2026 14:43:08 +0000 Subject: [PATCH 1/2] fix: revert to authId --- packages/cache/src/plugin.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/cache/src/plugin.ts b/packages/cache/src/plugin.ts index 163fd0e..53481eb 100644 --- a/packages/cache/src/plugin.ts +++ b/packages/cache/src/plugin.ts @@ -58,11 +58,19 @@ export function defineCachePlugin(pluginOptions: CachePluginOptions) { onQuery: async ({ args, model, operation, proceed, client }) => { if (args && 'cache' in args) { + const authId = client.$auth + ? Object.keys(client.$auth) + .filter(key => + client.$schema.models[client.$schema.authType!]!.idFields.includes(key), + ) + .join('_') + : undefined + const json = stableHash({ args, model, operation, - auth: client.$auth, + authId, }) if (!json) { From 0309e07329029b2ff9c12fa3a744a59ff822cc25 Mon Sep 17 00:00:00 2001 From: sanny-io Date: Tue, 3 Feb 2026 14:43:24 +0000 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- packages/cache/package.json | 2 +- packages/config/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 357be23..d71dfbd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "workspace", "type": "module", - "version": "1.0.4", + "version": "1.0.5", "private": "true", "license": "MIT", "scripts": { diff --git a/packages/cache/package.json b/packages/cache/package.json index eb24714..360b2ba 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@visualbravo/zenstack-cache", - "version": "1.0.4", + "version": "1.0.5", "keywords": [ "accelerate", "cache", diff --git a/packages/config/package.json b/packages/config/package.json index f10990d..39b5fbb 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,7 +1,7 @@ { "name": "@zenstack-cache/config", "type": "module", - "version": "1.0.4", + "version": "1.0.5", "private": true, "exports": { "./ts": "./ts.json"