Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Mar 19, 2024
1 parent 444f2b2 commit fa73201
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 46 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
4 changes: 2 additions & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"imports": {
"esm.sh/": "https://esm.sh/v135/",
"rollup": "npm:@rollup/wasm-node@4.12.0",
"rollup": "npm:@rollup/wasm-node@4.13.0",
"swc": "npm:@swc/[email protected]",
"@happy-dom/global-registrator": "npm:@happy-dom/[email protected]"
"happy-dom": "npm:happy-dom-without-node"
},
"scopes": {},
"nodeModulesDir": false,
Expand Down
76 changes: 44 additions & 32 deletions deno.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,39 @@
"version": "3",
"packages": {
"specifiers": {
"jsr:@std/assert": "jsr:@std/[email protected]",
"jsr:@std/assert@^0.218.2": "jsr:@std/[email protected]",
"jsr:@std/async": "jsr:@std/[email protected]",
"jsr:@std/fmt@^0.218.2": "jsr:@std/[email protected]",
"jsr:@std/testing": "jsr:@std/[email protected]",
"npm:@happy-dom/[email protected]": "npm:@happy-dom/[email protected]",
"npm:@rollup/[email protected]": "npm:@rollup/[email protected]",
"jsr:@std/assert": "jsr:@std/[email protected]",
"jsr:@std/assert@^0.220.1": "jsr:@std/[email protected]",
"jsr:@std/async": "jsr:@std/[email protected]",
"jsr:@std/fmt@^0.220.1": "jsr:@std/[email protected]",
"jsr:@std/testing": "jsr:@std/[email protected]",
"npm:@rollup/[email protected]": "npm:@rollup/[email protected]",
"npm:@swc/[email protected]": "npm:@swc/[email protected]",
"npm:@types/node": "npm:@types/[email protected]"
"npm:@types/node": "npm:@types/[email protected]",
"npm:happy-dom-without-node": "npm:[email protected]"
},
"jsr": {
"@std/assert@0.218.2": {
"integrity": "7f0a5a1a8cf86607cd6c2c030584096e1ffad27fc9271429a8cb48cfbdee5eaf",
"@std/assert@0.220.1": {
"integrity": "88710d54f3afdd7a5761e7805abba1f56cd14e4b212feffeb3e73a9f77482425",
"dependencies": [
"jsr:@std/fmt@^0.218.2"
"jsr:@std/fmt@^0.220.1"
]
},
"@std/async@0.218.2": {
"integrity": "4528bfe132189719bfbf34756df70d870b5a845d49dce17466b5297546ad8ff9",
"@std/async@0.220.1": {
"integrity": "61f0e9c53bf81f516aa7f54843f307eb5f05c5cf9902575a636ead162b5dfafe",
"dependencies": [
"jsr:@std/assert@^0.218.2"
"jsr:@std/assert@^0.220.1"
]
},
"@std/fmt@0.218.2": {
"integrity": "99526449d2505aa758b6cbef81e7dd471d8b28ec0dcb1491d122b284c548788a"
"@std/fmt@0.220.1": {
"integrity": "3b1a698477a26b1dacbbee26db1a65030a005c6d71db3b3a0e59f8a638f04d7a"
},
"@std/testing@0.218.2": {
"integrity": "49410b23584c924533786e6c117d71486c1daa65f4911fd6cfc95e4edba9de7f"
"@std/testing@0.220.1": {
"integrity": "be77cc1df543f70217d450612637f9f6fcc6887f19fca89665ce08456ee1f290"
}
},
"npm": {
"@happy-dom/[email protected]": {
"integrity": "sha512-chlSKfScUBS++OtcZ8z6LbP+ihEWwRYwtFM+eB8bUiJ1nM9AS4AQ96/CCrFjKXLK29XedQY3szGUkYNJCHFpnA==",
"dependencies": {
"happy-dom": "[email protected]"
}
},
"@rollup/[email protected]": {
"integrity": "sha512-sqy3+YvV/uWX6bPZOR5PlEdH6xyMPXoelllRQ/uZ13tzy9f4pXZTbajnoWN8IHHXwTNKPiLzsePLiDEVmkxMNw==",
"@rollup/[email protected]": {
"integrity": "sha512-oFX11wzU7RTaiW06WBtRpzIVN/oaG0I3XkevNO0brBklYnY9zpLhTfksN4b+TdBt6CfXV/KdVhdWLbb0fQIR7A==",
"dependencies": {
"@types/estree": "@types/[email protected]",
"fsevents": "[email protected]"
Expand All @@ -66,12 +60,23 @@
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"dependencies": {}
},
"happy-dom@13.2.1": {
"integrity": "sha512-AwSV0OPsLxOu1nsKsw+1aakYGiCgLcYed/BPLMGe4lOxAZY14UWGAw8nB7SSnHRltBPwcM6Rf+5hcMXcU7qxaQ==",
"happy-dom-without-node@13.4.1": {
"integrity": "sha512-c1Yc4Fcq75EkrDw5JM1Sk6Cf4BOodgibSK/S/X9PEvejeZ0ql4G35wJHskIZFYksOEiBz39e5MIYMA8b5TszJw==",
"dependencies": {
"entities": "[email protected]",
"webidl-conversions": "[email protected]",
"whatwg-mimetype": "[email protected]"
"whatwg-mimetype": "[email protected]",
"whatwg-url": "[email protected]"
}
},
"[email protected]": {
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
"dependencies": {}
},
"[email protected]": {
"integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==",
"dependencies": {
"punycode": "[email protected]"
}
},
"[email protected]": {
Expand All @@ -81,6 +86,13 @@
"[email protected]": {
"integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==",
"dependencies": {}
},
"[email protected]": {
"integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==",
"dependencies": {
"tr46": "[email protected]",
"webidl-conversions": "[email protected]"
}
}
}
},
Expand All @@ -96,9 +108,9 @@
},
"workspace": {
"dependencies": [
"npm:@happy-dom/global-registrator@13.2.1",
"npm:@rollup/wasm[email protected]",
"npm:@swc/[email protected]"
"npm:@rollup/wasm-node@4.13.0",
"npm:@swc/wasm@1.4.2",
"npm:happy-dom-without-node"
]
}
}
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * as rollup from "rollup";
export { default as resolveUri } from "esm.sh/@jridgewell/[email protected]";
export { default as fetchMock } from "esm.sh/[email protected]/esm/client.js";
export { GlobalRegistrator } from "@happy-dom/global-registrator";
export { Window } from "happy-dom";
export * as terser from "esm.sh/[email protected]?bundle";
2 changes: 1 addition & 1 deletion rollup-deno-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolveUri, rollup } from "./deps.ts";
import { resolveUri, type rollup } from "./deps.ts";

function shouldResolveUri(str: string) {
return str.startsWith("..") || str.startsWith("./") || str.startsWith("/");
Expand Down
4 changes: 1 addition & 3 deletions src/types/docsify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,4 @@ export interface DocsifyVM {
config?: DocsifyConfig;
}

export interface DocsifyPlugin {
(hook: DocsifyHooks, vm: DocsifyVM): void;
}
export type DocsifyPlugin = (hook: DocsifyHooks, vm: DocsifyVM) => void;
10 changes: 4 additions & 6 deletions test/common/dom-env-init.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { GlobalRegistrator } from "../../deps.ts";
import { Any, delay } from "../utils.ts";
import { Window } from "happy-dom";
import { type Any, delay } from "../utils.ts";

export async function init() {
// deno-lint-ignore ban-ts-comment
//@ts-ignore
GlobalRegistrator.registered = null;
GlobalRegistrator.register();
const w = new Window();
globalThis.document = w.document as Any;
document.body.innerHTML = '<div class="container"></div>';
globalThis.TextDecoder = undefined as Any;
await delay(1);
Expand Down

0 comments on commit fa73201

Please sign in to comment.