Skip to content

Commit bf4cade

Browse files
authored
build: bump deps (#3564)
1 parent 4446efd commit bf4cade

46 files changed

Lines changed: 1011 additions & 1185 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
},
1010
"devDependencies": {
1111
"@fancyapps/ui": "6.1.14",
12-
"@mathjax/src": "4.1.1",
12+
"@mathjax/src": "4.1.2",
1313
"@vuepress/bundler-vite": "2.0.0-rc.28",
1414
"@vuepress/helper": "2.0.0-rc.128",
1515
"@vuepress/plugin-comment": "2.0.0-rc.128",
1616
"@vuepress/plugin-docsearch": "2.0.0-rc.128",
1717
"@waline/client": "workspace:*",
18-
"marked": "18.0.2",
18+
"marked": "18.0.3",
1919
"sass-embedded": "1.99.0",
2020
"vidstack": "1.12.13",
21-
"vue": "3.5.33",
21+
"vue": "3.5.34",
2222
"vuepress": "2.0.0-rc.28",
2323
"vuepress-shared": "2.0.0-rc.106",
2424
"vuepress-theme-hope": "2.0.0-rc.106"

docs/src/.vuepress/components/MigrationTool.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ const click = (): void => {
5353
5454
if (from.value === 'valine') {
5555
// 适配 LeanCloud 国内版导出非标准 JSON 情况
56-
if (/},[\r\n]+/.test(source.value)) {
56+
if (/\},[\r\n]+/u.test(source.value)) {
5757
data = JSON.parse(source.value.trim());
5858
} else {
5959
data = JSON.parse(
6060
`{"results":[ ${source.value
6161
.trim()
62-
.split(/[\r\n]+/)
62+
.split(/[\r\n]+/u)
6363
.join(',')} ]}`,
6464
);
6565
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"@babel/core": "7.29.0",
2929
"@babel/plugin-transform-runtime": "7.29.0",
30-
"@babel/preset-env": "7.29.2",
30+
"@babel/preset-env": "7.29.5",
3131
"@babel/preset-react": "7.28.5",
3232
"@babel/runtime": "7.29.2",
3333
"@mr-hope/tsconfig": "0.0.4",
@@ -38,16 +38,16 @@
3838
"husky": "9.1.7",
3939
"markdownlint-cli2": "0.22.1",
4040
"nano-staged": "1.0.2",
41-
"oxc-config-hope": "0.3.2",
42-
"oxfmt": "0.47.0",
43-
"oxlint": "1.62.0",
41+
"oxc-config-hope": "0.3.4",
42+
"oxfmt": "0.48.0",
43+
"oxlint": "1.63.0",
4444
"oxlint-tsgolint": "0.22.1",
4545
"picocolors": "1.1.1",
46-
"postcss": "8.5.12",
47-
"publint": "0.3.18",
46+
"postcss": "8.5.14",
47+
"publint": "0.3.19",
4848
"rimraf": "6.1.3",
4949
"sass-embedded": "1.99.0",
50-
"stylelint": "17.9.1",
50+
"stylelint": "17.11.0",
5151
"stylelint-config-hope": "11.0.0",
5252
"tsdown": "0.21.10",
5353
"typescript": "6.0.3",
@@ -63,7 +63,7 @@
6363
"*.{js,ts,vue}": "oxlint --fix --type-aware --type-check --report-unused-disable-directives",
6464
"*.md": "markdownlint-cli2 --fix"
6565
},
66-
"packageManager": "pnpm@10.33.2",
66+
"packageManager": "pnpm@10.33.4",
6767
"apidoc": {
6868
"title": "Waline API Documentation"
6969
}

packages/admin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
"@rematch/core": "2.2.0",
4040
"base-icon": "2.3.2",
4141
"classnames": "2.5.1",
42-
"i18next": "26.0.8",
42+
"i18next": "26.0.9",
4343
"i18next-browser-languagedetector": "8.2.1",
4444
"md5": "2.3.0",
4545
"qrcode.react": "4.2.0",
46-
"react": "19.2.5",
47-
"react-dom": "19.2.5",
46+
"react": "19.2.6",
47+
"react-dom": "19.2.6",
4848
"react-i18next": "17.0.6",
4949
"react-redux": "9.2.0",
50-
"react-router": "7.14.2",
50+
"react-router": "7.15.0",
5151
"redux": "5.0.1",
5252
"typescript": "6.0.3",
5353
"vite": "8.0.10"

packages/admin/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Access = (props) => {
3434
};
3535

3636
export default function App() {
37-
const match = location.pathname.match(/(.*?)\/ui/);
37+
const match = location.pathname.match(/(.*?)\/ui/u);
3838
const basePath = match ? match[1] : '/';
3939

4040
return (

packages/admin/src/pages/login/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Login() {
2222
hideDefaultBadge: true,
2323
});
2424

25-
const match = location.pathname.match(/(.*?\/)ui/);
25+
const match = location.pathname.match(/(.*?\/)ui/u);
2626
const basePath = match && match[1] ? match[1] : '/';
2727
const query = useMemo(() => new URLSearchParams(location.search), []);
2828

@@ -36,7 +36,7 @@ export default function Login() {
3636
const defaultRedirect = isAdmin ? '/ui' : '/ui/profile';
3737
const redirect = isAdmin && query.get('redirect') ? query.get('redirect') : defaultRedirect;
3838

39-
navigate(redirect.replaceAll(/\/+/g, '/'));
39+
navigate(redirect.replaceAll(/\/+/gu, '/'));
4040
}, [user, query, navigate]);
4141

4242
const onSubmit = async (event) => {
@@ -94,7 +94,7 @@ export default function Login() {
9494
let baseUrl = window.serverURL;
9595

9696
if (!baseUrl) {
97-
const match = location.pathname.match(/(.*?\/)ui/);
97+
const match = location.pathname.match(/(.*?\/)ui/u);
9898

9999
baseUrl = match ? match[1] : '/';
100100
}

packages/admin/src/pages/manage-comments/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const formatDate = (time) => {
1515
const date =
1616
typeof time === 'number'
1717
? new Date(time)
18-
: new Date(/\d+-\d+-\d+\s\d+:\d+:\d+/.test(time) ? time.replaceAll('-', '/') : time);
18+
: new Date(/\d+-\d+-\d+\s\d+:\d+:\d+/u.test(time) ? time.replaceAll('-', '/') : time);
1919

2020
const localDate = [date.getFullYear(), date.getMonth() + 1, date.getDate()]
2121
.map((item) => padZero(item))

packages/admin/src/pages/migration/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Migration() {
2121
uploadRef.current.click();
2222
};
2323

24-
// oxlint-disable-next-line max-lines-per-function max-statements
24+
// oxlint-disable-next-line max-statements
2525
const importData = async (event) => {
2626
try {
2727
const text = await readFileAsync(event.target.files[0]);

packages/admin/src/pages/profile/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function Profile() {
8686
let baseUrl = window.serverURL;
8787

8888
if (!baseUrl) {
89-
const match = location.pathname.match(/(.*?\/)ui/);
89+
const match = location.pathname.match(/(.*?\/)ui/u);
9090

9191
baseUrl = match ? match[1] : '/';
9292
}

packages/admin/src/utils/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default async function request(url, opts = {}) {
1919
let baseUrl = window.serverURL;
2020

2121
if (!baseUrl) {
22-
const match = location.pathname.match(/(.*?\/)ui/);
22+
const match = location.pathname.match(/(.*?\/)ui/u);
2323

2424
baseUrl = match ? match[1] : '/';
2525
}

0 commit comments

Comments
 (0)