Repository: sveltejs/kit
Pull request #5966 (2022-08-17 06:56:40)

remove session remnants from template
Session has been removed in #5946 

### Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
- [x] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.

### Tests
- [x] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check`

### Changesets
- [x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running `pnpm changeset` and following the prompts. All changesets should be `patch` until SvelteKit 1.0


changeset-bot[bot]: ###  🦋  Changeset detected

Latest commit: c466c6b50db30353e3bc9fbe3cb6dab430fafdf7

**The changes in this PR will be included in the next version bump.**

<details><summary>This PR includes changesets to release 1 package</summary>

  | Name          | Type  |
| ------------- | ----- |
| create-svelte | Patch |

</details>

Not sure what this means? [Click here  to learn what changesets are](https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/sveltejs/kit/new/session-remnants?filename=.changeset/brave-beans-reflect.md&value=---%0A%22create-svelte%22%3A%20patch%0A%22default-template%22%3A%20patch%0A%22skeleton-template%22%3A%20patch%0A---%0A%0Aremove%20session%20remnants%20from%20template%0A)



Patch:
diff --git a/.changeset/blue-jobs-laugh.md b/.changeset/blue-jobs-laugh.md
new file mode 100644
index 000000000..8c919b3ca
--- /dev/null
+++ b/.changeset/blue-jobs-laugh.md
@@ -0,0 +1,5 @@
+---
+'create-svelte': patch
+---
+
+remove session remnants
diff --git a/packages/create-svelte/templates/default/src/app.d.ts b/packages/create-svelte/templates/default/src/app.d.ts
index f7e052ada..d22f2a7de 100644
--- a/packages/create-svelte/templates/default/src/app.d.ts
+++ b/packages/create-svelte/templates/default/src/app.d.ts
@@ -11,6 +11,4 @@ declare namespace App {
 	// interface PrivateEnv {}
 
 	// interface PublicEnv {}
-
-	// interface Session {}
 }
diff --git a/packages/create-svelte/templates/skeleton/src/app.d.ts b/packages/create-svelte/templates/skeleton/src/app.d.ts
index f2845e42d..4eac1d5c9 100644
--- a/packages/create-svelte/templates/skeleton/src/app.d.ts
+++ b/packages/create-svelte/templates/skeleton/src/app.d.ts
@@ -6,5 +6,4 @@ declare namespace App {
 	// interface Platform {}
 	// interface PrivateEnv {}
 	// interface PublicEnv {}
-	// interface Session {}
 }


Test patch:
diff --git a/packages/adapter-static/test/apps/spa/src/app.d.ts b/packages/adapter-static/test/apps/spa/src/app.d.ts
index 00adec5e3..779a3d4e5 100644
--- a/packages/adapter-static/test/apps/spa/src/app.d.ts
+++ b/packages/adapter-static/test/apps/spa/src/app.d.ts
@@ -1,7 +1,3 @@
 /// <reference types="@sveltejs/kit" />
 
-declare namespace App {
-	interface Session {
-		count: number;
-	}
-}
+declare namespace App {}
diff --git a/packages/adapter-static/test/apps/spa/src/global.d.ts b/packages/adapter-static/test/apps/spa/src/global.d.ts
deleted file mode 100644
index 63908c66c..000000000
--- a/packages/adapter-static/test/apps/spa/src/global.d.ts
+++ /dev/null
@@ -1,1 +0,0 @@
-/// <reference types="@sveltejs/kit" />
diff --git a/packages/adapter-static/test/apps/spa/src/hooks.js b/packages/adapter-static/test/apps/spa/src/hooks.js
deleted file mode 100644
index 5252a32e9..000000000
--- a/packages/adapter-static/test/apps/spa/src/hooks.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export function getSession() {
-	return {
-		count: 0
-	};
-}