@mailwoman/resolver-wof-sqlite 7.2.0 → 7.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 (57) hide show
  1. package/address-point-interpolation.ts +207 -0
  2. package/address-point-schema.ts +107 -0
  3. package/address-point.ts +122 -0
  4. package/ancestry-backfill.ts +205 -0
  5. package/ancestry.ts +70 -0
  6. package/build-candidate.ts +351 -0
  7. package/build-slim.ts +394 -0
  8. package/candidate-fts.ts +43 -0
  9. package/candidate-lookup.ts +382 -0
  10. package/candidate-schema.ts +166 -0
  11. package/coincident-roles.ts +240 -0
  12. package/convention.ts +152 -0
  13. package/fst-autocomplete.ts +187 -0
  14. package/fst-builder.ts +291 -0
  15. package/fst-deserialize-web.ts +164 -0
  16. package/fst-matcher.ts +150 -0
  17. package/fst-serialize.ts +311 -0
  18. package/fst-types.ts +78 -0
  19. package/fts.ts +318 -0
  20. package/geo.ts +140 -0
  21. package/geonames-aliases.ts +317 -0
  22. package/geonames-postal.ts +150 -0
  23. package/index.ts +117 -0
  24. package/interpolation.ts +232 -0
  25. package/lookup.ts +1498 -0
  26. package/out/poi-lookup.d.ts +14 -2
  27. package/out/poi-lookup.d.ts.map +1 -1
  28. package/out/poi-lookup.js +55 -21
  29. package/out/poi-lookup.js.map +1 -1
  30. package/out/poi-schema.d.ts +9 -0
  31. package/out/poi-schema.d.ts.map +1 -1
  32. package/out/poi-schema.js +16 -0
  33. package/out/poi-schema.js.map +1 -1
  34. package/out/reverse.d.ts +8 -1
  35. package/out/reverse.d.ts.map +1 -1
  36. package/out/reverse.js +10 -1
  37. package/out/reverse.js.map +1 -1
  38. package/package.json +168 -82
  39. package/poi-lookup.ts +375 -0
  40. package/poi-schema.ts +164 -0
  41. package/postal-city-alias-lookup.ts +89 -0
  42. package/postal-city-alias-schema.ts +75 -0
  43. package/postal-city-candidate-schema.ts +81 -0
  44. package/postcode-point-lookup.ts +64 -0
  45. package/reverse.ts +439 -0
  46. package/schema.ts +176 -0
  47. package/sharding.ts +235 -0
  48. package/sqlite-convention-source.ts +61 -0
  49. package/sqlite-utils.ts +25 -0
  50. package/street-centroid-schema.ts +124 -0
  51. package/street-centroid.ts +124 -0
  52. package/street-morphology-fst-builder.ts +230 -0
  53. package/street-name-lookup.ts +101 -0
  54. package/street-normalize.ts +302 -0
  55. package/street-segment-schema.ts +104 -0
  56. package/types.ts +164 -0
  57. package/unified-schema.ts +171 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/resolver-wof-sqlite",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "Who's On First SQLite resolver — FTS5-backed PlaceLookup that resolves text queries to WOF place IDs + coordinates. Optional dependency for callers who want geocoding.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -13,145 +13,231 @@
13
13
  "out/**/*.js.map",
14
14
  "out/**/*.d.ts",
15
15
  "out/**/*.d.ts.map",
16
- "README.md"
16
+ "README.md",
17
+ "*.ts",
18
+ "*.tsx",
19
+ "**/*.ts",
20
+ "**/*.tsx",
21
+ "!*.test.ts",
22
+ "!*.test.tsx",
23
+ "!**/*.test.ts",
24
+ "!**/*.test.tsx"
17
25
  ],
18
26
  "type": "module",
