@maptiler/client 1.7.0 → 1.8.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.
Files changed (38) hide show
  1. package/.github/pull_request_template.md +11 -0
  2. package/.github/workflows/format-lint.yml +24 -0
  3. package/CHANGELOG.md +25 -0
  4. package/dist/maptiler-client.cjs +388 -306
  5. package/dist/maptiler-client.cjs.map +1 -1
  6. package/dist/maptiler-client.d.ts +270 -100
  7. package/dist/maptiler-client.min.mjs +1 -1
  8. package/dist/maptiler-client.mjs +380 -294
  9. package/dist/maptiler-client.mjs.map +1 -1
  10. package/package.json +7 -5
  11. package/readme.md +133 -1
  12. package/rollup.config.js +3 -3
  13. package/dist/maptiler-client.umd.js +0 -1541
  14. package/dist/maptiler-client.umd.js.map +0 -1
  15. package/dist/maptiler-client.umd.min.js +0 -1
  16. package/examples/test-browser-es.html +0 -103
  17. package/examples/test-browser-umd.html +0 -90
  18. package/examples/test-node.js +0 -52
  19. package/src/callFetch.ts +0 -18
  20. package/src/config.ts +0 -68
  21. package/src/defaults.ts +0 -11
  22. package/src/demProfiler/getElevation.ts +0 -46
  23. package/src/demProfiler/index.ts +0 -240
  24. package/src/demProfiler/tileCover.ts +0 -96
  25. package/src/geometry/area.ts +0 -96
  26. package/src/geometry/distance.ts +0 -45
  27. package/src/geometry/index.ts +0 -3
  28. package/src/geometry/util.ts +0 -34
  29. package/src/index.ts +0 -114
  30. package/src/language.ts +0 -87
  31. package/src/mapstyle.ts +0 -968
  32. package/src/services/ServiceError.ts +0 -13
  33. package/src/services/coordinates.ts +0 -263
  34. package/src/services/data.ts +0 -63
  35. package/src/services/geocoding.ts +0 -461
  36. package/src/services/geolocation.ts +0 -139
  37. package/src/services/simplify.ts +0 -87
  38. package/src/services/staticMaps.ts +0 -463
@@ -0,0 +1,11 @@
1
+ ## Objective
2
+ What is the goal?
3
+
4
+ ## Description
5
+ What changed, how and why?
6
+
7
+ ## Acceptance
8
+ How were changes tested?
9
+
10
+ ## Checklist
11
+ - [ ] I have added relevant info to the CHANGELOG.md
@@ -0,0 +1,24 @@
1
+ name: Format and Lint
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ format-and-lint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Check out Git repository
10
+ uses: actions/checkout@v3
11
+
12
+ - name: Set up Node.js
13
+ uses: actions/setup-node@v3
14
+ with:
15
+ node-version: 18
16
+
17
+ - name: Install Node.js dependencies
18
+ run: npm ci
19
+
20
+ - name: Formatting with Prettier
21
+ run: npm run format
22
+
23
+ - name: Linting with ESLint
24
+ run: npm run lint
package/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
1
+ # MapTiler Client Changelog
2
+
3
+ ## DEVEL
4
+ ### New Features
5
+ ### Bug Fixes
6
+ ### Others
7
+
8
+ ## 1.8.0
9
+ ### New Features
10
+ - Rework of the elevation API to be improve developper experience (new module `elevation`)
11
+ - Expoing some geo math with the new `math` module
12
+ - synchronized geocoding types with current geocoding API
13
+ - added `excludeTypes` option to geocoding API
14
+
15
+ ## 1.7.0
16
+ ### New Features
17
+ - DEM elevation API (https://github.com/maptiler/maptiler-client-js/pull/24)
18
+
19
+ ### Bug Fixes
20
+ - `geocoding.byId` can now be used with the apiKey (https://github.com/maptiler/maptiler-client-js/pull/27)
21
+ - the Typescript types are now properly exported (https://github.com/maptiler/maptiler-client-js/pull/25)
22
+
23
+ ### Others
24
+ - the Typescript `moduleResolution` is now `"Bundler"` (used to be `"Node"`) (https://github.com/maptiler/maptiler-client-js/pull/28)
25
+ - updated some dev-dependencies (https://github.com/maptiler/maptiler-client-js/pull/28)