shelving 1.168.1 → 1.168.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
@@ -11,7 +11,7 @@
11
11
  "state-management",
12
12
  "query-builder"
13
13
  ],
14
- "version": "1.168.1",
14
+ "version": "1.168.2",
15
15
  "repository": "https://github.com/dhoulb/shelving",
16
16
  "author": "Dave Houlbrooke <dave@shax.com>",
17
17
  "license": "0BSD",
@@ -1,6 +1,5 @@
1
- import type { Data } from "../util/data.js";
2
- import { type PossibleURIParams, type URIParams } from "../util/uri.js";
3
- import { type PossibleURL, type URL } from "../util/url.js";
1
+ import { type PossibleURIParams, type URIParams, type URIScheme } from "../util/uri.js";
2
+ import { type PossibleURL, type URL, type URLString } from "../util/url.js";
4
3
  import { Store } from "./Store.js";
5
4
  /** Store a URL, e.g. `https://top.com/a/b/c` */
6
5
  export declare class URLStore extends Store<URL> {
@@ -8,10 +7,10 @@ export declare class URLStore extends Store<URL> {
8
7
  constructor(url: PossibleURL, base?: PossibleURL);
9
8
  set value(url: PossibleURL);
10
9
  get value(): URL;
11
- get href(): string;
12
- set href(href: string);
13
- get origin(): string;
14
- get protocol(): string;
10
+ get href(): URLString;
11
+ set href(href: URLString);
12
+ get origin(): URLString;
13
+ get protocol(): URIScheme;
15
14
  get username(): string;
16
15
  get password(): string;
17
16
  get hostname(): string;
@@ -29,7 +28,7 @@ export declare class URLStore extends Store<URL> {
29
28
  /** Update a single param in this URL. */
30
29
  setParam(key: string, value: unknown): void;
31
30
  /** Update several params in this URL. */
32
- setParams(params: Data): void;
31
+ setParams(params: PossibleURIParams): void;
33
32
  /** Delete one or more params in this URL. */
34
33
  deleteParam(key: string, ...keys: string[]): void;
35
34
  /** Delete one or more params in this URL. */