Repository: sveltejs/kit
Pull request #7868 (2022-11-29 02:28:53)

Service Worker docs: Update cache.put arguments in example
Cache.put takes two arguments but is only supplied one in the example.

### 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
- [ ] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check`

### Changesets
- [ ] 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]: ###  ⚠️  No Changeset found

Latest commit: 0cd22a769de988cbdf82b52f48373381d9ccc306

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. **If these changes should result in a version bump, you need to add a changeset.**

<details><summary>This PR includes no changesets</summary>

  When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

</details>

[Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/ObieMunoz/kit/new/patch-1?filename=.changeset/shaggy-papayas-move.md&value=---%0A%0A---%0A%0AService%20Worker%20docs%3A%20Update%20cache.put%20arguments%20in%20example%0A)


ObieMunoz: @Rich-Harris ah thanks for correcting it to event.request from pathname :)
Rich-Harris: whoops! good catch, thanks. changed it to `event.request`
Rich-Harris: gah, github UI, always one step behind the last comment

Patch:
diff --git a/.changeset/lazy-islands-deny.md b/.changeset/lazy-islands-deny.md
new file mode 100644
index 000000000..4c79e4905
--- /dev/null
+++ b/.changeset/lazy-islands-deny.md
@@ -0,0 +1,5 @@
+---
+'create-svelte': patch
+---
+
+Upgrade dependencies in templates
diff --git a/documentation/docs/30-advanced/40-service-workers.md b/documentation/docs/30-advanced/40-service-workers.md
index 783312217..bc23abf68 100644
--- a/documentation/docs/30-advanced/40-service-workers.md
+++ b/documentation/docs/30-advanced/40-service-workers.md
@@ -72,7 +72,7 @@ self.addEventListener('fetch', (event) => {
 			const response = await fetch(event.request);
 
 			if (response.status === 200) {
-				cache.put(response.clone());
+				cache.put(event.request, response.clone());
 			}
 
 			return response;
diff --git a/packages/create-svelte/shared/+checkjs/package.json b/packages/create-svelte/shared/+checkjs/package.json
index ccd4dd126..f2bb49cfc 100644
--- a/packages/create-svelte/shared/+checkjs/package.json
+++ b/packages/create-svelte/shared/+checkjs/package.json
@@ -4,7 +4,7 @@
 		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
 	},
 	"devDependencies": {
-		"typescript": "^4.7.4",
-		"svelte-check": "^2.7.1"
+		"typescript": "^4.9.3",
+		"svelte-check": "^2.9.2"
 	}
 }
diff --git a/packages/create-svelte/shared/+eslint+prettier/package.json b/packages/create-svelte/shared/+eslint+prettier/package.json
index a6492f385..808ff280d 100644
--- a/packages/create-svelte/shared/+eslint+prettier/package.json
+++ b/packages/create-svelte/shared/+eslint+prettier/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"eslint-config-prettier": "^8.3.0"
+		"eslint-config-prettier": "^8.5.0"
 	},
 	"scripts": {
 		"lint": "prettier --plugin-search-dir . --check . && eslint .",
diff --git a/packages/create-svelte/shared/+eslint+typescript/package.json b/packages/create-svelte/shared/+eslint+typescript/package.json
index 1721786b6..d477a4a3a 100644
--- a/packages/create-svelte/shared/+eslint+typescript/package.json
+++ b/packages/create-svelte/shared/+eslint+typescript/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"@typescript-eslint/eslint-plugin": "^5.27.0",
-		"@typescript-eslint/parser": "^5.27.0"
+		"@typescript-eslint/eslint-plugin": "^5.45.0",
+		"@typescript-eslint/parser": "^5.45.0"
 	}
 }
diff --git a/packages/create-svelte/shared/+eslint/package.json b/packages/create-svelte/shared/+eslint/package.json
index 9618b00e5..3d1b78fd7 100644
--- a/packages/create-svelte/shared/+eslint/package.json
+++ b/packages/create-svelte/shared/+eslint/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"eslint": "^8.16.0",
+		"eslint": "^8.28.0",
 		"eslint-plugin-svelte3": "^4.0.0"
 	}
 }
diff --git a/packages/create-svelte/shared/+playwright/package.json b/packages/create-svelte/shared/+playwright/package.json
index 041fb92b3..4094202b8 100644
--- a/packages/create-svelte/shared/+playwright/package.json
+++ b/packages/create-svelte/shared/+playwright/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"@playwright/test": "1.25.0"
+		"@playwright/test": "^1.28.1"
 	},
 	"scripts": {
 		"test": "playwright test"
diff --git a/packages/create-svelte/shared/+prettier/package.json b/packages/create-svelte/shared/+prettier/package.json
index 2acde0d08..721a5ea21 100644
--- a/packages/create-svelte/shared/+prettier/package.json
+++ b/packages/create-svelte/shared/+prettier/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"prettier": "^2.6.2",
-		"prettier-plugin-svelte": "^2.7.0"
+		"prettier": "^2.8.0",
+		"prettier-plugin-svelte": "^2.8.1"
 	}
 }
diff --git a/packages/create-svelte/shared/+typescript/package.json b/packages/create-svelte/shared/+typescript/package.json
index 7b5612f97..6457b1f0a 100644
--- a/packages/create-svelte/shared/+typescript/package.json
+++ b/packages/create-svelte/shared/+typescript/package.json
@@ -4,9 +4,9 @@
 		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
 	},
 	"devDependencies": {
-		"typescript": "^4.7.4",
-		"tslib": "^2.3.1",
-		"svelte-check": "^2.7.1",
-		"svelte-preprocess": "^4.10.6"
+		"typescript": "^4.9.3",
+		"tslib": "^2.4.1",
+		"svelte-check": "^2.9.2",
+		"svelte-preprocess": "^4.10.7"
 	}
 }


Test patch:
diff --git a/packages/create-svelte/shared/+vitest/package.json b/packages/create-svelte/shared/+vitest/package.json
index fea2892af..27c6efb18 100644
--- a/packages/create-svelte/shared/+vitest/package.json
+++ b/packages/create-svelte/shared/+vitest/package.json
@@ -1,6 +1,6 @@
 {
 	"devDependencies": {
-		"vitest": "^0.23.4"
+		"vitest": "^0.25.3"
 	},
 	"scripts": {
 		"test:unit": "vitest"