@elastic/ems-client 8.1.0 → 8.2.0

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/.backportrc.json CHANGED
@@ -1,5 +1,26 @@
1
1
  {
2
2
  "upstream": "elastic/ems-client",
3
- "branches": [{ "name": "7.x", "checked": true }, "7.2", "7.6", "7.7", "7.8", "7.9"],
4
- "labels": ["backport"]
5
- }
3
+ "branches": [
4
+ {
5
+ "name": "8.1",
6
+ "checked": true
7
+ },
8
+ "8.0",
9
+ "7.17",
10
+ "7.16",
11
+ "7.16",
12
+ "7.15",
13
+ "7.14",
14
+ "7.12",
15
+ "7.11",
16
+ "7.10",
17
+ "7.9",
18
+ "7.8",
19
+ "7.7",
20
+ "7.6",
21
+ "7.2"
22
+ ],
23
+ "labels": [
24
+ "backport"
25
+ ]
26
+ }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@ 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
+
7
+ ## [8.2.0] - 2022-03-24
8
+
9
+ ### Changed
10
+ - Default EMS version is 8.2
11
+ - Removed getOrigin method #91
12
+
6
13
  ## [8.1.0] - 2021-11-09
7
14
 
8
15
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/ems-client",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
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",
package/src/ems_client.ts CHANGED
@@ -16,7 +16,7 @@ import { toAbsoluteUrl } from './utils';
16
16
  import { ParsedUrlQueryInput } from 'querystring';
17
17
  import LRUCache from 'lru-cache';
18
18
 
19
- const DEFAULT_EMS_VERSION = '8.1';
19
+ const DEFAULT_EMS_VERSION = '8.2';
20
20
 
