build(deps): move wkt-parser to 1.6.0 and carry its WKT1-parameter patch forward

Merged
LO
21d ago
+81-16

Dependabot's grouped npm update has been failing since wkt-parser 1.6.0 shipped (two failures on 2026-11-09). The group bumps wkt-parser, which leaves patches/wkt-parser@1.5.6.patch in patchedDependencies with no package to apply to, so pnpm refuses (dependency_file_not_resolvable).

Change

  • apps/viewer pins wkt-parser at 1.6.0 (was 1.5.6).
  • The patch is regenerated against 1.6.0 as patches/wkt-parser@1.6.0.patch. Its content is unchanged; only the hunk offset moved by 5 lines.
  • New apps/viewer/src/lib/geo/wkt-parser-patch.test.ts checks that the patchedDependencies entry, the viewer's exact pin and the installed package all name the same version, and that the installed package maps WKT1/ESRI names inside WKT2. Reverting the bump fails the first check (the revert-oracle reports OBSERVED locally), and dropping the patch fails the second.
  • The lockfile changes only wkt-parser. proj4's ^1.5.5 range takes 1.6.0, so one patched copy serves both consumers.

Why the patch is still needed

1.6.0 still ignores WKT1/ESRI parameter names inside WKT2. I parsed the same PROJCRS with latitude_of_origin / central_meridian / scale_factor through each build:

long0lat0k0
unpatched 1.6.0undefinedundefinedundefined
patched 1.6.0 as installed (CJS and ESM)7.5100.9996

1.6.0's only upstream change: geographic and geodetic CRSs now get a datumCode from their own id.

Not run locally

The new test passes locally. The rest of the viewer's src/lib/geo tests need the WASM and workspace builds, which this checkout doesn't have, so CI runs them.