Migration Guide
NavCore SDK 1.x (1.0.12) → 2.x (2.0.0 / 2.1.0)
This guide documents only the verified breaking changes and updates between 1.0.12 (v1.0.12) and 2.0.0 / 2.1.0.
1. License Change (MIT → SEE LICENSE IN LICENSE)
- Breaking (License): starting in 2.0.0, NavCore packages transition from the MIT license (used in 1.x) to SEE LICENSE IN LICENSE (NavCore SDK Commercial License Agreement — the Core tier remains free for development and production under LICENSE §2, and Pro modules require a commercial Suite license per application).
- Already-published 1.x versions: 1.x versions already published on npm (<2.0.0) remain under the MIT license.
2. Suite v2 License & Mandatory applicationId
In 2.0.0, the commercial license format moves to the v: 2 contract with a new ECDSA P-256 public key and mandatory binding to the application identifier (applicationId / bid).
- v1 license keys are no longer valid in 2.x. If you hold a v1 key, contact support (contact@udereva.be or contact page) to obtain a v2 key.
- Development mode (isDev: true) in 2.1.0: isDev: true is ignored in production (NODE_ENV === 'production'), where a signed v2 key and applicationId are required for Pro modules.
Before (1.0.12)
Before (1.0.12)
import { NavCore } from '@ingissa/navcore-core';
const engine = new NavCore({
licenseKey: process.env.NAVCORE_LICENSE_KEY,
});After (2.0.0 / 2.1.0)
After (2.0.0 / 2.1.0)
import { NavCore } from '@ingissa/navcore-core';
const engine = new NavCore({
licenseKey: process.env.NAVCORE_LICENSE_KEY,
applicationId: 'com.example.myapp', // required for v2 licenses
});3. LicenseManager — New applicationId Parameter
The LicenseManager constructor now accepts applicationId?: string as its 3rd argument (required to validate a v: 2 key).
Before (1.0.12)
Before (1.0.12)
import { LicenseManager } from '@ingissa/navcore-core/core';
const manager = new LicenseManager(process.env.NAVCORE_LICENSE_KEY, false);After (2.0.0 / 2.1.0)
After (2.0.0 / 2.1.0)
import { LicenseManager } from '@ingissa/navcore-core/core';
const manager = new LicenseManager(
process.env.NAVCORE_LICENSE_KEY,
false,
'com.example.myapp',
);4. OffRouteFSM — Explicit Timestamp (gps.timestamp)
In 2.0.0, OffRouteFSM.dispatch(event, nowMs) and OffRouteFSM.isDeviationConfirmed(nowMs) require an explicit GPS timestamp (in milliseconds) to guarantee deterministic off-route confirmation.
Before (1.0.12)
Before (1.0.12)
import { OffRouteFSM } from '@ingissa/navcore-core/pro';
const fsm = new OffRouteFSM();
fsm.dispatch({ type: 'DEVIATION_SUSPECTED', deviationSegmentIdx: 3 });
if (fsm.isDeviationConfirmed()) {
fsm.dispatch({ type: 'DEVIATION_CONFIRMED', deviationSegmentIdx: 3 });
}After (2.0.0 / 2.1.0)
After (2.0.0 / 2.1.0)
import { OffRouteFSM } from '@ingissa/navcore-core/pro';
const fsm = new OffRouteFSM();
const nowMs = Date.now();
fsm.dispatch({ type: 'DEVIATION_SUSPECTED', deviationSegmentIdx: 3 }, nowMs);
if (fsm.isDeviationConfirmed(nowMs)) {
fsm.dispatch({ type: 'DEVIATION_CONFIRMED', deviationSegmentIdx: 3 }, nowMs);
}5. Internal peerDependencies and New Packages
- All adapters (mapbox, react-native, simulator, headless, maplibre, leaflet, google-maps) now require @ingissa/navcore-core ^2.0.0 (or ^2.1.0).
- The maplibre, leaflet, and google-maps adapters declare their respective peer dependencies: maplibre-gl, leaflet, and @types/google.maps.