@cleanweb/oore 2.0.0-alpha.30 → 2.0.0-alpha.31

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.
@@ -1,4 +1,4 @@
1
- import type { SetStateAction } from 'react.js';
1
+ import type { SetStateAction } from 'react';
2
2
  import { debounce } from './index.js';
3
3
  type TDebounceConfig = Exclude<Parameters<typeof debounce>[1], number>;
4
4
  type TDelayConfig = number | TDebounceConfig & {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useDebouncedState = useDebouncedState;
4
- const react_1 = require("react.js");
4
+ const react_1 = require("react");
5
5
  const _1 = require("./index.js");
6
6
  function useDebouncedState(init, config) {
7
7
  const [debouncedValue, setDebouncedValue] = (0, react_1.useState)(init);
@@ -7,7 +7,7 @@ export * from './rerender.js';
7
7
  export * from './use-component/index.js';
8
8
  export * from './object-gate.js';
9
9
  export * from './debounce/index.js';
10
- export * from './debounce/react.js';
10
+ export * from './debounce/react-state.js';
11
11
  export * from './type-guards.js';
12
12
  /**
13
13
  * An empty function.
@@ -24,7 +24,7 @@ __exportStar(require("./rerender.js"), exports);
24
24
  __exportStar(require("./use-component/index.js"), exports);
25
25
  __exportStar(require("./object-gate.js"), exports);
26
26
  __exportStar(require("./debounce/index.js"), exports);
27
- __exportStar(require("./debounce/react.js"), exports);
27
+ __exportStar(require("./debounce/react-state.js"), exports);
28
28
  __exportStar(require("./type-guards.js"), exports);
29
29
  /**
30
30
  * An empty function.
@@ -1,4 +1,4 @@
1
- import type { SetStateAction } from 'react.js';
1
+ import type { SetStateAction } from 'react';
2
2
  import { debounce } from './index.js';
3
3
  type TDebounceConfig = Exclude<Parameters<typeof debounce>[1], number>;
4
4
  type TDelayConfig = number | TDebounceConfig & {
@@ -1,4 +1,4 @@
1
- import { useCallback, useMemo, useState } from 'react.js';
1
+ import { useCallback, useMemo, useState } from 'react';
2
2
  import { debounce } from './index.js';
3
3
  export function useDebouncedState(init, config) {
4
4
  const [debouncedValue, setDebouncedValue] = useState(init);
@@ -7,7 +7,7 @@ export * from './rerender.js';
7
7
  export * from './use-component/index.js';
8
8
  export * from './object-gate.js';
9
9
  export * from './debounce/index.js';
10
- export * from './debounce/react.js';
10
+ export * from './debounce/react-state.js';
11
11
  export * from './type-guards.js';
12
12
  /**
13
13
  * An empty function.
@@ -7,7 +7,7 @@ export * from './rerender.js';
7
7
  export * from './use-component/index.js';
8
8
  export * from './object-gate.js';
9
9
  export * from './debounce/index.js';
10
- export * from './debounce/react.js';
10
+ export * from './debounce/react-state.js';
11
11
  export * from './type-guards.js';
12
12
  /**
13
13
  * An empty function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleanweb/oore",
3
- "version": "2.0.0-alpha.30",
3
+ "version": "2.0.0-alpha.31",
4
4
  "description": "A library of helpers for writing cleaner React function components with object-oriented patterns.",
5
5
  "engines": {
6
6
  "node": ">=22"