Skip to content

Releases: dimfeld/svelte-maplibre

v1.0.0-next.3

18 Nov 08:12
Compare
Choose a tag to compare
v1.0.0-next.3 Pre-release
Pre-release
  • Fixed infinite effect loop in JoinedData.svelte
  • Fixed infinite effect loop in Terrain.svelte
  • Fix tearing down DeckGlLayer.
  • Other minor cleanup

For full release notes for 1.0RC, see https://github.com/dimfeld/svelte-maplibre/releases/tag/v1.0.0-next.1

Svelte 5 native support and other changes

16 Nov 08:04
Compare
Choose a tag to compare

This is a release candidate for svelte-maplibre 1.0. I believe everything is done but want to let it soak a bit before publishing.

See the demo site here.

This release not only upgrades to Svelte 5, but also integrates a few other breaking changes I've wanted to make:

  • All the code in the package was moved to runes (thanks @benmccann for the nudge), so Svelte 5 is now required.
  • Event handlers are now functions passed as props, in Svelte 5 style. The main difference that you will find is that instead of using event.detail, the data for an event will just be present on event.
  • Events no longer have the map attribute added to them since this is already present as event.target
  • For anyone implementing their own layer components, the context structure has changed a lot. See context.ts for more details
  • Update deck.gl dependency to v9. Deck.gl's support for Mapbox and Maplibre is completely different between v8 and v9. This release does not change the interface in a breaking way, aside from the new version requirement. A future release will publish a new Deck.gl layer component which better integrates with the new support.
  • Many of the uses of null in the package have been changed to undefined, which works better with Svelte's prop handling in some cases.

The old Svelte-4-compatible version will probably not get any new features, but for a while I will try to port significant bug fixes back to there as they are made.

Major Changes

Minor Changes

  • #214 0485a6a Thanks @dimfeld! - Add generics for Features on many components to permit better type safety

  • #214 0485a6a Thanks @dimfeld! - Only add event handlers to the map when something is actually listening

v0.9.14

03 Oct 20:26
Compare
Choose a tag to compare

0.9.14

Patch Changes

  • d84def9 Thanks @ciscorn! - Defer updating Layer’s layout and paint properties until Map style is fully loaded

v0.9.13

23 Aug 19:03
Compare
Choose a tag to compare

0.9.13

Patch Changes

v0.9.12

19 Aug 20:54
Compare
Choose a tag to compare

0.9.12

Patch Changes

  • #195 aeaf638 Thanks @dimfeld! - Fix marker popups not closing properly when clicking on a different marker. This broke in v0.9.0.

v0.9.11

14 Aug 07:27
Compare
Choose a tag to compare

0.9.11

Minor Changes

v0.9.10

06 Aug 20:52
Compare
Choose a tag to compare

0.9.10

Patch Changes

v0.9.9

09 Jul 20:50
Compare
Choose a tag to compare

0.9.9

Patch Changes

  • #180 9e999f1 Thanks @dimfeld! - Add draw-plugin.css CSS file, which you can import to help with integrating the Mapbox Draw plugin

v0.9.8

20 Jun 01:11
Compare
Choose a tag to compare

0.9.8

Patch Changes

v0.9.7

02 Jun 23:41
Compare
Choose a tag to compare

0.9.7

Patch Changes

  • #175 c857517 Thanks @dimfeld! - Allow providing custom hash update function for better framework compatibility