Skip to content

Commit

Permalink
chore: bump deps (#11279)
Browse files Browse the repository at this point in the history
* bump deps

* show changes

* format

* regenerate types

---------

Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
Rich-Harris and Rich-Harris authored Dec 13, 2023
1 parent 85e32d9 commit 20c7f32
Show file tree
Hide file tree
Showing 59 changed files with 1,591 additions and 2,256 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: cd packages/kit && pnpm prepublishOnly && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please run prepublishOnly locally and commit the changes after you have reviewed them" && exit 1); }
- run: cd packages/kit && pnpm prepublishOnly && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please run prepublishOnly locally and commit the changes after you have reviewed them"; git diff; exit 1); }
- run: pnpm run check
Tests:
runs-on: ${{ matrix.os }}
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"start": "cd sites/kit.svelte.dev && npm run dev"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.1",
"@sveltejs/eslint-config": "^6.0.4",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.31.0",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-unicorn": "^49.0.0",
"playwright": "1.30.0",
"prettier": "^3.1.0",
"svelte": "^4.2.7",
"typescript": "^5.3.2"
"prettier": "^3.1.1",
"svelte": "^4.2.8",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/adapter-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
},
"devDependencies": {
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/node": "^18.19.1",
"typescript": "^5.3.2"
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/node": "^18.19.3",
"typescript": "^5.3.3"
},
"dependencies": {
"import-meta-resolve": "^4.0.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"check": "tsc"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20230404.0",
"@cloudflare/workers-types": "^4.20231121.0",
"@iarna/toml": "^2.2.5",
"esbuild": "^0.19.3"
"esbuild": "^0.19.9"
},
"devDependencies": {
"@cloudflare/kv-asset-handler": "^0.3.0",
"@types/node": "^18.19.1",
"typescript": "^5.3.2"
"@types/node": "^18.19.3",
"typescript": "^5.3.3"
},
"peerDependencies": {
"@sveltejs/kit": "^1.0.0 || ^2.0.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/adapter-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20230404.0",
"esbuild": "^0.19.3",
"@cloudflare/workers-types": "^4.20231121.0",
"esbuild": "^0.19.9",
"worktop": "0.8.0-next.15"
},
"devDependencies": {
"@types/node": "^18.19.1",
"@types/ws": "^8.5.3",
"typescript": "^5.3.2"
"@types/node": "^18.19.3",
"@types/ws": "^8.5.10",
"typescript": "^5.3.3"
},
"peerDependencies": {
"@sveltejs/kit": "^1.0.0 || ^2.0.0"
Expand Down
18 changes: 9 additions & 9 deletions packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.19.3",
"esbuild": "^0.19.9",
"set-cookie-parser": "^2.6.0"
},
"devDependencies": {
"@netlify/functions": "^2.4.0",
"@netlify/functions": "^2.4.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/node": "^18.19.1",
"@types/set-cookie-parser": "^2.4.2",
"rollup": "^4.2.0",
"typescript": "^5.3.2",
"vitest": "^1.0.0"
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/node": "^18.19.3",
"@types/set-cookie-parser": "^2.4.7",
"rollup": "^4.8.0",
"typescript": "^5.3.3",
"vitest": "^1.0.4"
},
"peerDependencies": {
"@sveltejs/kit": "^1.5.0 || ^2.0.0"
Expand Down
18 changes: 9 additions & 9 deletions packages/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@polka/url": "^1.0.0-next.24",
"@polka/url": "1.0.0-next.24",
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/node": "^18.19.1",
"c8": "^8.0.0",
"polka": "^1.0.0-next.24",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/node": "^18.19.3",
"c8": "^8.0.1",
"polka": "1.0.0-next.24",
"sirv": "^2.0.3",
"typescript": "^5.3.2",
"vitest": "^1.0.0"
"typescript": "^5.3.3",
"vitest": "^1.0.4"
},
"dependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"rollup": "^4.2.0"
"rollup": "^4.8.0"
},
"peerDependencies": {
"@sveltejs/kit": "^1.0.0 || ^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function (options) {
has_param_routes
? '(routes with parameters are not part of entry points by default)'
: ''
} — see https://kit.svelte.dev/docs/configuration#prerender for more info.`
} — see https://kit.svelte.dev/docs/configuration#prerender for more info.`
: '';

