Bilawal Sidhu and Bilawal Sidhu
ce671ce500
fix(data): load bundled region packs in the browser; bound region lookups ( #743 )
...
The Natural Earth and neighborhood packs were loaded with a JSON-attributed
import(). The Vite dev server answers that request with a JavaScript module,
which the browser rejects, so every analyst region scope failed and fell
through to a geocode lookup that could take 12-28 s.
- src/data/bundledJson.js fetches the pack from a new URL(..., import.meta.url)
asset in the browser; under Node the caller's attributed import runs.
- resolveRegionRingForQuery caps the geocode + admin-boundary rung at 3 s and
returns { error: 'region-timeout' }; the lookup keeps running and fills the
cache. The analyst query reports it as code 'region-timeout'. The Nepal
locator opts out of the budget.
- Unit tests for the loader, the timeout and the analyst error; the behavior
harness checks the Gulf of Mexico scope and retries Texas on region-timeout.
Co-authored-by: Bilawal Sidhu <[email protected] >
2026-09-24 01:52:41 -05:00
..
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-09-15 10:15:12 -07:00
2026-09-23 16:00:53 -05:00
2026-09-10 23:01:51 -07:00
2026-09-14 19:45:52 -05:00
2026-09-14 07:35:38 -07:00
2026-08-24 17:02:16 -05:00
2026-09-15 07:26:32 -07:00
2026-09-24 01:52:41 -05:00
2026-09-15 07:26:32 -07:00
2026-09-11 15:08:23 -07:00
2026-09-14 21:12:01 -07:00
2026-09-14 07:35:38 -07:00
2026-09-24 01:52:41 -05:00
2026-09-11 15:08:23 -07:00
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-09-14 19:34:23 -05:00
2026-09-13 21:54:29 -05:00
2026-09-14 07:35:38 -07:00
2026-09-11 17:03:35 -07:00
2026-09-10 23:08:26 -07:00
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-09-13 01:23:55 -07:00
2026-09-13 21:48:33 -05:00
2026-09-11 14:50:57 -07:00
2026-09-23 20:31:56 -07:00
2026-09-14 20:09:41 -05:00
2026-09-15 16:53:26 -07:00
2026-09-15 19:16:49 -07:00
2026-09-15 17:59:53 -07:00
2026-09-15 20:15:32 -07:00
2026-09-15 15:41:42 -07:00
2026-09-14 19:59:26 -05:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-13 12:48:26 -07:00
2026-09-12 18:45:30 -07:00
2026-09-11 14:50:57 -07:00
2026-09-11 14:54:30 -07:00
2026-09-10 23:08:26 -07:00
2026-09-13 09:54:55 -07:00
2026-08-24 17:02:16 -05:00
2026-08-31 17:49:45 -05:00
2026-09-10 23:08:26 -07:00
2026-08-24 17:02:16 -05:00
2026-08-31 17:49:45 -05:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-11 08:59:32 -07:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-22 17:45:39 -05:00
2026-09-13 05:43:05 -07:00
2026-09-12 22:26:29 -07:00
2026-09-14 15:43:27 -07:00
2026-09-16 12:14:15 +05:30
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-09-23 19:51:56 -05:00
2026-09-22 20:34:11 -05:00
2026-09-15 20:15:32 -07:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-13 14:47:26 -07:00
2026-09-10 23:08:26 -07:00
2026-09-15 08:40:58 -07:00
2026-09-15 13:26:41 -05:00
2026-09-15 05:18:30 -05:00
2026-09-15 14:15:27 -05:00
2026-09-15 13:26:41 -05:00
2026-09-15 13:26:41 -05:00
2026-09-15 14:15:27 -05:00
2026-09-13 14:51:24 -07:00
2026-09-13 10:54:32 -07:00
2026-09-10 23:08:26 -07:00
2026-09-11 14:43:13 -07:00
2026-09-13 05:43:05 -07:00
2026-09-12 21:25:05 -07:00
2026-09-24 01:52:41 -05:00
2026-09-15 12:05:01 -07:00
2026-09-22 17:45:39 -05:00
2026-09-22 17:45:39 -05:00
2026-09-22 17:45:39 -05:00
2026-09-22 17:45:39 -05:00
2026-09-22 17:45:39 -05:00
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-09-20 16:43:16 -07:00
2026-08-24 17:02:16 -05:00
2026-09-22 17:45:39 -05:00
2026-09-13 14:10:38 -07:00