Skip to content

Commit 8ee846d

Browse files
committed
chore: patch @vue/shared for type enhancement, fix references id hash
1 parent c72f83c commit 8ee846d

File tree

4 files changed

+114
-97
lines changed

4 files changed

+114
-97
lines changed

app/components/post/PostFooter.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const appConfig = useAppConfig()
88
<template>
99
<div class="post-footer">
1010
<section v-if="references" class="reference">
11-
<div id="reference" class="title">
11+
<div id="references" class="title">
1212
参考链接
1313
</div>
1414
<div class="content">

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zhilu-blog",
33
"type": "module",
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"private": true,
66
"packageManager": "[email protected]",
77
"scripts": {
@@ -20,8 +20,8 @@
2020
"clipboard": "^2.0.11",
2121
"date-fns": "^4.1.0",
2222
"date-fns-tz": "^3.2.0",
23-
"embla-carousel-autoplay": "^8.3.1",
24-
"embla-carousel-vue": "^8.3.1",
23+
"embla-carousel-autoplay": "^8.4.0",
24+
"embla-carousel-vue": "^8.4.0",
2525
"fast-xml-parser": "^4.5.0",
2626
"parse-domain": "^8.2.2",
2727
"plain-shiki": "^0.0.12",
@@ -44,7 +44,7 @@
4444
"nuxt": "3.13.2",
4545
"remark-reading-time": "^2.0.1",
4646
"sass": "^1.81.0",
47-
"shiki": "^1.23.0",
47+
"shiki": "^1.23.1",
4848
"stylelint": "^16.10.0",
4949
"terser": "^5.36.0",
5050
"typescript": "^5.6.3",
@@ -53,7 +53,8 @@
5353
},
5454
"pnpm": {
5555
"patchedDependencies": {
56-
"vue-tippy": "patches/vue-tippy.patch"
56+
"vue-tippy": "patches/vue-tippy.patch",
57+
"@vue/shared": "patches/@vue__shared.patch"
5758
}
5859
}
5960
}

patches/@vue__shared.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/shared.d.ts b/dist/shared.d.ts
2+
index ab2199d7da355160a31dd4edfb55c2c354d43f6b..9a1b97fbb075e17e2453bc34551cc095ac1e5dcb 100644
3+
--- a/dist/shared.d.ts
4+
+++ b/dist/shared.d.ts
5+
@@ -316,7 +316,7 @@ export type LooseRequired<T> = {
6+
[P in keyof (T & Required<T>)]: T[P];
7+
};
8+
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
9+
-export type IsKeyValues<T, K = string> = IfAny<T, false, T extends object ? (keyof T extends K ? true : false) : false>;
10+
+export type IsKeyValues<T, K = PropertyKey> = IfAny<T, false, T extends object ? (NonNullable<keyof T> extends K ? true : false) : false>;
11+
/**
12+
* Utility for extracting the parameters from a function overload (for typed emits)
13+
* https://github.com/microsoft/TypeScript/issues/32164#issuecomment-1146737709

0 commit comments

Comments
 (0)