From 2711291e9773c3ada82ba882eee5a4c78d0395a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20=C3=98sterkilde?= Date: Sun, 29 Sep 2024 23:17:38 +0200 Subject: [PATCH] fix: remove views from public Session data (again) (#4375) * fix: remove views from public Session data (again) * Update .changeset/small-parents-press.md --------- Co-authored-by: Siddharth Suresh Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .changeset/small-parents-press.md | 5 +++++ 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, 5 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..4398fd2ec9 --- /dev/null +++ b/.changeset/small-parents-press.md @@ -0,0 +1,5 @@ +--- +"@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 } } }