Update dependency leaflet to v1.8.0 - autoclosed
This MR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| leaflet (source) | 1.7.1 -> 1.8.0 |
Release Notes
Leaflet/Leaflet
v1.8.0
⚠ ️ Breaking Changes
- Improve reliability of
contextmenuevent simulation on mobile Safari by introducing a newTapHoldhandler, replacing legacyTap(#7026 by @johnd0e) - Reorganize
DivOverlay/Popup/TooltipAPIs (#7540 by @johnd0e)- Move
Popuprelated options fromDivOverlaytoPopup(#7778 by @Falke-Design) - Change
Tooltipclass fromleaflet-clickabletoleaflet-interactive(#7719 by @Falke-Design) -
Map.closeTooltipnow requires a layer as argument (#7533 by @johnd0e)
- Move
- Improve error / argument handling for event listeners (#7518 by @johnd0e)
- Improve reliability of touch events simulation on non-touch devices (
DomEvent.Pointer) (#7059, #7084, #7415 by @johnd0e) - Improve reliability of
dblclickevent simulation on touch devices (DomEvent.DoubleTap) (#7027 by @johnd0e) - Improve reliability of
disableClickPropagation(#7439 by @johnd0e) - Improve
MaphasLayer()andLayerGrouphasLayer()to require a layer as argument (#6999 by @johnd0e) - Fix
Class.includeto not overwriteoptions(#7756 by @johnd0e) - Fix
Class.extendto not modify source props object (#6766 by @johnd0e) - Improve
Browser.touchtouch devices detection (#7029 by @johnd0e) - Get rid of legacy Android hacks (#7022 by @johnd0e)
- Allow fonts to respect users' browser settings by making the
font-sizerelative to the map container. (You can change the font size onleaflet-containerto adjust it if needed.) (#7800 by @Chandu-4444)
❇ ️ API changes
- Make
DivOverlay/Tooltipinteractive(#7531, #7532 by @johnd0e) - Add
openOn,close,togglefunctions toDivOverlay(#6639 by @johnd0e) - Introduce
DomEvent.off(el)to remove all listeners (#7125 by @johnd0e) - Allow preventing round-off errors by passing
falsetoUtil.formatNum/toGeoJSON(#7100 by @johnd0e) - Add
autoPanOnFocustoMarker(#8042 by @IvanSanchez) - Add
referrerPolicytoTileLayer(#7945 by @natevw) - Add
playsInlinetoVideoOverlay(#7928 by @Falke-Design) - Add
getCentertoImageOverlay(#7848 by @Falke-Design) - Fire a
tileabortevent when aTileLayerload is cancelled (#6786 by @dstndstn) - Add
crossOrigintoIcon(#7298 by @syedmuhammadabid)
✨ Improvements
- Improve memory footprint by removing
will-changeCSS property on tile images (#7872 by @janjaap) - Improve reliability of icons path detection heuristics (#7092 by @johnd0e)
- Improve performance of adding tiled sources by avoiding excessive updates in
GridLayer.onAdd(#7570 by @johnd0e) - Improve handling of edge cases in
panInside(#7469 by @daverayment) - Minify marker icon SVG (#7600 by @rala72)
- Allow template keys with spaces in
TileLayerURL (#7216 by @lubojr) - Improve behavior of
Tooltipbound toImageOverlay(#7306 by @IvanSanchez) - Remove the gap between Popup tip and content dialog (#7920 by @Malvoz)
- Fire
mousemovethrough Canvas to map if it has no layers (#7809 by @johnd0e) - Add print styles to prevent printers from removing background-images in controls (#7851 by @Malvoz)
- Move attribution code from
LayertoControl.Attribution(#7764 by @johnd0e) - Refactor
vmlCreate()so that it does not expose closure toTypeError(#7279 by @darcyparker) - Improve reliability of
Control.Layersby not relying on Browserandroidandtouchproperties (#7057 by @johnd0e) - Improve reliability of
Tooltipby not relying on Browsertouchchecks (#7535 by @johnd0e) - Make
Browsermutable for easier automated testing (#7335 by @bozdoz) - Replace
divwithspaninControl.Layerscontainer to fix an HTML validation error (#7914 by @tmiaa) - Add a Ukrainian flag to default attribution
🇺🇦 (by @mourner in https://github.com/Leaflet/Leaflet/pull/8109)
🙌 Accessibility
- Increase default font sizes and decrease attribution transparency for improved legibility (#8057, by @mourner)
- Improve accessibility of popup close button (#7908, by @Malvoz)
- Auto pan to markers on focus by default for improved keyboard operability (#8042 by @IvanSanchez)
- Add accessibility section to plugins guide (#7277 by @Malvoz)
- Update
Markerto default torole="button"&alt="marker"for an improved screen reader experience (#7895 by @tmiaa) - Set
role="button"for appropriate semantics on the<a>layers control (#7850 by @Malvoz) - Generally enable outlines for keyboard users by not stripping
outlineon focus for keyboard events (#7259 by @jafin) - Enable outlines on
leaflet-containerfor keyboard users (#7996 by @Malvoz) - Multiple enhancements to popup's close button (#7794 by @Falke-Design)
- Use relative
font-sizeunits for resizable text (#7800 by @Chandu-4444) - Apply
:hoverstyles to:focusas well (#7274 by @Malvoz) - Hide the decorative attribution separator from screen readers (#7969 by @Malvoz)
- Make the disabled state of zoom controls available to screen readers (#7280 by @akshataj96)
- Hide the +/- characters in zoom controls from screen readers to prevent erroneous announcements (#7795 by @Falke-Design)
🐞 Bug fixes
- Fix vector drift when dragging and immediately zooming (by @manubb @johnd0e @mourner in https://github.com/Leaflet/Leaflet/pull/8103)
- Reduce the occurrence of glitches on rapid zoom (by @mourner in https://github.com/Leaflet/Leaflet/pull/8102)
- Fix
Markerjumping position while zooming in certain cases (#7967 by @Falke-Design) - Fix opening / closing
Tooltipwhile dragging the map (#7862 by @Falke-Design) - Break the reference to the options of the
Classprototype (#7459 by @Falke-Design) - Improve
Tooltipoptionspermanent&stickyto work together (#7563 by @Falke-Design) - Check if map container is still connected with Leaflet in
locateevent listener (#7813 by @Falke-Design) - Fix
TooltipbindTooltipto unbind existent tooltip (#7633 by @Falke-Design) - Correct
ifcondition, to add zoom limits for Layer (#7609 by @vcoppe) -
GridLayerredraw tiles after changingmaxNativeZoom(#6443 by @cherniavskii) - Fix
PopupkeepInViewif the map needs to panned over a long distance (#7792 by @Falke-Design) - Tolerate wrong event names in
add/removePointerListener(#7808 by @johnd0e) - Reset width & padding to prevent cascading CSS from breaking tile rendering (#6843 by @Spudley)
- Fix
mousedownevent calling after draggingCanvasmap (#7781 by @johnd0e) - Decrease
console.warnpollution (#7748 by @johnd0e) - Fix
contextmenuevent default-preventing when there are >1 target candidates (#7544 by @johnd0e) - Prevent click on
Popup-tip from firing on map. (#7541 by @johnd0e) - Fix error by calling
Path.setStylebefore adding the layer to the map (#6941 by @NielsHolt) - Reset
BoxZoomafter cancel with ESC (#7597 by @Falke-Design) - Fix
noConflict(#7855 by @Falke-Design) - Fix popup appearance when content is empty (#8136, by @ansh-ag)
- Fix
latLngToCoordsandlatLngsToCoordsnot accepting array form of lat/lngs (#7436, by @Relkfaw)
📝 Docs
- Add a new Leaflet accessibility tutorial (#8081, by @Malvoz)
- Upgrade Code of Conduct to Contributor Covenant v2 and improve its visibility (#7984 by @mourner)
- Lint examples (#7827 by @mourner)
- Update usability in Docs (#7982, #7703, #7950, #7906, #7907, #7696, #7816, #7345, #7815, #7948, #7901 by @Falke-Design, @avioli, @Malvoz, @fulldecent, @saerdnaer, @MxDui)
- Typos / Fixes in Docs, Samples, ... (#7263, #7284, #7339, #7349, #7381, #7371, #7485, #7380, #7578, #7758, #7602, #7857, #7860, #7336, #7819 by @timgates42, @IvanSanchez, @ipovos, @elfalem, @BakuCity, @simon04, @user073, @Dev-Steven, @vanillajonathan, @aquelle-cp, @matkoniecz, @Falke-Design)
- Clarify
zoomendevent (#7460 by @xeruf) - Add
falsetoprefixofControl.Attribution(#7814 by @Falke-Design) -
LayerGroupinherit fromInteractive Layer(#7763 by @johnd0e) - Improve
Map.panInsidedocumentation (#7397 by @daverayment) - Update
Rendererdocumentation to clarifytoleranceoption is forCanvasonly (#7515 by @Hippl-Eric) - Add documentation for Event-Listener
propagateargument (#7103 by @riffaud) - Fix an issue with top padding on non-API pages (#8083, by @wyankush)
🔧 Workflow
- Split
plugins.mdinto many files for easier maintenance (#7805 by @Falke-Design) - Add Bundlemon to watch bundle size (#7934, #7983, #7905 by @jonkoops)
- Add
npm run serveto serve docs on localhost (#7973 by @Falke-Design) - Rename
masterbranch tomain(#7921 by @jonkoops) - Upload files to AWS even if the file-size is the same (#7853 by @jonkoops)
- Remove
leaflet-include.jsfromdebugsamples (#7776 by @Falke-Design) - Lint adjustments (#7676, #7743, #7757 by @jonkoops, @mourner)
- Simplify release process (#7711, #7854, #7727, #8039 by @mourner)
- Simplify docs update process on release (#7730 by @mourner)
- Update dependencies and add Dependabot config (#7455, #7653, #7677, #7725 by @jonkoops)
- Split main workflow into multiple parallel jobs (#7710 by @jonkoops)
- Run CI on Github actions (#7691, #7654, #7702 by @jonkoops)
- Continue running tests even if one fails (#7723 by @jonkoops)
- Add https://github.com/Leaflet/Leaflet/labels/blocker check to release process (#8019 by @Malvoz)
- Remove all references of Bower (#7831 by @jonkoops)
- Add GitHub Actions dependency tracking with Dependabot (by @nathannaveen in https://github.com/Leaflet/Leaflet/pull/8104)
🧪 Tests
- Improve unit tests organization (#7852, by @Falke-Design)
- Run tests on
Internet Explorer 11(#7741 by @jonkoops) - Run tests on
FirefoxNoTouch(#7736, #7742 by @johnd0e) - Drop
PhantomJSfrom test suite (#7660, #7724 by @jonkoops) - Simplify
.nearand.nearLatLngusage (#7820 by @johnd0e) - Enforce forbid-only rule in the continuous integration (#7448 by @johnd0e)
- Increase
captureTimeoutandbrowserSocketTimeout(#7856 by @Falke-Design) - Added / update tests (#7790, #7147, #7721, #7461, #7126, #7451, #7450, #7447, #7438 by @Falke-Design, @johnd0e, @phloose)
- Added missing Test-Spec-Files to index.html (#7845 by @Falke-Design)
- Cover
DomEventwith unit tests (by @stephenspol in https://github.com/Leaflet/Leaflet/pull/8088) - Cover
DomUtilwith unit tests (#7547, by @LGNorris)
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.
Edited by igswsihw-wmadepbot