@chhsiao1981/use-thunk 10.1.0 → 10.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chhsiao1981/use-thunk",
3
- "version": "10.1.0",
3
+ "version": "10.1.1",
4
4
  "type": "module",
5
5
  "description": "A framework easily using useThunk to manage the data-state.",
6
6
  "homepage": "https://github.com/chhsiao1981/use-thunk",
@@ -37,27 +37,27 @@
37
37
  "license": "MIT",
38
38
  "devDependencies": {
39
39
  "@codecov/vite-plugin": "^1.9.1",
40
- "@eslint/js": "^9.33.0",
41
- "@types/node": "^24.3.0",
40
+ "@eslint/js": "^9.39.4",
41
+ "@types/node": "^25.5.0",
42
42
  "@types/react": ">=18.3.1",
43
43
  "@types/react-dom": ">=18.3.1",
44
- "@vitejs/plugin-react-swc": "^4.0.0",
45
- "@vitest/coverage-v8": "^3.2.4",
46
- "eslint": "^9.33.0",
47
- "eslint-plugin-react-hooks": "^5.2.0",
48
- "eslint-plugin-react-refresh": "^0.4.20",
49
- "globals": "^16.3.0",
50
- "happy-dom": "^20.0.0",
51
- "jiti": "^2.5.1",
44
+ "@vitejs/plugin-react-swc": "^4.3.0",
45
+ "@vitest/coverage-v8": "^4.1.0",
46
+ "eslint": "^9.39.4",
47
+ "eslint-plugin-react-hooks": "^7.0.1",
48
+ "eslint-plugin-react-refresh": "^0.5.2",
49
+ "globals": "^17.4.0",
50
+ "happy-dom": "^20.8.4",
51
+ "jiti": "^2.6.1",
52
52
  "react-dom": ">=18.3.1",
53
- "rimraf": "^6.0.1",
53
+ "rimraf": "^6.1.3",
54
54
  "typescript": "~5.9.3",
55
- "typescript-eslint": "^8.46.0",
56
- "vite": "^6.3.6",
57
- "vitest": "^3.2.4"
55
+ "typescript-eslint": "^8.57.1",
56
+ "vite": "^6.4.1",
57
+ "vitest": "^4.1.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "react": ">=18.3.1",
61
- "uuid": "^11.1.0"
61
+ "uuid": "^13.0.0"
62
62
  }
63
63
  }
package/src/setData.ts CHANGED
@@ -8,7 +8,10 @@ export const setData = <S extends State>(myID: string, data: Partial<S>): BaseAc
8
8
  data,
9
9
  })
10
10
 
11
- export const reduceSetData = <S extends State>(classState: ClassState<S>, action: BaseAction): ClassState<S> => {
11
+ export const reduceSetData = <S extends State>(
12
+ classState: ClassState<S>,
13
+ action: BaseAction,
14
+ ): ClassState<S> => {
12
15
  const { myID, data } = action
13
16
 
14
17
  const myNode = classState.nodes[myID]
@@ -1,7 +1,7 @@
1
1
  import { type JSX } from 'react';
2
2
  type Props = {
3
3
  classes?: string[];
4
- children?: JSX.Element;
4
+ children?: JSX.Element[];
5
5
  };
6
6
  declare const ThunkContext: (props: Props) => JSX.Element;
7
7
  export default ThunkContext;