@versatiles/svg-renderer 0.3.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versatiles/svg-renderer",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Renders vector maps as SVG.",
5
5
  "keywords": [
6
6
  "svg",
@@ -32,6 +32,7 @@
32
32
  }
33
33
  },
34
34
  "./maplibre": {
35
+ "script": "./dist/maplibre.umd.js",
35
36
  "import": {
36
37
  "types": "./dist/maplibre.d.ts",
37
38
  "default": "./dist/maplibre.js"
@@ -39,8 +40,7 @@
39
40
  "require": {
40
41
  "types": "./dist/maplibre.d.ts",
41
42
  "default": "./dist/maplibre.cjs"
42
- },
43
- "script": "./dist/maplibre.umd.js"
43
+ }
44
44
  }
45
45
  },
46
46
  "files": [
@@ -48,22 +48,25 @@
48
48
  ],
49
49
  "scripts": {
50
50
  "build": "rm -rf dist && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript && rm -rf dist/types",
51
- "build-analyze": "npm run build && node scripts/analyze-bundle.mjs",
52
- "check": "npm run format && npm run lint && npm run test && npm run build && npm run e2e:maplibre",
51
+ "build-analyze": "npm run build && tsx scripts/analyze-bundle.ts",
52
+ "check": "npm run format && npm run lint && npm run build && npm run test && npm run test:e2e",
53
53
  "demo": "tsx src/demo.ts",
54
54
  "dev": "tsx dev/serve.ts",
55
- "doc-graph": "vrt deps-graph | vrt doc-insert README.md '## Dependency Graph'",
56
- "e2e": "tsx e2e/run.ts",
57
- "e2e:maplibre": "tsx e2e/maplibre-control.ts",
55
+ "doc:graph": "vrt deps-graph | vrt doc-insert README.md '## Dependency Graph'",
56
+ "doc:typescript": "npx vrt doc-typescript -f html -o ./doc-typescript",
58
57
  "format": "prettier --write .",
59
58
  "lint": "eslint --color .",
60
- "prepack": "npm run doc-graph && npm run build",
59
+ "prepack": "npm run doc:graph && npm run build",
61
60
  "release": "npx vrt release-npm",
62
61
  "start": "tsx src/index.ts",
63
- "test-coverage": "vitest run --coverage",
62
+ "test:coverage": "vitest run --coverage",
63
+ "test:e2e:maplibre": "tsx e2e/maplibre-control.ts",
64
+ "test:e2e:screenshots": "tsx e2e/screenshots.ts",
65
+ "test:e2e": "vitest run --config vitest.e2e.config.ts && npm run test:e2e:maplibre && npm run test:e2e:screenshots",
64
66
  "test": "vitest run",
65
67
  "upgrade": "npm-check-updates -u -t minor; rm -f package-lock.json; rm -rf node_modules; npm i"
66
68
  },
69
+ "sideEffects": false,
67
70
  "type": "module",
68
71
  "author": "Michael Kreil <versatiles@michael-kreil.de>",
69
72
  "license": "MIT",
@@ -79,7 +82,7 @@
79
82
  }
80
83
  },
81
84
  "devDependencies": {
82
- "@eslint/js": "^9.39.2",
85
+ "@eslint/js": "^10.0.1",
83
86
  "@mapbox/vector-tile": "^2.0.4",
84
87
  "@maplibre/maplibre-gl-style-spec": "^24.4.1",
85
88
  "@rollup/plugin-node-resolve": "^16.0.3",
@@ -88,10 +91,10 @@
88
91
  "@types/node": "^25.2.3",
89
92
  "@types/pbf": "^3.0.5",
90
93
  "@types/pngjs": "^6.0.5",
91
- "@versatiles/release-tool": "^2.7.1",
94
+ "@versatiles/release-tool": "^2.7.2",
92
95
  "@versatiles/style": "^5.9.4",
93
96
  "@vitest/coverage-v8": "^4.0.18",
94
- "eslint": "^9.39.2",
97
+ "eslint": "^10.0.0",
95
98
  "geojson": "^0.5.0",
96
99
  "maplibre-gl": "^5.18.0",
97
100
  "npm-check-updates": "^19.3.2",
@@ -105,7 +108,7 @@
105
108
  "rollup-plugin-visualizer": "^6.0.5",
106
109
  "tsx": "^4.21.0",
107
110
  "typescript": "^5.9.3",
108
- "typescript-eslint": "^8.55.0",
111
+ "typescript-eslint": "^8.56.0",
109
112
  "vitest": "^4.0.18"
110
113
  }
111
114
  }