@octostar/map-component 0.3.10 → 0.4.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/README.md CHANGED
@@ -57,7 +57,6 @@ pnpm build:lib
57
57
 
58
58
  This outputs:
59
59
  - `dist/index.mjs` - ES module
60
- - `dist/index.cjs` - CommonJS module
61
60
  - `dist/types/` - TypeScript declarations
62
61
  - `dist/styles.css` - Component styles
63
62
 
@@ -95,6 +94,12 @@ function App() {
95
94
  }
96
95
  ```
97
96
 
97
+ Host requirements:
98
+ - The package is ESM-only (`dist/index.mjs`); there is no CommonJS entry.
99
+ - maplibre-gl 6 needs WebGL2. A browser without it shows no map.
100
+ - maplibre's worker is inlined in this package and starts from a `blob:` URL, so a Content-Security-Policy needs `worker-src blob:`.
101
+ - Don't override or dedupe `maplibre-gl` in the host: the inlined worker must match the exact version this package pins, and a mismatch logs an error and breaks rendering. Take maplibre fixes by upgrading this package.
102
+
98
103
  ## Main Components
99
104
 
100
105
  | Component | Description |