@maptiler/sdk 5.0.0-rc.4 → 5.0.0-rc.5

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.
@@ -7,7 +7,7 @@ export declare function getCdnWorkerUrl(): string;
7
7
  * so in the ES build (npm) the SDK falls back to the worker hosted on the MapTiler CDN.
8
8
  * A URL set beforehand, with `setWorkerUrl` or one of the bundler helpers
9
9
  * (e.g. `@maptiler/sdk/vite-worker`), always takes precedence.
10
- * The UMD build keeps MapLibre's default, which finds the worker next to the UMD bundle.
10
+ * The CDN builds (UMD and self-contained ES) keep MapLibre's default, which finds the worker next to the bundle.
11
11
  */
12
12
  export declare function setDefaultWorkerUrl(): void;
13
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/sdk",
3
- "version": "5.0.0-rc.4",
3
+ "version": "5.0.0-rc.5",
4
4
  "description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
5
5
  "author": "MapTiler",
6
6
  "module": "dist/maptiler-sdk.mjs",
@@ -68,13 +68,16 @@
68
68
  "lint:fix": "tsc --noEmit && eslint src --fix",
69
69
  "test:watch": "vitest watch -c vite.config-test.ts --dom",
70
70
  "test": "vitest run -c vite.config-test.ts --dom",
71
+ "demos:index": "node scripts/demos-index.mjs",
72
+ "demos:index:check": "node scripts/demos-index.mjs --check",
71
73
  "install:clean": "rm -rf build/ dist/ node_modules/ && npm ci",
72
74
  "dev": "npm run build-css && vite -c vite.config-dev.ts",
73
75
  "dev-umd": "npm run build-css && tsc && NODE_ENV=development vite build -w -c vite.config-umd.ts",
74
76
  "build-css": "mkdir -p dist build && node scripts/replace-path-with-content.js src/style/style_template.css dist/tmp_maptiler-sdk.css && cat node_modules/maplibre-gl/dist/maplibre-gl.css dist/tmp_maptiler-sdk.css > dist/maptiler-sdk.css && rm dist/tmp_maptiler-sdk.css && cp dist/maptiler-sdk.css build/maptiler-sdk.css",
75
- "build-umd": "tsc && NODE_ENV=production vite build -c vite.config-umd.ts",
76
- "build-es": "tsc && NODE_ENV=production vite build -c vite.config-es.ts",
77
- "build": "npm run build-es && npm run build-umd && npm run build-css",
77
+ "build-umd": "NODE_ENV=production vite build -c vite.config-umd.ts",
78
+ "build-es": "NODE_ENV=production vite build -c vite.config-es.ts",
79
+ "build-esm-cdn": "NODE_ENV=production vite build -c vite.config-esm-cdn.ts",
80
+ "build": "tsc && npm run build-es && npm run build-umd && npm run build-esm-cdn && npm run build-css",
78
81
  "make": "npm run build",
79
82
  "e2e:serve": "npm run build-css && tsc --project ./e2e && NODE_ENV=development vite -c vite.config-e2e.ts",
80
83
  "e2e:local": "npx playwright test --config=playwright.config.ts --ui",
@@ -90,7 +93,6 @@
90
93
  "devDependencies": {
91
94
  "@canvas/image-data": "^1.0.0",
92
95
  "@eslint/js": "^9.21.0",
93
- "@maptiler/3d": "^3.1.0",
94
96
  "@playwright/test": "^1.60.0",
95
97
  "@types/color-convert": "^2.0.4",
96
98
  "@types/color-name": "^2.0.0",
@@ -108,6 +110,7 @@
108
110
  "happy-dom": "^20.8.9",
109
111
  "husky": "^8.0.0",
110
112
  "jiti": "^2.4.2",
113
+ "lil-gui": "^0.21.0",
111
114
  "lint-staged": "^17.6.0",
112
115
  "prettier": "3.5.2",
113
116
  "stats.js": "^0.17.0",