0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update major deps (#10823)

This commit is contained in:
Bjorn Lu 2024-04-20 00:11:20 +08:00 committed by GitHub
parent 91219a5cf8
commit 237e17c8fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 250 additions and 463 deletions

View file

@ -4,11 +4,19 @@
"labels": ["dependencies"],
"rangeStrategy": "bump",
"ignoreDeps": [
// manually bumping
// manually bumping deps
"@biomejs/biome",
"@types/node",
"sharp",
// manually bumping workflow actions
"actions/labeler",
// ignore "engines" update
"node",
"npm",
"pnpm",
// follow vite deps version
"postcss-load-config",
],

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@webcomponents/template-shadowroot": "^0.2.1",
"lit": "^2.8.0",
"lit": "^3.1.0",
"preact": "^10.19.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",

View file

@ -155,8 +155,8 @@
"js-yaml": "^4.1.0",
"kleur": "^4.1.4",
"magic-string": "^0.30.3",
"mime": "^3.0.0",
"ora": "^7.0.1",
"mrmime": "^2.0.0",
"ora": "^8.0.1",
"p-limit": "^5.0.0",
"p-queue": "^8.0.1",
"path-to-regexp": "^6.2.1",
@ -187,7 +187,6 @@
"@types/aria-query": "^5.0.4",
"@types/babel__generator": "^7.6.7",
"@types/babel__traverse": "^7.20.4",
"@types/chai": "^4.3.10",
"@types/common-ancestor-path": "^1.0.2",
"@types/connect": "^3.4.38",
"@types/cssesc": "^3.0.2",

View file

@ -12,9 +12,7 @@
"license": "ISC",
"devDependencies": {
"@types/yargs-parser": "^21.0.3",
"cross-env": "^7.0.3",
"kleur": "^4.1.5",
"npm-run-all": "^4.1.5",
"yargs-parser": "^21.1.1"
}
}

View file

@ -1,7 +1,7 @@
// @ts-expect-error
import { imageConfig } from 'astro:assets';
import { isRemotePath } from '@astrojs/internal-helpers/path';
import mime from 'mime/lite.js';
import * as mime from 'mrmime';
import type { APIRoute } from '../../@types/astro.js';
import { getConfiguredImageService } from '../internal.js';
import { etag } from '../utils/etag.js';
@ -66,7 +66,7 @@ export const GET: APIRoute = async ({ request }) => {
return new Response(data, {
status: 200,
headers: {
'Content-Type': mime.getType(format) ?? `image/${format}`,
'Content-Type': mime.lookup(format) ?? `image/${format}`,
'Cache-Control': 'public, max-age=31536000',
ETag: etag(data.toString()),
Date: new Date().toUTCString(),

View file

@ -6,7 +6,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
import { assetsDir, imageConfig, outDir } from 'astro:assets';
import { isRemotePath, removeQueryString } from '@astrojs/internal-helpers/path';
import { readFile } from 'fs/promises';
import mime from 'mime/lite.js';
import * as mime from 'mrmime';
import type { APIRoute } from '../../@types/astro.js';
import { getConfiguredImageService } from '../internal.js';
import { etag } from '../utils/etag.js';
@ -110,7 +110,7 @@ export const GET: APIRoute = async ({ request }) => {
return new Response(data, {
status: 200,
headers: {
'Content-Type': mime.getType(format) ?? `image/${format}`,
'Content-Type': mime.lookup(format) ?? `image/${format}`,
'Cache-Control': 'public, max-age=31536000',
ETag: etag(data.toString()),
Date: new Date().toUTCString(),

View file

@ -6,6 +6,6 @@
"@astrojs/lit": "workspace:*",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "workspace:*",
"lit": "^2.8.0"
"lit": "^3.1.0"
}
}

View file

@ -78,14 +78,14 @@
"kleur": "^4.1.5",
"nanoid": "^5.0.1",
"open": "^10.0.3",
"ora": "^7.0.1",
"ora": "^8.0.1",
"prompts": "^2.4.2",
"strip-ansi": "^7.1.0",
"yargs-parser": "^21.1.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/chai": "^4.3.6",
"@types/chai": "^4.3.14",
"@types/deep-diff": "^1.0.5",
"@types/diff": "^5.0.8",
"@types/mocha": "^10.0.2",
@ -93,7 +93,7 @@
"@types/yargs-parser": "^21.0.3",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"chai": "^4.3.10",
"chai": "^4.4.1",
"cheerio": "1.0.0-rc.12",
"mocha": "^10.2.0",
"typescript": "^5.2.2",

View file

@ -78,7 +78,7 @@
},
"devDependencies": {
"@types/html-escaper": "^3.0.2",
"@types/markdown-it": "^13.0.6",
"@types/markdown-it": "^14.0.1",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"devalue": "^4.3.2",

View file

@ -44,7 +44,7 @@
"kleur": "^4.1.4",
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.0",
"remark-smartypants": "^2.0.0",
"remark-smartypants": "^3.0.0",
"source-map": "^0.7.4",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.1"
@ -53,7 +53,6 @@
"astro": "^4.0.0"
},
"devDependencies": {
"@types/chai": "^4.3.10",
"@types/estree": "^1.0.5",
"@types/mdast": "^4.0.3",
"@types/mocha": "^10.0.4",
@ -65,7 +64,7 @@
"mdast-util-mdx": "^3.0.0",
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"rehype-mathjax": "^5.0.0",
"rehype-mathjax": "^6.0.0",
"rehype-pretty-code": "^0.13.0",
"remark-math": "^6.0.0",
"remark-rehype": "^11.0.0",

View file

@ -33,7 +33,7 @@
},
"dependencies": {
"@builder.io/partytown": "^0.8.0",
"mrmime": "^1.0.1"
"mrmime": "^2.0.0"
},
"devDependencies": {
"astro": "workspace:*",

View file

@ -1,12 +0,0 @@
import { use } from 'chai';
import chaiJestSnapshot from 'chai-jest-snapshot';
use(chaiJestSnapshot);
before(function () {
chaiJestSnapshot.resetSnapshotRegistry();
});
beforeEach(function () {
chaiJestSnapshot.configureUsingMochaContext(this);
});

View file

@ -45,7 +45,6 @@
"@vue/compiler-sfc": "^3.3.8"
},
"devDependencies": {
"@types/chai": "^4.3.10",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"cheerio": "1.0.0-rc.12",

View file

@ -45,7 +45,7 @@
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"remark-smartypants": "^2.0.0",
"remark-smartypants": "^3.0.0",
"shiki": "^1.1.2",
"unified": "^11.0.4",
"unist-util-remove-position": "^5.0.0",
@ -54,7 +54,6 @@
"vfile": "^6.0.1"
},
"devDependencies": {
"@types/chai": "^4.3.10",
"@types/estree": "^1.0.5",
"@types/hast": "^3.0.3",
"@types/mdast": "^4.0.3",

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@ import arg from 'arg';
import { globby as glob } from 'globby';
import { promises as fs, readFileSync } from 'node:fs';
import { posix } from 'node:path';
import tar from 'tar';
import * as tar from 'tar/create';
const { resolve, dirname, sep, join } = posix;

View file

@ -14,7 +14,7 @@
"kleur": "^4.1.4",
"p-limit": "^5.0.0",
"svelte": "^4.2.5",
"tar": "^6.1.15"
"tar": "^7.0.1"
},
"devDependencies": {
"@octokit/action": "^6.0.5",