Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #2447

Merged
merged 8 commits into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/thin-beans-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sveltejs/adapter-node': patch
'create-svelte': patch
'@sveltejs/kit': patch
---

update dependencies
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
"options": {
"svelteBracketNewLine": true
}
},
{
"files": [
"packages/kit/src/packaging/test/fixtures/**/expected/**/*"
],
"options": {
requirePragma: true
}
}
]
}
2 changes: 1 addition & 1 deletion examples/hn.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"devDependencies": {
"@sveltejs/adapter-netlify": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^3.42.4"
"svelte": "^3.42.6"
}
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
},
"homepage": "https://github.com/sveltejs/kit#readme",
"devDependencies": {
"@changesets/cli": "^2.16.0",
"@changesets/cli": "^2.17.0",
"@changesets/get-github-info": "^0.5.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-node-resolve": "^13.0.4",
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.7.0",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"action-deploy-docs": "github:sveltejs/action-deploy-docs#main",
"dotenv": "^10.0.0",
"eslint": "^7.31.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-svelte3": "^3.2.0",
"playwright-chromium": "^1.10.0",
"prettier": "2.2.1",
"rollup": "^2.55.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-svelte3": "^3.2.1",
"playwright-chromium": "^1.14.1",
"prettier": "^2.4.1",
"rollup": "^2.56.3",
"typescript": "^4.4.3"
},
"type": "module"
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-begin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
],
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"rollup": "^2.55.0",
"sirv": "^1.0.12"
"rollup": "^2.56.3",
"sirv": "^1.0.17"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
"esbuild": "^0.12.28"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
"esbuild": "^0.12.28"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
Expand Down
14 changes: 7 additions & 7 deletions packages/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"esbuild": "^0.12.5",
"esbuild": "^0.12.28",
"tiny-glob": "^0.2.9"
},
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@sveltejs/kit": "workspace:*",
"@types/compression": "^1.7.1",
"c8": "^7.7.2",
"@types/compression": "^1.7.2",
"c8": "^7.9.0",
"compression": "^1.7.4",
"node-fetch": "^3.0.0-beta.9",
"polka": "^1.0.0-next.17",
"rollup": "^2.55.0",
"sirv": "^1.0.14",
"node-fetch": "^3.0.0",
"polka": "^1.0.0-next.20",
"rollup": "^2.56.3",
"sirv": "^1.0.17",
"uvu": "^0.5.1"
}
}
6 changes: 3 additions & 3 deletions packages/adapter-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"playwright-chromium": "^1.10.0",
"playwright-chromium": "^1.14.1",
"port-authority": "^1.1.2",
"sirv": "^1.0.12",
"svelte": "^3.42.4",
"sirv": "^1.0.17",
"svelte": "^3.42.6",
"uvu": "^0.5.1"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
},
"dependencies": {
"esbuild": "^0.12.5"
"esbuild": "^0.12.28"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
Expand Down
94 changes: 48 additions & 46 deletions packages/create-svelte/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,48 @@ async function main() {
mkdirp(cwd);
}

const options = /** @type {import('./types/internal').Options} */ (await prompts([
{
type: 'select',
name: 'template',
message: 'Which Svelte app template?',
choices: fs.readdirSync(dist('templates')).map((dir) => {
const meta_file = dist(`templates/${dir}/meta.json`);
const meta = JSON.parse(fs.readFileSync(meta_file, 'utf8'));

return {
title: meta.description,
value: dir
};
})
},
{
type: 'toggle',
name: 'typescript',
message: 'Use TypeScript?',
initial: false,
active: 'Yes',
inactive: 'No'
},
{
type: 'toggle',
name: 'eslint',
message: 'Add ESLint for code linting?',
initial: false,
active: 'Yes',
inactive: 'No'
},
{
type: 'toggle',
name: 'prettier',
message: 'Add Prettier for code formatting?',
initial: false,
active: 'Yes',
inactive: 'No'
}
]));
const options = /** @type {import('./types/internal').Options} */ (
await prompts([
{
type: 'select',
name: 'template',
message: 'Which Svelte app template?',
choices: fs.readdirSync(dist('templates')).map((dir) => {
const meta_file = dist(`templates/${dir}/meta.json`);
const meta = JSON.parse(fs.readFileSync(meta_file, 'utf8'));

return {
title: meta.description,
value: dir
};
})
},
{
type: 'toggle',
name: 'typescript',
message: 'Use TypeScript?',
initial: false,
active: 'Yes',
inactive: 'No'
},
{
type: 'toggle',
name: 'eslint',
message: 'Add ESLint for code linting?',
initial: false,
active: 'Yes',
inactive: 'No'
},
{
type: 'toggle',
name: 'prettier',
message: 'Add Prettier for code formatting?',
initial: false,
active: 'Yes',
inactive: 'No'
}
])
);

const name = path.basename(path.resolve(cwd));

Expand Down Expand Up @@ -157,9 +159,9 @@ function write_template_files(template, typescript, name, cwd) {
copy(`${dir}/package.json`, `${cwd}/package.json`);

const manifest = `${dir}/files.${typescript ? 'ts' : 'js'}.json`;
const files = /** @type {import('./types/internal').File[]} */ (JSON.parse(
fs.readFileSync(manifest, 'utf-8')
));
const files = /** @type {import('./types/internal').File[]} */ (
JSON.parse(fs.readFileSync(manifest, 'utf-8'))
);

files.forEach((file) => {
const dest = path.join(cwd, file.name);
Expand All @@ -177,9 +179,9 @@ function write_template_files(template, typescript, name, cwd) {
*/
function write_common_files(cwd, options, name) {
const shared = dist('shared.json');
const { files } = /** @type {import('./types/internal').Common} */ (JSON.parse(
fs.readFileSync(shared, 'utf-8')
));
const { files } = /** @type {import('./types/internal').Common} */ (
JSON.parse(fs.readFileSync(shared, 'utf-8'))
);

const pkg_file = path.join(cwd, 'package.json');
const pkg = /** @type {any} */ (JSON.parse(fs.readFileSync(pkg_file, 'utf-8')));
Expand Down
16 changes: 8 additions & 8 deletions packages/create-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@types/gitignore-parser": "^0.0.0",
"@types/prettier": "^2.2.3",
"@types/prompts": "^2.0.11",
"@types/prettier": "^2.3.2",
"@types/prompts": "^2.0.14",
"gitignore-parser": "^0.0.2",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.2.0",
"sucrase": "^3.18.1",
"svelte": "^3.42.4",
"svelte-preprocess": "^4.9.0",
"tiny-glob": "^0.2.8"
"prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0",
"sucrase": "^3.20.1",
"svelte": "^3.42.6",
"svelte-preprocess": "^4.9.4",
"tiny-glob": "^0.2.9"
},
"scripts": {
"build": "node scripts/build-templates",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"@types/cookie": "^0.4.0"
"@types/cookie": "^0.4.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"eslint-config-prettier": "^8.1.0"
"eslint-config-prettier": "^8.3.0"
},
"scripts": {
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-svelte/shared/+eslint+typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0"
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1"
}
}
4 changes: 2 additions & 2 deletions packages/create-svelte/shared/+eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"eslint": "^7.22.0",
"eslint-plugin-svelte3": "^3.2.0"
"eslint": "^7.32.0",
"eslint-plugin-svelte3": "^3.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/create-svelte/shared/+prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"prettier": "~2.2.1",
"prettier-plugin-svelte": "^2.2.0"
"prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0"
}
}
8 changes: 4 additions & 4 deletions packages/create-svelte/shared/+typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"typescript": "^4.4.0",
"tslib": "^2.0.0",
"svelte-check": "^2.0.0",
"svelte-preprocess": "^4.9.0"
"typescript": "^4.4.3",
"tslib": "^2.3.1",
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.9.4"
}
}
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,13 +11,13 @@
"@sveltejs/adapter-netlify": "next",
"@sveltejs/adapter-vercel": "next",
"@sveltejs/kit": "next",
"svelte": "^3.42.4",
"svelte-preprocess": "^4.9.0",
"typescript": "^4.4.0"
"svelte": "^3.42.6",
"svelte-preprocess": "^4.9.4",
"typescript": "^4.4.3"
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.2.2",
"@fontsource/fira-mono": "^4.5.0",
"@lukeed/uuid": "^2.0.0",
"cookie": "^0.4.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.2.2",
"@fontsource/fira-mono": "^4.5.0",
"@lukeed/uuid": "^2.0.0",
"cookie": "^0.4.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"svelte": "^3.34.0"
"svelte": "^3.42.6"
},
"type": "module"
}
Loading