shelving 1.191.2 → 1.192.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": "shelving",
3
- "version": "1.191.2",
3
+ "version": "1.192.1",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,10 @@
14
14
  "@types/bun": "^1.3.13",
15
15
  "@types/react": "^19.2.14",
16
16
  "@types/react-dom": "^19.2.3",
17
- "@typescript/native-preview": "^7.0.0-dev.20260425.1",
17
+ "@typescript/native-preview": "^7.0.0-dev.20260421.2",
18
18
  "firebase": "^12.12.1",
19
19
  "react": "^19.2.5",
20
- "react-dom": "^19.2.5",
21
- "typescript": "^5.9.3"
20
+ "react-dom": "^19.2.5"
22
21
  },
23
22
  "peerDependencies": {
24
23
  "@google-cloud/firestore": ">=7.0.0",
@@ -66,13 +65,13 @@
66
65
  "test:type": "tsgo --noEmit",
67
66
  "test:unit": "bun test --concurrent --only-failures",
68
67
  "fix": "bun run --sequential fix:*",
69
- "fix:lint": "biome check --write .",
70
- "build": "bun run build:setup && bun run build:copy && bun run build:emit && bun run build:test:syntax && bun run build:test:unit",
71
- "build:setup": "rm -rf ./dist && mkdir -p ./dist",
72
- "build:copy": "cp package.json dist/package.json && cp LICENSE.md dist/LICENSE.md && cp README.md dist/README.md && cp .npmignore dist/.npmignore",
73
- "build:emit": "tsgo",
74
- "build:test:syntax": "bun run ./dist/index.js",
75
- "build:test:unit": "bun test ./dist/**/*.test.js --bail"
68
+ "fix:0:lint": "biome check --write .",
69
+ "build": "bun run --sequential build:*",
70
+ "build:0:setup": "rm -rf ./dist && mkdir -p ./dist",
71
+ "build:1:copy": "cp package.json dist/package.json && cp LICENSE.md dist/LICENSE.md && cp README.md dist/README.md && cp .npmignore dist/.npmignore",
72
+ "build:2:emit": "tsgo",
73
+ "build:3:syntax": "bun run ./dist/index.js",
74
+ "build:4:unit": "bun test ./dist/**/*.test.js --concurrent --only-failures --bail"
76
75
  },
77
76
  "sideEffects": false,
78
77
  "type": "module",
@@ -1,5 +1,7 @@
1
- import { type AddressData } from "../util/geo.js";
1
+ import { type AddressData, formatAddress } from "../util/geo.js";
2
2
  import { DataSchema, type DataSchemaOptions } from "./DataSchema.js";
3
+ export type { AddressData };
4
+ export { formatAddress };
3
5
  /** Allowed options for `AddressSchema` */
4
6
  export interface AddressSchemaOptions extends Omit<DataSchemaOptions<AddressData>, "props"> {
5
7
  }
@@ -3,11 +3,12 @@ import { COUNTRY } from "./CountrySchema.js";
3
3
  import { DataSchema } from "./DataSchema.js";
4
4
  import { NULLABLE } from "./NullableSchema.js";
5
5
  import { StringSchema } from "./StringSchema.js";
6
+ export { formatAddress };
6
7
  const ADDRESS_PROPS = {
7
8
  address1: new StringSchema({ title: "Address 1", max: 60, min: 1 }),
8
9
  address2: new StringSchema({ title: "Address 2", max: 60, min: 0 }),
9
10
  city: new StringSchema({ title: "City", min: 1, max: 60 }),
10
- state: new StringSchema({ title: "State", min: 1, max: 60 }),
11
+ state: new StringSchema({ title: "State", min: 0, max: 60 }),
11
12
  postcode: new StringSchema({ title: "Postcode", min: 1, max: 12, case: "upper" }),
12
13
  country: COUNTRY,
13
14
  };
@@ -1,4 +1,5 @@
1
1
  import type { AnyCaller } from "../util/function.js";
2
+ import type { AbsolutePath } from "../util/index.js";
2
3
  import { type PossibleURIParams, type URIParams, type URIScheme } from "../util/uri.js";
3
4
  import { type PossibleURL, type URL, type URLString } from "../util/url.js";
4
5
  import { BusyStore } from "./BusyStore.js";
@@ -17,7 +18,7 @@ export declare class URLStore extends BusyStore<URL, PossibleURL> {
17
18
  get hostname(): string;
18
19
  get host(): string;
19
20
  get port(): string;
20
- get pathname(): string;
21
+ get pathname(): AbsolutePath;
21
22
  /** Get the URL params as a string. */
22
23
  get search(): string;
23
24
  /** Get the URL params as a dictionary. */