chore: Upgrade dev and non-major prod dependencies (#2000)

This commit is contained in:
Aaron
2025-12-16 14:33:59 -06:00
committed by GitHub
parent 8c9bc8cdbc
commit 886dae28fa
29 changed files with 1396 additions and 1181 deletions
+13 -12
View File
@@ -18,35 +18,36 @@
},
"devDependencies": {
"@aklinker1/buildc": "^1.1.5",
"@aklinker1/check": "^2.1.2",
"@aklinker1/check": "^2.2.0",
"@commitlint/config-conventional": "^19.8.1",
"@commitlint/types": "^19.8.1",
"@types/fs-extra": "^11.0.4",
"@types/semver": "^7.7.1",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/coverage-v8": "^4.0.16",
"changelogen": "^0.6.2",
"consola": "^3.4.2",
"fast-glob": "^3.3.3",
"feed": "^5.1.0",
"fs-extra": "^11.3.1",
"lint-staged": "^16.1.6",
"fs-extra": "^11.3.2",
"lint-staged": "^16.2.7",
"markdown-it-footnote": "^4.0.0",
"markdownlint-cli": "^0.45.0",
"nano-spawn": "^1.0.2",
"prettier": "^3.6.2",
"semver": "^7.7.2",
"nano-spawn": "^1.0.3",
"p-map": "^7.0.4",
"prettier": "^3.7.4",
"semver": "^7.7.3",
"simple-git-hooks": "^2.13.1",
"tsx": "4.20.5",
"tsx": "4.21.0",
"typedoc": "^0.25.4",
"typedoc-plugin-frontmatter": "^1.3.0",
"typedoc-plugin-frontmatter": "^1.3.1",
"typedoc-plugin-markdown": "4.0.0-next.23",
"typedoc-vitepress-theme": "1.0.0-next.3",
"typescript": "^5.9.2",
"typescript": "^5.9.3",
"vitepress": "^1.6.4",
"vitepress-knowledge": "^0.4.1",
"vitepress-plugin-group-icons": "^1.6.3",
"vitepress-plugin-group-icons": "^1.6.5",
"vitest-mock-extended": "^3.1.0",
"vue": "^3.5.21",
"vue": "^3.5.25",
"wxt": "workspace:*"
},
"simple-git-hooks": {
+3 -3
View File
@@ -51,10 +51,10 @@
"wxt": ">=0.20.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@aklinker1/check": "^2.2.0",
"@types/ua-parser-js": "^0.7.39",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
},
+6 -6
View File
@@ -46,14 +46,14 @@
},
"dependencies": {
"defu": "^6.1.4",
"fs-extra": "^11.3.1",
"sharp": "^0.34.3"
"fs-extra": "^11.3.2",
"sharp": "^0.34.5"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
}
+5 -5
View File
@@ -24,11 +24,11 @@
],
"devDependencies": {
"@types/chrome": "0.1.32",
"fs-extra": "^11.3.1",
"nano-spawn": "^1.0.2",
"tsx": "4.19.4",
"typescript": "^5.9.2",
"vitest": "^3.1.2"
"fs-extra": "^11.3.2",
"nano-spawn": "^1.0.3",
"tsx": "4.21.0",
"typescript": "^5.9.3",
"vitest": "^4.0.16"
},
"dependencies": {
"@types/filesystem": "*",
+1 -3
View File
@@ -60,9 +60,7 @@ for (const { file, srcPath, destPath } of declarationFileMapping) {
// Done!
console.log(
'\x1b[32m✔\x1b[0m Done in ' + performance.now().toFixed(0) + ' ms',
);
console.log('\x1b[32m✔\x1b[0m Done in ' + performance.now().toFixed(0) + ' ms');
// Transformations
+2 -2
View File
@@ -26,8 +26,8 @@
"@types/chrome": "{{chromeTypesVersion}}",
"fs-extra": "^11.3.1",
"nano-spawn": "^1.0.2",
"tsx": "4.19.4",
"tsx": "4.20.5",
"typescript": "^5.9.2",
"vitest": "^3.1.2"
"vitest": "^4.0.16"
}
}
+6 -6
View File
@@ -40,14 +40,14 @@
}
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@aklinker1/check": "^2.2.0",
"@types/node": "^20.17.6",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"vitest": "^3.2.4",
"vitest-plugin-random-seed": "^1.1.1",
"vitest": "^4.0.16",
"vitest-plugin-random-seed": "^1.1.2",
"wxt": "workspace:*"
},
"main": "./dist/index.cjs",
+7 -7
View File
@@ -51,13 +51,13 @@
"@vitejs/plugin-react": "^4.4.1 || ^5.0.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"publint": "^0.3.12",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"publint": "^0.3.16",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
}
+5 -5
View File
@@ -48,13 +48,13 @@
"wxt": ">=0.19.16"
},
"dependencies": {
"vite-plugin-solid": "^2.11.8"
"vite-plugin-solid": "^2.11.10"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"publint": "^0.3.12",
"solid-js": "^1.9.9",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"publint": "^0.3.16",
"solid-js": "^1.9.10",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
}
+3 -3
View File
@@ -50,9 +50,9 @@
"@sveltejs/vite-plugin-svelte": "^4.0.0 || ^5.0.0 || ^6.0.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
}
+3 -3
View File
@@ -49,9 +49,9 @@
"@vitejs/plugin-vue": "^5.2.3 || ^6.0.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"wxt": "workspace:*"
}
+6 -6
View File
@@ -29,13 +29,13 @@
},
"dependencies": {},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"tsx": "4.20.5",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"tsx": "4.21.0",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"vitest": "^3.2.4"
"vitest": "^4.0.16"
},
"main": "dist/index.mjs",
"types": "dist/index.d.ts",
+5 -5
View File
@@ -35,13 +35,13 @@
"dequal": "^2.0.3"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@aklinker1/check": "^2.2.0",
"@webext-core/fake-browser": "^1.3.2",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"vitest": "^3.2.4"
"vitest": "^4.0.16"
},
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
+4 -4
View File
@@ -40,10 +40,10 @@
"wxt": ">=0.19.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"unocss": "^0.64.0 || ^0.65.0 || ^65.0.0 || ^66.0.0",
"wxt": "workspace:*"
+4 -4
View File
@@ -45,10 +45,10 @@
"wxt": ">=0.20.0"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@types/webextension-polyfill": "^0.12.3",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"@aklinker1/check": "^2.2.0",
"@types/webextension-polyfill": "^0.12.4",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"webextension-polyfill": "^0.12.0",
"wxt": "workspace:*"
+8 -8
View File
@@ -18,19 +18,19 @@
},
"dependencies": {
"@wxt-dev/i18n": "workspace:*",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@wxt-dev/auto-icons": "workspace:*",
"@wxt-dev/unocss": "workspace:*",
"sass": "^1.92.0",
"typescript": "^5.9.2",
"sass": "^1.97.0",
"typescript": "^5.9.3",
"unocss": "^0.64.0 || ^0.65.0 || ^65.0.0 || ^66.0.0",
"vitest": "^3.2.4",
"vitest-plugin-random-seed": "^1.1.1",
"vitest": "^4.0.16",
"vitest-plugin-random-seed": "^1.1.2",
"wxt": "workspace:*"
},
"buildc": {
+1 -1
View File
@@ -16,7 +16,7 @@ describe('Remote Code', () => {
const output = await project.serializeFile('.output/chrome-mv3/popup.js');
expect(output).toContain(
// Some text that will hopefully be in future versions of this script
'lodash.com',
'__lodash_placeholder__',
);
expect(output).not.toContain(url);
expect(
+16 -16
View File
@@ -24,18 +24,18 @@
"@wxt-dev/browser": "workspace:^",
"@wxt-dev/storage": "workspace:^1.0.0",
"async-mutex": "^0.5.0",
"c12": "^3.2.0",
"c12": "^3.3.2",
"cac": "^6.7.14",
"chokidar": "^4.0.3",
"ci-info": "^4.3.0",
"ci-info": "^4.3.1",
"consola": "^3.4.2",
"defu": "^6.1.4",
"dotenv": "^17.2.2",
"dotenv": "^17.2.3",
"dotenv-expand": "^12.0.3",
"esbuild": "^0.25.0",
"esbuild": "^0.27.1",
"fast-glob": "^3.3.3",
"filesize": "^11.0.2",
"fs-extra": "^11.3.1",
"filesize": "^11.0.13",
"fs-extra": "^11.3.2",
"get-port-please": "^3.2.0",
"giget": "^1.2.3 || ^2.0.0",
"hookable": "^5.5.3",
@@ -45,10 +45,10 @@
"jszip": "^3.10.1",
"linkedom": "^0.18.12",
"magicast": "^0.3.5",
"minimatch": "^10.0.3",
"nano-spawn": "^1.0.2",
"minimatch": "^10.1.1",
"nano-spawn": "^1.0.3",
"normalize-path": "^3.0.0",
"nypm": "^0.6.1",
"nypm": "^0.6.2",
"ohash": "^2.0.11",
"open": "^10.2.0",
"ora": "^8.2.0",
@@ -63,8 +63,8 @@
"web-ext-run": "^0.2.4"
},
"devDependencies": {
"@aklinker1/check": "^2.1.0",
"@faker-js/faker": "^10.0.0",
"@aklinker1/check": "^2.2.0",
"@faker-js/faker": "^10.1.0",
"@types/fs-extra": "^11.0.4",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^20.17.6",
@@ -73,12 +73,12 @@
"extract-zip": "^2.0.1",
"happy-dom": "^18.0.1",
"lodash.merge": "^4.6.2",
"oxlint": "^1.14.0",
"publint": "^0.3.12",
"typescript": "^5.9.2",
"oxlint": "^1.33.0",
"publint": "^0.3.16",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"vitest": "^3.2.4",
"vitest-plugin-random-seed": "^1.1.1"
"vitest": "^4.0.16",
"vitest-plugin-random-seed": "^1.1.2"
},
"peerDependenciesMeta": {},
"repository": {
+9 -14
View File
@@ -462,8 +462,7 @@ export interface BuildStepOutput {
}
export interface WxtDevServer
extends Omit<WxtBuilderServer, 'listen' | 'close'>,
ServerInfo {
extends Omit<WxtBuilderServer, 'listen' | 'close'>, ServerInfo {
/**
* Stores the current build output of the server.
*/
@@ -567,8 +566,7 @@ export interface BackgroundEntrypointOptions extends BaseEntrypointOptions {
type?: PerBrowserOption<'module'>;
}
export interface BaseContentScriptEntrypointOptions
extends BaseEntrypointOptions {
export interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
matches?: PerBrowserOption<NonNullable<ManifestContentScript['matches']>>;
/**
* See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
@@ -635,16 +633,14 @@ export interface BaseContentScriptEntrypointOptions
registration?: PerBrowserOption<'manifest' | 'runtime'>;
}
export interface MainWorldContentScriptEntrypointOptions
extends BaseContentScriptEntrypointOptions {
export interface MainWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
/**
* See https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#isolated_world
*/
world: 'MAIN';
}
export interface IsolatedWorldContentScriptEntrypointOptions
extends BaseContentScriptEntrypointOptions {
export interface IsolatedWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
/**
* See https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#isolated_world
* @default "ISOLATED"
@@ -780,8 +776,7 @@ export type EntrypointGroup = Entrypoint | Entrypoint[];
export type OnContentScriptStopped = (cb: () => void) => void;
export interface IsolatedWorldContentScriptDefinition
extends IsolatedWorldContentScriptEntrypointOptions {
export interface IsolatedWorldContentScriptDefinition extends IsolatedWorldContentScriptEntrypointOptions {
/**
* Main function executed when the content script is loaded.
*
@@ -792,8 +787,7 @@ export interface IsolatedWorldContentScriptDefinition
main(ctx: ContentScriptContext): any | Promise<any>;
}
export interface MainWorldContentScriptDefinition
extends MainWorldContentScriptEntrypointOptions {
export interface MainWorldContentScriptDefinition extends MainWorldContentScriptEntrypointOptions {
/**
* Main function executed when the content script is loaded.
*
@@ -1544,8 +1538,9 @@ export interface WxtModule<TOptions extends WxtModuleOptions> {
setup?: WxtModuleSetup<TOptions>;
}
export interface WxtModuleWithMetadata<TOptions extends WxtModuleOptions>
extends WxtModule<TOptions> {
export interface WxtModuleWithMetadata<
TOptions extends WxtModuleOptions,
> extends WxtModule<TOptions> {
type: 'local' | 'node_module';
id: string;
}
@@ -45,8 +45,9 @@ export function createIframeUi<TMounted>(
};
}
export interface IframeContentScriptUi<TMounted>
extends ContentScriptUi<TMounted> {
export interface IframeContentScriptUi<
TMounted,
> extends ContentScriptUi<TMounted> {
/**
* The iframe added to the DOM.
*/
@@ -50,8 +50,9 @@ export function createIntegratedUi<TMounted>(
* Shared types for the different `wxt/utils/content-script-ui/*` modules.
* @module wxt/utils/content-script-ui/types
*/
export interface IntegratedContentScriptUi<TMounted>
extends ContentScriptUi<TMounted> {
export interface IntegratedContentScriptUi<
TMounted,
> extends ContentScriptUi<TMounted> {
/**
* A wrapper div that assists in positioning.
*/
@@ -134,8 +134,9 @@ async function loadCss(): Promise<string> {
}
}
export interface ShadowRootContentScriptUi<TMounted>
extends ContentScriptUi<TMounted> {
export interface ShadowRootContentScriptUi<
TMounted,
> extends ContentScriptUi<TMounted> {
/**
* The `HTMLElement` hosting the shadow root used to isolate the UI's styles. This is the element
* that get's added to the DOM. This element's style is not isolated from the webpage.
+1252 -1035
View File
File diff suppressed because it is too large Load Diff
+9 -8
View File
@@ -4,6 +4,7 @@ import * as semver from 'semver';
import { dirname } from 'node:path';
import consola from 'consola';
import spawn from 'nano-spawn';
import pMap from 'p-map';
const HELP_MESSAGE = `
Upgrades dependencies throughout WXT using custom rules.
@@ -177,7 +178,7 @@ function validateNoMultipleVersions(
async function fetchPackageInfo(name: string): Promise<PackageInfo> {
// Use PNPM instead of API in case dependencies don't come from NPM
const res = await spawn('pnpm', ['view', name, '--json']);
return JSON.parse(res.output);
return JSON.parse(res.stdout);
}
type PackageInfo = {
@@ -203,12 +204,13 @@ type DependencyInfo = {
async function fetchAllPackageInfos(
deps: DependencyVersionMap,
): Promise<DependencyInfo[]> {
const infos = await Promise.all(
Object.entries(deps).map(async ([name, currentVersionRange]) => ({
name,
currentVersionRange,
info: await fetchPackageInfo(name),
})),
const infos: DependencyInfo[] = await pMap(
Object.entries(deps),
async ([name, currentVersionRange]) => {
const info = await fetchPackageInfo(name);
return { name, currentVersionRange, info };
},
{ concurrency: 20 },
);
return infos.toSorted((a, b) => a.name.localeCompare(b.name));
}
@@ -253,7 +255,6 @@ async function detectUpgrades(
const latestVersion = dep.info['dist-tags'].latest;
const latestVersionReleasedAt = new Date(dep.info.time[latestVersion]);
semver.RELEASE_TYPES;
const upgradeToVersion = isMajor
? // Always use the latest version for major upgrades
latestVersion
+6 -6
View File
@@ -15,14 +15,14 @@
"postinstall": "wxt prepare"
},
"dependencies": {
"react": "^19.1.1",
"react-dom": "^19.1.1"
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@wxt-dev/module-react": "^1.1.3",
"typescript": "^5.9.2",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@wxt-dev/module-react": "^1.1.5",
"typescript": "^5.9.3",
"wxt": "^0.20.6"
}
}
+3 -3
View File
@@ -15,11 +15,11 @@
"postinstall": "wxt prepare"
},
"dependencies": {
"solid-js": "^1.9.9"
"solid-js": "^1.9.10"
},
"devDependencies": {
"@wxt-dev/module-solid": "^1.1.3",
"typescript": "^5.9.2",
"@wxt-dev/module-solid": "^1.1.4",
"typescript": "^5.9.3",
"wxt": "^0.20.6"
}
}
+5 -5
View File
@@ -15,12 +15,12 @@
"postinstall": "wxt prepare"
},
"devDependencies": {
"@tsconfig/svelte": "^5.0.5",
"@wxt-dev/module-svelte": "^2.0.3",
"svelte": "^5.38.6",
"svelte-check": "^4.3.1",
"@tsconfig/svelte": "^5.0.6",
"@wxt-dev/module-svelte": "^2.0.4",
"svelte": "^5.46.0",
"svelte-check": "^4.3.4",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"typescript": "^5.9.3",
"wxt": "^0.20.6"
}
}
+1 -1
View File
@@ -15,7 +15,7 @@
"postinstall": "wxt prepare"
},
"devDependencies": {
"typescript": "^5.9.2",
"typescript": "^5.9.3",
"wxt": "^0.20.6"
}
}
+4 -4
View File
@@ -15,12 +15,12 @@
"postinstall": "wxt prepare"
},
"dependencies": {
"vue": "^3.5.21"
"vue": "^3.5.25"
},
"devDependencies": {
"@wxt-dev/module-vue": "^1.0.2",
"typescript": "^5.9.2",
"vue-tsc": "^3.0.6",
"@wxt-dev/module-vue": "^1.0.3",
"typescript": "^5.9.3",
"vue-tsc": "^3.1.8",
"wxt": "^0.20.6"
}
}