builder.log.error(
Expand Down
10 changes: 5 additions & 5 deletions packages/adapter-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"devDependencies": {
"@playwright/test": "1.30.0",
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/node": "^18.19.1",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/node": "^18.19.3",
"sirv": "^2.0.3",
"svelte": "^4.2.7",
"typescript": "^5.3.2",
"vite": "^5.0.4"
"svelte": "^4.2.8",
"typescript": "^5.3.3",
"vite": "^5.0.8"
},
"peerDependencies": {
"@sveltejs/kit": "^1.5.0 || ^2.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/adapter-static/test/apps/prerendered/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"devDependencies": {
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.7",
"vite": "^5.0.4"
"svelte": "^4.2.8",
"vite": "^5.0.8"
},
"type": "module"
}
6 changes: 3 additions & 3 deletions packages/adapter-static/test/apps/spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"devDependencies": {
"@sveltejs/adapter-node": "workspace:^",
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.7",
"vite": "^5.0.4"
"svelte": "^4.2.8",
"vite": "^5.0.8"
},
"type": "module"
}
12 changes: 6 additions & 6 deletions packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"test": "vitest run"
},
"dependencies": {
"@vercel/nft": "^0.24.0",
"esbuild": "^0.19.3"
"@vercel/nft": "^0.24.4",
"esbuild": "^0.19.9"
},
"devDependencies": {
"@sveltejs/kit": "workspace:^",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/node": "^18.19.1",
"typescript": "^5.3.2",
"vitest": "^1.0.0"
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/node": "^18.19.3",
"typescript": "^5.3.3",
"vitest": "^1.0.4"
},
"peerDependencies": {
"@sveltejs/kit": "^1.5.0 || ^2.0.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/create-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"@playwright/test": "1.30.0",
"@types/gitignore-parser": "^0.0.3",
"gitignore-parser": "^0.0.2",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.0.0",
"sucrase": "^3.29.0",
"svelte": "^4.2.7",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"sucrase": "^3.34.0",
"svelte": "^4.2.8",
"tiny-glob": "^0.2.9",
"vitest": "^1.0.0"
"vitest": "^1.0.4"
},
"scripts": {
"build": "node scripts/build-templates",
Expand Down
8 changes: 4 additions & 4 deletions packages/create-svelte/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"@neoconfetti/svelte": "^1.0.0",
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^4.2.7",
"typescript": "^5.3.2",
"vite": "^5.0.4"
"svelte": "^4.2.8",
"typescript": "^5.3.3",
"vite": "^5.0.8"
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^5.0.5"
"@fontsource/fira-mono": "^5.0.8"
}
}
18 changes: 9 additions & 9 deletions packages/enhanced-img/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
},
"types": "types/index.d.ts",
"dependencies": {
"magic-string": "^0.30.0",
"svelte-parse-markup": "^0.1.1",
"magic-string": "^0.30.5",
"svelte-parse-markup": "^0.1.2",
"vite-imagetools": "^6.2.7"
},
"devDependencies": {
"@types/estree": "^1.0.2",
"@types/node": "^18.19.1",
"@types/estree": "^1.0.5",
"@types/node": "^18.19.3",
"estree-walker": "^3.0.3",
"rollup": "^4.2.0",
"svelte": "^4.2.7",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vitest": "^1.0.0"
"rollup": "^4.8.0",
"svelte": "^4.2.8",
"typescript": "^5.3.3",
"vite": "^5.0.8",
"vitest": "^1.0.4"
}
}
30 changes: 15 additions & 15 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@
"dependencies": {
"@types/cookie": "^0.6.0",
"cookie": "^0.6.0",
"devalue": "^4.3.1",
"devalue": "^4.3.2",
"esm-env": "^1.0.0",
"kleur": "^4.1.5",
"magic-string": "^0.30.0",
"magic-string": "^0.30.5",
"mrmime": "^1.0.1",
"sade": "^1.8.1",
"set-cookie-parser": "^2.6.0",
"sirv": "^2.0.2",
"sirv": "^2.0.3",
"tiny-glob": "^0.2.9"
},
"devDependencies": {
"@playwright/test": "1.30.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/connect": "^3.4.35",
"@types/node": "^18.19.1",
"@types/sade": "^1.7.4",
"@types/set-cookie-parser": "^2.4.2",
"dts-buddy": "^0.4.2",
"rollup": "^4.2.0",
"svelte": "^4.2.7",
"svelte-preprocess": "^5.1.1",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vitest": "^1.0.0"
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/connect": "^3.4.38",
"@types/node": "^18.19.3",
"@types/sade": "^1.7.8",
"@types/set-cookie-parser": "^2.4.7",
"dts-buddy": "^0.4.3",
"rollup": "^4.8.0",
"svelte": "^4.2.8",
"svelte-preprocess": "^5.1.2",
"typescript": "^5.3.3",
"vite": "^5.0.8",
"vitest": "^1.0.4"
},
"peerDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/core/adapt/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async function compress_file(file, format = 'gz') {
[zlib.constants.BROTLI_PARAM_QUALITY]: zlib.constants.BROTLI_MAX_QUALITY,
[zlib.constants.BROTLI_PARAM_SIZE_HINT]: statSync(file).size
}
})
})
: zlib.createGzip({ level: zlib.constants.Z_BEST_COMPRESSION });

const source = createReadStream(file);
Expand Down
4 changes: 2 additions & 2 deletions packages/kit/src/core/sync/write_tsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ function validate_user_config(kit, cwd, out, config) {
typeof extend === 'string'
? path.resolve(cwd, extend) === out
: Array.isArray(extend)
? extend.some((e) => path.resolve(cwd, e) === out)
: false;
? extend.some((e) => path.resolve(cwd, e) === out)
: false;

const options = config.options.compilerOptions || {};

Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/exports/hooks/sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function sequence(...handlers) {
transformPageChunk,
filterSerializedResponseHeaders,
preload
})
})
: resolve(event, { transformPageChunk, filterSerializedResponseHeaders, preload });
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/exports/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function setResponse(res, response) {
? set_cookie_parser.splitCookiesString(
// This is absurd but necessary, TODO: investigate why
/** @type {string}*/ (response.headers.get(key))
)
)
: value
);
} catch (error) {
Expand Down
8 changes: 4 additions & 4 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export interface Adapter {
export type LoadProperties<input extends Record<string, any> | void> = input extends void
? undefined // needs to be undefined, because void will break intellisense
: input extends Record<string, any>
? input
: unknown;
? input
: unknown;

export type AwaitedActions<T extends Record<string, (...args: any) => any>> = OptionalUnion<
{
Expand All @@ -67,8 +67,8 @@ export interface ActionFailure<T extends Record<string, unknown> | undefined = u
type UnpackValidationError<T> = T extends ActionFailure<infer X>
? X
: T extends void
? undefined // needs to be undefined, because void will corrupt union type
: T;
? undefined // needs to be undefined, because void will corrupt union type
: T;

/**
* This object is passed to the `adapt` function of adapters.
Expand Down
Loading

0 comments on commit 20c7f32

Please sign in to comment.