From 934ff6ac2494fde613c0a5637be7511c98b11e50 Mon Sep 17 00:00:00 2001 From: Geoff Rich Date: Thu, 13 Jan 2022 08:58:12 -0800 Subject: [PATCH 1/8] Update to latest Kit and handle breaking changes --- packages/repl/package.json | 4 +- packages/site-kit/package.json | 2 +- .../src/lib/components/NavItem.svelte | 2 +- packages/site-kit/src/lib/docs/Main.svelte | 6 +- pnpm-lock.yaml | 184 ++++++++++-------- sites/kit.svelte.dev/package.json | 2 +- sites/svelte.dev/package.json | 4 +- sites/svelte.dev/src/routes/__layout.svelte | 2 +- .../svelte.dev/src/routes/apps/index.json.js | 3 +- sites/svelte.dev/src/routes/apps/index.svelte | 6 +- sites/svelte.dev/src/routes/auth/callback.js | 6 +- sites/svelte.dev/src/routes/auth/logout.js | 2 +- .../svelte.dev/src/routes/blog/[slug].svelte | 2 +- .../src/routes/examples/[slug]/index.svelte | 6 +- .../src/routes/repl/[id]/index.svelte | 6 +- sites/svelte.dev/src/routes/repl/embed.svelte | 3 +- sites/svelte.dev/src/routes/repl/index.svelte | 3 +- .../src/routes/tutorial/[slug]/index.svelte | 6 +- .../src/routes/tutorial/random-number.js | 4 +- 19 files changed, 141 insertions(+), 112 deletions(-) diff --git a/packages/repl/package.json b/packages/repl/package.json index 9690138f..ec3a6d3f 100644 --- a/packages/repl/package.json +++ b/packages/repl/package.json @@ -10,8 +10,8 @@ "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." }, "devDependencies": { - "@sveltejs/adapter-auto": "next", - "@sveltejs/kit": "next", + "@sveltejs/adapter-auto": "^1.0.0-next.10", + "@sveltejs/kit": "^1.0.0-next.225", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.1", diff --git a/packages/site-kit/package.json b/packages/site-kit/package.json index 828e5ef1..64412071 100644 --- a/packages/site-kit/package.json +++ b/packages/site-kit/package.json @@ -20,7 +20,7 @@ }, "homepage": "https://github.com/sveltejs/site-kit#readme", "devDependencies": { - "@sveltejs/kit": "next", + "@sveltejs/kit": "^1.0.0-next.225", "svelte": "^3.43.0", "svelte2tsx": "^0.4.11", "typescript": "^4.5.3" diff --git a/packages/site-kit/src/lib/components/NavItem.svelte b/packages/site-kit/src/lib/components/NavItem.svelte index 594c6415..d7e75609 100644 --- a/packages/site-kit/src/lib/components/NavItem.svelte +++ b/packages/site-kit/src/lib/components/NavItem.svelte @@ -11,7 +11,7 @@ {:else}
  • = 8.0.0'} dependencies: estree-walker: 2.0.2 - picomatch: 2.3.0 + picomatch: 2.3.1 dev: true /@sindresorhus/slugify/0.9.1: @@ -779,72 +779,45 @@ packages: '@supabase/storage-js': 1.5.0 dev: false - /@sveltejs/adapter-auto/1.0.0-next.3: - resolution: {integrity: sha512-FVNLtr0bj/slQqA0TuoylnVsGrvBYdYL+hpp2Qy5Kg3q1m8i9bJ0aifKnaGn7m01II2KUSnpnhuRbX/HwKVDcA==} - dependencies: - '@sveltejs/adapter-cloudflare': 1.0.0-next.2 - '@sveltejs/adapter-netlify': 1.0.0-next.35 - '@sveltejs/adapter-vercel': 1.0.0-next.31 - dev: true - - /@sveltejs/adapter-auto/1.0.0-next.4: - resolution: {integrity: sha512-kfygrjF2uIgVVDsySl7I9oWSekU6adJCr/3qzLQDLM4FJ98FWmfhj4OOWsmF9X4JRPSm97t3RPugYsN3NLwKMQ==} - dependencies: - '@sveltejs/adapter-cloudflare': 1.0.0-next.3 - '@sveltejs/adapter-netlify': 1.0.0-next.36 - '@sveltejs/adapter-vercel': 1.0.0-next.32 - dev: true - - /@sveltejs/adapter-cloudflare/1.0.0-next.2: - resolution: {integrity: sha512-4Q7ZuoMck7wwzIO7gd8gqnm7gWflztTDHU/C1DzLr8V2UprQFQwsUE/padtQhFPXkgAiXJ8AwLksey4A8qjOsA==} + /@sveltejs/adapter-auto/1.0.0-next.10: + resolution: {integrity: sha512-ETMhpg8bUtLpRAqGxuRmm7teRCdg8u8ANF6eC8R2QLSy1ylPP6RPPg8D5q6LiJavVG/kHMH8fj7vvfobpVfwFg==} dependencies: - esbuild: 0.13.15 + '@sveltejs/adapter-cloudflare': 1.0.0-next.7 + '@sveltejs/adapter-netlify': 1.0.0-next.38 + '@sveltejs/adapter-vercel': 1.0.0-next.36 dev: true - /@sveltejs/adapter-cloudflare/1.0.0-next.3: - resolution: {integrity: sha512-LauvvkBFCE8myGMLWOncv97/xU8JJn9OMl1miy8f/q8qs0CrduvR1sv2uCM9AylqT/FNPy3mony5wpe3w1v7sg==} + /@sveltejs/adapter-cloudflare/1.0.0-next.7: + resolution: {integrity: sha512-P2rq+Tdvv9IKX4SVrIRqgZ2DnjmpPjp/bhAISs6cgbMzc2AmLMCeN++DXAZAVWugIjF1freLmtXcCl3/0HByNg==} dependencies: esbuild: 0.13.15 dev: true - /@sveltejs/adapter-netlify/1.0.0-next.35: - resolution: {integrity: sha512-3PC1RaRReu652ot+LC9EOjkebnZehdwvUm0zhPC8OFPJJccQwq6Y1kbHDeACIIFRTaKLIRBpuYh3idP6ffUGdw==} + /@sveltejs/adapter-netlify/1.0.0-next.38: + resolution: {integrity: sha512-u0mCV3YOBakdeiIt4Sd7buiTACkzHpPuUoSkLjtmJ5PsbrvtFhFNKE4AARqI8nDoX1yjs6pUKlIX3IZDmEeM5A==} dependencies: '@iarna/toml': 2.2.5 esbuild: 0.13.15 + tiny-glob: 0.2.9 dev: true - /@sveltejs/adapter-netlify/1.0.0-next.36: - resolution: {integrity: sha512-LdrIXCTBnIubtt/lthcnyt5VljuHpZlVzUqpWXk9Eu6bpNKblqQLMHkTBQfIbPfanmNSDZXJQVsdcFLqF2/+Cw==} - dependencies: - '@iarna/toml': 2.2.5 - esbuild: 0.13.15 - dev: true - - /@sveltejs/adapter-vercel/1.0.0-next.31: - resolution: {integrity: sha512-W8p/U00B6ihVrDpwMkgEexfVUzaLmn4MRtXj//Gw4NDFfsrZR4P5wBidrOAIkCYBMvqCOHD+vbAvIiAMOaN23g==} - dependencies: - esbuild: 0.13.15 - dev: true - - /@sveltejs/adapter-vercel/1.0.0-next.32: - resolution: {integrity: sha512-ZcltaS5bAobGD5P0z7xJIjPHSlGpF7padMIkqTzJxwMEb/acGgdO5yzDS8XUEaSNgj+prpD2oG8+gm33ds8x0A==} + /@sveltejs/adapter-vercel/1.0.0-next.36: + resolution: {integrity: sha512-IpvxBb5n9k5l6nikwq8mCeBg0VtSqAt7AY/PSujwjGs5KqYx3CrVu/Cyj4b0dyCO2Yyt2dr2QjS/R2R42PRBeA==} dependencies: esbuild: 0.13.15 dev: true - /@sveltejs/kit/1.0.0-next.202_svelte@3.44.2: - resolution: {integrity: sha512-rXmJ0FplkWvD1CaeCfejRYhOJYrlmeUm5Fkw7gIKDdWPQev5rqOhd9B9ZvRpq35oMqCAwaOfK+e5S6k+83feEQ==} + /@sveltejs/kit/1.0.0-next.225_svelte@3.44.2: + resolution: {integrity: sha512-J/f+FZVdvpTmn7nCeRKRC1L9gbcI7g1bJRaw+jMdq/MYtGqcRw/fjYrx9/xO3+1YH0wgNG1b26GwmQZE64PFIQ==} engines: {node: '>=14.13'} hasBin: true peerDependencies: svelte: ^3.44.0 dependencies: - '@sveltejs/vite-plugin-svelte': 1.0.0-next.31_svelte@3.44.2+vite@2.7.2 - cheap-watch: 1.0.4 - sade: 1.7.4 + '@sveltejs/vite-plugin-svelte': 1.0.0-next.34_svelte@3.44.2+vite@2.7.10 + sade: 1.8.1 svelte: 3.44.2 - vite: 2.7.2 + vite: 2.7.10 transitivePeerDependencies: - diff-match-patch - less @@ -853,13 +826,13 @@ packages: - supports-color dev: true - /@sveltejs/vite-plugin-svelte/1.0.0-next.31_svelte@3.44.2+vite@2.7.2: - resolution: {integrity: sha512-8K3DcGP1V+XBv389u32S6wt8xiun6hHd5wn28AKLSoNTIhOmJOA2RJUJzp0seTRI86Shme4lzHI2Fgq4qz1wXQ==} + /@sveltejs/vite-plugin-svelte/1.0.0-next.34_svelte@3.44.2+vite@2.7.10: + resolution: {integrity: sha512-qZH2jndijrdkvevgbO7OH3iQsviM5Kz7h5APiNP4yEMZTrwq9bifzYvco6BprwtPvLb5wYlRVFZUOdusY6AovQ==} engines: {node: ^14.13.1 || >= 16} peerDependencies: diff-match-patch: ^1.0.5 svelte: ^3.44.0 - vite: ^2.6.0 + vite: ^2.7.0 peerDependenciesMeta: diff-match-patch: optional: true @@ -870,8 +843,8 @@ packages: magic-string: 0.25.7 require-relative: 0.8.7 svelte: 3.44.2 - svelte-hmr: 0.14.7_svelte@3.44.2 - vite: 2.7.2 + svelte-hmr: 0.14.9_svelte@3.44.2 + vite: 2.7.10 transitivePeerDependencies: - supports-color dev: true @@ -1148,11 +1121,6 @@ packages: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} dev: true - /cheap-watch/1.0.4: - resolution: {integrity: sha512-QR/9FrtRL5fjfUJBhAKCdi0lSRQ3rVRRum3GF9wDKp2TJbEIMGhUEr2yU8lORzm9Isdjx7/k9S0DFDx+z5VGtw==} - engines: {node: '>=8'} - dev: true - /chownr/1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: true @@ -2008,6 +1976,10 @@ packages: type-fest: 0.20.2 dev: true + /globalyzer/0.1.0: + resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} + dev: true + /globby/11.0.4: resolution: {integrity: sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==} engines: {node: '>=10'} @@ -2020,6 +1992,10 @@ packages: slash: 3.0.0 dev: true + /globrex/0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + dev: true + /golden-fleece/1.0.9: resolution: {integrity: sha512-YSwLaGMOgSBx9roJlNLL12c+FRiw7VECphinc6mGucphc/ZxTHgdEz6gmJqH6NOzYEd/yr64hwjom5pZ+tJVpg==} dev: false @@ -2153,6 +2129,12 @@ packages: has: 1.0.3 dev: true + /is-core-module/2.8.1: + resolution: {integrity: sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==} + dependencies: + has: 1.0.3 + dev: true + /is-extglob/2.1.1: resolution: {integrity: sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=} engines: {node: '>=0.10.0'} @@ -2495,8 +2477,8 @@ packages: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true - /nanoid/3.1.30: - resolution: {integrity: sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==} + /nanoid/3.1.32: + resolution: {integrity: sha512-F8mf7R3iT9bvThBoW4tGXhXFHCctyCiUUPrWF8WaTqa3h96d9QybkSeba43XVOOE3oiLfkVDe4bT8MeGmkrTxw==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true dev: true @@ -2753,6 +2735,11 @@ packages: engines: {node: '>=8.6'} dev: true + /picomatch/2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + /pify/4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} @@ -2777,11 +2764,11 @@ packages: engines: {node: '>=4.0.0'} dev: true - /postcss/8.4.4: - resolution: {integrity: sha512-joU6fBsN6EIer28Lj6GDFoC/5yOZzLCfn0zHAn/MYXI7aPt4m4hK5KC5ovEZXy+lnCjmYIbQWngvju2ddyEr8Q==} + /postcss/8.4.5: + resolution: {integrity: sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: 3.1.30 + nanoid: 3.1.32 picocolors: 1.0.0 source-map-js: 1.0.1 dev: true @@ -3009,6 +2996,15 @@ packages: path-parse: 1.0.7 dev: true + /resolve/1.21.0: + resolution: {integrity: sha512-3wCbTpk5WJlyE4mSOtDLhqQmGFi0/TD9VPwmiolnk8U0wRgMEktqCXd3vy5buTO3tljvalNvKrjHEfrd2WpEKA==} + hasBin: true + dependencies: + is-core-module: 2.8.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + /reusify/1.0.4: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -3027,6 +3023,15 @@ packages: hasBin: true optionalDependencies: fsevents: 2.3.2 + dev: false + + /rollup/2.63.0: + resolution: {integrity: sha512-nps0idjmD+NXl6OREfyYXMn/dar3WGcyKn+KBzPdaLecub3x/LrId0wUcthcr8oZUAcZAR8NKcfGGFlNgGL1kQ==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: true /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -3041,6 +3046,13 @@ packages: mri: 1.2.0 dev: true + /sade/1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + dependencies: + mri: 1.2.0 + dev: true + /safe-buffer/5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} dev: true @@ -3319,8 +3331,13 @@ packages: has-flag: 4.0.0 dev: true - /svelte-hmr/0.14.7_svelte@3.44.2: - resolution: {integrity: sha512-pDrzgcWSoMaK6AJkBWkmgIsecW0GChxYZSZieIYfCP0v2oPyx2CYU/zm7TBIcjLVUPP714WxmViE9Thht4etog==} + /supports-preserve-symlinks-flag/1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /svelte-hmr/0.14.9_svelte@3.44.2: + resolution: {integrity: sha512-bKE9+4qb4sAnA+TKHiYurUl970rjA0XmlP9TEP7K/ncyWz3m81kA4HOgmlZK/7irGK7gzZlaPDI3cmf8fp/+tg==} peerDependencies: svelte: '>=3.19.0' dependencies: @@ -3399,6 +3416,13 @@ packages: resolution: {integrity: sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw==} dev: true + /tiny-glob/0.2.9: + resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + dev: true + /tinycolor2/1.4.2: resolution: {integrity: sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==} dev: true @@ -3562,8 +3586,8 @@ packages: magic-string: 0.25.7 dev: true - /vite/2.7.2: - resolution: {integrity: sha512-wMffVVdKZRZP/HwW3yttKL8X+IJePz7bUcnGm0vqljffpVwHpjWC3duZtJQHAGvy+wrTjmwU7vkULpZ1dVXY6w==} + /vite/2.7.10: + resolution: {integrity: sha512-KEY96ntXUid1/xJihJbgmLZx7QSC2D4Tui0FdS0Old5OokYzFclcofhtxtjDdGOk/fFpPbHv9yw88+rB93Tb8w==} engines: {node: '>=12.2.0'} hasBin: true peerDependencies: @@ -3579,9 +3603,9 @@ packages: optional: true dependencies: esbuild: 0.13.15 - postcss: 8.4.4 - resolve: 1.20.0 - rollup: 2.61.1 + postcss: 8.4.5 + resolve: 1.21.0 + rollup: 2.63.0 optionalDependencies: fsevents: 2.3.2 dev: true diff --git a/sites/kit.svelte.dev/package.json b/sites/kit.svelte.dev/package.json index 99f76514..958e9f66 100644 --- a/sites/kit.svelte.dev/package.json +++ b/sites/kit.svelte.dev/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@sveltejs/adapter-netlify": "next", - "@sveltejs/kit": "next", + "@sveltejs/kit": "^1.0.0-next.225", "@sveltejs/site-kit": "workspace:*", "@types/node": "^16.6.1", "svelte": "^3.43.0", diff --git a/sites/svelte.dev/package.json b/sites/svelte.dev/package.json index f073108b..51dee607 100644 --- a/sites/svelte.dev/package.json +++ b/sites/svelte.dev/package.json @@ -24,8 +24,8 @@ }, "devDependencies": { "@sindresorhus/slugify": "^0.9.1", - "@sveltejs/adapter-auto": "^1.0.0-next.3", - "@sveltejs/kit": "next", + "@sveltejs/adapter-auto": "^1.0.0-next.10", + "@sveltejs/kit": "^1.0.0-next.225", "@sveltejs/site-kit": "workspace:*", "degit": "^2.1.4", "dotenv": "^10.0.0", diff --git a/sites/svelte.dev/src/routes/__layout.svelte b/sites/svelte.dev/src/routes/__layout.svelte index 7eef733b..956bc5f5 100644 --- a/sites/svelte.dev/src/routes/__layout.svelte +++ b/sites/svelte.dev/src/routes/__layout.svelte @@ -36,7 +36,7 @@ {/if} -{#if $page.path !== '/repl/embed'} +{#if $page.url.pathname !== '/repl/embed'}