Skip to content

Commit 3555883

Browse files
committed
merge master
2 parents b45b3d0 + 1f0d822 commit 3555883

File tree

9 files changed

+16
-10
lines changed

9 files changed

+16
-10
lines changed

.changeset/dull-emus-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/kit": patch
3+
---
4+
5+
fix: correctly detect removal of route

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
"dry-baboons-turn",
145145
"dry-jokes-explain",
146146
"dry-yaks-clean",
147+
"dull-emus-tap",
147148
"dull-lobsters-act",
148149
"dull-numbers-hunt",
149150
"dull-schools-brake",

packages/kit/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @sveltejs/kit
22

3+
## 1.0.0-next.298
4+
5+
### Patch Changes
6+
7+
- fix: correctly detect removal of route ([#4333](https://github.com/sveltejs/kit/pull/4333))
8+
39
## 1.0.0-next.297
410

511
### Patch Changes

packages/kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sveltejs/kit",
3-
"version": "1.0.0-next.297",
3+
"version": "1.0.0-next.298",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/sveltejs/kit",

packages/kit/src/core/build/build_server.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { s } from '../../utils/misc.js';
1616
* runtime: string;
1717
* template: string;
1818
* }} opts
19-
* @returns
2019
*/
2120
const server_template = ({ config, hooks, has_service_worker, runtime, template }) => `
2221
import root from '__GENERATED__/root.svelte';
@@ -312,7 +311,6 @@ const method_names = {
312311
};
313312

314313
/**
315-
*
316314
* @param {string} cwd
317315
* @param {import('rollup').OutputChunk[]} output
318316
* @param {import('types').ManifestData} manifest_data

packages/kit/src/core/build/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export async function create_build(config) {
2626
* @param {import('vite').Manifest} manifest
2727
* @param {Set<string>} css
2828
* @param {Set<string>} js
29-
* @returns
3029
*/
3130
export function find_deps(file, manifest, js, css) {
3231
const chunk = manifest[file];

packages/kit/src/core/dev/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export async function create_plugin(config, cwd) {
179179
update_manifest();
180180

181181
vite.watcher.on('add', update_manifest);
182-
vite.watcher.on('remove', update_manifest);
182+
vite.watcher.on('unlink', update_manifest);
183183

184184
const assets = config.kit.paths.assets ? SVELTE_KIT_ASSETS : config.kit.paths.base;
185185
const asset_server = sirv(config.kit.files.assets, {

packages/kit/src/core/sync/create_manifest_data/index.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const cwd = fileURLToPath(new URL('./test', import.meta.url));
1010
/**
1111
* @param {string} dir
1212
* @param {import('types').Config} config
13-
* @returns
1413
*/
1514
const create = (dir, config = {}) => {
1615
const initial = options(config, 'config');

packages/kit/src/runtime/server/utils.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ export function is_pojo(body) {
4949

5050
return true;
5151
}
52-
/**
53-
* @param {import('types').RequestEvent} event
54-
* @returns string
55-
*/
52+
53+
/** @param {import('types').RequestEvent} event */
5654
export function normalize_request_method(event) {
5755
const method = event.request.method.toLowerCase();
5856
return method === 'delete' ? 'del' : method; // 'delete' is a reserved word

0 commit comments

Comments
 (0)