@squawk/fixes 0.2.5 → 0.3.0

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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +5 -1
package/README.md CHANGED
@@ -38,6 +38,20 @@ import { createFixResolver } from '@squawk/fixes';
38
38
  const resolver = createFixResolver({ data: myFixes });
39
39
  ```
40
40
 
41
+ ## Browser / SPA usage
42
+
43
+ The resolver factory has no Node-specific imports and ships an explicit `/browser` subpath for SPAs and edge runtimes. Pair it with `@squawk/fix-data/browser`:
44
+
45
+ ```typescript
46
+ import { loadUsBundledFixes } from '@squawk/fix-data/browser';
47
+ import { createFixResolver } from '@squawk/fixes/browser';
48
+
49
+ const dataset = await loadUsBundledFixes();
50
+ const resolver = createFixResolver({ data: dataset.records });
51
+ ```
52
+
53
+ The `/browser` entry is identical to the main entry; the separate subpath exists so browser support is an explicit, `publint`-verified part of the public API surface.
54
+
41
55
  ## API
42
56
 
43
57
  ### `createFixResolver(options)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squawk/fixes",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Fix/waypoint queries by identifier, location, or name search",
6
6
  "author": "Neil Cochran",
@@ -21,6 +21,10 @@
21
21
  ".": {
22
22
  "types": "./dist/index.d.ts",
23
23
  "import": "./dist/index.js"
24
+ },
25
+ "./browser": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
24
28
  }
25
29
  },
26
30
  "files": [