diff --git a/package.json b/package.json index 60cd3e481e43..05926dff37c7 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,11 @@ "playwright": "^1.44.1", "typescript-eslint": "^8.0.0" }, + "pnpm": { + "overrides": { + "vite": "6.0.0-alpha.23" + } + }, "packageManager": "pnpm@9.11.0", "engines": { "pnpm": "^9.0.0" diff --git a/packages/kit/package.json b/packages/kit/package.json index 30eb340ab94d..967bd7ddcb6e 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -26,6 +26,7 @@ "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", + "pathe": "^1.1.2", "sade": "^1.8.1", "set-cookie-parser": "^2.6.0", "sirv": "^2.0.4", diff --git a/packages/kit/src/core/config/index.spec.js b/packages/kit/src/core/config/index.spec.js index 0f946a61292d..1166a584cc87 100644 --- a/packages/kit/src/core/config/index.spec.js +++ b/packages/kit/src/core/config/index.spec.js @@ -76,6 +76,9 @@ const get_defaults = (prefix = '') => ({ publicPrefix: 'PUBLIC_', privatePrefix: '' }, + environments: { + ssr: null + }, files: { assets: join(prefix, 'static'), hooks: { diff --git a/packages/kit/src/core/config/options.js b/packages/kit/src/core/config/options.js index a4b41f2a16c6..b8a5f51ad953 100644 --- a/packages/kit/src/core/config/options.js +++ b/packages/kit/src/core/config/options.js @@ -120,6 +120,13 @@ const options = object( privatePrefix: string('') }), + // New environments option. The fallback for each environment could eventually be a default Node environment. + environments: object({ + ssr: validate(null, (input) => { + return input; + }) + }), + files: object({ assets: string('static'), hooks: object({ diff --git a/packages/kit/src/exports/public.d.ts b/packages/kit/src/exports/public.d.ts index 861aff321902..19f50e3353b3 100644 --- a/packages/kit/src/exports/public.d.ts +++ b/packages/kit/src/exports/public.d.ts @@ -1,6 +1,7 @@ import 'svelte'; // pick up `declare module "*.svelte"` import 'vite/client'; // pick up `declare module "*.jpg"`, etc. import '../types/ambient.js'; +import { Plugin } from 'vite'; import { CompileOptions } from 'svelte/compiler'; import { @@ -407,6 +408,12 @@ export interface KitConfig { */ privatePrefix?: string; }; + /** + * The new `environments` option. The user provides a factory function that is then used to create the plugin. + */ + environments?: { + ssr?: (environmentName: string, options?: any) => Plugin[]; + }; /** * Where to find various files within your project. */ diff --git a/packages/kit/src/exports/vite/constants.js b/packages/kit/src/exports/vite/constants.js new file mode 100644 index 000000000000..558b866826e7 --- /dev/null +++ b/packages/kit/src/exports/vite/constants.js @@ -0,0 +1 @@ +export const SSR_ENVIRONMENT_NAME = '__ssr_environment__'; diff --git a/packages/kit/src/exports/vite/dev/cloudflare_entrypoint.js b/packages/kit/src/exports/vite/dev/cloudflare_entrypoint.js new file mode 100644 index 000000000000..c3cc3057ba91 --- /dev/null +++ b/packages/kit/src/exports/vite/dev/cloudflare_entrypoint.js @@ -0,0 +1,33 @@ +// This should be exported from @sveltejs/kit so that the path isn't relative +import { Server } from '../../../runtime/server/index.js'; + +export default { + /** + * This fetch handler is the entrypoint for the environment. + * @param {Request & { cf: any }} request + * @param {any} env + * @param {any} context + */ + fetch: async (request, env, context) => { + const environment_context = await import('__sveltekit/environment_context'); + const server = new Server(environment_context.manifest); + + await server.init({ + env: environment_context.env + }); + + return server.respond(request, { + getClientAddress: () => { + if (environment_context.remote_address) return environment_context.remote_address; + throw new Error('Could not determine clientAddress'); + }, + // We can provide the platform properties directly as the code is executed in a workerd environment. + platform: { + env, + cf: request.cf, + context, + caches + } + }); + } +}; diff --git a/packages/kit/src/exports/vite/dev/default_environment.js b/packages/kit/src/exports/vite/dev/default_environment.js new file mode 100644 index 000000000000..08b563744216 --- /dev/null +++ b/packages/kit/src/exports/vite/dev/default_environment.js @@ -0,0 +1,27 @@ +import { createNodeDevEnvironment } from 'vite'; + +/** + * A default Node environment to pass to kit.environments.ssr in the Svelte config. This could eventually be used as the fallback for this option. + * @returns {(environment_name: string) => import('vite').Plugin[]} + */ +export function node() { + // @ts-ignore + return function default_environment(environment_name) { + return [ + { + name: 'vite-plugin-sveltekit-default-environment', + config: () => { + return { + environments: { + [environment_name]: { + dev: { + createEnvironment: createNodeDevEnvironment + } + } + } + }; + } + } + ]; + }; +} diff --git a/packages/kit/src/exports/vite/dev/index.js b/packages/kit/src/exports/vite/dev/index.js index e9eb23ec2c4f..64afeca90a72 100644 --- a/packages/kit/src/exports/vite/dev/index.js +++ b/packages/kit/src/exports/vite/dev/index.js @@ -1,11 +1,11 @@ import fs from 'node:fs'; import path from 'node:path'; import process from 'node:process'; -import { URL } from 'node:url'; +import { fileURLToPath, URL } from 'node:url'; import { AsyncLocalStorage } from 'node:async_hooks'; import colors from 'kleur'; import sirv from 'sirv'; -import { isCSSRequest, loadEnv, buildErrorMessage } from 'vite'; +import { isCSSRequest, loadEnv, buildErrorMessage, createServerModuleRunner } from 'vite'; import { createReadableStream, getRequest, setResponse } from '../../../exports/node/index.js'; import { installPolyfills } from '../../../exports/node/polyfills.js'; import { coalesce_to_error } from '../../../utils/error.js'; @@ -18,6 +18,8 @@ import { compact } from '../../../utils/array.js'; import { not_found } from '../utils.js'; import { SCHEME } from '../../../utils/url.js'; import { check_feature } from '../../../utils/features.js'; +import { sveltekit_environment_context } from '../module_ids.js'; +import { SSR_ENVIRONMENT_NAME } from '../constants.js'; const cwd = process.cwd(); @@ -25,9 +27,10 @@ const cwd = process.cwd(); * @param {import('vite').ViteDevServer} vite * @param {import('vite').ResolvedConfig} vite_config * @param {import('types').ValidatedConfig} svelte_config + * @param {import('types').EnvironmentContext} environment_context * @return {Promise void>>} */ -export async function dev(vite, vite_config, svelte_config) { +export async function dev(vite, vite_config, svelte_config, environment_context) { installPolyfills(); const async_local_storage = new AsyncLocalStorage(); @@ -98,10 +101,30 @@ export async function dev(vite, vite_config, svelte_config) { return { module, module_node, url }; } + /** + * Used to invalidate the `sveltekit_environment_context` module when the manifest is updated. + */ + function invalidate_environment_context_module() { + for (const environment in vite.environments) { + const module = vite.environments[environment].moduleGraph.getModuleById( + sveltekit_environment_context + ); + + if (module) { + vite.environments[environment].moduleGraph.invalidateModule(module); + } + } + } + function update_manifest() { try { ({ manifest_data } = sync.create(svelte_config)); + // Update the `manifest_data` used in the `sveltekit_environment_context` virtual module. + environment_context.manifest_data = manifest_data; + // Invalidate the virtual module. + invalidate_environment_context_module(); + if (manifest_error) { manifest_error = null; vite.ws.send({ type: 'full-reload' }); @@ -420,8 +443,36 @@ export async function dev(vite, vite_config, svelte_config) { }); const env = loadEnv(vite_config.mode, svelte_config.kit.env.dir, ''); + // Update the `env` used in the `sveltekit_environment_context` virtual module. + environment_context.env = env; const emulator = await svelte_config.kit.adapter?.emulate?.(); + /** + * The environment that was provided to `kit.environments.ssr` in the Svelte config. + * @type { ((import('vite').DevEnvironment & { api?: { getHandler: (opts: { entrypoint: string }) => Promise<(req: Request) => Promise> }})) | undefined } + */ + const devEnv = vite.environments[SSR_ENVIRONMENT_NAME]; + + const __dirname = fileURLToPath(new URL('.', import.meta.url)); + + /** @type {((req: Request) => Promise) | undefined} */ + let handler; + + // Create the handler for the Cloudflare or Node environment if it exists. + if (devEnv) { + if (devEnv.api) { + handler = await devEnv.api.getHandler({ + entrypoint: path.join(__dirname, 'cloudflare_entrypoint.js') + }); + console.log('Running in Cloudflare environment'); + } else { + const module_runner = createServerModuleRunner(vite.environments[SSR_ENVIRONMENT_NAME]); + const entrypoint = await module_runner.import(path.join(__dirname, 'node_entrypoint.js')); + handler = entrypoint.default.fetch; + console.log('Running in Node environment'); + } + } + return () => { const serve_static_middleware = vite.middlewares.stack.find( (middleware) => @@ -433,6 +484,9 @@ export async function dev(vite, vite_config, svelte_config) { remove_static_middlewares(vite.middlewares); vite.middlewares.use(async (req, res) => { + // Update the `remote_address` used in the `sveltekit_environment_context` virtual module. + environment_context.remote_address = req.socket.remoteAddress; + // Vite's base middleware strips out the base path. Restore it const original_url = req.url; req.url = req.originalUrl; @@ -522,18 +576,21 @@ export async function dev(vite, vite_config, svelte_config) { return; } - const rendered = await server.respond(request, { - getClientAddress: () => { - const { remoteAddress } = req.socket; - if (remoteAddress) return remoteAddress; - throw new Error('Could not determine clientAddress'); - }, - read: (file) => fs.readFileSync(path.join(svelte_config.kit.files.assets, file)), - before_handle: (event, config, prerender) => { - async_local_storage.enterWith({ event, config, prerender }); - }, - emulator - }); + // Render using the environment handler if it has been created. Else, fallback to the default behaviour. + const rendered = handler + ? await handler(request) + : await server.respond(request, { + getClientAddress: () => { + const { remoteAddress } = req.socket; + if (remoteAddress) return remoteAddress; + throw new Error('Could not determine clientAddress'); + }, + read: (file) => fs.readFileSync(path.join(svelte_config.kit.files.assets, file)), + before_handle: (event, config, prerender) => { + async_local_storage.enterWith({ event, config, prerender }); + }, + emulator + }); if (rendered.status === 404) { // @ts-expect-error diff --git a/packages/kit/src/exports/vite/dev/node_entrypoint.js b/packages/kit/src/exports/vite/dev/node_entrypoint.js new file mode 100644 index 000000000000..94be053a95dc --- /dev/null +++ b/packages/kit/src/exports/vite/dev/node_entrypoint.js @@ -0,0 +1,24 @@ +// This should be exported from @sveltejs/kit so that the path isn't relative +import { Server } from '../../../runtime/server/index.js'; + +export default { + /** + * This fetch handler is the entrypoint for the environment. + * @param {Request} request + */ + fetch: async (request) => { + const environment_context = await import('__sveltekit/environment_context'); + const server = new Server(environment_context.manifest); + + await server.init({ + env: environment_context.env + }); + + return server.respond(request, { + getClientAddress: () => { + if (environment_context.remote_address) return environment_context.remote_address; + throw new Error('Could not determine clientAddress'); + } + }); + } +}; diff --git a/packages/kit/src/exports/vite/index.js b/packages/kit/src/exports/vite/index.js index 06b1977c2b82..92b4f4033f8a 100644 --- a/packages/kit/src/exports/vite/index.js +++ b/packages/kit/src/exports/vite/index.js @@ -4,11 +4,20 @@ import process from 'node:process'; import colors from 'kleur'; -import { copy, mkdirp, posixify, read, resolve_entry, rimraf } from '../../utils/filesystem.js'; +import { compact } from '../../utils/array.js'; +import { + copy, + mkdirp, + posixify, + read, + resolve_entry, + rimraf, + to_fs +} from '../../utils/filesystem.js'; import { create_static_module, create_dynamic_module } from '../../core/env.js'; import * as sync from '../../core/sync/sync.js'; import { create_assets } from '../../core/sync/create_manifest_data/index.js'; -import { runtime_directory, logger } from '../../core/utils.js'; +import { runtime_directory, logger, get_mime_lookup, runtime_base } from '../../core/utils.js'; import { load_config } from '../../core/config/index.js'; import { generate_manifest } from '../../core/generate_manifest/index.js'; import { build_server_nodes } from './build/build_server.js'; @@ -32,9 +41,16 @@ import { service_worker, sveltekit_environment, sveltekit_paths, - sveltekit_server + sveltekit_server, + sveltekit_environment_context } from './module_ids.js'; import { resolve_peer_dependency } from '../../utils/import.js'; +import { SSR_ENVIRONMENT_NAME } from './constants.js'; + +/** + * This is where we store the values that are needed in the `sveltekit_environment_context` virtual module. + */ +const environment_context = /** @type {import('types').EnvironmentContext} */ ({}); const cwd = process.cwd(); @@ -502,6 +518,136 @@ async function kit({ svelte_config }) { } `; } + + // The virtual module that is imported in the environment entrypoint files. This provides all the data that is needed to create the `Server` instance. + // Not implemented: + // - Server assets. The `read` function from `$app/server` can only be used in environments that support file system access. + // - Inlining styles. This requires communicating with the main process to collect dependencies. It should be possible (e.g. using import.meta.hot) but needs more investigation. + case sveltekit_environment_context: { + const { manifest_data, env, remote_address } = environment_context; + + return dedent` + import { create_resolve } from "${runtime_base}/server/environment_context.js"; + + const resolve = create_resolve(${s(cwd)}); + + export let manifest = { + appDir: ${s(svelte_config.kit.appDir)}, + appPath: ${s(svelte_config.kit.appDir)}, + assets: new Set(${s(manifest_data.assets.map((asset) => asset.file))}), + mimeTypes: ${s(get_mime_lookup(manifest_data))}, + _: { + client: { + start: "${runtime_base}/client/entry.js", + app: "${to_fs(svelte_config.kit.outDir)}/generated/client/app.js", + imports: [], + stylesheets: [], + fonts: [], + uses_env_dynamic_public: true + }, + server_assets: {}, + nodes: [ + ${manifest_data.nodes + .map((node, i) => { + const index = s(i); + const component = s(node.component); + const universal = s(node.universal); + const server = s(node.server); + + return dedent` + async () => { + const result = {}; + + const module_nodes = []; + + result.index = ${index}; + + // these are unused in dev, it's easier to include them + result.imports = []; + result.stylesheets = []; + result.fonts = []; + + if (${component}) { + result.component = async () => { + const { module } = await resolve(${component}); + + return module.default; + } + } + + if (${universal}) { + const { module } = await resolve(${universal}); + + result.universal = module; + result.universal_id = ${universal}; + } + + if (${server}) { + const { module } = await resolve(${server}); + + result.server = module; + result.server_id = ${server}; + } + + return result; + } + `; + }) + .join(',\n')} + ], + routes: [ + ${compact( + manifest_data.routes.map((route) => { + if (!route.page && !route.endpoint) return; + + const endpoint = route.endpoint; + + return dedent` + { + id: ${s(route.id)}, + pattern: ${route.pattern}, + params: ${s(route.params)}, + page: ${s(route.page)}, + endpoint: ${ + endpoint + ? ` + async () => { + const { module } = await resolve(${s(endpoint.file)}); + + return module; + } + ` + : 'null' + }, + endpoint_id: ${s(endpoint?.file)} + } + `; + }) + ).join(',\n')} + ], + matchers: async () => { + const matchers = {}; + + for (const [key, file] of ${s(Object.entries(manifest_data.matchers))}) { + const { module } = await resolve(file); + + if (module.match) { + matchers[key] = module.match; + } else { + throw new Error(\`\${file} does not export a 'match' function\`); + } + } + + return matchers; + } + } + }; + + export let env = ${s(env)}; + + export let remote_address = ${s(remote_address)}; + `; + } } } }; @@ -670,7 +816,8 @@ async function kit({ svelte_config }) { * @see https://vitejs.dev/guide/api-plugin.html#configureserver */ async configureServer(vite) { - return await dev(vite, vite_config, svelte_config); + // We pass the `environment_context` object in so that we can update the values inside the `dev` function. Not ideal but avoids restructuring the code for the time being. + return await dev(vite, vite_config, svelte_config, environment_context); }, /** @@ -923,7 +1070,14 @@ async function kit({ svelte_config }) { } }; - return [plugin_setup, plugin_virtual_modules, plugin_guard, plugin_compile]; + return [ + // Creates the custom SSR environment if the factory function was passed to `kit.environments.ssr` in the Svelte config. + ...(svelte_config.kit.environments.ssr?.(SSR_ENVIRONMENT_NAME) ?? []), + plugin_setup, + plugin_virtual_modules, + plugin_guard, + plugin_compile + ]; } /** diff --git a/packages/kit/src/exports/vite/module_ids.js b/packages/kit/src/exports/vite/module_ids.js index 3be16f68a71f..669f8cdeea06 100644 --- a/packages/kit/src/exports/vite/module_ids.js +++ b/packages/kit/src/exports/vite/module_ids.js @@ -10,6 +10,8 @@ export const service_worker = '\0virtual:$service-worker'; export const sveltekit_environment = '\0virtual:__sveltekit/environment'; export const sveltekit_paths = '\0virtual:__sveltekit/paths'; export const sveltekit_server = '\0virtual:__sveltekit/server'; +// The new virtual module to be imported in custom environments (probably not the best name!). +export const sveltekit_environment_context = '\0virtual:__sveltekit/environment_context'; export const app_server = fileURLToPath( new URL('../../runtime/app/server/index.js', import.meta.url) diff --git a/packages/kit/src/runtime/server/environment_context.js b/packages/kit/src/runtime/server/environment_context.js new file mode 100644 index 000000000000..ec694a3c801f --- /dev/null +++ b/packages/kit/src/runtime/server/environment_context.js @@ -0,0 +1,25 @@ +// We're using `pathe` rather than `node:path` for compatibility with other runtimes. +import * as pathe from 'pathe'; + +/** @param {string} url */ +async function loud_ssr_load_module(url) { + // We can use a dynamic import rather than `vite.ssrLoadModule` because it will be executed inside the environment module runner. + return await import(/* @vite-ignore */ url); + + // TODO: report errors using import.meta.hot.send +} + +/** @param {string} cwd */ +export function create_resolve(cwd) { + /** @param {string} id */ + return async function resolve(id) { + // Do we need `to_fs` here? If so we'll need to split it out into a module that doesn't import from Node. + const url = id.startsWith('..') ? pathe.resolve(cwd, id) : `/${id}`; + + const module = await loud_ssr_load_module(url); + + return { module, url }; + + // TODO: return module nodes or use alternative approach to collect dependencies for inlining CSS + }; +} diff --git a/packages/kit/src/types/ambient-private.d.ts b/packages/kit/src/types/ambient-private.d.ts index 4f1491475355..5d248512d55a 100644 --- a/packages/kit/src/types/ambient-private.d.ts +++ b/packages/kit/src/types/ambient-private.d.ts @@ -26,3 +26,11 @@ declare module '__sveltekit/server' { export function set_manifest(manifest: SSRManifest): void; export function set_read_implementation(fn: (path: string) => ReadableStream): void; } + +declare module '__sveltekit/environment_context' { + import { SSRManifest } from '@sveltejs/kit'; + + export let manifest: SSRManifest; + export let env: Record; + export let remote_address: string | undefined; +} diff --git a/packages/kit/src/types/internal.d.ts b/packages/kit/src/types/internal.d.ts index c9dbb51ce007..22779c2195f5 100644 --- a/packages/kit/src/types/internal.d.ts +++ b/packages/kit/src/types/internal.d.ts @@ -121,6 +121,12 @@ export interface Env { public: Record; } +export interface EnvironmentContext { + manifest_data: ManifestData; + env: Record; + remote_address: string | undefined; +} + export class InternalServer extends Server { init(options: ServerInitOptions): Promise; respond( diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index 687ac768e331..0fa6e62e06db 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -2,6 +2,7 @@ /// declare module '@sveltejs/kit' { + import type { Plugin } from 'vite'; import type { CompileOptions } from 'svelte/compiler'; import type { PluginOptions } from '@sveltejs/vite-plugin-svelte'; /** @@ -389,6 +390,12 @@ declare module '@sveltejs/kit' { */ privatePrefix?: string; }; + /** + * The new `environments` option. The user provides a factory function that is then used to create the plugin. + */ + environments?: { + ssr?: (environmentName: string, options?: any) => Plugin[]; + }; /** * Where to find various files within your project. */ diff --git a/playgrounds/vite-cloudflare-environment/jsconfig.json b/playgrounds/vite-cloudflare-environment/jsconfig.json new file mode 100644 index 000000000000..fe45e13fdd06 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/jsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true + } + // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files + // + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes + // from the referenced tsconfig.json - TypeScript does not merge them in +} diff --git a/playgrounds/vite-cloudflare-environment/package.json b/playgrounds/vite-cloudflare-environment/package.json new file mode 100644 index 000000000000..0ddf5fd3c9b7 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/package.json @@ -0,0 +1,53 @@ +{ + "name": "vite-cloudflare-environment", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "vite dev", + "build": "vite build && npm run package", + "preview": "vite preview", + "package": "svelte-kit sync && svelte-package && publint", + "prepublishOnly": "npm run package", + "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch", + "typegen": "wrangler types" + }, + "devDependencies": { + "@cloudflare/workers-types": "^4.20231121.0", + "@flarelabs-net/vite-environment-provider-cloudflare": "^0.0.1", + "@sveltejs/adapter-auto": "workspace:*", + "@sveltejs/adapter-cloudflare": "workspace:*", + "@sveltejs/adapter-cloudflare-workers": "workspace:*", + "@sveltejs/adapter-netlify": "workspace:*", + "@sveltejs/adapter-node": "workspace:*", + "@sveltejs/adapter-static": "workspace:*", + "@sveltejs/adapter-vercel": "workspace:*", + "@sveltejs/amp": "workspace:*", + "@sveltejs/kit": "workspace:*", + "@sveltejs/package": "workspace:*", + "@sveltejs/vite-plugin-svelte": "^3.0.1", + "publint": "^0.2.0", + "svelte": "^4.2.10", + "svelte-check": "^3.6.3", + "typescript": "^5.3.3", + "vite": "^5.3.2", + "wrangler": "^3.72.3" + }, + "type": "module", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "svelte": "./dist/index.js" + } + }, + "files": [ + "dist", + "!dist/**/*.test.*", + "!dist/**/*.spec.*" + ], + "peerDependencies": { + "svelte": "^4.0.0" + }, + "svelte": "./dist/index.js", + "types": "./dist/index.d.ts" +} diff --git a/playgrounds/vite-cloudflare-environment/src/app.d.ts b/playgrounds/vite-cloudflare-environment/src/app.d.ts new file mode 100644 index 000000000000..eddc939101a9 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/app.d.ts @@ -0,0 +1,17 @@ +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + interface Platform { + caches: CacheStorage; + cf: IncomingRequestCfProperties; + context: ExecutionContext; + env: Env; + } + } +} + +export {}; diff --git a/playgrounds/vite-cloudflare-environment/src/app.html b/playgrounds/vite-cloudflare-environment/src/app.html new file mode 100644 index 000000000000..6769ed5e89c5 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/playgrounds/vite-cloudflare-environment/src/lib/index.js b/playgrounds/vite-cloudflare-environment/src/lib/index.js new file mode 100644 index 000000000000..856f2b6c38ae --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/lib/index.js @@ -0,0 +1 @@ +// place files you want to import through the `$lib` alias in this folder. diff --git a/playgrounds/vite-cloudflare-environment/src/params/fruit.js b/playgrounds/vite-cloudflare-environment/src/params/fruit.js new file mode 100644 index 000000000000..d9d4426d4435 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/params/fruit.js @@ -0,0 +1,6 @@ +/** + * @param {string} param + */ +export function match(param) { + return param === 'apple' || param === 'orange'; +} diff --git a/playgrounds/vite-cloudflare-environment/src/routes/+layout.svelte b/playgrounds/vite-cloudflare-environment/src/routes/+layout.svelte new file mode 100644 index 000000000000..ec19d552d54b --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/+layout.svelte @@ -0,0 +1,20 @@ +
+

Svelte Kit with Vite Cloudflare Environment

+ +
+
+ + + \ No newline at end of file diff --git a/playgrounds/vite-cloudflare-environment/src/routes/+page.server.js b/playgrounds/vite-cloudflare-environment/src/routes/+page.server.js new file mode 100644 index 000000000000..100bf3bfbf9c --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/+page.server.js @@ -0,0 +1,33 @@ +function getUserAgentText() { + if (typeof navigator === 'undefined') { + return 'navigator is undefined (running in Node.js?)'; + } + + return `navigator.userAgent = ${navigator.userAgent}`; +} + +const KEY = '__my-key__'; + +export async function load({ platform }) { + const { MY_KV } = /** @type any */ (platform).env; + const value = await MY_KV.get(KEY); + + return { userAgentText: getUserAgentText(), value: value === 'null' ? null : value }; +} + +export const actions = { + create: async ({ request, platform }) => { + const { MY_KV } = /** @type any */ (platform).env; + const formData = await request.formData(); + const value = formData.get('value'); + await MY_KV.put(KEY, value); + + return null; + }, + delete: async ({ platform }) => { + const { MY_KV } = /** @type any */ (platform).env; + await MY_KV.delete(KEY); + + return null; + } +}; diff --git a/playgrounds/vite-cloudflare-environment/src/routes/+page.svelte b/playgrounds/vite-cloudflare-environment/src/routes/+page.svelte new file mode 100644 index 000000000000..5fbe3747ffc9 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/+page.svelte @@ -0,0 +1,20 @@ + + +
+

{data.userAgentText}

+

KV example:

+ {#if data.value} +

Value: {data.value}

+
+ +
+ {:else} +
+ + + +
+ {/if} +
\ No newline at end of file diff --git a/playgrounds/vite-cloudflare-environment/src/routes/about/+page.svelte b/playgrounds/vite-cloudflare-environment/src/routes/about/+page.svelte new file mode 100644 index 000000000000..3cd438d637fb --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/about/+page.svelte @@ -0,0 +1,7 @@ +

About

+ + \ No newline at end of file diff --git a/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.server.js b/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.server.js new file mode 100644 index 000000000000..ab063c0671cb --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.server.js @@ -0,0 +1,7 @@ +export function load({ params, platform }) { + const cf = /** @type any */ (platform).cf; + const key = params?.key; + const value = key && key in cf ? JSON.stringify(cf[key]) : undefined; + + return { key, value, keys: Object.keys(cf) }; +} diff --git a/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.svelte b/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.svelte new file mode 100644 index 000000000000..cc3ad033e2a8 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/cf-properties/[[key]]/+page.svelte @@ -0,0 +1,20 @@ + + +
+ {#if data.key} + {#if data.value} +

Cloudflare property: {data.key}

+

Value: {data.value}

+ {:else} +

Cloudflare property '{data.key}' not found

+ {/if} + {/if} +

Available Cloudflare properties:

+
    + {#each data.keys as key} +
  • {key}
  • + {/each} +
+
\ No newline at end of file diff --git a/playgrounds/vite-cloudflare-environment/src/routes/endpoint/+server.js b/playgrounds/vite-cloudflare-environment/src/routes/endpoint/+server.js new file mode 100644 index 000000000000..96873ba33d48 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/endpoint/+server.js @@ -0,0 +1,13 @@ +import { error } from '@sveltejs/kit'; + +export function GET({ url }) { + const min = Number(url.searchParams.get('min') ?? '0'); + const max = Number(url.searchParams.get('max') ?? '1'); + const d = max - min; + if (isNaN(d) || d < 0) { + error(400, 'min and max must be numbers, and min must be less than max'); + } + const random = min + Math.random() * d; + + return new Response(String(random)); +} diff --git a/playgrounds/vite-cloudflare-environment/src/routes/matchers/[page=fruit]/+page.svelte b/playgrounds/vite-cloudflare-environment/src/routes/matchers/[page=fruit]/+page.svelte new file mode 100644 index 000000000000..b7e2b5227a9e --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/src/routes/matchers/[page=fruit]/+page.svelte @@ -0,0 +1,16 @@ + + +

{$page.params.page}

+ + + \ No newline at end of file diff --git a/playgrounds/vite-cloudflare-environment/static/favicon.png b/playgrounds/vite-cloudflare-environment/static/favicon.png new file mode 100644 index 000000000000..825b9e65af7c Binary files /dev/null and b/playgrounds/vite-cloudflare-environment/static/favicon.png differ diff --git a/playgrounds/vite-cloudflare-environment/svelte.config.js b/playgrounds/vite-cloudflare-environment/svelte.config.js new file mode 100644 index 000000000000..a2265e8c33cd --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/svelte.config.js @@ -0,0 +1,16 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import adapter from '@sveltejs/adapter-auto'; +import { cloudflare } from '@flarelabs-net/vite-environment-provider-cloudflare'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + kit: { + adapter: adapter(), + environments: { + ssr: cloudflare() + } + }, + preprocess: [vitePreprocess()] +}; + +export default config; diff --git a/playgrounds/vite-cloudflare-environment/vite.config.js b/playgrounds/vite-cloudflare-environment/vite.config.js new file mode 100644 index 000000000000..7617d19b8849 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/vite.config.js @@ -0,0 +1,11 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; + +export default defineConfig({ + plugins: [sveltekit()], + server: { + fs: { + allow: ['../../packages/kit'] + } + } +}); diff --git a/playgrounds/vite-cloudflare-environment/worker-configuration.d.ts b/playgrounds/vite-cloudflare-environment/worker-configuration.d.ts new file mode 100644 index 000000000000..d62f1a062ac6 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/worker-configuration.d.ts @@ -0,0 +1,6 @@ +// Generated by Wrangler on Thu Aug 29 2024 14:33:34 GMT+0100 (British Summer Time) +// by running `wrangler types` + +interface Env { + MY_KV: KVNamespace; +} diff --git a/playgrounds/vite-cloudflare-environment/wrangler.toml b/playgrounds/vite-cloudflare-environment/wrangler.toml new file mode 100644 index 000000000000..98cb694edfe8 --- /dev/null +++ b/playgrounds/vite-cloudflare-environment/wrangler.toml @@ -0,0 +1,50 @@ +name = "vite-workerd-environment" +compatibility_date = "2024-03-04" + +# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables) +# Note: Use secrets to store sensitive data. +# Docs: https://developers.cloudflare.com/workers/platform/environment-variables +# [vars] +# MY_VARIABLE = "production_value" + +# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs. +# Docs: https://developers.cloudflare.com/workers/runtime-apis/kv +[[kv_namespaces]] +binding = "MY_KV" +id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + +# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files. +# Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/ +# [[r2_buckets]] +# binding = "MY_BUCKET" +# bucket_name = "my-bucket" + +# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer. +# Docs: https://developers.cloudflare.com/queues/get-started +# [[queues.producers]] +# binding = "MY_QUEUE" +# queue = "my-queue" + +# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them. +# Docs: https://developers.cloudflare.com/queues/get-started +# [[queues.consumers]] +# queue = "my-queue" + +# Bind another Worker service. Use this binding to call another Worker without network overhead. +# Docs: https://developers.cloudflare.com/workers/platform/services +# [[services]] +# binding = "MY_SERVICE" +# service = "my-service" + +# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. +# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps. +# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects +# [[durable_objects.bindings]] +# name = "MY_DURABLE_OBJECT" +# class_name = "MyDurableObject" + +# Durable Object migrations. +# Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations +# [[migrations]] +# tag = "v1" +# new_classes = ["MyDurableObject"] diff --git a/playgrounds/vite-node-environment/jsconfig.json b/playgrounds/vite-node-environment/jsconfig.json new file mode 100644 index 000000000000..fe45e13fdd06 --- /dev/null +++ b/playgrounds/vite-node-environment/jsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true + } + // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files + // + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes + // from the referenced tsconfig.json - TypeScript does not merge them in +} diff --git a/playgrounds/vite-node-environment/package.json b/playgrounds/vite-node-environment/package.json new file mode 100644 index 000000000000..949cb7d74e37 --- /dev/null +++ b/playgrounds/vite-node-environment/package.json @@ -0,0 +1,49 @@ +{ + "name": "vite-node-environment", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "vite dev", + "build": "vite build && npm run package", + "preview": "vite preview", + "package": "svelte-kit sync && svelte-package && publint", + "prepublishOnly": "npm run package", + "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" + }, + "devDependencies": { + "@sveltejs/adapter-auto": "workspace:*", + "@sveltejs/adapter-cloudflare": "workspace:*", + "@sveltejs/adapter-cloudflare-workers": "workspace:*", + "@sveltejs/adapter-netlify": "workspace:*", + "@sveltejs/adapter-node": "workspace:*", + "@sveltejs/adapter-static": "workspace:*", + "@sveltejs/adapter-vercel": "workspace:*", + "@sveltejs/amp": "workspace:*", + "@sveltejs/kit": "workspace:*", + "@sveltejs/package": "workspace:*", + "@sveltejs/vite-plugin-svelte": "^3.0.1", + "publint": "^0.2.0", + "svelte": "^4.2.10", + "svelte-check": "^3.6.3", + "typescript": "^5.3.3", + "vite": "^5.3.2" + }, + "type": "module", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "svelte": "./dist/index.js" + } + }, + "files": [ + "dist", + "!dist/**/*.test.*", + "!dist/**/*.spec.*" + ], + "peerDependencies": { + "svelte": "^4.0.0" + }, + "svelte": "./dist/index.js", + "types": "./dist/index.d.ts" +} diff --git a/playgrounds/vite-node-environment/src/app.d.ts b/playgrounds/vite-node-environment/src/app.d.ts new file mode 100644 index 000000000000..f59b884c51ed --- /dev/null +++ b/playgrounds/vite-node-environment/src/app.d.ts @@ -0,0 +1,12 @@ +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface Platform {} + } +} + +export {}; diff --git a/playgrounds/vite-node-environment/src/app.html b/playgrounds/vite-node-environment/src/app.html new file mode 100644 index 000000000000..6769ed5e89c5 --- /dev/null +++ b/playgrounds/vite-node-environment/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/playgrounds/vite-node-environment/src/lib/index.js b/playgrounds/vite-node-environment/src/lib/index.js new file mode 100644 index 000000000000..856f2b6c38ae --- /dev/null +++ b/playgrounds/vite-node-environment/src/lib/index.js @@ -0,0 +1 @@ +// place files you want to import through the `$lib` alias in this folder. diff --git a/playgrounds/vite-node-environment/src/params/fruit.js b/playgrounds/vite-node-environment/src/params/fruit.js new file mode 100644 index 000000000000..d9d4426d4435 --- /dev/null +++ b/playgrounds/vite-node-environment/src/params/fruit.js @@ -0,0 +1,6 @@ +/** + * @param {string} param + */ +export function match(param) { + return param === 'apple' || param === 'orange'; +} diff --git a/playgrounds/vite-node-environment/src/routes/+layout.svelte b/playgrounds/vite-node-environment/src/routes/+layout.svelte new file mode 100644 index 000000000000..855ac08512e9 --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/+layout.svelte @@ -0,0 +1,19 @@ +
+

Svelte Kit with Vite Node Environment

+ +
+
+ + + \ No newline at end of file diff --git a/playgrounds/vite-node-environment/src/routes/+page.server.js b/playgrounds/vite-node-environment/src/routes/+page.server.js new file mode 100644 index 000000000000..95e133d481c3 --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/+page.server.js @@ -0,0 +1,11 @@ +function getUserAgentText() { + if (typeof navigator === 'undefined') { + return 'navigator is undefined (running in Node.js?)'; + } + + return `navigator.userAgent = ${navigator.userAgent}`; +} + +export function load() { + return { userAgentText: getUserAgentText() }; +} diff --git a/playgrounds/vite-node-environment/src/routes/+page.svelte b/playgrounds/vite-node-environment/src/routes/+page.svelte new file mode 100644 index 000000000000..24e8d36fca4b --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/+page.svelte @@ -0,0 +1,7 @@ + + +
+

{data.userAgentText}

+
\ No newline at end of file diff --git a/playgrounds/vite-node-environment/src/routes/about/+page.svelte b/playgrounds/vite-node-environment/src/routes/about/+page.svelte new file mode 100644 index 000000000000..3cd438d637fb --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/about/+page.svelte @@ -0,0 +1,7 @@ +

About

+ + \ No newline at end of file diff --git a/playgrounds/vite-node-environment/src/routes/endpoint/+server.js b/playgrounds/vite-node-environment/src/routes/endpoint/+server.js new file mode 100644 index 000000000000..96873ba33d48 --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/endpoint/+server.js @@ -0,0 +1,13 @@ +import { error } from '@sveltejs/kit'; + +export function GET({ url }) { + const min = Number(url.searchParams.get('min') ?? '0'); + const max = Number(url.searchParams.get('max') ?? '1'); + const d = max - min; + if (isNaN(d) || d < 0) { + error(400, 'min and max must be numbers, and min must be less than max'); + } + const random = min + Math.random() * d; + + return new Response(String(random)); +} diff --git a/playgrounds/vite-node-environment/src/routes/matchers/[page=fruit]/+page.svelte b/playgrounds/vite-node-environment/src/routes/matchers/[page=fruit]/+page.svelte new file mode 100644 index 000000000000..b7e2b5227a9e --- /dev/null +++ b/playgrounds/vite-node-environment/src/routes/matchers/[page=fruit]/+page.svelte @@ -0,0 +1,16 @@ + + +

{$page.params.page}

+ + + \ No newline at end of file diff --git a/playgrounds/vite-node-environment/static/favicon.png b/playgrounds/vite-node-environment/static/favicon.png new file mode 100644 index 000000000000..825b9e65af7c Binary files /dev/null and b/playgrounds/vite-node-environment/static/favicon.png differ diff --git a/playgrounds/vite-node-environment/svelte.config.js b/playgrounds/vite-node-environment/svelte.config.js new file mode 100644 index 000000000000..e987cd5dcf11 --- /dev/null +++ b/playgrounds/vite-node-environment/svelte.config.js @@ -0,0 +1,16 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import adapter from '@sveltejs/adapter-auto'; +import { node } from '../../packages/kit/src/exports/vite/dev/default_environment.js'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + kit: { + adapter: adapter(), + environments: { + ssr: node() + } + }, + preprocess: [vitePreprocess()] +}; + +export default config; diff --git a/playgrounds/vite-node-environment/vite.config.js b/playgrounds/vite-node-environment/vite.config.js new file mode 100644 index 000000000000..7617d19b8849 --- /dev/null +++ b/playgrounds/vite-node-environment/vite.config.js @@ -0,0 +1,11 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; + +export default defineConfig({ + plugins: [sveltekit()], + server: { + fs: { + allow: ['../../packages/kit'] + } + } +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6f0ac3af5941..6320b3fcd517 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + vite: 6.0.0-alpha.23 + importers: .: @@ -38,7 +41,7 @@ importers: version: link:../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -131,7 +134,7 @@ importers: version: link:../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -171,7 +174,7 @@ importers: version: link:../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -198,7 +201,7 @@ importers: version: link:../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -212,8 +215,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/adapter-static/test/apps/prerendered: devDependencies: @@ -222,7 +225,7 @@ importers: version: link:../../../../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) sirv-cli: specifier: ^2.0.2 version: 2.0.2 @@ -230,8 +233,8 @@ importers: specifier: ^4.2.10 version: 4.2.17 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/adapter-static/test/apps/spa: devDependencies: @@ -243,7 +246,7 @@ importers: version: link:../../../../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) sirv-cli: specifier: ^2.0.2 version: 2.0.2 @@ -251,8 +254,8 @@ importers: specifier: ^4.2.10 version: 4.2.17 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/adapter-vercel: dependencies: @@ -268,7 +271,7 @@ importers: version: link:../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -283,7 +286,7 @@ importers: dependencies: '@sveltejs/kit': specifier: ^1.0.0 || ^2.0.0 - version: link:../kit + version: 2.5.24(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) devDependencies: typescript: specifier: ^5.3.3 @@ -348,7 +351,7 @@ importers: version: link:../../../kit '@sveltejs/vite-plugin-svelte': specifier: ^3.0.0 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -356,8 +359,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/create-svelte/templates/skeleton: devDependencies: @@ -396,8 +399,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -428,6 +431,9 @@ importers: mrmime: specifier: ^2.0.0 version: 2.0.0 + pathe: + specifier: ^1.1.2 + version: 1.1.2 sade: specifier: ^1.8.1 version: 1.8.1 @@ -446,7 +452,7 @@ importers: version: 1.44.1 '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/connect': specifier: ^3.4.38 version: 3.4.38 @@ -467,13 +473,13 @@ importers: version: 4.2.17 svelte-preprocess: specifier: ^6.0.0 - version: 6.0.0(postcss-load-config@3.1.4(postcss@8.4.39))(postcss@8.4.39)(svelte@4.2.17)(typescript@5.4.5) + version: 6.0.0(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17)(typescript@5.4.5) typescript: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -488,7 +494,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -505,8 +511,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/basics: devDependencies: @@ -515,7 +521,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -532,8 +538,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/dev-only: devDependencies: @@ -542,7 +548,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -586,8 +592,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/embed: devDependencies: @@ -596,7 +602,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -610,8 +616,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/no-ssr: devDependencies: @@ -620,7 +626,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -634,8 +640,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/options: devDependencies: @@ -644,7 +650,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -658,8 +664,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/options-2: devDependencies: @@ -671,7 +677,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -685,8 +691,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/apps/writes: devDependencies: @@ -695,7 +701,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -709,8 +715,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors: devDependencies: @@ -728,7 +734,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -739,8 +745,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment: devDependencies: @@ -752,7 +758,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -763,8 +769,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/prerenderable-not-prerendered: devDependencies: @@ -776,7 +782,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -787,8 +793,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/private-dynamic-env: devDependencies: @@ -797,7 +803,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -808,8 +814,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import: devDependencies: @@ -818,7 +824,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -829,8 +835,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/private-static-env: devDependencies: @@ -839,7 +845,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -853,8 +859,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/private-static-env-dynamic-import: devDependencies: @@ -863,7 +869,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -874,8 +880,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/server-only-folder: devDependencies: @@ -884,7 +890,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -895,8 +901,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/server-only-folder-dynamic-import: devDependencies: @@ -905,7 +911,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -916,8 +922,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/server-only-module: devDependencies: @@ -926,7 +932,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -937,8 +943,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/server-only-module-dynamic-import: devDependencies: @@ -947,7 +953,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -958,8 +964,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/service-worker-dynamic-public-env: devDependencies: @@ -968,7 +974,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -979,8 +985,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/service-worker-private-env: devDependencies: @@ -989,7 +995,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -1000,8 +1006,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/build-errors/apps/syntax-error: devDependencies: @@ -1010,7 +1016,7 @@ importers: version: link:../../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -1021,8 +1027,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) packages/kit/test/prerendering/basics: devDependencies: @@ -1031,7 +1037,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -1042,8 +1048,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -1055,7 +1061,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -1066,8 +1072,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -1079,7 +1085,7 @@ importers: version: link:../../.. '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) svelte: specifier: ^4.2.10 version: 4.2.17 @@ -1090,8 +1096,8 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -1165,7 +1171,7 @@ importers: devDependencies: '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/node': specifier: ^18.19.48 version: 18.19.50 @@ -1180,7 +1186,7 @@ importers: version: 4.2.17 svelte-preprocess: specifier: ^6.0.0 - version: 6.0.0(postcss-load-config@3.1.4(postcss@8.4.39))(postcss@8.4.39)(svelte@4.2.17)(typescript@5.4.5) + version: 6.0.0(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17)(typescript@5.4.5) typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1222,7 +1228,7 @@ importers: version: link:../../packages/package '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) publint: specifier: ^0.2.0 version: 0.2.7 @@ -1236,8 +1242,119 @@ importers: specifier: ^5.3.3 version: 5.4.5 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) + + playgrounds/vite-cloudflare-environment: + devDependencies: + '@cloudflare/workers-types': + specifier: ^4.20231121.0 + version: 4.20240405.0 + '@flarelabs-net/vite-environment-provider-cloudflare': + specifier: ^0.0.1 + version: 0.0.1(miniflare@3.20240821.0)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1))(wrangler@3.72.3(@cloudflare/workers-types@4.20240405.0)) + '@sveltejs/adapter-auto': + specifier: workspace:* + version: link:../../packages/adapter-auto + '@sveltejs/adapter-cloudflare': + specifier: workspace:* + version: link:../../packages/adapter-cloudflare + '@sveltejs/adapter-cloudflare-workers': + specifier: workspace:* + version: link:../../packages/adapter-cloudflare-workers + '@sveltejs/adapter-netlify': + specifier: workspace:* + version: link:../../packages/adapter-netlify + '@sveltejs/adapter-node': + specifier: workspace:* + version: link:../../packages/adapter-node + '@sveltejs/adapter-static': + specifier: workspace:* + version: link:../../packages/adapter-static + '@sveltejs/adapter-vercel': + specifier: workspace:* + version: link:../../packages/adapter-vercel + '@sveltejs/amp': + specifier: workspace:* + version: link:../../packages/amp + '@sveltejs/kit': + specifier: workspace:* + version: link:../../packages/kit + '@sveltejs/package': + specifier: workspace:* + version: link:../../packages/package + '@sveltejs/vite-plugin-svelte': + specifier: ^3.0.1 + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) + publint: + specifier: ^0.2.0 + version: 0.2.7 + svelte: + specifier: ^4.2.10 + version: 4.2.17 + svelte-check: + specifier: ^3.6.3 + version: 3.6.9(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17) + typescript: + specifier: ^5.3.3 + version: 5.4.5 + vite: + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) + wrangler: + specifier: ^3.72.3 + version: 3.72.3(@cloudflare/workers-types@4.20240405.0) + + playgrounds/vite-node-environment: + devDependencies: + '@sveltejs/adapter-auto': + specifier: workspace:* + version: link:../../packages/adapter-auto + '@sveltejs/adapter-cloudflare': + specifier: workspace:* + version: link:../../packages/adapter-cloudflare + '@sveltejs/adapter-cloudflare-workers': + specifier: workspace:* + version: link:../../packages/adapter-cloudflare-workers + '@sveltejs/adapter-netlify': + specifier: workspace:* + version: link:../../packages/adapter-netlify + '@sveltejs/adapter-node': + specifier: workspace:* + version: link:../../packages/adapter-node + '@sveltejs/adapter-static': + specifier: workspace:* + version: link:../../packages/adapter-static + '@sveltejs/adapter-vercel': + specifier: workspace:* + version: link:../../packages/adapter-vercel + '@sveltejs/amp': + specifier: workspace:* + version: link:../../packages/amp + '@sveltejs/kit': + specifier: workspace:* + version: link:../../packages/kit + '@sveltejs/package': + specifier: workspace:* + version: link:../../packages/package + '@sveltejs/vite-plugin-svelte': + specifier: ^3.0.1 + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) + publint: + specifier: ^0.2.0 + version: 0.2.7 + svelte: + specifier: ^4.2.10 + version: 4.2.17 + svelte-check: + specifier: ^3.6.3 + version: 3.6.9(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17) + typescript: + specifier: ^5.3.3 + version: 5.4.5 + vite: + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) sites/kit.svelte.dev: dependencies: @@ -1268,7 +1385,7 @@ importers: version: 6.0.0-next.64(@sveltejs/kit@packages+kit)(svelte@4.2.17) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 - version: 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + version: 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) '@types/d3-geo': specifier: ^3.1.0 version: 3.1.0 @@ -1312,8 +1429,8 @@ importers: specifier: 5.0.4 version: 5.0.4 vite: - specifier: ^5.3.2 - version: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + specifier: 6.0.0-alpha.23 + version: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest: specifier: ^2.0.1 version: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) @@ -1408,30 +1525,64 @@ packages: cpu: [x64] os: [darwin] + '@cloudflare/workerd-darwin-64@1.20240821.1': + resolution: {integrity: sha512-CDBpfZKrSy4YrIdqS84z67r3Tzal2pOhjCsIb63IuCnvVes59/ft1qhczBzk9EffeOE2iTCrA4YBT7Sbn7USew==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + '@cloudflare/workerd-darwin-arm64@1.20240701.0': resolution: {integrity: sha512-w80ZVAgfH4UwTz7fXZtk7KmS2FzlXniuQm4ku4+cIgRTilBAuKqjpOjwUCbx5g13Gqcm9NuiHce+IDGtobRTIQ==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] + '@cloudflare/workerd-darwin-arm64@1.20240821.1': + resolution: {integrity: sha512-Q+9RedvNbPcEt/dKni1oN94OxbvuNAeJkgHmrLFTGF8zu21wzOhVkQeRNxcYxrMa9mfStc457NAg13OVCj2kHQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + '@cloudflare/workerd-linux-64@1.20240701.0': resolution: {integrity: sha512-UWLr/Anxwwe/25nGv451MNd2jhREmPt/ws17DJJqTLAx6JxwGWA15MeitAIzl0dbxRFAJa+0+R8ag2WR3F/D6g==} engines: {node: '>=16'} cpu: [x64] os: [linux] + '@cloudflare/workerd-linux-64@1.20240821.1': + resolution: {integrity: sha512-j6z3KsPtawrscoLuP985LbqFrmsJL6q1mvSXOXTqXGODAHIzGBipHARdOjms3UQqovzvqB2lQaQsZtLBwCZxtA==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + '@cloudflare/workerd-linux-arm64@1.20240701.0': resolution: {integrity: sha512-3kCnF9kYgov1ggpuWbgpXt4stPOIYtVmPCa7MO2xhhA0TWP6JDUHRUOsnmIgKrvDjXuXqlK16cdg3v+EWsaPJg==} engines: {node: '>=16'} cpu: [arm64] os: [linux] + '@cloudflare/workerd-linux-arm64@1.20240821.1': + resolution: {integrity: sha512-I9bHgZOxJQW0CV5gTdilyxzTG7ILzbTirehQWgfPx9X77E/7eIbR9sboOMgyeC69W4he0SKtpx0sYZuTJu4ERw==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + '@cloudflare/workerd-windows-64@1.20240701.0': resolution: {integrity: sha512-6IPGITRAeS67j3BH1rN4iwYWDt47SqJG7KlZJ5bB4UaNAia4mvMBSy/p2p4vA89bbXoDRjMtEvRu7Robu6O7hQ==} engines: {node: '>=16'} cpu: [x64] os: [win32] + '@cloudflare/workerd-windows-64@1.20240821.1': + resolution: {integrity: sha512-keC97QPArs6LWbPejQM7/Y8Jy8QqyaZow4/ZdsGo+QjlOLiZRDpAenfZx3CBUoWwEeFwQTl2FLO+8hV1SWFFYw==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workers-shared@0.4.0': + resolution: {integrity: sha512-XAFOldVQsbxQ7mjbqX2q1dNIgcLbKSytk41pwuZTn9e0p7OeTpFTosJef8uwosL6CcOAHqcW1f1HJxyjwmtGxw==} + engines: {node: '>=16.7.0'} + '@cloudflare/workers-types@4.20240405.0': resolution: {integrity: sha512-sEVOhyOgXUwfLkgHqbLZa/sfkSYrh7/zLmI6EZNibPaVPvAnAcItbNNl3SAlLyLKuwf8m4wAIAgu9meKWCvXjg==} @@ -1752,6 +1903,13 @@ packages: resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==} engines: {node: '>=14'} + '@flarelabs-net/vite-environment-provider-cloudflare@0.0.1': + resolution: {integrity: sha512-UEnV4IcFmOFYlzRuSdjCjXuTLptK5q1HuZ1jwQo9N3vmk5TOICkWvWVgwfUh/HihF9+B3lCIuJWNylakKUQbHg==} + peerDependencies: + miniflare: ^3.20240129.3 + vite: 6.0.0-alpha.23 + wrangler: ^3.57.2 + '@fontsource/fira-mono@5.0.12': resolution: {integrity: sha512-1uFRjqCcxVv4F31PjyLm8o4oNlT5ywwh6OwcDGkZbafOeFZHXekvholS9IlfZkRsZvVhSbFRHT/5iDib4KTtpg==} @@ -2005,81 +2163,161 @@ packages: cpu: [arm] os: [android] + '@rollup/rollup-android-arm-eabi@4.21.2': + resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==} + cpu: [arm] + os: [android] + '@rollup/rollup-android-arm64@4.18.0': resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==} cpu: [arm64] os: [android] + '@rollup/rollup-android-arm64@4.21.2': + resolution: {integrity: sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==} + cpu: [arm64] + os: [android] + '@rollup/rollup-darwin-arm64@4.18.0': resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==} cpu: [arm64] os: [darwin] + '@rollup/rollup-darwin-arm64@4.21.2': + resolution: {integrity: sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==} + cpu: [arm64] + os: [darwin] + '@rollup/rollup-darwin-x64@4.18.0': resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==} cpu: [x64] os: [darwin] + '@rollup/rollup-darwin-x64@4.21.2': + resolution: {integrity: sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==} + cpu: [x64] + os: [darwin] + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-gnueabihf@4.21.2': + resolution: {integrity: sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.18.0': resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.21.2': + resolution: {integrity: sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.18.0': resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.21.2': + resolution: {integrity: sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-arm64-musl@4.18.0': resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-musl@4.21.2': + resolution: {integrity: sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==} cpu: [ppc64] os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.21.2': + resolution: {integrity: sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==} + cpu: [ppc64] + os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.18.0': resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==} cpu: [riscv64] os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.21.2': + resolution: {integrity: sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==} + cpu: [riscv64] + os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.18.0': resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==} cpu: [s390x] os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.21.2': + resolution: {integrity: sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==} + cpu: [s390x] + os: [linux] + '@rollup/rollup-linux-x64-gnu@4.18.0': resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-gnu@4.21.2': + resolution: {integrity: sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==} + cpu: [x64] + os: [linux] + '@rollup/rollup-linux-x64-musl@4.18.0': resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-musl@4.21.2': + resolution: {integrity: sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==} + cpu: [x64] + os: [linux] + '@rollup/rollup-win32-arm64-msvc@4.18.0': resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==} cpu: [arm64] os: [win32] + '@rollup/rollup-win32-arm64-msvc@4.21.2': + resolution: {integrity: sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==} + cpu: [arm64] + os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.18.0': resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==} cpu: [ia32] os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.21.2': + resolution: {integrity: sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==} + cpu: [ia32] + os: [win32] + '@rollup/rollup-win32-x64-msvc@4.18.0': resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==} cpu: [x64] os: [win32] + '@rollup/rollup-win32-x64-msvc@4.21.2': + resolution: {integrity: sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==} + cpu: [x64] + os: [win32] + '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} @@ -2100,6 +2338,15 @@ packages: typescript: '>= 5' typescript-eslint: '>= 7.5' + '@sveltejs/kit@2.5.24': + resolution: {integrity: sha512-Nr2oxsCsDfEkdS/zzQQQbsPYTbu692Qs3/iE3L7VHzCVjG2+WujF9oMUozWI7GuX98KxYSoPMlAsfmDLSg44hQ==} + engines: {node: '>=18.13'} + hasBin: true + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: 6.0.0-alpha.23 + '@sveltejs/site-kit@6.0.0-next.64': resolution: {integrity: sha512-SosLY07DBA79yJhRR9vQpk9eXlSc3VjzOlIJQFvPzgsbu727rq5u3dudFEsm0NeQFoAF+NNgDYi5D85v5Yc+vQ==} peerDependencies: @@ -2112,14 +2359,14 @@ packages: peerDependencies: '@sveltejs/vite-plugin-svelte': ^3.0.0 svelte: ^4.0.0 || ^5.0.0-next.0 - vite: ^5.0.0 + vite: 6.0.0-alpha.23 '@sveltejs/vite-plugin-svelte@3.1.0': resolution: {integrity: sha512-sY6ncCvg+O3njnzbZexcVtUqOBE3iYmQPJ9y+yXSkOwG576QI/xJrBnQSRXFLGwJNBa0T78JEKg5cIR0WOAuUw==} engines: {node: ^18.0.0 || >=20} peerDependencies: svelte: ^4.0.0 || ^5.0.0-next.0 - vite: ^5.0.0 + vite: 6.0.0-alpha.23 '@svitejs/changesets-changelog-github-compact@1.1.0': resolution: {integrity: sha512-qhUGGDHcpbY2zpjW3SwqchuW8J/5EzlPFud7xNntHKA7f3a/mx5+g+ruJKFHSAiVZYo30PALt+AyhmPUNKH/Og==} @@ -2164,6 +2411,9 @@ packages: '@types/prompts@2.4.9': resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==} + '@types/pug@2.0.10': + resolution: {integrity: sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -2411,6 +2661,10 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true + buffer-crc32@1.0.0: + resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} + engines: {node: '>=8.0.0'} + builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} @@ -2460,6 +2714,9 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + cjs-module-lexer@1.3.1: + resolution: {integrity: sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==} + code-block-writer@13.0.1: resolution: {integrity: sha512-c5or4P6erEA69TxaxTNcHUNcIn+oyxSRTOWV+pSYF+z4epXqNvwvJ70XPGjPNgue83oAFAPBRQYwpAJ/Hpe/Sg==} @@ -2660,6 +2917,9 @@ packages: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} + es6-promise@3.3.1: + resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} + esbuild@0.17.19: resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} engines: {node: '>=12'} @@ -3271,6 +3531,11 @@ packages: engines: {node: '>=16.13'} hasBin: true + miniflare@3.20240821.0: + resolution: {integrity: sha512-4BhLGpssQxM/O6TZmJ10GkT3wBJK6emFkZ3V87/HyvQmVt8zMxEBvyw5uv6kdtp+7F54Nw6IKFJjPUL8rFVQrQ==} + engines: {node: '>=16.13'} + hasBin: true + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -3282,6 +3547,9 @@ packages: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + minipass@3.3.6: resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} engines: {node: '>=8'} @@ -3298,6 +3566,10 @@ packages: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} + mkdirp@0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + mkdirp@1.0.4: resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} engines: {node: '>=10'} @@ -3553,8 +3825,8 @@ packages: resolution: {integrity: sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==} engines: {node: '>=4'} - postcss@8.4.39: - resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} + postcss@8.4.41: + resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} engines: {node: ^10 || ^12 || >=14} prelude-ls@1.2.1: @@ -3659,6 +3931,11 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rimraf@2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported @@ -3679,6 +3956,11 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rollup@4.21.2: + resolution: {integrity: sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -3692,6 +3974,9 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + sander@0.5.1: + resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} + selfsigned@2.4.1: resolution: {integrity: sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==} engines: {node: '>=10'} @@ -3772,6 +4057,10 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + sorcery@0.11.1: + resolution: {integrity: sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==} + hasBin: true + source-map-js@1.2.0: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} @@ -3851,6 +4140,12 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + svelte-check@3.6.9: + resolution: {integrity: sha512-hDQrk3L0osX07djQyMiXocKysTLfusqi8AriNcCiQxhQR49/LonYolcUGMtZ0fbUR8HTR198Prrgf52WWU9wEg==} + hasBin: true + peerDependencies: + svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + svelte-check@4.0.1: resolution: {integrity: sha512-AuWnCZdREoOzMhoptHPUUPYUxLNdXSkoZnPnlv19SZJJimRzLmjjZLKsOiRB4AnhgX+56/WSEdvkWXI/q2BSsA==} engines: {node: '>= 18.0.0'} @@ -3885,6 +4180,43 @@ packages: peerDependencies: svelte: ^3.48.0 || ^4.0.0 || ^5.0.0-next.0 + svelte-preprocess@5.1.3: + resolution: {integrity: sha512-xxAkmxGHT+J/GourS5mVJeOXZzne1FR5ljeOUAMXUkfEhkLEllRreXpbl3dIYJlcJRfL1LO1uIAPpBpBfiqGPw==} + engines: {node: '>= 16.0.0', pnpm: ^8.0.0} + peerDependencies: + '@babel/core': ^7.10.2 + coffeescript: ^2.5.1 + less: ^3.11.3 || ^4.0.0 + postcss: ^7 || ^8 + postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 + pug: ^3.0.0 + sass: ^1.26.8 + stylus: ^0.55.0 + sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0 + svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0' + peerDependenciesMeta: + '@babel/core': + optional: true + coffeescript: + optional: true + less: + optional: true + postcss: + optional: true + postcss-load-config: + optional: true + pug: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + typescript: + optional: true + svelte-preprocess@6.0.0: resolution: {integrity: sha512-sbyHnWBwIphuaJWC7hnJd6ZoW/VN0va3jVb/8dDfeT2+0hVmo1DCx+zBK0/JfUKQmzg/FOEtcsGKRnbt8pRRkw==} engines: {node: '>= 18.0.0'} @@ -4079,8 +4411,8 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite@5.3.3: - resolution: {integrity: sha512-NPQdeCU0Dv2z5fu+ULotpuq5yfCS1BzKUIPhNbP3YBfAMGJXbt2nS+sbTFu+qchaqWTD+H3JK++nRwr6XIcp6A==} + vite@6.0.0-alpha.23: + resolution: {integrity: sha512-+J9M4gG1J7do8MM++ODune0R1DOAD4NmkN84bTBuW62Bj0iwaL1B0dXvGwDIB2gwttkCiNPX7xvzQTNed4rvcA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -4088,6 +4420,7 @@ packages: less: '*' lightningcss: ^1.21.0 sass: '*' + sass-embedded: '*' stylus: '*' sugarss: '*' terser: ^5.4.0 @@ -4100,6 +4433,8 @@ packages: optional: true sass: optional: true + sass-embedded: + optional: true stylus: optional: true sugarss: @@ -4110,7 +4445,7 @@ packages: vitefu@0.2.5: resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + vite: 6.0.0-alpha.23 peerDependenciesMeta: vite: optional: true @@ -4174,6 +4509,11 @@ packages: engines: {node: '>=16'} hasBin: true + workerd@1.20240821.1: + resolution: {integrity: sha512-y4phjCnEG96u8ZkgkkHB+gSw0i6uMNo23rBmixylWpjxDklB+LWD8dztasvsu7xGaZbLoTxQESdEw956F7VJDA==} + engines: {node: '>=16'} + hasBin: true + worktop@0.8.0-next.18: resolution: {integrity: sha512-+TvsA6VAVoMC3XDKR5MoC/qlLqDixEfOBysDEKnPIPou/NvoPWCAuXHXMsswwlvmEuvX56lQjvELLyLuzTKvRw==} engines: {node: '>=12'} @@ -4188,6 +4528,16 @@ packages: '@cloudflare/workers-types': optional: true + wrangler@3.72.3: + resolution: {integrity: sha512-EBlJGOcwanbzFkiJkRB47WKhvevh1AZK0ty0MyD0gptsgWnAxBfmFGiBuzOuRXbvH45ZrFrTqgi8c67EwcV1nA==} + engines: {node: '>=16.17.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^4.20240821.1 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -4419,18 +4769,35 @@ snapshots: '@cloudflare/workerd-darwin-64@1.20240701.0': optional: true + '@cloudflare/workerd-darwin-64@1.20240821.1': + optional: true + '@cloudflare/workerd-darwin-arm64@1.20240701.0': optional: true + '@cloudflare/workerd-darwin-arm64@1.20240821.1': + optional: true + '@cloudflare/workerd-linux-64@1.20240701.0': optional: true + '@cloudflare/workerd-linux-64@1.20240821.1': + optional: true + '@cloudflare/workerd-linux-arm64@1.20240701.0': optional: true + '@cloudflare/workerd-linux-arm64@1.20240821.1': + optional: true + '@cloudflare/workerd-windows-64@1.20240701.0': optional: true + '@cloudflare/workerd-windows-64@1.20240821.1': + optional: true + + '@cloudflare/workers-shared@0.4.0': {} + '@cloudflare/workers-types@4.20240405.0': {} '@cspotcode/source-map-support@0.8.1': @@ -4622,6 +4989,13 @@ snapshots: '@fastify/busboy@2.1.1': {} + '@flarelabs-net/vite-environment-provider-cloudflare@0.0.1(miniflare@3.20240821.0)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1))(wrangler@3.72.3(@cloudflare/workers-types@4.20240405.0))': + dependencies: + cjs-module-lexer: 1.3.1 + miniflare: 3.20240821.0 + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) + wrangler: 3.72.3(@cloudflare/workers-types@4.20240405.0) + '@fontsource/fira-mono@5.0.12': {} '@humanwhocodes/module-importer@1.0.1': {} @@ -4854,51 +5228,99 @@ snapshots: '@rollup/rollup-android-arm-eabi@4.18.0': optional: true + '@rollup/rollup-android-arm-eabi@4.21.2': + optional: true + '@rollup/rollup-android-arm64@4.18.0': optional: true + '@rollup/rollup-android-arm64@4.21.2': + optional: true + '@rollup/rollup-darwin-arm64@4.18.0': optional: true + '@rollup/rollup-darwin-arm64@4.21.2': + optional: true + '@rollup/rollup-darwin-x64@4.18.0': optional: true + '@rollup/rollup-darwin-x64@4.21.2': + optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.21.2': + optional: true + '@rollup/rollup-linux-arm-musleabihf@4.18.0': optional: true + '@rollup/rollup-linux-arm-musleabihf@4.21.2': + optional: true + '@rollup/rollup-linux-arm64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-arm64-gnu@4.21.2': + optional: true + '@rollup/rollup-linux-arm64-musl@4.18.0': optional: true + '@rollup/rollup-linux-arm64-musl@4.21.2': + optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.21.2': + optional: true + '@rollup/rollup-linux-riscv64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-riscv64-gnu@4.21.2': + optional: true + '@rollup/rollup-linux-s390x-gnu@4.18.0': optional: true + '@rollup/rollup-linux-s390x-gnu@4.21.2': + optional: true + '@rollup/rollup-linux-x64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-x64-gnu@4.21.2': + optional: true + '@rollup/rollup-linux-x64-musl@4.18.0': optional: true + '@rollup/rollup-linux-x64-musl@4.21.2': + optional: true + '@rollup/rollup-win32-arm64-msvc@4.18.0': optional: true + '@rollup/rollup-win32-arm64-msvc@4.21.2': + optional: true + '@rollup/rollup-win32-ia32-msvc@4.18.0': optional: true + '@rollup/rollup-win32-ia32-msvc@4.21.2': + optional: true + '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true + '@rollup/rollup-win32-x64-msvc@4.21.2': + optional: true + '@sinclair/typebox@0.27.8': {} '@stylistic/eslint-plugin-js@2.1.0(eslint@9.6.0)': @@ -4920,6 +5342,24 @@ snapshots: typescript: 5.4.5 typescript-eslint: 8.4.0(eslint@9.6.0)(typescript@5.4.5) + '@sveltejs/kit@2.5.24(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1))': + dependencies: + '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) + '@types/cookie': 0.6.0 + cookie: 0.6.0 + devalue: 5.0.0 + esm-env: 1.0.0 + import-meta-resolve: 4.1.0 + kleur: 4.1.5 + magic-string: 0.30.10 + mrmime: 2.0.0 + sade: 1.8.1 + set-cookie-parser: 2.6.0 + sirv: 2.0.4 + svelte: 4.2.17 + tiny-glob: 0.2.9 + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) + '@sveltejs/site-kit@6.0.0-next.64(@sveltejs/kit@packages+kit)(svelte@4.2.17)': dependencies: '@sveltejs/kit': link:packages/kit @@ -4927,26 +5367,26 @@ snapshots: svelte: 4.2.17 svelte-persisted-store: 0.9.4(svelte@4.2.17) - '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1))': + '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) debug: 4.3.5 svelte: 4.2.17 - vite: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1))': + '@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)))(svelte@4.2.17)(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) debug: 4.3.5 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.10 svelte: 4.2.17 svelte-hmr: 0.16.0(svelte@4.2.17) - vite: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) - vitefu: 0.2.5(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)) + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) + vitefu: 0.2.5(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)) transitivePeerDependencies: - supports-color @@ -5002,6 +5442,8 @@ snapshots: '@types/node': 18.19.50 kleur: 3.0.3 + '@types/pug@2.0.10': {} + '@types/resolve@1.20.2': {} '@types/semver@7.5.8': {} @@ -5279,6 +5721,8 @@ snapshots: node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) + buffer-crc32@1.0.0: {} + builtin-modules@3.3.0: {} cac@6.7.14: {} @@ -5331,6 +5775,8 @@ snapshots: ci-info@3.9.0: {} + cjs-module-lexer@1.3.1: {} + code-block-writer@13.0.1: {} code-red@1.0.4: @@ -5493,6 +5939,8 @@ snapshots: ansi-colors: 4.1.3 strip-ansi: 6.0.1 + es6-promise@3.3.1: {} + esbuild@0.17.19: optionalDependencies: '@esbuild/android-arm': 0.17.19 @@ -5584,9 +6032,9 @@ snapshots: eslint-compat-utils: 0.5.1(eslint@9.6.0) esutils: 2.0.3 known-css-properties: 0.34.0 - postcss: 8.4.39 - postcss-load-config: 3.1.4(postcss@8.4.39) - postcss-safe-parser: 6.0.0(postcss@8.4.39) + postcss: 8.4.41 + postcss-load-config: 3.1.4(postcss@8.4.41) + postcss-safe-parser: 6.0.0(postcss@8.4.41) postcss-selector-parser: 6.1.0 semver: 7.6.2 svelte-eslint-parser: 0.39.2(svelte@4.2.17) @@ -6142,6 +6590,25 @@ snapshots: - supports-color - utf-8-validate + miniflare@3.20240821.0: + dependencies: + '@cspotcode/source-map-support': 0.8.1 + acorn: 8.12.1 + acorn-walk: 8.3.2 + capnp-ts: 0.7.0 + exit-hook: 2.2.1 + glob-to-regexp: 0.4.1 + stoppable: 1.1.0 + undici: 5.28.4 + workerd: 1.20240821.1 + ws: 8.18.0 + youch: 3.3.3 + zod: 3.22.4 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -6154,6 +6621,8 @@ snapshots: dependencies: brace-expansion: 2.0.1 + minimist@1.2.8: {} + minipass@3.3.6: dependencies: yallist: 4.0.0 @@ -6167,6 +6636,10 @@ snapshots: minipass: 3.3.6 yallist: 4.0.0 + mkdirp@0.5.6: + dependencies: + minimist: 1.2.8 + mkdirp@1.0.4: {} mkdirp@3.0.1: {} @@ -6348,30 +6821,30 @@ snapshots: '@polka/url': 1.0.0-next.28 trouter: 4.0.0 - postcss-load-config@3.1.4(postcss@8.4.39): + postcss-load-config@3.1.4(postcss@8.4.41): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: - postcss: 8.4.39 + postcss: 8.4.41 - postcss-safe-parser@6.0.0(postcss@8.4.39): + postcss-safe-parser@6.0.0(postcss@8.4.41): dependencies: - postcss: 8.4.39 + postcss: 8.4.41 - postcss-scss@4.0.9(postcss@8.4.39): + postcss-scss@4.0.9(postcss@8.4.41): dependencies: - postcss: 8.4.39 + postcss: 8.4.41 postcss-selector-parser@6.1.0: dependencies: cssesc: 3.0.0 util-deprecate: 1.0.2 - postcss@8.4.39: + postcss@8.4.41: dependencies: nanoid: 3.3.7 - picocolors: 1.0.1 + picocolors: 1.1.0 source-map-js: 1.2.0 prelude-ls@1.2.1: {} @@ -6455,6 +6928,10 @@ snapshots: reusify@1.0.4: {} + rimraf@2.7.1: + dependencies: + glob: 7.2.3 + rimraf@3.0.2: dependencies: glob: 7.2.3 @@ -6495,6 +6972,28 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.18.0 fsevents: 2.3.3 + rollup@4.21.2: + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.21.2 + '@rollup/rollup-android-arm64': 4.21.2 + '@rollup/rollup-darwin-arm64': 4.21.2 + '@rollup/rollup-darwin-x64': 4.21.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.21.2 + '@rollup/rollup-linux-arm-musleabihf': 4.21.2 + '@rollup/rollup-linux-arm64-gnu': 4.21.2 + '@rollup/rollup-linux-arm64-musl': 4.21.2 + '@rollup/rollup-linux-powerpc64le-gnu': 4.21.2 + '@rollup/rollup-linux-riscv64-gnu': 4.21.2 + '@rollup/rollup-linux-s390x-gnu': 4.21.2 + '@rollup/rollup-linux-x64-gnu': 4.21.2 + '@rollup/rollup-linux-x64-musl': 4.21.2 + '@rollup/rollup-win32-arm64-msvc': 4.21.2 + '@rollup/rollup-win32-ia32-msvc': 4.21.2 + '@rollup/rollup-win32-x64-msvc': 4.21.2 + fsevents: 2.3.3 + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -6507,6 +7006,13 @@ snapshots: safer-buffer@2.1.2: {} + sander@0.5.1: + dependencies: + es6-promise: 3.3.1 + graceful-fs: 4.2.11 + mkdirp: 0.5.6 + rimraf: 2.7.1 + selfsigned@2.4.1: dependencies: '@types/node-forge': 1.3.11 @@ -6607,6 +7113,13 @@ snapshots: slash@3.0.0: {} + sorcery@0.11.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + buffer-crc32: 1.0.0 + minimist: 1.2.8 + sander: 0.5.1 + source-map-js@1.2.0: {} source-map@0.6.1: {} @@ -6681,6 +7194,28 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + svelte-check@3.6.9(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17): + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + chokidar: 3.6.0 + fast-glob: 3.3.2 + import-fresh: 3.3.0 + picocolors: 1.0.1 + sade: 1.8.1 + svelte: 4.2.17 + svelte-preprocess: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17)(typescript@5.4.5) + typescript: 5.4.5 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + svelte-check@4.0.1(svelte@4.2.17)(typescript@5.4.5): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -6698,8 +7233,8 @@ snapshots: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 - postcss: 8.4.39 - postcss-scss: 4.0.9(postcss@8.4.39) + postcss: 8.4.41 + postcss-scss: 4.0.9(postcss@8.4.41) optionalDependencies: svelte: 4.2.17 @@ -6715,14 +7250,27 @@ snapshots: dependencies: svelte: 4.2.17 - svelte-preprocess@6.0.0(postcss-load-config@3.1.4(postcss@8.4.39))(postcss@8.4.39)(svelte@4.2.17)(typescript@5.4.5): + svelte-preprocess@5.1.3(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17)(typescript@5.4.5): + dependencies: + '@types/pug': 2.0.10 + detect-indent: 6.1.0 + magic-string: 0.30.10 + sorcery: 0.11.1 + strip-indent: 3.0.0 + svelte: 4.2.17 + optionalDependencies: + postcss: 8.4.41 + postcss-load-config: 3.1.4(postcss@8.4.41) + typescript: 5.4.5 + + svelte-preprocess@6.0.0(postcss-load-config@3.1.4(postcss@8.4.41))(postcss@8.4.41)(svelte@4.2.17)(typescript@5.4.5): dependencies: detect-indent: 6.1.0 strip-indent: 3.0.0 svelte: 4.2.17 optionalDependencies: - postcss: 8.4.39 - postcss-load-config: 3.1.4(postcss@8.4.39) + postcss: 8.4.41 + postcss-load-config: 3.1.4(postcss@8.4.41) typescript: 5.4.5 svelte2tsx@0.7.18(svelte@4.2.17)(typescript@5.4.5): @@ -6889,31 +7437,32 @@ snapshots: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 - picocolors: 1.0.1 - vite: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + picocolors: 1.1.0 + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) transitivePeerDependencies: - '@types/node' - less - lightningcss - sass + - sass-embedded - stylus - sugarss - supports-color - terser - vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1): + vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1): dependencies: esbuild: 0.21.5 - postcss: 8.4.39 - rollup: 4.18.0 + postcss: 8.4.41 + rollup: 4.21.2 optionalDependencies: '@types/node': 18.19.50 fsevents: 2.3.3 lightningcss: 1.24.1 - vitefu@0.2.5(vite@5.3.3(@types/node@18.19.50)(lightningcss@1.24.1)): + vitefu@0.2.5(vite@6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1)): optionalDependencies: - vite: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vitest@2.0.1(@types/node@18.19.50)(lightningcss@1.24.1): dependencies: @@ -6932,7 +7481,7 @@ snapshots: std-env: 3.7.0 tinybench: 2.8.0 tinypool: 1.0.0 - vite: 5.3.3(@types/node@18.19.50)(lightningcss@1.24.1) + vite: 6.0.0-alpha.23(@types/node@18.19.50)(lightningcss@1.24.1) vite-node: 2.0.1(@types/node@18.19.50)(lightningcss@1.24.1) why-is-node-running: 2.3.0 optionalDependencies: @@ -6941,6 +7490,7 @@ snapshots: - less - lightningcss - sass + - sass-embedded - stylus - sugarss - supports-color @@ -6982,6 +7532,14 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20240701.0 '@cloudflare/workerd-windows-64': 1.20240701.0 + workerd@1.20240821.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20240821.1 + '@cloudflare/workerd-darwin-arm64': 1.20240821.1 + '@cloudflare/workerd-linux-64': 1.20240821.1 + '@cloudflare/workerd-linux-arm64': 1.20240821.1 + '@cloudflare/workerd-windows-64': 1.20240821.1 + worktop@0.8.0-next.18: dependencies: mrmime: 2.0.0 @@ -7013,6 +7571,34 @@ snapshots: - supports-color - utf-8-validate + wrangler@3.72.3(@cloudflare/workers-types@4.20240405.0): + dependencies: + '@cloudflare/kv-asset-handler': 0.3.4 + '@cloudflare/workers-shared': 0.4.0 + '@esbuild-plugins/node-globals-polyfill': 0.2.3(esbuild@0.17.19) + '@esbuild-plugins/node-modules-polyfill': 0.2.2(esbuild@0.17.19) + blake3-wasm: 2.1.5 + chokidar: 3.6.0 + date-fns: 3.6.0 + esbuild: 0.17.19 + miniflare: 3.20240821.0 + nanoid: 3.3.7 + path-to-regexp: 6.2.2 + resolve: 1.22.8 + resolve.exports: 2.0.2 + selfsigned: 2.4.1 + source-map: 0.6.1 + unenv: unenv-nightly@1.10.0-1717606461.a117952 + workerd: 1.20240821.1 + xxhash-wasm: 1.0.2 + optionalDependencies: + '@cloudflare/workers-types': 4.20240405.0 + fsevents: 2.3.3 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0