@octanejs/nuqs 0.1.1 → 0.1.2

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": "@octanejs/nuqs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -39,18 +39,18 @@
39
39
  "@standard-schema/spec": "1.1.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "octane": "0.1.12"
42
+ "octane": "0.1.13"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/jest-dom": "^6.9.1",
46
- "@tsrx/react": "^0.2.44",
46
+ "@tsrx/react": "^0.2.46",
47
47
  "esbuild": "^0.28.1",
48
48
  "nuqs": "2.9.1",
49
- "react": "^19.2.0",
50
- "react-dom": "^19.2.0",
51
- "vitest": "^4.1.9",
52
- "@octanejs/testing-library": "0.1.9",
53
- "octane": "0.1.12"
49
+ "react": "^19.2.7",
50
+ "react-dom": "^19.2.7",
51
+ "vitest": "^4.1.10",
52
+ "@octanejs/testing-library": "0.1.10",
53
+ "octane": "0.1.13"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run"
package/src/defs.ts CHANGED
@@ -8,8 +8,7 @@ export type TransitionStartFunction = (callback: () => void | Promise<void>) =>
8
8
  export type SearchParams = Record<string, string | string[] | undefined>;
9
9
  export type HistoryOptions = 'replace' | 'push';
10
10
  export type LimitUrlUpdates =
11
- | { method: 'debounce'; timeMs: number }
12
- | { method: 'throttle'; timeMs: number };
11
+ { method: 'debounce'; timeMs: number } | { method: 'throttle'; timeMs: number };
13
12
 
14
13
  export type Options = {
15
14
  /**
package/src/loader.ts CHANGED
@@ -3,11 +3,7 @@ import { isAbsentFromUrl } from './lib/search-params';
3
3
  import type { inferParserType, ParserMap } from './parsers';
4
4
 
5
5
  export type LoaderInput =
6
- | URL
7
- | Request
8
- | URLSearchParams
9
- | Record<string, string | string[] | undefined>
10
- | string;
6
+ URL | Request | URLSearchParams | Record<string, string | string[] | undefined> | string;
11
7
 
12
8
  /**
13
9
  * @deprecated Use `CreateLoaderOptions` instead.
@@ -14,9 +14,7 @@ export type UseQueryStateReturn<Parsed, Default> = [
14
14
  : Parsed,
15
15
  (
16
16
  value:
17
- | null
18
- | Parsed
19
- | ((old: Default extends Parsed ? Parsed : Parsed | null) => Parsed | null),
17
+ null | Parsed | ((old: Default extends Parsed ? Parsed : Parsed | null) => Parsed | null),
20
18
  options?: Options,
21
19
  ) => Promise<URLSearchParams>,
22
20
  ];