Skip to content

Commit d3797f4

Browse files
committed
main 🧊 update versions
1 parent e4a82d6 commit d3797f4

File tree

30 files changed

+389
-338
lines changed

30 files changed

+389
-338
lines changed

‎packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@
3838
"pretty": "yarn type && yarn lint && yarn format"
3939
},
4040
"dependencies": {
41-
"@antfu/ni": "^24.2.0",
42-
"@siberiacancode/fetches": "^1.9.4",
41+
"@antfu/ni": "^24.3.0",
42+
"@siberiacancode/fetches": "*",
4343
"chalk": "5.4.1",
4444
"cosmiconfig": "^9.0.0",
4545
"execa": "9.5.2",
4646
"ora": "8.2.0",
4747
"prompts": "^2.4.2",
4848
"tsconfig-paths": "^4.2.0",
4949
"yargs": "^17.7.2",
50-
"zod": "^3.24.2"
50+
"zod": "^3.24.3"
5151
},
5252
"devDependencies": {
5353
"@types/prompts": "^2.4.9",

‎packages/core/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"lint-staged": "lint-staged"
5252
},
5353
"peerDependencies": {
54-
"@types/react": "^18.0.0",
55-
"react": "^17.0.2 || ^18.0.0",
56-
"react-dom": "^17.0.2 || ^18.0.0"
54+
"@types/react": "^18",
55+
"react": "^17 || ^18 || ^19",
56+
"react-dom": "^17 || ^18 || ^19"
5757
},
5858
"peerDependenciesMeta": {
5959
"@types/react": {
@@ -66,19 +66,19 @@
6666
"devDependencies": {
6767
"@siberiacancode/vitest": "^2.1.0",
6868
"@testing-library/dom": "^10.4.0",
69-
"@testing-library/react": "^16.2.0",
70-
"@types/dom-speech-recognition": "^0.0.4",
71-
"@types/react": "^18.3.18",
72-
"@types/react-dom": "^18.3.5",
69+
"@testing-library/react": "^16.3.0",
70+
"@types/dom-speech-recognition": "^0.0.6",
71+
"@types/react": "^19.1.2",
72+
"@types/react-dom": "^19.1.2",
7373
"@types/web-bluetooth": "^0.0.21",
74-
"@vitejs/plugin-react": "^4.3.4",
74+
"@vitejs/plugin-react": "^4.4.1",
7575
"core-js": "^3.41.0",
76-
"react": "^18.3.1",
77-
"react-dom": "^18.3.1",
76+
"react": "^19.1.0",
77+
"react-dom": "^19.1.0",
7878
"shx": "^0.4.0",
79-
"vite": "^6.2.3",
79+
"vite": "^6.3.2",
8080
"vite-plugin-dts": "^4.5.3",
81-
"vitest": "^3.0.9"
81+
"vitest": "^3.1.2"
8282
},
8383
"lint-staged": {
8484
"*.js": [

‎packages/core/src/bundle/hooks/useDoubleClick/useDoubleClick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const useDoubleClick = (...params) => {
3131
const target = isTarget(params[0]) ? params[0] : undefined;
3232
const callback = target ? params[1] : params[0];
3333
const options = target ? params[2] : params[1];
34-
const timeoutIdRef = useRef();
34+
const timeoutIdRef = useRef(undefined);
3535
const clickCountRef = useRef(0);
3636
const internalRef = useRefState();
3737
const internalCallbackRef = useRef(callback);

‎packages/core/src/bundle/hooks/useInterval/useInterval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const useInterval = (...params) => {
2727
const options = typeof params[1] === 'object' ? params[1] : params[2];
2828
const immediately = options?.immediately ?? true;
2929
const [active, setActive] = useState(immediately ?? true);
30-
const intervalIdRef = useRef();
30+
const intervalIdRef = useRef(undefined);
3131
const internalCallbackRef = useRef(callback);
3232
internalCallbackRef.current = callback;
3333
useEffect(() => {

‎packages/core/src/bundle/hooks/useLongPress/useLongPress.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const useLongPress = (...params) => {
3030
const callback = target ? params[1] : params[0];
3131
const options = target ? params[2] : params[1];
3232
const [pressed, setPressed] = useState(false);
33-
const timeoutIdRef = useRef();
33+
const timeoutIdRef = useRef(undefined);
3434
const isPressedRef = useRef(false);
3535
const internalRef = useRefState();
3636
const internalCallbackRef = useRef(callback);

‎packages/core/src/bundle/hooks/useOnce/useOnce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { useEffect, useRef } from 'react';
1212
* useOnce(() => console.log('effect once'));
1313
*/
1414
export function useOnce(effect) {
15-
const cleanupRef = useRef();
15+
const cleanupRef = useRef(undefined);
1616
const hasRunRef = useRef(false);
1717
const hasRenderedAfterRun = useRef(false);
1818
if (hasRunRef.current) {

‎packages/core/src/bundle/hooks/usePerformanceObserver/usePerformanceObserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const usePerformanceObserver = (options, callback) => {
1717
const supported = typeof window !== 'undefined' && typeof PerformanceObserver !== 'undefined';
1818
const [entries, setEntries] = useState([]);
1919
const observerRef = useRef(null);
20-
const internalCallback = useRef();
20+
const internalCallback = useRef(callback);
2121
internalCallback.current = callback;
2222
const start = () => {
2323
if (!supported) return;

‎packages/core/src/bundle/hooks/usePrevious/usePrevious.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import { useRef } from 'react';
77
* @template Value The type of the value
88
* @param {Value} value The value to get the previous value
99
* @param {(a: Value, b: Value) => boolean} [options.equality] The custom equality function to determine if the value has changed
10-
* @returns {Value} The previous value
10+
* @returns {Value | undefined} The previous value
1111
*
1212
* @example
1313
* const prevValue = usePrevious(value);
1414
*/
1515
export const usePrevious = (value, options) => {
1616
const currentRef = useRef(value);
17-
const previousRef = useRef();
17+
const previousRef = useRef(undefined);
1818
const equality = options?.equality ?? Object.is;
1919
if (!equality(value, currentRef.current)) {
2020
previousRef.current = currentRef.current;

‎packages/core/src/bundle/hooks/useQuery/useQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const useQuery = (callback, options) => {
3434
const [error, setError] = useState(undefined);
3535
const [data, setData] = useState(options?.initialData);
3636
const abortControllerRef = useRef(new AbortController());
37-
const intervalIdRef = useRef();
37+
const intervalIdRef = useRef(undefined);
3838
const keys = options?.keys ?? [];
3939
const abort = () => {
4040
abortControllerRef.current.abort();

‎packages/core/src/bundle/hooks/useResizeObserver/useResizeObserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const useResizeObserver = (...params) => {
3535
const enabled = options?.enabled ?? true;
3636
const [entries, setEntries] = useState([]);
3737
const internalRef = useRefState();
38-
const internalOnChangeRef = useRef();
38+
const internalOnChangeRef = useRef(options?.onChange);
3939
internalOnChangeRef.current = options?.onChange;
4040
useEffect(() => {
4141
if (!enabled && !target && !internalRef.state) return;

0 commit comments

Comments
 (0)