@windrun-huaiin/diaomao 12.0.1 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "12.0.1",
3
+ "version": "13.0.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,81 +15,80 @@
15
15
  "react"
16
16
  ],
17
17
  "dependencies": {
18
- "@clerk/localizations": "^3.28.0",
19
- "@clerk/nextjs": "^6.35.1",
20
- "@clerk/themes": "^2.4.36",
21
- "@clerk/types": "^4.100.0",
22
- "@fingerprintjs/fingerprintjs": "^4.6.2",
23
- "@hookform/resolvers": "^3.10.0",
18
+ "@clerk/localizations": "^3.37.2",
19
+ "@clerk/nextjs": "^6.39.0",
20
+ "@clerk/themes": "^2.4.57",
21
+ "@clerk/types": "^4.101.20",
22
+ "@fingerprintjs/fingerprintjs": "^5.1.0",
23
+ "@hookform/resolvers": "^5.2.2",
24
24
  "@radix-ui/react-alert-dialog": "^1.1.15",
25
25
  "@radix-ui/react-dropdown-menu": "^2.1.16",
26
26
  "@radix-ui/react-label": "^2.1.8",
27
27
  "@radix-ui/react-slot": "^1.2.4",
28
28
  "@tailwindcss/typography": "^0.5.19",
29
29
  "@types/mdx": "^2.0.13",
30
- "@windrun-huaiin/backend-core": "^12.0.0",
31
- "@windrun-huaiin/base-ui": "^12.0.0",
32
- "@windrun-huaiin/lib": "^12.0.1",
33
- "@windrun-huaiin/third-ui": "^12.0.2",
34
- "autoprefixer": "^10.4.22",
30
+ "@windrun-huaiin/backend-core": "^13.0.0",
31
+ "@windrun-huaiin/base-ui": "^13.0.0",
32
+ "@windrun-huaiin/lib": "^13.0.0",
33
+ "@windrun-huaiin/third-ui": "^13.0.1",
34
+ "autoprefixer": "^10.4.27",
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
37
- "date-fns": "^2.30.0",
37
+ "date-fns": "^4.1.0",
38
38
  "fumadocs-core": "16.0.9",
39
39
  "fumadocs-docgen": "3.0.4",
40
40
  "fumadocs-mdx": "13.0.6",
41
41
  "fumadocs-typescript": "4.0.13",
42
42
  "fumadocs-ui": "16.0.9",
43
- "katex": "^0.16.25",
44
- "lucide-react": "^0.525.0",
45
- "mermaid": "^11.12.1",
46
- "next": "16.0.10",
47
- "next-intl": "^4.4.0",
43
+ "katex": "^0.16.33",
44
+ "lucide-react": "^0.575.0",
45
+ "mermaid": "11.12.1",
46
+ "next": "16.1.6",
47
+ "next-intl": "^4.8.3",
48
48
  "next-themes": "^0.4.6",
49
- "react": "19.2.0",
50
- "react-dom": "19.2.0",
51
- "react-medium-image-zoom": "^5.4.0",
49
+ "react": "19.2.4",
50
+ "react-dom": "19.2.4",
51
+ "react-medium-image-zoom": "^5.4.1",
52
52
  "rehype-katex": "^7.0.1",
53
53
  "remark": "^15.0.1",
54
54
  "remark-frontmatter": "^5.0.0",
55
55
  "remark-gfm": "^4.0.1",
56
56
  "remark-math": "^6.0.0",
57
57
  "remark-mdx": "^3.1.1",
58
- "shiki": "^3.15.0",
58
+ "shiki": "^4.0.0",
59
59
  "stripe": "20.0.0",
60
- "svix": "^1.81.0",
61
- "swiper": "^12.0.3",
62
- "tailwind-merge": "^3.4.0",
60
+ "svix": "^1.86.0",
61
+ "swiper": "^12.1.2",
62
+ "tailwind-merge": "^3.5.0",
63
63
  "tailwindcss-animate": "^1.0.7",
64
- "uuid": "^11.1.0",
65
- "zod": "^4.1.12"
64
+ "uuid": "^13.0.0",
65
+ "zod": "^4.3.6"
66
66
  },
