Skip to content

Commit d2308bd

Browse files
authored
chore(deps): Update all dependencies (#1568)
1 parent d35972d commit d2308bd

File tree

13 files changed

+828
-905
lines changed

13 files changed

+828
-905
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"engines": {
55
"node": ">=18.20.3"
66
},
7-
"packageManager": "pnpm@10.5.2",
7+
"packageManager": "pnpm@10.8.0",
88
"scripts": {
99
"check": "check && pnpm -r --sequential run check",
1010
"test": "pnpm -r --sequential run test run",

packages/storage/src/__tests__/index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ describe('Storage Utils', () => {
979979

980980
const actual = await item.getMeta();
981981

982-
expect(actual).toBe(expected);
982+
expect(actual).toEqual(expected);
983983
});
984984

985985
it('should return an empty object if missing', async () => {

packages/wxt/src/core/builders/vite/plugins/devHtmlPrerender.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { getEntrypointName } from '../../../utils/entrypoints';
44
import { parseHTML } from 'linkedom';
55
import { dirname, relative, resolve } from 'node:path';
66
import { normalizePath } from '../../../utils/paths';
7-
import { murmurHash } from 'ohash';
7+
import { hash } from 'ohash';
88

99
// Stored outside the plugin to effect all instances of the devHtmlPrerender plugin.
10-
const inlineScriptContents: Record<number, string> = {};
10+
const inlineScriptContents: Record<string, string> = {};
1111

1212
/**
1313
* Pre-renders the HTML entrypoints when building the extension to connect to the dev server.
@@ -85,13 +85,13 @@ export function devHtmlPrerender(
8585
inlineScripts.forEach((script) => {
8686
// Save the text content for later
8787
const textContent = script.textContent ?? '';
88-
const hash = murmurHash(textContent);
89-
inlineScriptContents[hash] = textContent;
88+
const textHash = hash(textContent);
89+
inlineScriptContents[textHash] = textContent;
9090

9191
// Replace unsafe inline script
9292
const virtualScript = document.createElement('script');
9393
virtualScript.type = 'module';
94-
virtualScript.src = `${server.origin}/@id/${virtualInlineScript}?${hash}`;
94+
virtualScript.src = `${server.origin}/@id/${virtualInlineScript}?${textHash}`;
9595
script.replaceWith(virtualScript);
9696
});
9797

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { WxtPackageManagerImpl } from './types';
2+
3+
export const deno: WxtPackageManagerImpl = {
4+
overridesKey: 'na',
5+
downloadDependency() {
6+
throw Error('Deno not supported');
7+
},
8+
listDependencies() {
9+
throw Error('Deno not supported');
10+
},
11+
};

packages/wxt/src/core/package-managers/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { WxtPackageManagerImpl } from './types';
1414
import { yarn } from './yarn';
1515
import { pnpm } from './pnpm';
1616
import { npm } from './npm';
17+
import { deno } from './deno';
1718

1819
export async function createWxtPackageManager(
1920
root: string,
@@ -73,4 +74,5 @@ const packageManagers: Record<PackageManagerName, WxtPackageManagerImpl> = {
7374
pnpm,
7475
bun,
7576
yarn,
77+
deno,
7678
};

0 commit comments

Comments
 (0)