Skip to content

Commit 5187426

Browse files
antfuwebfansplz
authored andcommitted
chore: release v0.1.12
1 parent 4217cfd commit 5187426

File tree

16 files changed

+365
-1668
lines changed

16 files changed

+365
-1668
lines changed

examples/plugin-a11y-checker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "example-plugin-a11y-checker",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"private": true,
66
"exports": {
77
".": "./dist/index.mjs",

examples/plugin-file-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "example-plugin-file-explorer",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"private": true,
66
"exports": {
77
".": "./dist/index.mjs",

examples/plugin-git-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "example-plugin-git-ui",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"private": true,
66
"exports": {
77
".": "./dist/index.mjs",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"private": true,
55
"packageManager": "pnpm@10.33.0",
66
"scripts": {

packages/core/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vitejs/devtools",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"description": "Vite DevTools",
66
"author": "VoidZero Inc.",
77
"license": "MIT",
@@ -91,8 +91,8 @@
9191
"vue-tsc": "catalog:devtools"
9292
},
9393
"inlinedDependencies": {
94-
"@clack/core": "1.1.0",
95-
"@clack/prompts": "1.1.0",
94+
"@clack/core": "1.2.0",
95+
"@clack/prompts": "1.2.0",
9696
"@json-render/core": "0.13.0",
9797
"@json-render/vue": "0.13.0",
9898
"@vueuse/core": "14.2.1",
@@ -101,6 +101,9 @@
101101
"@xterm/xterm": "6.0.0",
102102
"ansis": "4.2.0",
103103
"dompurify": "3.3.3",
104+
"fast-string-truncated-width": "1.2.1",
105+
"fast-string-width": "1.1.0",
106+
"fast-wrap-ansi": "0.1.6",
104107
"fuse.js": "7.1.0",
105108
"get-port-please": "3.2.0",
106109
"sisteransi": "1.0.5",

packages/core/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"private": true,
66
"scripts": {
77
"dev": "DEBUG='vite:devtools:*' VITE_DEVTOOLS_LOCAL_DEV=true vite",

packages/core/tsdown.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export default defineConfig({
3737
'ansis',
3838
'csstype',
3939
'dompurify',
40+
'fast-string-truncated-width',
41+
'fast-string-width',
42+
'fast-wrap-ansi',
4043
'fuse.js',
4144
'get-port-please',
4245
'human-id',

packages/kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vitejs/devtools-kit",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"description": "Vite DevTools Kit",
66
"author": "VoidZero Inc.",
77
"license": "MIT",

packages/rolldown/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vitejs/devtools-rolldown",
33
"type": "module",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"description": "DevTools for Rolldown",
66
"author": "VoidZero Inc.",
77
"license": "MIT",
@@ -92,11 +92,11 @@
9292
"@gwhitney/detect-indent": "7.0.1",
9393
"@pnpm/constants": "1001.3.1",
9494
"@pnpm/core-loggers": "1001.0.9",
95-
"@pnpm/error": "1000.0.5",
95+
"@pnpm/error": "1000.1.0",
9696
"@pnpm/graceful-fs": "1000.1.0",
9797
"@pnpm/logger": "1001.0.1",
98-
"@pnpm/manifest-utils": "1002.0.4",
99-
"@pnpm/read-project-manifest": "1001.2.5",
98+
"@pnpm/manifest-utils": "1002.0.5",
99+
"@pnpm/read-project-manifest": "1001.2.6",
100100
"@pnpm/semver.peer-range": "1000.0.0",
101101
"@pnpm/text.comments-parser": "1000.0.0",
102102
"@pnpm/types": "1001.3.0",

packages/rolldown/src/app/utils/cache.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ export class MaybeWeakMap<K, V> implements WeakMap<any, V> {
4141
return this._map.get(key)
4242
}
4343

44+
getOrInsert(key: K, defaultValue: V): V {
45+
if (this.has(key))
46+
return this.get(key)!
47+
48+
this.set(key, defaultValue)
49+
return defaultValue
50+
}
51+
52+
getOrInsertComputed(key: K, callback: (key: K) => V): V {
53+
if (this.has(key))
54+
return this.get(key)!
55+
56+
const value = callback(key)
57+
this.set(key, value)
58+
return value
59+
}
60+
4461
clear(): void {
4562
this._map.clear()
4663
}

0 commit comments

Comments
 (0)