Skip to content

Commit

Permalink
chore(deps): Bump dev and non-breaking major dependencies (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Nov 13, 2024
1 parent 5c7b609 commit 67f3561
Show file tree
Hide file tree
Showing 16 changed files with 299 additions and 288 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.10",
"markdown-it-footnote": "^4.0.0",
"nano-spawn": "^0.1.0",
"nano-spawn": "^0.2.0",
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1",
"tsx": "4.15.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/auto-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"devDependencies": {
"@aklinker1/check": "^1.4.5",
"oxlint": "^0.9.10",
"oxlint": "^0.11.1",
"publint": "^0.2.12",
"typescript": "^5.6.3",
"unbuild": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
},
"devDependencies": {
"@aklinker1/check": "^1.4.5",
"@types/chrome": "^0.0.268",
"@types/chrome": "^0.0.280",
"@types/node": "^20.17.6",
"oxlint": "^0.9.10",
"oxlint": "^0.11.1",
"publint": "^0.2.12",
"typescript": "^5.6.3",
"unbuild": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/unocss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
},
"devDependencies": {
"@aklinker1/check": "^1.4.5",
"oxlint": "^0.9.10",
"oxlint": "^0.11.1",
"publint": "^0.2.12",
"typescript": "^5.6.3",
"unbuild": "^2.0.0",
"unocss": "^0.63.6",
"unocss": "^0.64.0",
"wxt": "workspace:*"
},
"dependencies": {
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 @@ -22,14 +22,14 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/chrome": "^0.0.269",
"@types/chrome": "^0.0.280",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@wxt-dev/auto-icons": "workspace:*",
"@wxt-dev/unocss": "workspace:*",
"sass": "^1.80.7",
"typescript": "^5.6.3",
"unocss": "^0.63.6",
"unocss": "^0.64.0",
"vitest": "^2.1.4",
"vitest-plugin-random-seed": "^1.1.0",
"wxt": "workspace:*"
Expand Down
12 changes: 6 additions & 6 deletions packages/wxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
},
"dependencies": {
"@aklinker1/rollup-plugin-visualizer": "5.12.0",
"@types/chrome": "^0.0.269",
"@types/webextension-polyfill": "^0.10.7",
"@types/chrome": "^0.0.280",
"@types/webextension-polyfill": "^0.12.1",
"@webext-core/fake-browser": "^1.3.1",
"@webext-core/isolated-element": "^1.1.2",
"@webext-core/match-patterns": "^1.0.3",
Expand All @@ -110,7 +110,7 @@
"linkedom": "^0.18.5",
"magicast": "^0.3.5",
"minimatch": "^10.0.1",
"nano-spawn": "^0.1.0",
"nano-spawn": "^0.2.0",
"normalize-path": "^3.0.0",
"nypm": "^0.3.12",
"ohash": "^1.1.4",
Expand All @@ -129,16 +129,16 @@
},
"devDependencies": {
"@aklinker1/check": "^1.4.5",
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.2.0",
"@types/fs-extra": "^11.0.4",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^20.17.6",
"@types/normalize-path": "^3.0.2",
"@types/prompts": "^2.4.9",
"extract-zip": "^2.0.1",
"happy-dom": "^14.12.3",
"happy-dom": "^15.11.4",
"lodash.merge": "^4.6.2",
"oxlint": "^0.9.10",
"oxlint": "^0.11.1",
"publint": "^0.2.12",
"tsx": "4.15.7",
"typescript": "^5.6.3",
Expand Down
1 change: 0 additions & 1 deletion packages/wxt/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export type {
Theme,
TopSites,
Types,
Urlbar,
UserScripts,
WebNavigation,
WebRequest,
Expand Down
3 changes: 0 additions & 3 deletions packages/wxt/src/core/utils/content-scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function hashContentScriptOptions(
match_about_blank: false,
run_at: 'document_idle',
all_frames: false,
// @ts-expect-error - not in type
match_origin_as_fallback: false,
world: 'ISOLATED',
...simplifiedOptions,
Expand Down Expand Up @@ -62,7 +61,6 @@ export function mapWxtOptionsToContentScript(
css,
js,

// @ts-expect-error: untyped chrome options
match_origin_as_fallback: options.matchOriginAsFallback,
world: options.world,
};
Expand All @@ -80,7 +78,6 @@ export function mapWxtOptionsToRegisteredContentScript(
runAt: options.runAt,
js,
css,
// @ts-expect-error: Chrome accepts this, not typed in webextension-polyfill (https://developer.chrome.com/docs/extensions/reference/scripting/#type-RegisteredContentScript)
world: options.world,
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/wxt/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ function createDriver(storageArea: StorageArea): WxtStorageDriver {
return {
getItem: async (key) => {
const res = await getStorageArea().get(key);
return res[key];
return res[key] as any;
},
getItems: async (keys) => {
const result = await getStorageArea().get(keys);
Expand Down Expand Up @@ -537,7 +537,7 @@ function createDriver(storageArea: StorageArea): WxtStorageDriver {
},
watch(key, cb) {
const listener = (changes: Storage.StorageAreaOnChangedChangesType) => {
const change = changes[key];
const change = changes[key] as { newValue: any; oldValue: any };
if (change == null) return;
if (dequal(change.newValue, change.oldValue)) return;
cb(change.newValue ?? null, change.oldValue ?? null);
Expand Down
Loading

0 comments on commit 67f3561

Please sign in to comment.