AMD:
require(["esri/kernel"], (esriNS) => { /* code goes here */ });
ESM:
import * as esriNS from "@arcgis/core/kernel.js";
Object:
esri/kernel
Since: ArcGIS Maps SDK for JavaScript 4.0
Utility for retrieving the current version of the API.
Property Overview
Name | Type | Summary | Object |
---|---|---|---|
Current full version of the ArcGIS Maps SDK for JavaScript. | kernel | ||
Current | kernel |
Property Details
-
fullVersion
fullVersion Stringstatic,readonly
Since: ArcGIS Maps SDK for JavaScript 4.27kernel since 4.0, fullVersion added at 4.27. -
Current full version of the ArcGIS Maps SDK for JavaScript. This is the same as
version
on CDN builds and is the same as the package version on NPM builds.require([ "esri/kernel" ], function(esriNS) { console.log(esriNS.fullVersion); // e.g. "4.31", "4.31.0" or "4.31.0-next.20240830" });
-
version
version Stringstatic,readonly
-
Current
major.minor
version of the ArcGIS Maps SDK for JavaScript.require([ "esri/kernel" ], function(esriNS) { console.log(esriNS.version); // e.g. "4.31" });