Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency react-leaflet to v4 #307

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-leaflet (source) ^1.9.1 -> ^4.0.0 age adoption passing confidence

Release Notes

PaulLeCam/react-leaflet (react-leaflet)

v4.2.1

Compare Source

Fixed bounds update in ImageOverlay
(PR #​1063 by
hwonyo)

v4.2.0

Compare Source

Added support for mutable url prop on TileLayer
(PR #​1047 by
goto-bus-stop)

v4.1.0

Compare Source

  • Updated Leaflet dependency to v1.9.
  • Fixed eventHandlers object being injected in WMS request URL.
  • Added support for dynamic bounds props on ImageOverlay.

v4.0.2

Compare Source

v4.0.1

Compare Source

Fix calling map.remove() on MapContainer unmounting.

v4.0.0

Compare Source

Changes from v3:

Breaking changes
  • React v18 and Leaflet v1.8 are now required as peer dependency.
  • ES2020 is the new compilation target version.
  • Removed useMapElement hook.
  • Removed MapConsumer component.
  • Removed whenCreated property from the MapContainer component (a ref
    callback can be used instead).
  • Removed onOpen and onClose properties from Popup and Tooltip
    components.
  • Removed CommonJS distribution.
  • Removed UMD distribution.
Other changes
  • Added support for React v18 (concurrent mode).
  • Added support for ref in the MapContainer and Pane components.
  • Added createLeafletContext function to core.
  • The created element and context objects are now frozen (immutable).

v3.2.5

Compare Source

Fix supporting mutable whenCreated with unmounting MapContainer.

v3.2.4

Compare Source

Fix removing the map handlers when MapContainer is unmounted.

v3.2.3

Compare Source

v3.2.2

Compare Source