21
21
  type URLMeaningfulParts = {
22
22
  auth?: string | null;
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import { EMSClient, BaseEmsServiceConfig } from './ems_client';
9
- import { ORIGIN } from './origin';
10
9
  import { toAbsoluteUrl } from './utils';
11
10
 
12
11
  export interface IEmsService {
@@ -15,7 +14,6 @@ export interface IEmsService {
15
14
  getDisplayName(): string;
16
15
  getId(): string;
17
16
  hasId(id: string): boolean;
18
- getOrigin(): string;
19
17
  getApiUrl(): string;
20
18
  }
21
19
 
@@ -50,10 +48,6 @@ export abstract class AbstractEmsService implements IEmsService {
50
48
  return attributions.join('|');
51
49
  }
52
50
 
53
- getOrigin(): string {
54
- return ORIGIN.EMS;
55
- }
56
-
57
51
  /**
58
52
  * Checks if url is absolute. If not, prepend the basePath.
59
53
  */
package/src/index.ts CHANGED
@@ -6,6 +6,5 @@
6
6
  */
7
7
 
8
8
  export { EMSClient, FileLayerField } from './ems_client';
9
- export { ORIGIN } from './origin';
10
9
  export { FileLayer } from './file_layer';
11
10
  export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';
@@ -8,7 +8,6 @@ export interface IEmsService {
8
8
  getDisplayName(): string;
9
9
  getId(): string;
10
10
  hasId(id: string): boolean;
11
- getOrigin(): string;
12
11
  getApiUrl(): string;
13
12
  }
14
13
  export declare abstract class AbstractEmsService implements IEmsService {
@@ -21,7 +20,6 @@ export declare abstract class AbstractEmsService implements IEmsService {
21
20
  label: string;
22
21
  }[];
23
22
  getMarkdownAttribution(): string;
24
- getOrigin(): string;
25
23
  /**
26
24
  * Checks if url is absolute. If not, prepend the basePath.
27
25
  */
package/target/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export { EMSClient, FileLayerField } from './ems_client';
2
- export { ORIGIN } from './origin';
3
2
  export { FileLayer } from './file_layer';
4
3
  export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
23
23
 
24
24
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
25
 
26
- const DEFAULT_EMS_VERSION = '8.1';
26
+ const DEFAULT_EMS_VERSION = '8.2';
27
27
 
28
28
  /**
29
29
  * plugins cannot have upstream dependencies on core/*-kibana.
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AbstractEmsService = void 0;
7
7
 
8
- var _origin = require("./origin");
9
-
10
8
  var _utils = require("./utils");
11
9
 
12
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -56,10 +54,6 @@ class AbstractEmsService {
56
54
 
57
55
  return attributions.join('|');
58
56
  }
59
-
60
- getOrigin() {
61
- return _origin.ORIGIN.EMS;
62
- }
63
57
  /**
64
58
  * Checks if url is absolute. If not, prepend the basePath.
65
59
  */
@@ -33,12 +33,6 @@ Object.defineProperty(exports, "FileLayerField", {
33
33
  return _ems_client.FileLayerField;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "ORIGIN", {
37
- enumerable: true,
38
- get: function () {
39
- return _origin.ORIGIN;
40
- }
41
- });
42
36
  Object.defineProperty(exports, "TMSService", {
43
37
  enumerable: true,
44
38
  get: function () {
@@ -48,8 +42,6 @@ Object.defineProperty(exports, "TMSService", {
48
42
 
49
43
  var _ems_client = require("./ems_client");
50
44
 
51
- var _origin = require("./origin");
52
-
53
45
  var _file_layer = require("./file_layer");
54
46
 
55
47
  var _tms_service = require("./tms_service");
@@ -23,7 +23,7 @@ import semver from 'semver';
23
23
  import { format as formatUrl, parse as parseUrl } from 'url';
24
24
  import { toAbsoluteUrl } from './utils';
25
25
  import LRUCache from 'lru-cache';
26
- var DEFAULT_EMS_VERSION = '8.1';
26
+ var DEFAULT_EMS_VERSION = '8.2';
27
27
 
28
28
  /**
29
29
  * plugins cannot have upstream dependencies on core/*-kibana.
@@ -12,7 +12,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12
12
  * 2.0; you may not use this file except in compliance with the Elastic License
13
13
  * 2.0.
14
14
  */
15
- import { ORIGIN } from './origin';
16
15
  import { toAbsoluteUrl } from './utils';
17
16
  export var AbstractEmsService = /*#__PURE__*/function () {
18
17
  function AbstractEmsService(config, emsClient, proxyPath) {
@@ -70,11 +69,6 @@ export var AbstractEmsService = /*#__PURE__*/function () {
70
69
 
71
70
  return attributions.join('|');
72
71
  }
73
- }, {
74
- key: "getOrigin",
75
- value: function getOrigin() {
76
- return ORIGIN.EMS;
77
- }
78
72
  /**
79
73
  * Checks if url is absolute. If not, prepend the basePath.
80
74
  */
@@ -5,6 +5,5 @@
5
5
  * 2.0.
6
6
  */
7
7
  export { EMSClient, FileLayerField } from './ems_client';
8
- export { ORIGIN } from './origin';
9
8
  export { FileLayer } from './file_layer';
10
9
  export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';
package/src/origin.ts DELETED
@@ -1,11 +0,0 @@
1
- /*
2
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
- * or more contributor license agreements. Licensed under the Elastic License
4
- * 2.0; you may not use this file except in compliance with the Elastic License
5
- * 2.0.
6
- */
7
-
8
- export const ORIGIN = {
9
- EMS: 'elastic_maps_service',
10
- KIBANA_YML: 'self_hosted',
11
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ORIGIN = void 0;
7
-
8
- /*
9
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
- * or more contributor license agreements. Licensed under the Elastic License
11
- * 2.0; you may not use this file except in compliance with the Elastic License
12
- * 2.0.
13
- */
14
- const ORIGIN = {
15
- EMS: 'elastic_maps_service',
16
- KIBANA_YML: 'self_hosted'
17
- };
18
- exports.ORIGIN = ORIGIN;
@@ -1,4 +0,0 @@
1
- export declare const ORIGIN: {
2
- EMS: string;
3
- KIBANA_YML: string;
4
- };
@@ -1,10 +0,0 @@
1
- /*
2
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
- * or more contributor license agreements. Licensed under the Elastic License
4
- * 2.0; you may not use this file except in compliance with the Elastic License
5
- * 2.0.
6
- */
7
- export var ORIGIN = {
8
- EMS: 'elastic_maps_service',
9
- KIBANA_YML: 'self_hosted'
10
- };