67
67
  "devDependencies": {
68
- "@changesets/cli": "^2.29.5",
68
+ "@changesets/cli": "^2.29.8",
69
69
  "@prisma/client": "^6.19.0",
70
- "@tailwindcss/cli": "^4.1.17",
71
- "@tailwindcss/postcss": "^4.1.17",
70
+ "@tailwindcss/cli": "^4.2.1",
71
+ "@tailwindcss/postcss": "^4.2.1",
72
72
  "@types/hast": "^3.0.4",
73
- "@types/node": "^22.17.2",
73
+ "@types/node": "^25.3.2",
74
74
  "@types/nprogress": "^0.2.3",
75
- "@types/react": "^19.1.2",
76
- "@types/react-dom": "^19.1.3",
77
- "@types/react-medium-image-zoom": "^3.0.3",
78
- "@types/uuid": "^10.0.0",
79
- "@typescript-eslint/parser": "^8.46.4",
80
- "@windrun-huaiin/dev-scripts": "^12.0.2",
75
+ "@types/react": "^19.2.14",
76
+ "@types/react-dom": "^19.2.3",
77
+ "@typescript-eslint/parser": "^8.56.1",
78
+ "@windrun-huaiin/dev-scripts": "^13.0.0",
79
+ "baseline-browser-mapping": "^2.10.0",
81
80
  "eslint": "^9.39.1",
82
- "eslint-config-next": "^16.0.0",
83
- "eslint-plugin-unused-imports": "^4.3.0",
81
+ "eslint-config-next": "^16.1.6",
82
+ "eslint-plugin-unused-imports": "^4.4.1",
84
83
  "fast-glob": "^3.3.3",
85
84
  "nprogress": "^0.2.0",
86
85
  "postcss": "^8.5.6",
87
86
  "prisma": "^6.19.0",
88
- "tailwindcss": "^4.1.17",
87
+ "tailwindcss": "^4.2.1",
89
88
  "ts-morph": "^27.0.2",
90
89
  "ts-node": "^10.9.2",
91
90
  "typescript": "^5.8.3",
92
- "unist-util-visit": "^5.0.0"
91
+ "unist-util-visit": "^5.1.0"
93
92
  },
94
93
  "files": [
95
94
  ".changeset",
package/src/i18n.ts CHANGED
@@ -5,7 +5,7 @@ import type { I18nConfig } from 'fumadocs-core/i18n';
5
5
  export const i18n: I18nConfig = {
6
6
  defaultLanguage: appConfig.i18n.defaultLocale,
7
7
  languages: appConfig.i18n.locales as unknown as string[],
8
- hideLocale: appConfig.i18n.localPrefixAsNeeded ? "default-locale" : "never",
8
+ hideLocale: appConfig.i18n.localePrefixAsNeeded ? "default-locale" : "never",
9
9
  }
10
10
 
11
11
  // Can be imported from a shared config
@@ -14,7 +14,7 @@ export const appConfig = {
14
14
  // export i18n helpers
15
15
  export const { isSupportedLocale, getValidLocale, generatedLocales } = createI18nHelpers(appConfig.i18n);
16
16
 
17
- export const { localPrefixAsNeeded, defaultLocale } = appConfig.i18n;
17
+ export const { localePrefixAsNeeded, defaultLocale } = appConfig.i18n;
18
18
 
19
19
  // export shortcuts
20
20
  export const { iconColor, watermark, showBanner, clerkPageBanner, clerkAuthInModal, placeHolderImage } = appConfig.shortcuts;
@@ -2,7 +2,7 @@
2
2
  title: Blog
3
3
  description: Articles and thoughts about various topics.
4
4
  icon: Rss
5
- date: 2025-12-23
5
+ date: 2026-02-28
6
6
  ---
7
7
 
8
8
  ## Past List
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Monthly Summary
3
3
  description: Index and Summary
4
- date: 2025-12-23
4
+ date: 2026-02-28
5
5
  ---
6
6
 
7
7
 
package/src/proxy.ts CHANGED
@@ -13,7 +13,7 @@ import { NextRequest, NextResponse } from "next/server";
13
13
  const intlMiddleware = createMiddleware({
14
14
  locales: appConfig.i18n.locales,
15
15
  defaultLocale: appConfig.i18n.defaultLocale,
16
- localePrefix: appConfig.i18n.localPrefixAsNeeded ? "as-needed" : "always",
16
+ localePrefix: appConfig.i18n.localePrefixAsNeeded ? "as-needed" : "always",
17
17
  localeDetection: false
18
18
  });
19
19
 
@@ -64,7 +64,7 @@ export default clerkMiddleware(
64
64
  const url = req.nextUrl.clone();
65
65
  url.pathname = `/${defaultLocale}${pathname}`;
66
66
 
67
- if (appConfig.i18n.localPrefixAsNeeded) {
67
+ if (appConfig.i18n.localePrefixAsNeeded) {
68
68
  // as-needed: 内部rewrite,用户URL保持无前缀
69
69
  console.log('[middleware rewrite]', { from: pathname, to: url.pathname });
70
70
  return NextResponse.rewrite(url);