country-coder is an open source project. You can submit bug reports, help out, or learn more by visiting our project page on GitHub: https://github.com/rapideditor/country-coder
Please star our project on GitHub to show your support! ⭐️
Breaking changes, which may affect downstream projects, are marked with a
- Support Sark/CQ in CLDR 43, Unicode 16 (#137)
- Include 'types' in export map (#133)
- Bump dependency versions
- Switch country-coder to a scoped package under the rapideditor org:
@rapideditor/country-coder
⚠️ Note: projects that depend on country-coder may need to update their code
- Close seam along Swiss-German border (#61)
- Make Ireland less spiky (#oci-528)
- Bump dependency versions
- Avoid
for..in
over arrays (#59,#60) - Fix EU membership for France (#47,#55)
- Add GB-UKM for UK Mainland (#52)
- Remove "browser" from the export map (#45)
- Add an export map to
package.json
, fix file extensions again
- Use explicit file extensions for .cjs and .mjs exports (#44)
⚠️ Replace microbundle with esbuild for super fast build speed. Outputs are now:"source": "./src/country-coder.ts"
- TypeScript source file"types": "./dist/country-coder.d.ts"
- TypeScript definition file"main": "./dist/country-coder.cjs"
- CJS bundle, modern JavaScript, works withrequire()
"module": "./dist/country-coder.mjs"
- ESM bundle, modern JavaScript, works withimport
"browser": "./dist/country-coder.iife.js"
- IIFE bundle, modern JavaScript, works in browser<script>
tag- Note: v4.1.0 was broken for some uses because of an improper "exports" specification (#44)
⚠️ country-coder is marked as"type": "module"
now⚠️ Dropped support for old browsers like Internet Explorer on https://ideditor.codes- Use TypeScript / ts-jest for testing (#43)
- country-coder now publishes various builds in UMD, CJS, ES6 Module thanks to microbundle
- The UMD bundle works in the browser now too
- Added functions for working with ccTLD (country code top-level internet domain) (#12)
- Extract Crimea into its own feature out of European Russia (#15)
- Move Chukchi Peninsula from European Russia to Asian Russia (#31)
- Support bbox querying (#32)