From 7156117645523a09247d86c6ed7329484fcae9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20=C3=98sterkilde?= Date: Mon, 23 Sep 2024 00:23:01 +0200 Subject: [PATCH] fix: remove views from public Session data (again) --- .changeset/small-parents-press.md | 14 ++++++++++++++ apps/toolkit-app-passportjs/types.ts | 1 - apps/toolkit-app/types.ts | 1 - apps/web/types.ts | 1 - integration-tests/auth-with-rpc/types.ts | 1 - integration-tests/auth/types.ts | 1 - integration-tests/get-initial-props/types.ts | 1 - integration-tests/next-13-app-dir/types.ts | 1 - integration-tests/no-suspense/types.ts | 1 - integration-tests/trailing-slash/types.ts | 1 - packages/generator/templates/app/types.ts | 1 - 11 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 .changeset/small-parents-press.md diff --git a/.changeset/small-parents-press.md b/.changeset/small-parents-press.md new file mode 100644 index 0000000000..e66828d9bd --- /dev/null +++ b/.changeset/small-parents-press.md @@ -0,0 +1,14 @@ +--- +"toolkit-app": patch +"toolkit-app-passport": patch +"web": patch +"test-auth": patch +"test-full-auth-with-rpc": patch +"test-get-initial-props": patch +"test-app-dir": patch +"test-no-suspense": patch +"test-trailing-slash": patch +"@blitzjs/generator": patch +--- + +Remove `views` property from `Session.PublicData` in `types.ts` file again diff --git a/apps/toolkit-app-passportjs/types.ts b/apps/toolkit-app-passportjs/types.ts index e531a28839..bead91f252 100644 --- a/apps/toolkit-app-passportjs/types.ts +++ b/apps/toolkit-app-passportjs/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/apps/toolkit-app/types.ts b/apps/toolkit-app/types.ts index e531a28839..bead91f252 100644 --- a/apps/toolkit-app/types.ts +++ b/apps/toolkit-app/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/apps/web/types.ts b/apps/web/types.ts index a0b8b5c34c..5042db02e6 100644 --- a/apps/web/types.ts +++ b/apps/web/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/auth-with-rpc/types.ts b/integration-tests/auth-with-rpc/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/auth-with-rpc/types.ts +++ b/integration-tests/auth-with-rpc/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/auth/types.ts b/integration-tests/auth/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/auth/types.ts +++ b/integration-tests/auth/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/get-initial-props/types.ts b/integration-tests/get-initial-props/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/get-initial-props/types.ts +++ b/integration-tests/get-initial-props/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/next-13-app-dir/types.ts b/integration-tests/next-13-app-dir/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/next-13-app-dir/types.ts +++ b/integration-tests/next-13-app-dir/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/no-suspense/types.ts b/integration-tests/no-suspense/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/no-suspense/types.ts +++ b/integration-tests/no-suspense/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/trailing-slash/types.ts b/integration-tests/trailing-slash/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/trailing-slash/types.ts +++ b/integration-tests/trailing-slash/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/packages/generator/templates/app/types.ts b/packages/generator/templates/app/types.ts index 452fe3411f..f48ceba3a4 100644 --- a/packages/generator/templates/app/types.ts +++ b/packages/generator/templates/app/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } }