Skip to content

Commit

Permalink
chore(deps): Bump all non-major dependencies (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Jul 21, 2024
1 parent a7963e2 commit 1f216dd
Show file tree
Hide file tree
Showing 20 changed files with 969 additions and 379 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"node": ">=18.20.3",
"pnpm": "^8.6.3"
},
"packageManager": "[email protected].8",
"packageManager": "[email protected].9",
"scripts": {
"check": "check && pnpm -r --sequential run check",
"test": "vitest",
Expand All @@ -18,7 +18,7 @@
"docs:preview": "pnpm -s docs:gen && vitepress preview docs"
},
"devDependencies": {
"@aklinker1/buildc": "^1.0.10",
"@aklinker1/buildc": "^1.0.11",
"@aklinker1/check": "^1.3.1",
"@types/fs-extra": "^11.0.4",
"@vitest/coverage-v8": "^1.6.0",
Expand All @@ -31,18 +31,18 @@
"hasha": "^6.0.0",
"lint-staged": "^15.2.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1",
"tsx": "4.15.7",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "4.0.0-next.23",
"typedoc-vitepress-theme": "1.0.0-next.3",
"typescript": "^5.5.2",
"vitepress": "^1.2.3",
"typescript": "^5.5.3",
"vitepress": "^1.3.1",
"vitest": "^1.6.0",
"vitest-mock-extended": "^1.3.1",
"vitest-mock-extended": "^1.3.2",
"vitest-plugin-random-seed": "^1.1.0",
"vue": "^3.4.31",
"vue": "^3.4.33",
"wxt": "workspace:*",
"yaml": "^2.4.5"
},
Expand Down
1 change: 1 addition & 0 deletions packages/module-react/modules/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineWxtModule<ReactModuleOptions>({
const { vite } = options ?? {};

addViteConfig(wxt, () => ({
// @ts-expect-error: Vite version conflicts
plugins: [react(vite)],
}));

Expand Down
4 changes: 2 additions & 2 deletions packages/module-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"@aklinker1/check": "^1.3.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"publint": "^0.2.8",
"publint": "^0.2.9",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.5.2",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"wxt": "workspace:*"
}
Expand Down
1 change: 1 addition & 0 deletions packages/module-solid/modules/solid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineWxtModule<SolidModuleOptions>({
const { vite } = options ?? {};

addViteConfig(wxt, () => ({
// @ts-expect-error: Vite version mismatch
plugins: [solid(vite)],
build: {
target: 'esnext',
Expand Down
6 changes: 3 additions & 3 deletions packages/module-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
"devDependencies": {
"@aklinker1/check": "^1.3.1",
"publint": "^0.2.8",
"solid-js": "^1.8.17",
"typescript": "^5.5.2",
"publint": "^0.2.9",
"solid-js": "^1.8.18",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"wxt": "workspace:*"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/module-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"devDependencies": {
"@aklinker1/check": "^1.3.1",
"publint": "^0.2.8",
"typescript": "^5.5.2",
"publint": "^0.2.9",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"wxt": "workspace:*"
}
Expand Down
1 change: 1 addition & 0 deletions packages/module-svelte/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineWxtModule<SvelteModuleOptions>({

addViteConfig(wxt, () => ({
plugins: [
// @ts-expect-error: Vite version mismatch
svelte({
// Using a svelte.config.js file causes a segmentation fault when importing the file
configFile: false,
Expand Down
4 changes: 2 additions & 2 deletions packages/module-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"devDependencies": {
"@aklinker1/check": "^1.3.1",
"publint": "^0.2.8",
"typescript": "^5.5.2",
"publint": "^0.2.9",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"wxt": "workspace:*"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/wxt-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"sass": "^1.77.6",
"typescript": "^5.5.2",
"sass": "^1.77.8",
"typescript": "^5.5.3",
"wxt": "workspace:*"
},
"buildc": {
Expand Down
5 changes: 4 additions & 1 deletion packages/wxt-demo/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ export default defineProject({
mockReset: true,
restoreMocks: true,
},
plugins: [WxtVitest()],
plugins: [
// @ts-expect-error: Vite version mismatch
WxtVitest(),
],
});
14 changes: 7 additions & 7 deletions packages/wxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"dequal": "^2.0.3",
"esbuild": "^0.19.12",
"fast-glob": "^3.3.2",
"filesize": "^10.1.2",
"filesize": "^10.1.4",
"fs-extra": "^11.2.0",
"get-port": "^7.1.0",
"giget": "^1.2.3",
Expand All @@ -137,8 +137,8 @@
"picocolors": "^1.0.1",
"prompts": "^2.4.2",
"publish-browser-extension": "^2.1.3",
"unimport": "^3.7.2",
"vite": "^5.3.2",
"unimport": "^3.9.0",
"vite": "^5.3.4",
"vite-node": "^1.6.0",
"web-ext-run": "^0.2.1",
"webextension-polyfill": "^0.10.0"
Expand All @@ -149,17 +149,17 @@
"@types/fs-extra": "^11.0.4",
"@types/lodash.merge": "^4.6.9",
"@types/natural-compare": "^1.4.3",
"@types/node": "^20.14.9",
"@types/node": "^20.14.11",
"@types/normalize-path": "^3.0.2",
"@types/prompts": "^2.4.9",
"execa": "^9.3.0",
"extract-zip": "^2.0.1",
"happy-dom": "^13.10.1",
"lodash.merge": "^4.6.2",
"p-map": "^7.0.2",
"publint": "^0.2.8",
"tsup": "^8.1.0",
"publint": "^0.2.9",
"tsup": "^8.2.1",
"tsx": "4.15.7",
"typescript": "^5.5.2"
"typescript": "^5.5.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import path from 'node:path';
let increment = 0;

export function bundleAnalysis(config: ResolvedConfig): vite.Plugin {
// @ts-expect-error: Vite version mismatch
return visualizer({
template: 'raw-data',
filename: path.resolve(
Expand Down
6 changes: 3 additions & 3 deletions packages/wxt/src/core/utils/building/resolve-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ async function resolveManifestConfig(
env: ConfigEnv,
manifest: UserManifest | Promise<UserManifest> | UserManifestFn | undefined,
): Promise<UserManifest> {
return await (typeof manifest === 'function'
? manifest(env)
: manifest ?? {});
return typeof manifest === 'function'
? await manifest(env)
: await (manifest ?? {});
}

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/wxt/src/core/utils/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ function addDevModeCsp(manifest: Manifest.WebExtensionManifest): void {
const extensionPagesCsp = new ContentSecurityPolicy(
manifest.manifest_version === 3
? // @ts-expect-error: extension_pages is not typed
manifest.content_security_policy?.extension_pages ??
"script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" // default extension_pages CSP for MV3
: manifest.content_security_policy ??
"script-src 'self'; object-src 'self';", // default CSP for MV2
(manifest.content_security_policy?.extension_pages ??
"script-src 'self' 'wasm-unsafe-eval'; object-src 'self';") // default extension_pages CSP for MV3
: (manifest.content_security_policy ??
"script-src 'self'; object-src 'self';"), // default CSP for MV2
);
const sandboxCsp = new ContentSecurityPolicy(
// @ts-expect-error: sandbox is not typed
Expand Down
Loading

0 comments on commit 1f216dd

Please sign in to comment.