-
Notifications
You must be signed in to change notification settings - Fork 6
Comparing changes
Open a pull request
base repository: mapcode-foundation/mapcode-js
base: master
head repository: mapcode-foundation/mapcode-js
compare: ts-modularization
- 15 commits
- 43 files changed
- 2 contributors
Commits on May 29, 2026
-
Add design spec for TypeScript rewrite, modularization & CLI testing
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 57753de - Browse repository at this point
Copy the full SHA 57753deView commit details -
Add implementation plan for TypeScript modularization
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for fc70489 - Browse repository at this point
Copy the full SHA fc70489View commit details -
chore: scaffold TypeScript toolchain (tsconfig, vitest, package.json)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 6b44aa9 - Browse repository at this point
Copy the full SHA 6b44aa9View commit details -
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 438450a - Browse repository at this point
Copy the full SHA 438450aView commit details -
feat: port ndata.js to typed data module
Converts ndata.js (7 top-level arrays, ~8267 lines) to src/data/ndata.ts with `export const NAME: readonly number[]` declarations via sed transform. Adds ndata describe block to smoke test. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 38a1bf9 - Browse repository at this point
Copy the full SHA 38a1bf9View commit details -
feat: port ctrynams territory name tables to typed data modules
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for bf18129 - Browse repository at this point
Copy the full SHA bf18129View commit details -
Configuration menu - View commit details
-
Copy full SHA for 784e0da - Browse repository at this point
Copy the full SHA 784e0daView commit details -
feat: port mapcode.js engine to typed core module
Verbatim port of mapcode.js to src/core/engine.ts with mechanical transforms only (data imports, top-level const/let, public exports, parameter type annotations for noImplicitAny). Function bodies are logically identical to mapcode.js. Also relaxes no-var and no-unused-vars for src/core/** so the verbatim ES5 algorithm passes lint without reformatting. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 9fcbb7e - Browse repository at this point
Copy the full SHA 9fcbb7eView commit details -
feat: add typed public wrapper modules and index
Creates thin domain wrappers (encode, decode, territory, alphabet, geo) that forward engine calls with typed signatures, and replaces src/index.ts with a clean public surface. Also annotates getTerritoryFullname return as any in engine.ts to allow the typed wrapper to declare string return. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 8596e6f - Browse repository at this point
Copy the full SHA 8596e6fView commit details -
test: add known-value encode/decode smoke tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for ed18b77 - Browse repository at this point
Copy the full SHA ed18b77View commit details -
test: port full encode corpus to Vitest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 6bd1691 - Browse repository at this point
Copy the full SHA 6bd1691View commit details -
test: port full territory corpus to Vitest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for febe035 - Browse repository at this point
Copy the full SHA febe035View commit details -
build: add tsup dual ESM+CJS+dts build
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 1947d5b - Browse repository at this point
Copy the full SHA 1947d5bView commit details -
docs: add ESM example and README; remove legacy global-scope files
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 11098cb - Browse repository at this point
Copy the full SHA 11098cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58458fd - Browse repository at this point
Copy the full SHA 58458fdView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...ts-modularization