Skip to content

Version Compatibility

Browser Support

The Mapsted Maps JavaScript API supports all modern browsers that implement ES2020 and the postMessage API.

BrowserMinimum VersionNotes
Chrome90+Full support
Firefox90+Full support
Safari15+Full support (including iOS Safari)
Edge90+Full support (Chromium-based)
Samsung Internet14+Full support
Opera76+Full support

Not Supported

  • Internet Explorer (any version)
  • Opera Mini
  • Browsers without ES2020 support

Runtime Support

RuntimeMinimum VersionNotes
Node.js≥ 20For SSR/build tools only (API requires DOM for runtime)
Deno1.30+Untested but should work with DOM shim
Bun1.0+Untested but should work

TypeScript Support

TypeScriptCompatibility
5.0+Full support with strict mode
4.xMay work but not tested; discriminated overloads require 5.0+
3.xNot supported

API Distribution Formats

The shapes below match package.json exports exactly — copy-paste safe.

FormatFilepackage.json field(s)Use Case
ESMdist/index.mjsmodule, exports["."].import.defaultModern bundlers (Vite, Webpack 5, Rollup), import syntax
CJSdist/index.cjsmain, exports["."].require.defaultLegacy Node.js require()
IIFEdist/index.min.jsunpkg, jsdelivr, exports["./cdn"]CDN <script> tag
Types (ESM)dist/index.d.tstypes, exports["."].import.typesTypeScript IntelliSense for ESM consumers
Types (CJS)dist/index.d.ctsexports["."].require.typesTypeScript IntelliSense for CJS consumers

CDN Versioning

mapi.mapsted.com is the single production CDN origin and serves every version directly. The current release is 4.0.1 (date-based: 26 = 2026, 7 = July, 1 = release).

CDN URL pattern: https://mapi.mapsted.com/v{VERSION}/maps.js?id={PROPERTY_ID} — for example https://mapi.mapsted.com/v4.0.1/maps.js?id={PROPERTY_ID}.

Because mapi.mapsted.com keeps serving all versions, hardcoded legacy V3/V2 <script src> tags keep working with no change and no redirect — existing customers require no action.

VersionStatusLifecycleURL Pattern
4.0.1CurrentGAmapi.mapsted.com/v4.0.1/maps.js
v3.0.0Deprecated 2026-Q4 → maintenance-only 2027-Q2 → full V3 retire 2028-Q1Migration shim removed in the next major release (@mapsted/maps-js-api, target Q3 2028); the mapi.mapsted.com/v3.0.0/maps.js URL keeps responding throughout — hardcoded customer scripts never breakmapi.mapsted.com/v3.0.0/maps.js
v2.xEnd-of-lifeMigration support only — see V2 migrationmapi.mapsted.com/v2.x.x/maps.js

See also: Changelog | API Reference