19
27
  "exports": {
20
28
  "./package.json": "./package.json",
21
29
  ".": {
22
- "node": "./index.ts",
23
- "default": "./out/index.js",
24
- "types": "./out/index.d.ts"
30
+ "types": "./out/index.d.ts",
31
+ "default": "./out/index.js"
25
32
  },
26
33
  "./fts": {
27
- "node": "./fts.ts",
28
- "default": "./out/fts.js",
29
- "types": "./out/fts.d.ts"
34
+ "types": "./out/fts.d.ts",
35
+ "default": "./out/fts.js"
30
36
  },
31
37
  "./build-slim": {
32
- "node": "./build-slim.ts",
33
- "default": "./out/build-slim.js",
34
- "types": "./out/build-slim.d.ts"
38
+ "types": "./out/build-slim.d.ts",
39
+ "default": "./out/build-slim.js"
35
40
  },
36
41
  "./fst-builder": {
37
- "node": "./fst-builder.ts",
38
- "default": "./out/fst-builder.js",
39
- "types": "./out/fst-builder.d.ts"
42
+ "types": "./out/fst-builder.d.ts",
43
+ "default": "./out/fst-builder.js"
40
44
  },
41
45
  "./street-morphology-fst-builder": {
42
- "node": "./street-morphology-fst-builder.ts",
43
- "default": "./out/street-morphology-fst-builder.js",
44
- "types": "./out/street-morphology-fst-builder.d.ts"
46
+ "types": "./out/street-morphology-fst-builder.d.ts",
47
+ "default": "./out/street-morphology-fst-builder.js"
45
48
  },
46
49
  "./fst-matcher": {
47
- "node": "./fst-matcher.ts",
48
- "default": "./out/fst-matcher.js",
49
- "types": "./out/fst-matcher.d.ts"
50
+ "types": "./out/fst-matcher.d.ts",
51
+ "default": "./out/fst-matcher.js"
50
52
  },
51
53
  "./fst-serialize": {
52
- "node": "./fst-serialize.ts",
53
- "default": "./out/fst-serialize.js",
54
- "types": "./out/fst-serialize.d.ts"
54
+ "types": "./out/fst-serialize.d.ts",
55
+ "default": "./out/fst-serialize.js"
55
56
  },
56
57
  "./fst-autocomplete": {
57
- "node": "./fst-autocomplete.ts",
58
- "default": "./out/fst-autocomplete.js",
59
- "types": "./out/fst-autocomplete.d.ts"
58
+ "types": "./out/fst-autocomplete.d.ts",
59
+ "default": "./out/fst-autocomplete.js"
60
60
  },
61
61
  "./fst-types": {
62
- "node": "./fst-types.ts",
63
- "default": "./out/fst-types.js",
64
- "types": "./out/fst-types.d.ts"
62
+ "types": "./out/fst-types.d.ts",
63
+ "default": "./out/fst-types.js"
65
64
  },
66
65
  "./fst-deserialize-web": {
67
- "node": "./fst-deserialize-web.ts",
68
- "default": "./out/fst-deserialize-web.js",
69
- "types": "./out/fst-deserialize-web.d.ts"
66
+ "types": "./out/fst-deserialize-web.d.ts",
67
+ "default": "./out/fst-deserialize-web.js"
70
68
  },
71
69
  "./unified-schema": {
72
- "node": "./unified-schema.ts",
73
- "default": "./out/unified-schema.js",
74
- "types": "./out/unified-schema.d.ts"
70
+ "types": "./out/unified-schema.d.ts",
71
+ "default": "./out/unified-schema.js"
75
72
  },
76
73
  "./ancestry-backfill": {
77
- "node": "./ancestry-backfill.ts",
78
- "default": "./out/ancestry-backfill.js",
79
- "types": "./out/ancestry-backfill.d.ts"
74
+ "types": "./out/ancestry-backfill.d.ts",
75
+ "default": "./out/ancestry-backfill.js"
80
76
  },
81
77
  "./coincident-roles": {
82
- "node": "./coincident-roles.ts",
83
- "default": "./out/coincident-roles.js",
84
- "types": "./out/coincident-roles.d.ts"
78
+ "types": "./out/coincident-roles.d.ts",
79
+ "default": "./out/coincident-roles.js"
85
80
  },
86
81
  "./geonames-aliases": {
87
- "node": "./geonames-aliases.ts",
88
- "default": "./out/geonames-aliases.js",
89
- "types": "./out/geonames-aliases.d.ts"
82
+ "types": "./out/geonames-aliases.d.ts",
83
+ "default": "./out/geonames-aliases.js"
90
84
  },
91
85
  "./geonames-postal": {
92
- "node": "./geonames-postal.ts",
93
- "default": "./out/geonames-postal.js",
94
- "types": "./out/geonames-postal.d.ts"
86
+ "types": "./out/geonames-postal.d.ts",
87
+ "default": "./out/geonames-postal.js"
95
88
  },
96
89
  "./geo": {
97
- "node": "./geo.ts",
98
- "default": "./out/geo.js",
99
- "types": "./out/geo.d.ts"
90
+ "types": "./out/geo.d.ts",
91
+ "default": "./out/geo.js"
100
92
  },
101
93
  "./street-normalize": {
102
- "node": "./street-normalize.ts",
103
- "default": "./out/street-normalize.js",
104
- "types": "./out/street-normalize.d.ts"
94
+ "types": "./out/street-normalize.d.ts",
95
+ "default": "./out/street-normalize.js"
105
96
  },
106
97
  "./build-candidate": {
107
- "node": "./build-candidate.ts",
108
- "default": "./out/build-candidate.js",
109
- "types": "./out/build-candidate.d.ts"
98
+ "types": "./out/build-candidate.d.ts",
99
+ "default": "./out/build-candidate.js"
110
100
  },
111
101
  "./candidate-schema": {
112
- "node": "./candidate-schema.ts",
113
- "default": "./out/candidate-schema.js",
114
- "types": "./out/candidate-schema.d.ts"
102
+ "types": "./out/candidate-schema.d.ts",
103
+ "default": "./out/candidate-schema.js"
115
104
  },
116
105
  "./postal-city-alias-schema": {
117
- "node": "./postal-city-alias-schema.ts",
118
- "default": "./out/postal-city-alias-schema.js",
119
- "types": "./out/postal-city-alias-schema.d.ts"
106
+ "types": "./out/postal-city-alias-schema.d.ts",
107
+ "default": "./out/postal-city-alias-schema.js"
120
108
  },
121
109
  "./address-point-schema": {
122
- "node": "./address-point-schema.ts",
123
- "default": "./out/address-point-schema.js",
124
- "types": "./out/address-point-schema.d.ts"
110
+ "types": "./out/address-point-schema.d.ts",
111
+ "default": "./out/address-point-schema.js"
125
112
  },
126
113
  "./street-centroid-schema": {
127
- "node": "./street-centroid-schema.ts",
128
- "default": "./out/street-centroid-schema.js",
129
- "types": "./out/street-centroid-schema.d.ts"
114
+ "types": "./out/street-centroid-schema.d.ts",
115
+ "default": "./out/street-centroid-schema.js"
130
116
  },
131
117
  "./street-segment-schema": {
132
- "node": "./street-segment-schema.ts",
133
- "default": "./out/street-segment-schema.js",
134
- "types": "./out/street-segment-schema.d.ts"
118
+ "types": "./out/street-segment-schema.d.ts",
119
+ "default": "./out/street-segment-schema.js"
135
120
  },
136
121
  "./poi-schema": {
137
- "node": "./poi-schema.ts",
138
- "default": "./out/poi-schema.js",
139
- "types": "./out/poi-schema.d.ts"
122
+ "types": "./out/poi-schema.d.ts",
123
+ "default": "./out/poi-schema.js"
140
124
  },
141
125
  "./poi-lookup": {
142
- "node": "./poi-lookup.ts",
143
- "default": "./out/poi-lookup.js",
144
- "types": "./out/poi-lookup.d.ts"
126
+ "types": "./out/poi-lookup.d.ts",
127
+ "default": "./out/poi-lookup.js"
145
128
  }
146
129
  },
