react-toolkits 2.30.3 → 2.31.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.31.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bba1a46: refactor: enhance KyClient and useKyClient for improved error handling and configuration
8
+
9
+ ## 2.31.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 21eb0d4: refactor: update routing to use react-router and enhance package dependencies
14
+
15
+ ### Patch Changes
16
+
17
+ - 4e2191f: refactor: update routing and game interface definitions
18
+ - 94c57cb: feat: integrate useKyClient hook for improved API client management
19
+
3
20
  ## 2.30.3
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -21,7 +21,7 @@ pnpm add react-toolkits
21
21
 
22
22
  - react、react-dom:^19
23
23
  - antd:^6
24
- - react-router-dom:^7
24
+ - react-router:^7
25
25
  - @tanstack/react-query:^5
26
26
 
27
27
  样式:
@@ -36,7 +36,7 @@ import 'react-toolkits/style.css'
36
36
  import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
37
37
  import 'react-toolkits/style.css'
38
38
  import { createRoot } from 'react-dom/client'
39
- import { RouterProvider } from 'react-router-dom'
39
+ import { RouterProvider } from 'react-router'
40
40
  import { ToolkitsProvider } from 'react-toolkits/components'
41
41
  import { PermissionMode } from 'react-toolkits/constants'
42
42
 
@@ -110,7 +110,7 @@ import type { NavMenuItem } from 'react-toolkits/types'
110
110
  ### 权限与菜单集成示例
111
111
 
112
112
  ```tsx
113
- import { createBrowserRouter } from 'react-router-dom'
113
+ import { createBrowserRouter } from 'react-router'
114
114
  import { Layout } from 'react-toolkits/components'
115
115
  import { permissionRoutes, menuRoutes, SignIn } from 'react-toolkits/pages'
116
116