@elastic/ems-client 7.17.4 → 7.17.6

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,10 +1,17 @@
1
1
  {
2
2
  "repoOwner": "elastic",
3
- "repoName": "ems-file-service",
4
- "targetBranches": ["7.17"],
3
+ "repoName": "ems-client",
4
+ "targetBranchChoices": [
5
+ "master",
6
+ "7.17"
7
+ ],
8
+ "branchLabelMapping": {
9
+ "^v8.\\d+.\\d+$": "master",
10
+ "^v7.\\d+.\\d+$": "7.17"
11
+ },
5
12
  "targetPRLabels": ["backport"],
6
13
  "commitConflicts": true,
7
- "autoMerge": true,
14
+ "autoMerge": false,
8
15
  "autoMergeMethod": "squash",
9
16
  "fork": false
10
17
  }
@@ -1,5 +1,5 @@
1
1
  agents:
2
- image: "docker.elastic.co/ci-agent-images/ems/buildkite-agent-node20:0.5@sha256:01d63c1c1e9895e410a8b50c0eb0ce8e986c354085a11ed1d00355a12935ac5e"
2
+ image: "docker.elastic.co/ci-agent-images/ems/buildkite-agent-node22:0.5@sha256:b14dcc6455b0678a5f76108ddabbb5c9f1455c8fc4445b03e31e7dc0f12a025d"
3
3
  cpu: "2"
4
4
  memory: "2G"
5
5
 
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- lts/iron
1
+ lts/jod
package/CHANGELOG.md CHANGED
@@ -3,8 +3,15 @@ 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.17.4] - 2024-12-16
6
+ ## [7.17.6] - 2025-01-16
7
+ ## Changed
8
+ - Upgrade support for Node 22 #552
7
9
 
10
+ ## [7.17.5] - 2024-12-23
11
+ ## Changed
12
+ - Removed node-fetch #519
13
+
14
+ ## [7.17.4] - 2024-12-16
8
15
  ### Changed
9
16
  - Update dependencies (search PRs for `is:pr label:7.17.4,dependencies`)
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/ems-client",
3
- "version": "7.17.4",
3
+ "version": "7.17.6",
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",
@@ -39,7 +39,6 @@
39
39
  "@types/topojson-client": "3.1.5",
40
40
  "lodash": "4.17.21",
41
41
  "lru-cache": "4.1.5",
42
- "node-fetch": "2.7.0",
43
42
  "semver": "7.6.3",
44
43
  "topojson-client": "3.1.0"
45
44
  },
@@ -49,31 +48,30 @@
49
48
  "@babel/plugin-proposal-class-properties": "7.18.6",
50
49
  "@babel/preset-env": "7.26.0",
51
50
  "@babel/preset-typescript": "7.26.0",
52
- "@eslint/core": "0.9.1",
53
- "@eslint/js": "9.17.0",
51
+ "@eslint/core": "0.10.0",
52
+ "@eslint/js": "9.18.0",
54
53
  "@types/eslint__js": "8.42.3",
55
54
  "@types/jest": "29.5.14",
56
- "@types/lodash": "4.17.13",
55
+ "@types/lodash": "4.17.14",
57
56
  "@types/lru-cache": "5.1.1",
58
- "@types/node": "20.17.10",
59
- "@types/node-fetch": "2.6.12",
57
+ "@types/node": "22.10.6",
60
58
  "@types/semver": "7.5.8",
61
59
  "@types/topojson-specification": "1.0.5",
62
- "@typescript-eslint/eslint-plugin": "8.18.1",
63
- "@typescript-eslint/parser": "8.18.1",
60
+ "@typescript-eslint/eslint-plugin": "8.20.0",
61
+ "@typescript-eslint/parser": "8.20.0",
64
62
  "babel-jest": "29.7.0",
65
- "eslint": "9.17.0",
66
- "eslint-config-prettier": "9.1.0",
67
- "eslint-plugin-prettier": "5.2.1",
63
+ "eslint": "9.18.0",
64
+ "eslint-config-prettier": "10.0.1",
65
+ "eslint-plugin-prettier": "5.2.2",
68
66
  "globals": "15.14.0",
69
67
  "husky": "9.1.7",
70
68
  "jest": "29.7.0",
71
69
  "prettier": "3.4.2",
72
70
  "ts-jest": "29.2.5",
73
- "typescript": "5.7.2",
74
- "typescript-eslint": "8.18.1"
71
+ "typescript": "5.7.3",
72
+ "typescript-eslint": "8.20.0"
75
73
  },
76
74
  "engines": {
77
- "node": ">=18 <=20"
75
+ "node": ">=18 <=22"
78
76
  }
79
77
  }
package/src/ems_client.ts CHANGED
@@ -9,13 +9,11 @@ import _ from 'lodash';
9
9
  import { TMSService } from './tms_service';
10
10
  import { EMSFormatType, FileLayer } from './file_layer';
11
11
  import { FeatureCollection } from 'geojson';
12
- import { Response } from 'node-fetch';
13
12
  import semver from 'semver';
14
13
  import { format as formatUrl, parse as parseUrl, UrlObject } from 'url';
15
14
  import { toAbsoluteUrl } from './utils';
16
15
  import { ParsedUrlQueryInput } from 'querystring';
17
16
  import LRUCache from 'lru-cache';
18
- import { RequestInfo } from 'node-fetch';
19
17
 
20
18
  const DEFAULT_EMS_VERSION = '7.17';
21
19
 
@@ -1,8 +1,6 @@
1
1
  import { TMSService } from './tms_service';
2
2
  import { EMSFormatType, FileLayer } from './file_layer';
3
3
  import { FeatureCollection } from 'geojson';
4
- import { Response } from 'node-fetch';
5
- import { RequestInfo } from 'node-fetch';
6
4
  type LocalizedStrings = {
7
5
  [key: string]: string;
8
6
  };
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import { EMSClient } from '../src';
9
- import fetch from 'node-fetch';
10
9
 
11
10
  import EMS_CATALOGUE from './ems_mocks/sample_manifest.json';
12
11
  import EMS_FILES from './ems_mocks/sample_files.json';