@elastic/ems-client 8.8.0 → 8.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
+ ## [8.8.1] - 2026-10-29
7
+ ### Fixed
8
+ - Use `import type` for maplibre-gl, so the compiled output does not require maplibre-gl at runtime. Version 8.8.0 required it, and maplibre-gl 6 is ESM only, so Jest in Kibana cannot load it
9
+
6
10
  ## [8.8.0] - 2026-10-29
7
11
  ### Changed
8
12
  - Upgraded maplibre-gl from v5 to v6.4.1, the version Kibana upgrades to in elastic/kibana#301722 #1243
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/ems-client",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
4
4
  "description": "JavaScript client library for the Elastic Maps Service",
5
5
  "main": "target/node/index.js",
6
6
  "browser": "target/web/index.js",
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import _ from 'lodash';
9
- import {
9
+ import type {
10
10
  DataDrivenPropertyValueSpecification,
11
11
  FormattedSpecification,
12
12
  LayerSpecification,
package/src/utils.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import chroma, { ChromaStatic, Color } from 'chroma-js';
9
- import {
9
+ import type {
10
10
  ColorSpecification,
11
11
  DataDrivenPropertyValueSpecification,
12
12
  PropertyValueSpecification,
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.TMSService = void 0;
7
7
  var _lodash = _interopRequireDefault(require("lodash"));
8
- var _maplibreGl = require("maplibre-gl");
9
8
  var _ems_client = require("./ems_client");
10
9
  var _ems_service = require("./ems_service");
11
10
  var _utils = require("./utils");
@@ -7,7 +7,6 @@ exports.colorizeColor = colorizeColor;
7
7
  exports.desaturateColor = desaturateColor;
8
8
  exports.toAbsoluteUrl = toAbsoluteUrl;
9
9
  var _chromaJs = _interopRequireWildcard(require("chroma-js"));
10
- var _maplibreGl = require("maplibre-gl");
11
10
  var cache;
12
11
  function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
13
12
  /*
@@ -1,4 +1,4 @@
1
- import { DataDrivenPropertyValueSpecification, FormattedSpecification, LayerSpecification, StyleSpecification, VectorSourceSpecification } from 'maplibre-gl';
1
+ import type { DataDrivenPropertyValueSpecification, FormattedSpecification, LayerSpecification, StyleSpecification, VectorSourceSpecification } from 'maplibre-gl';
2
2
  import { EMSClient, TMSServiceConfig } from './ems_client';
3
3
  import { AbstractEmsService } from './ems_service';
4
4
  import { layerPaintProperty, blendMode, mbColorDefinition } from './utils';
package/target/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ChromaStatic } from 'chroma-js';
2
- import { ColorSpecification, DataDrivenPropertyValueSpecification, PropertyValueSpecification } from 'maplibre-gl';
2
+ import type { ColorSpecification, DataDrivenPropertyValueSpecification, PropertyValueSpecification } from 'maplibre-gl';
3
3
  /**
4
4
  * Resolves a target URL path relative to the host.
5
5
  * This is specifically useed by the Kibana proxy re-routing.
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import _ from 'lodash';
9
- import { DataDrivenPropertyValueSpecification, FormattedSpecification, LayerSpecification, StyleSpecification, VectorSourceSpecification } from 'maplibre-gl';
10
9
  import { EMSClient, EmsTmsFormat, TMSServiceConfig } from './ems_client';
11
10
  import { AbstractEmsService } from './ems_service';
12
11
  import { layerPaintProperty, colorizeColor, blendMode, mbColorDefinition } from './utils';
@@ -6,8 +6,6 @@
6
6
  */
7
7
 
8
8
  import chroma, { ChromaStatic, Color } from 'chroma-js';
9
- import { ColorSpecification, DataDrivenPropertyValueSpecification, PropertyValueSpecification } from 'maplibre-gl';
10
-
11
9
  /**
12
10
  * Resolves a target URL path relative to the host.
13
11
  * This is specifically useed by the Kibana proxy re-routing.