147
130
  "publishConfig": {
148
- "access": "public"
131
+ "access": "public",
132
+ "exports": {
133
+ "./package.json": "./package.json",
134
+ ".": {
135
+ "types": "./out/index.d.ts",
136
+ "default": "./out/index.js"
137
+ },
138
+ "./fts": {
139
+ "types": "./out/fts.d.ts",
140
+ "default": "./out/fts.js"
141
+ },
142
+ "./build-slim": {
143
+ "types": "./out/build-slim.d.ts",
144
+ "default": "./out/build-slim.js"
145
+ },
146
+ "./fst-builder": {
147
+ "types": "./out/fst-builder.d.ts",
148
+ "default": "./out/fst-builder.js"
149
+ },
150
+ "./street-morphology-fst-builder": {
151
+ "types": "./out/street-morphology-fst-builder.d.ts",
152
+ "default": "./out/street-morphology-fst-builder.js"
153
+ },
154
+ "./fst-matcher": {
155
+ "types": "./out/fst-matcher.d.ts",
156
+ "default": "./out/fst-matcher.js"
157
+ },
158
+ "./fst-serialize": {
159
+ "types": "./out/fst-serialize.d.ts",
160
+ "default": "./out/fst-serialize.js"
161
+ },
162
+ "./fst-autocomplete": {
163
+ "types": "./out/fst-autocomplete.d.ts",
164
+ "default": "./out/fst-autocomplete.js"
165
+ },
166
+ "./fst-types": {
167
+ "types": "./out/fst-types.d.ts",
168
+ "default": "./out/fst-types.js"
169
+ },
170
+ "./fst-deserialize-web": {
171
+ "types": "./out/fst-deserialize-web.d.ts",
172
+ "default": "./out/fst-deserialize-web.js"
173
+ },
174
+ "./unified-schema": {
175
+ "types": "./out/unified-schema.d.ts",
176
+ "default": "./out/unified-schema.js"
177
+ },
178
+ "./ancestry-backfill": {
179
+ "types": "./out/ancestry-backfill.d.ts",
180
+ "default": "./out/ancestry-backfill.js"
181
+ },
182
+ "./coincident-roles": {
183
+ "types": "./out/coincident-roles.d.ts",
184
+ "default": "./out/coincident-roles.js"
185
+ },
186
+ "./geonames-aliases": {
187
+ "types": "./out/geonames-aliases.d.ts",
188
+ "default": "./out/geonames-aliases.js"
189
+ },
190
+ "./geonames-postal": {
191
+ "types": "./out/geonames-postal.d.ts",
192
+ "default": "./out/geonames-postal.js"
193
+ },
194
+ "./geo": {
195
+ "types": "./out/geo.d.ts",
196
+ "default": "./out/geo.js"
197
+ },
198
+ "./street-normalize": {
199
+ "types": "./out/street-normalize.d.ts",
200
+ "default": "./out/street-normalize.js"
201
+ },
202
+ "./build-candidate": {
203
+ "types": "./out/build-candidate.d.ts",
204
+ "default": "./out/build-candidate.js"
205
+ },
206
+ "./candidate-schema": {
207
+ "types": "./out/candidate-schema.d.ts",
208
+ "default": "./out/candidate-schema.js"
209
+ },
210
+ "./postal-city-alias-schema": {
211
+ "types": "./out/postal-city-alias-schema.d.ts",
212
+ "default": "./out/postal-city-alias-schema.js"
213
+ },
214
+ "./address-point-schema": {
215
+ "types": "./out/address-point-schema.d.ts",
216
+ "default": "./out/address-point-schema.js"
217
+ },
218
+ "./street-centroid-schema": {
219
+ "types": "./out/street-centroid-schema.d.ts",
220
+ "default": "./out/street-centroid-schema.js"
221
+ },
222
+ "./street-segment-schema": {
223
+ "types": "./out/street-segment-schema.d.ts",
224
+ "default": "./out/street-segment-schema.js"
225
+ },
226
+ "./poi-schema": {
227
+ "types": "./out/poi-schema.d.ts",
228
+ "default": "./out/poi-schema.js"
229
+ },
230
+ "./poi-lookup": {
231
+ "types": "./out/poi-lookup.d.ts",
232
+ "default": "./out/poi-lookup.js"
233
+ }
234
+ }
149
235
  },
150
236
  "dependencies": {
151
- "@mailwoman/codex": "7.2.0",
152
- "@mailwoman/core": "7.2.0",
153
- "@mailwoman/resolver": "7.2.0",
154
- "@mailwoman/spatial": "7.2.0",
237
+ "@mailwoman/codex": "7.3.0",
238
+ "@mailwoman/core": "7.3.0",
239
+ "@mailwoman/resolver": "7.3.0",
240
+ "@mailwoman/spatial": "7.3.0",
155
241
  "h3-js": "^4.5.0",
156
242
  "kysely": "^0.29.3"
157
243
  }