Fix layer unmount (PR #​916 by piitaya).

v3.2.1

Compare Source

  • Fix Popup unmounting logic to unbind from container.
  • Fix links to point to Leaflet 1.7.1 docs (PR #​889 by zerekw).

v3.2.0

Compare Source

  • Change unmounting logic for some layers, which should fix issues related to removing or updating elements.
  • Make the style prop of GeoJSON mutable, this prop should be used instead of pathOptions (pathOptions can still be used but should be considered deprecated).
  • Fix documentation about bounds prop being an instance of LatLngBounds.

v3.1.0

Compare Source

v3.0.5

Compare Source

Use useState hook rather than useMemo to store immutable values in MapContainer and Pane.

v3.0.4: v3.0.3/3.0.4

  • Document pathOptions for GeoJSON (PR #​785 by bb)
  • Ensure MapContainer props are immutable
  • Fix TypeScript definition for MapContainer props
  • Update README

v3.0.2

Compare Source

Additional fixes for panes support

v3.0.1

Compare Source

v3.0.0

Compare Source

v3 is a full rewrite of React Leaflet and contains breaking change from v2.

  • Full rewrite based on React Hooks (no more extending Component)
  • Replace Flow by TypeScript for type checking
  • Drop IE support (Babel config will only target the "last 2 versions" of modern browsers)
  • Switch to the Hippocratic License
  • The Map component is replaced by MapContainer, behaving differently
  • Event handlers must be attached using the eventHandlers prop rather than on* props, with a similar change for path options and WMS params
  • The react-leaflet package only exposes a public API while a new package, @react-leaflet/core, is used to provide the core APIs
  • A new documentation website using Docusaurus v2 with live examples

v2.8.0

Compare Source

  • Added React v17 to peer dependencies (PR #​773 by anajavi).
  • [website] Added react-esri-leaflet plugin (PR #​768 by slutske22).

v2.7.0

Compare Source

  • Added viewBox and preserveAspectRatio props to SVGOverlay component (PR #​704 by spectras).
  • [website] Bump Leaflet docs links to v1.6.0 (PR #​686 by moondef).
  • [website] Set react-leaflet-markercluster v2 support (PR #​693 by yuzhva).
  • [website] Added react-leaflet-kml plugin (PR #​707 by aviklai).

v2.6.3

Compare Source

Fixed regression in v2.6.2 handling maxZoom and minZoom options in Map component.

v2.6.2

Compare Source

  • Fixed applying maxZoom and minZoom options to tile layers.
  • [website] Added react-leaflet-geodesic plugin (PR #​656 by dcdourado).
  • [website] Added react-leaflet-arrowheads and react-leaflet-editable-popup plugins (PR #​678 by slutske22).
  • [internal] Set babel runtime version (PR #​670 by anajavi).

v2.6.1

Compare Source

Fixed catching falsy values in utils/pick (PR #​649 by CaptainLexington).

v2.6.0

Compare Source

  • Updated Leaflet dependency to v1.6.
  • Added support for doubleClickZoom option's center setting to the Map component (PR #​633 by DerGuteMoritz).
  • Added markersInheritOptions prop to GeoJSON component.
  • [website] Updated react-leaflet-bing plugin (PR #​634 by Charmatzis).
  • [website] Updated react-leaflet-google plugin (PR #​635 by Charmatzis).
  • [website] Added react-leaflet-curve plugin (PR #​636 by Shadowman4205).

v2.5.0

Compare Source

  • Added SVGOverlay component (PR #​630 by fenech).
  • Added a GeoJSON with Popup example (PR #​608 by hackleman).
  • Fixed wrongly injecting the leaflet parameter in the WMSTileLayer URL.
  • [website] Added logo and branding guidelines (PR #​629 by colbyfayock).
  • [website] Added react-leaflet-enhanced-marker plugin (PR #​610 by ishaan6395).
  • [website] Added leaflet-drift-marker plugin (PR #​615 by hugobarragon).
  • [website] Added react-leaflet-street-view plugin (PR #​616 by ishaan6395).
  • [website] Removed unmaintained plugin react-leaflet-rotatedmarker plugin (PR #​617 by verdie-g).
  • [website] Added react-leaflet-d3-svg-overlay plugin (PR #​628 by johannesloetzsch).

v2.4.0

Compare Source

  • Added ZoomPanOptions and FitBoundsOptions to Map component (PR #​593 by scailbc).
  • Updated Flow types support for Flow v0.100.
  • [website] Updated Docusaurus.

v2.3.0

Compare Source

  • Updated Leaflet dependency to v1.5.
  • Updated React dependency to v16.8.
  • Added useLeaflet hook (PR #​571 by vadzim).
  • [website] Added react-leaflet-google-layer plugin (PR #​576 by aviklai).
  • [internal] Replaced deprecated webpack-serve library by webpack-dev-server to run the examples.

v2.2.1

Compare Source

  • Fixed passing options in the LayerGroup component (PR #​570 by failociraptor).
  • [website] Added react-leaflet-textpath plugin (PR #​556 by clementallen).
  • [website] Minor text fixes to components docs (PR #​558 by arthurRuf).
  • [website] Updated compatibility info for 5 plugins and added 2 new plugins (PR #​560 and PR #​564 by mhasbie).
  • [website] Updated react-leaflet-control compatibility status (PR #​567 by robinmetral).
  • [website] Updated third party compatibility docs for 2 plugins (PR #​568 by renanbandeira).

v2.2.0

Compare Source

  • Updated Leaflet dependency to v1.4.
  • Fixed duplicate element creation in Path (PR #​549 by vadzim).
  • Changed whenReady logic in Map to get triggered after React reference is bound.
  • [internal] Replaced lodash with fast-deep-equal and vanilla JS implementations (PR #​554 by jtfell).
  • [website] Added react-leaflet-semicircle plugin (PR #​552 by clementallen).

v2.1.4

Compare Source

Fixed event handlers changes in Map component.

v2.1.3

Compare Source

  • [website] Added react-leaflet-figure-editor plugin (PR #​542 by argonavt11).
  • [website] Added react-leaflet-box-zoom plugin (PR #​543 by ChrisLowe-Takor).
  • Added example for custom icons usage (PR #​545 by rlahoda).
  • Updated Flow types support for Flow v0.89.

v2.1.2

Compare Source

  • Fixed support for multiple classes in the Pane component.
  • [internal] Replaced some lodash functions (PR #​533 by radeno).
  • [website] Added react-leaflet-geojson-patterns plugin (PR #​536 by lkazberova).

v2.1.1

Compare Source

  • Fixed regression when updating the className prop of the Map component.
  • [internal] Use ESM babel runtime (PR #​527 by eanajavi).
  • [website] Indicate react-leaflet-locate-control as not compatible with v2 (PR #​528 by eanajavi).

v2.1.0

Compare Source

  • Added support for dynamic attribution prop in layers.
  • Added MapEvented abstract class used by MapComponent and Map.
  • [website] Added react-leaflet-freedraw plugin (PR #​508 by elangobharathi).
  • [website] Updated "Lifecycle process" overview (PR #​509 by clintharris).
  • [website] Added react-leaflet-distortable-imageoverlay plugin (PR #​511 by ChrisLowe-Takor).
  • [website] Fixed typo in docs (PR #​513 by Roconda).
  • [website] Added react-leaflet-sidetabs plugin (PR #​517 by eferhatg).
  • [website] Added leaflet-react-track-player plugin (PR #​523 by argonavt11).
  • [website] Added react-leaflet-wmts plugin (PR #​524 by mpivaa).
  • [internal] Updated Babel dependency to v7.

v2.0.1

Compare Source

  • Fixed setting maxZoom and minZoom options to GridLayer using Map options.
  • [website] Added react-leaflet-search and react-leaflet-zoom-indicator plugins (PR #​501 by tumerorkun).

v2.0.0

Compare Source

Changes from v1.9.1:

  • [BREAKING] Updated React dependency to v16.3.
  • [BREAKING] Replaced React context usage with new APIs introduced in React v16.3.
  • [BREAKING] Removed PropTypes.
  • [BREAKING] Dropped support for IE < 11.
  • React Portals are now used to render the DivOverlay and therefore Popup and Tooltip components, enabling context propagation (PR #​475 by hannesj).
  • Replaced wrapping div elements with Fragment.
  • Added collapsed as dynamic property to LayersControl.
  • Added ControlledLayer abstract class export.
  • [website] Added react-leaflet-nmscale plugin (PR #​479 by anajavi).
  • [website] Added 3 plugins (PR #​482 by fullhdpixel).
  • [website] Updated docs for abstract classes and usage for custom components.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@sonarcloud
Copy link

sonarcloud bot commented Aug 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@renovate renovate bot force-pushed the renovate/react-leaflet-4.x branch from d338ee7 to 7ee1b9f Compare March 24, 2024 13:26
@renovate renovate bot force-pushed the renovate/react-leaflet-4.x branch from 7ee1b9f to fbff832 Compare April 10, 2024 08:40
Copy link

sonarcloud bot commented Apr 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@renovate renovate bot force-pushed the renovate/react-leaflet-4.x branch from fbff832 to 2526c56 Compare May 13, 2024 19:47
Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
0 participants