Skip to content

Commit e89f4dd

Browse files
committed
feat: bump @iconify/vue to v5
1 parent ea1b78a commit e89f4dd

File tree

7 files changed

+953
-1305
lines changed

7 files changed

+953
-1305
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"pnpm",
3333
"shiki",
3434
"tsbuildinfo",
35+
"unrs",
3536
"vite",
3637
"vuepress"
3738
]

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "docs",
3+
"type": "module",
34
"private": true,
45
"scripts": {
56
"build": "vuepress build .",

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,25 @@
4141
"dev:lib": "tsc -b --watch",
4242
"docs:build": "pnpm -C docs run build",
4343
"docs:dev": "pnpm -C docs run dev",
44-
"lint": "eslint .",
44+
"lint": "eslint",
4545
"prepare": "husky",
46-
"release": "run-s release:check release:publish",
47-
"release:check": "run-s typecheck clean build",
48-
"release:publish": "bumpp && pnpm publish",
46+
"release": "run-s release:check release:version release:publish",
47+
"release:check": "run-s lint typecheck clean build",
48+
"release:publish": "pnpm publish",
49+
"release:version": "bumpp",
4950
"typecheck": "tsc --noEmit"
5051
},
5152
"peerDependencies": {
5253
"vuepress": "^2.0.0-rc.15"
5354
},
5455
"dependencies": {
55-
"@iconify/vue": "^4.3.0",
56+
"@iconify/vue": "^5.0.0",
5657
"vue": "^3.5.16"
5758
},
5859
"devDependencies": {
59-
"@ntnyq/eslint-config": "^4.3.0",
60+
"@ntnyq/eslint-config": "^5.0.0-beta.6",
6061
"@ntnyq/prettier-config": "^2.2.0",
61-
"@types/node": "^22.15.31",
62+
"@types/node": "^24.0.1",
6263
"bumpp": "^10.1.1",
6364
"eslint": "^9.29.0",
6465
"husky": "^9.1.7",

pnpm-lock.yaml

Lines changed: 935 additions & 1283 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
packages:
22
- .
33
- docs
4+
45
catalog:
56
'@vuepress/bundler-vite': ^2.0.0-rc.23
67
'@vuepress/plugin-google-analytics': ^2.0.0-rc.107
78
'@vuepress/plugin-shiki': ^2.0.0-rc.108
89
'@vuepress/theme-default': ^2.0.0-rc.108
910
vuepress: ^2.0.0-rc.23
11+
1012
overrides:
11-
esbuild: ^0.25.1
13+
esbuild: ^0.25.5
1214
onlyBuiltDependencies:
1315
- esbuild
16+
- unrs-resolver

prettier.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// @ts-check
22

3-
import { config, defineConfig } from '@ntnyq/prettier-config'
3+
import { defineConfig } from '@ntnyq/prettier-config'
44

55
export default defineConfig({
6-
...config,
7-
86
overrides: [
97
{
108
files: ['**/*.html'],

src/client/components/Icon.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { Icon as IconifyVueIcon } from '@iconify/vue'
22
import { defineComponent, h } from 'vue'
3-
import type {
4-
IconifyIcon,
5-
IconifyIconOnLoad,
6-
IconifyRenderMode,
7-
} from '@iconify/vue'
3+
import type { IconifyIcon, IconifyRenderMode } from '@iconify/vue'
84
import type { PropType, StyleValue } from 'vue'
95

106
export const Icon = defineComponent({
@@ -31,11 +27,7 @@ export const Icon = defineComponent({
3127

3228
inline: Boolean,
3329
rotate: Number,
34-
35-
onLoad: {
36-
type: Function as PropType<IconifyIconOnLoad>,
37-
default: () => {},
38-
},
30+
ariaHidden: Boolean,
3931
},
4032

4133
setup(props) {
@@ -52,7 +44,7 @@ export const Icon = defineComponent({
5244
hFlip: props.horizontalFlip || props.hFlip,
5345
inline: props.inline,
5446
rotate: props.rotate,
55-
onLoad: props.onLoad,
47+
ariaHidden: props.ariaHidden,
5648
})
5749
},
5850
})

0 commit comments

Comments
 (0)