dimfeld / svelte-maplibre

Svelte bindings for the MapLibre mapping library
https://svelte-maplibre.vercel.app
MIT License
349 stars 40 forks source link

Upgrade deck.gl dependency to 9.0 #187

Open dimfeld opened 3 months ago

dimfeld commented 3 months ago

deck.gl 8.9 and above have ESM/CJS interop issues when included on the server. This isn't something you need to do but it's convenient to be able to directly import stuff from just the deck.gl.layers package, which worked in 8.8.

deck.gl 9.0 is an ES Module so should not have these issues.

Ideally I can change the dep to "^8.8 || ^9" but need to test if version 9 works first. If incompatible changes are required then this will require switching the dep here to "^9" and doing a major version bump of svelte-maplibre.

dimfeld commented 2 weeks ago

The Maplibre support in version 9 is totally different. I’m going to see if I can support both versions at once with two separate components, but I’m not quite sure yet.