mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
fix(deps): update all non-major dependencies (#12366)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
This commit is contained in:
parent
bf2723e831
commit
b7e46910fb
29 changed files with 552 additions and 533 deletions
2
.github/workflows/continuous_benchmark.yml
vendored
2
.github/workflows/continuous_benchmark.yml
vendored
|
@ -43,7 +43,7 @@ jobs:
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Run the benchmarks
|
- name: Run the benchmarks
|
||||||
uses: CodSpeedHQ/action@b587655f756aab640e742fec141261bc6f0a569d # v3.0.1
|
uses: CodSpeedHQ/action@fa1dcde8d58f2ab0b407a6a24d6cc5a8c1444a8c # v3.1.0
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
with:
|
with:
|
||||||
run: pnpm benchmark codspeed
|
run: pnpm benchmark codspeed
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"**/.vercel/**",
|
"**/.vercel/**",
|
||||||
"benchmark/projects/",
|
"benchmark/projects/",
|
||||||
"benchmark/results/",
|
"benchmark/results/",
|
||||||
|
"benchmark/bench/_template.js",
|
||||||
],
|
],
|
||||||
"include": ["test/**", "e2e/**", "packages/**", "/scripts/**", "benchmark/bench"],
|
"include": ["test/**", "e2e/**", "packages/**", "/scripts/**", "benchmark/bench"],
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^4.16.9",
|
"astro": "^4.16.9",
|
||||||
"sass": "^1.80.4",
|
"sass": "^1.80.6",
|
||||||
"sharp": "^0.33.3"
|
"sharp": "^0.33.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
"@changesets/cli": "^2.27.9",
|
"@changesets/cli": "^2.27.9",
|
||||||
"@types/node": "^18.17.8",
|
"@types/node": "^18.17.8",
|
||||||
"esbuild": "^0.21.5",
|
"esbuild": "^0.21.5",
|
||||||
"eslint": "^9.13.0",
|
"eslint": "^9.14.0",
|
||||||
"eslint-plugin-regexp": "^2.6.0",
|
"eslint-plugin-regexp": "^2.6.0",
|
||||||
"globby": "^14.0.2",
|
"globby": "^14.0.2",
|
||||||
"only-allow": "^1.2.1",
|
"only-allow": "^1.2.1",
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"turbo": "^2.2.3",
|
"turbo": "^2.2.3",
|
||||||
"typescript": "~5.6.3",
|
"typescript": "~5.6.3",
|
||||||
"typescript-eslint": "^8.11.0"
|
"typescript-eslint": "^8.13.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"peerDependencyRules": {
|
"peerDependencyRules": {
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
"sass": "^1.80.4"
|
"sass": "^1.80.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"preact": "^10.24.3",
|
"preact": "^10.24.3",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
"sass": "^1.80.4",
|
"sass": "^1.80.6",
|
||||||
"solid-js": "^1.9.3",
|
"solid-js": "^1.9.3",
|
||||||
"svelte": "^4.2.19",
|
"svelte": "^4.2.19",
|
||||||
"vue": "^3.5.12"
|
"vue": "^3.5.12"
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
"sass": "^1.80.4"
|
"sass": "^1.80.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,7 +165,7 @@
|
||||||
"micromatch": "^4.0.8",
|
"micromatch": "^4.0.8",
|
||||||
"mrmime": "^2.0.0",
|
"mrmime": "^2.0.0",
|
||||||
"neotraverse": "^0.6.18",
|
"neotraverse": "^0.6.18",
|
||||||
"ora": "^8.1.0",
|
"ora": "^8.1.1",
|
||||||
"p-limit": "^6.1.0",
|
"p-limit": "^6.1.0",
|
||||||
"p-queue": "^8.0.1",
|
"p-queue": "^8.0.1",
|
||||||
"preferred-pm": "^4.0.0",
|
"preferred-pm": "^4.0.0",
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
"eol": "^0.10.0",
|
"eol": "^0.10.0",
|
||||||
"execa": "^8.0.1",
|
"execa": "^8.0.1",
|
||||||
"expect-type": "^1.1.0",
|
"expect-type": "^1.1.0",
|
||||||
"fs-fixture": "^2.5.0",
|
"fs-fixture": "^2.6.0",
|
||||||
"mdast-util-mdx": "^3.0.0",
|
"mdast-util-mdx": "^3.0.0",
|
||||||
"mdast-util-mdx-jsx": "^3.1.3",
|
"mdast-util-mdx-jsx": "^3.1.3",
|
||||||
"node-mocks-http": "^1.16.1",
|
"node-mocks-http": "^1.16.1",
|
||||||
|
@ -220,8 +220,8 @@
|
||||||
"rehype-slug": "^6.0.0",
|
"rehype-slug": "^6.0.0",
|
||||||
"rehype-toc": "^3.0.2",
|
"rehype-toc": "^3.0.2",
|
||||||
"remark-code-titles": "^0.1.2",
|
"remark-code-titles": "^0.1.2",
|
||||||
"rollup": "^4.24.2",
|
"rollup": "^4.24.4",
|
||||||
"sass": "^1.80.4",
|
"sass": "^1.80.6",
|
||||||
"undici": "^6.20.1",
|
"undici": "^6.20.1",
|
||||||
"unified": "^11.0.5"
|
"unified": "^11.0.5"
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,6 +53,7 @@ async function getRotationForEXIF(
|
||||||
case 7:
|
case 7:
|
||||||
case 8:
|
case 8:
|
||||||
return { type: 'rotate', numRotations: 3 };
|
return { type: 'rotate', numRotations: 3 };
|
||||||
|
case undefined:
|
||||||
default:
|
default:
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,6 +140,7 @@ export async function processBuffer(
|
||||||
imageData,
|
imageData,
|
||||||
quality,
|
quality,
|
||||||
})) as Uint8Array;
|
})) as Uint8Array;
|
||||||
|
case 'svg':
|
||||||
default:
|
default:
|
||||||
throw Error(`Unsupported encoding format`);
|
throw Error(`Unsupported encoding format`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@ export async function processBuffer(
|
||||||
return await impl.encodePng(imageData);
|
return await impl.encodePng(imageData);
|
||||||
case 'webp':
|
case 'webp':
|
||||||
return await impl.encodeWebp(imageData, { quality });
|
return await impl.encodeWebp(imageData, { quality });
|
||||||
|
case 'svg':
|
||||||
default:
|
default:
|
||||||
throw Error(`Unsupported encoding format`)
|
throw Error(`Unsupported encoding format`)
|
||||||
}
|
}
|
||||||
|
|
|
@ -344,7 +344,11 @@ export async function add(names: string[], { flags }: AddOptions) {
|
||||||
logger.info('SKIP_FORMAT', msg.success(`Configuration up-to-date.`));
|
logger.info('SKIP_FORMAT', msg.success(`Configuration up-to-date.`));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
// NOTE: failure shouldn't happen in practice because `updateAstroConfig` doesn't return that.
|
||||||
|
// Pipe this to the same handling as `UpdateResult.updated` for now.
|
||||||
|
case UpdateResult.failure:
|
||||||
|
case UpdateResult.updated:
|
||||||
|
case undefined: {
|
||||||
const list = integrations.map((integration) => ` - ${integration.packageName}`).join('\n');
|
const list = integrations.map((integration) => ` - ${integration.packageName}`).join('\n');
|
||||||
logger.info(
|
logger.info(
|
||||||
'SKIP_FORMAT',
|
'SKIP_FORMAT',
|
||||||
|
@ -375,7 +379,7 @@ export async function add(names: string[], { flags }: AddOptions) {
|
||||||
`Unknown error parsing tsconfig.json or jsconfig.json. Could not update TypeScript settings.`,
|
`Unknown error parsing tsconfig.json or jsconfig.json. Could not update TypeScript settings.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
default:
|
case UpdateResult.updated:
|
||||||
logger.info('SKIP_FORMAT', msg.success(`Successfully updated TypeScript settings`));
|
logger.info('SKIP_FORMAT', msg.success(`Successfully updated TypeScript settings`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ const getPlatformSpecificCommand = (): [string] | [string, string[]] => {
|
||||||
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
|
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
|
||||||
const platform = isGitPod ? 'gitpod' : process.platform;
|
const platform = isGitPod ? 'gitpod' : process.platform;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||||
switch (platform) {
|
switch (platform) {
|
||||||
case 'android':
|
case 'android':
|
||||||
case 'linux':
|
case 'linux':
|
||||||
|
|
|
@ -121,14 +121,10 @@ export class App {
|
||||||
throw new Error(`Unable to resolve [${specifier}]`);
|
throw new Error(`Unable to resolve [${specifier}]`);
|
||||||
}
|
}
|
||||||
const bundlePath = this.#manifest.entryModules[specifier];
|
const bundlePath = this.#manifest.entryModules[specifier];
|
||||||
switch (true) {
|
if (bundlePath.startsWith('data:') || bundlePath.length === 0) {
|
||||||
case bundlePath.startsWith('data:'):
|
return bundlePath;
|
||||||
case bundlePath.length === 0: {
|
} else {
|
||||||
return bundlePath;
|
return createAssetLink(bundlePath, this.#manifest.base, this.#manifest.assetsPrefix);
|
||||||
}
|
|
||||||
default: {
|
|
||||||
return createAssetLink(bundlePath, this.#manifest.base, this.#manifest.assetsPrefix);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serverLike: true,
|
serverLike: true,
|
||||||
|
|
|
@ -394,6 +394,7 @@ function getUrlForPath(
|
||||||
ending = trailingSlash === 'never' ? '' : '/';
|
ending = trailingSlash === 'never' ? '' : '/';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'file':
|
||||||
default: {
|
default: {
|
||||||
ending = '.html';
|
ending = '.html';
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -144,25 +144,18 @@ export async function staticBuild(
|
||||||
contentFileNames?: string[],
|
contentFileNames?: string[],
|
||||||
) {
|
) {
|
||||||
const { settings } = opts;
|
const { settings } = opts;
|
||||||
switch (true) {
|
if (settings.config.output === 'static') {
|
||||||
case settings.config.output === 'static': {
|
settings.timer.start('Static generate');
|
||||||
settings.timer.start('Static generate');
|
await generatePages(opts, internals);
|
||||||
await generatePages(opts, internals);
|
await cleanServerOutput(opts, ssrOutputChunkNames, contentFileNames, internals);
|
||||||
await cleanServerOutput(opts, ssrOutputChunkNames, contentFileNames, internals);
|
settings.timer.end('Static generate');
|
||||||
settings.timer.end('Static generate');
|
} else if (isServerLikeOutput(settings.config)) {
|
||||||
return;
|
settings.timer.start('Server generate');
|
||||||
}
|
await generatePages(opts, internals);
|
||||||
case isServerLikeOutput(settings.config): {
|
await cleanStaticOutput(opts, internals);
|
||||||
settings.timer.start('Server generate');
|
opts.logger.info(null, `\n${bgMagenta(black(' finalizing server assets '))}\n`);
|
||||||
await generatePages(opts, internals);
|
await ssrMoveAssets(opts);
|
||||||
await cleanStaticOutput(opts, internals);
|
settings.timer.end('Server generate');
|
||||||
opts.logger.info(null, `\n${bgMagenta(black(' finalizing server assets '))}\n`);
|
|
||||||
await ssrMoveAssets(opts);
|
|
||||||
settings.timer.end('Server generate');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ export function isValidKey(key: string): key is PreferenceKey {
|
||||||
}
|
}
|
||||||
export function coerce(key: string, value: unknown) {
|
export function coerce(key: string, value: unknown) {
|
||||||
const type = typeof dget(DEFAULT_PREFERENCES, key);
|
const type = typeof dget(DEFAULT_PREFERENCES, key);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'string':
|
case 'string':
|
||||||
return value;
|
return value;
|
||||||
|
@ -143,6 +144,7 @@ function getGlobalPreferenceDir() {
|
||||||
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
||||||
return path.join(XDG_CONFIG_HOME, name);
|
return path.join(XDG_CONFIG_HOME, name);
|
||||||
};
|
};
|
||||||
|
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
return macos();
|
return macos();
|
||||||
|
|
|
@ -204,6 +204,8 @@ export default {
|
||||||
label.append(astroSelect);
|
label.append(astroSelect);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'number':
|
||||||
|
case 'text':
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ function guessRenderers(componentUrl?: string): string[] {
|
||||||
case 'jsx':
|
case 'jsx':
|
||||||
case 'tsx':
|
case 'tsx':
|
||||||
return ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js', '@astrojs/vue (jsx)'];
|
return ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js', '@astrojs/vue (jsx)'];
|
||||||
|
case undefined:
|
||||||
default:
|
default:
|
||||||
return [
|
return [
|
||||||
'@astrojs/react',
|
'@astrojs/react',
|
||||||
|
|
|
@ -195,6 +195,9 @@ export default function astro({ settings, logger }: AstroPluginOptions): vite.Pl
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
case 'custom':
|
||||||
|
case 'template':
|
||||||
|
case undefined:
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
"vue": "^3.5.12"
|
"vue": "^3.5.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"postcss-preset-env": "^10.0.8"
|
"postcss-preset-env": "^10.0.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/solid-js": "workspace:*",
|
"@astrojs/solid-js": "workspace:*",
|
||||||
"@solidjs/router": "^0.14.10",
|
"@solidjs/router": "^0.15.1",
|
||||||
"@test/solid-jsx-component": "file:./deps/solid-jsx-component",
|
"@test/solid-jsx-component": "file:./deps/solid-jsx-component",
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
"solid-js": "^1.9.3"
|
"solid-js": "^1.9.3"
|
||||||
|
|
|
@ -57,6 +57,7 @@ export default function getSeasonalHouston({ fancy }: { fancy?: boolean }): Seas
|
||||||
`Your creativity is the gift that keeps on giving!`,
|
`Your creativity is the gift that keeps on giving!`,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
case undefined:
|
||||||
default:
|
default:
|
||||||
return {
|
return {
|
||||||
hats: fancy ? ['🎩', '🎩', '🎩', '🎩', '🎓', '👑', '🧢', '🍦'] : undefined,
|
hats: fancy ? ['🎩', '🎩', '🎩', '🎩', '🎓', '👑', '🧢', '🍦'] : undefined,
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
"nanoid": "^5.0.8",
|
"nanoid": "^5.0.8",
|
||||||
"open": "^10.1.0",
|
"open": "^10.1.0",
|
||||||
"ora": "^8.1.0",
|
"ora": "^8.1.1",
|
||||||
"prompts": "^2.4.2",
|
"prompts": "^2.4.2",
|
||||||
"yargs-parser": "^21.1.1",
|
"yargs-parser": "^21.1.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"astro-scripts": "workspace:*",
|
"astro-scripts": "workspace:*",
|
||||||
"cheerio": "1.0.0",
|
"cheerio": "1.0.0",
|
||||||
"lit": "^3.2.1",
|
"lit": "^3.2.1",
|
||||||
"sass": "^1.80.4"
|
"sass": "^1.80.6"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@webcomponents/template-shadowroot": "^0.2.1",
|
"@webcomponents/template-shadowroot": "^0.2.1",
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
"@vitejs/plugin-vue": "^5.1.4",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
||||||
"@vue/compiler-sfc": "^3.5.12",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"vite-plugin-vue-devtools": "^7.5.4"
|
"vite-plugin-vue-devtools": "^7.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ci-info": "^4.0.0",
|
"ci-info": "^4.0.0",
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
"ora": "^8.1.0"
|
"ora": "^8.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
|
|
|
@ -21,6 +21,7 @@ function getConfigDir(name: string) {
|
||||||
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
||||||
return path.join(XDG_CONFIG_HOME, name);
|
return path.join(XDG_CONFIG_HOME, name);
|
||||||
};
|
};
|
||||||
|
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
return macos();
|
return macos();
|
||||||
|
|
984
pnpm-lock.yaml
984
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue