Skip to content

Bump leaflet-control-geocoder from 4.0.0 to 42.0.0 - #104

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/leaflet-control-geocoder-42.0.0
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/leaflet-control-geocoder-42.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 19, 2026

Copy link
Copy Markdown
Contributor

Bumps leaflet-control-geocoder from 4.0.0 to 42.0.0.

Release notes

Sourced from leaflet-control-geocoder's releases.

42.0.0

This version provides compatibility with Leaflet 2.0.0-beta.4 while staying compatible with Leaflet 1.9, and modernizes the control's accessibility, input handling and styling.

Breaking changes

  • The search icon and the throbber are drawn by a ::before mask in currentColor instead of a background-image. If you replaced the icon via background-image, hide the mask with .leaflet-control-geocoder-icon::before { display: none } (7ea66b8)
  • Results are <li><span> instead of <li><a>, and the control is a <search> element instead of a <div>. Update custom CSS targeting .leaflet-control-geocoder-alternatives a or div.leaflet-control-geocoder (82f5948) (2a04fd7)
  • The errorMessage option is inserted as text, not as HTML (396082f)
  • Result HTML (htmlTemplate) is sanitized by the Sanitizer API where supported, which removes e.g. style attributes and event handlers (c68f4ca)
  • The marker popup content is an element instead of a string (c68f4ca)
  • The built-in geocoders reject with the new HttpError on HTTP error responses (8b43075)
  • Only the icon button toggles the control (or geocodes with collapsed: false), not any press inside the control (236028b)
  • The input uses font: inherit with at least 16px, and the input and result widths are in rem (b6a328a)

Features

  • Leaflet 2.0 compatibility: replace the removed L.Browser.touch, typings compatible with Leaflet 2's bundled types; peer dependency leaflet: ^1.6.0 || ^2.0.0-beta.4 (40dd51a) (faef65d)
  • Abort superseded requests via AbortController; GeocodingContext.signal is passed to fetch by the built-in geocoders (96f0ec3) (c83e9c7)
  • New errorgeocode and errorsuggest events (96f0ec3)
  • Accessibility:
    • ARIA combobox pattern: role=combobox input with aria-expanded and aria-activedescendant, role=listbox results (82f5948)
    • label for the input (new inputLabel option), <search> landmark (2a04fd7)
    • focus management: expanding focuses the input, collapsing returns the focus to the icon (82f5948)
    • "Nothing found" is announced via a role=status live region (396082f)
    • keep the focus ring; mark the selected result with an outline, also in forced colors mode (ec5ff44)
    • throbber animation slowed down for prefers-reduced-motion (7ea66b8)
  • Theming via --leaflet-control-geocoder-* CSS custom properties, color-scheme: light (b6a328a)
  • Mobile keyboards: enterkeyhint=search, no autocorrect/autocapitalize/spellcheck (2a04fd7)
  • Right-to-left layouts via CSS logical properties (b6a328a)

Fixes

  • The throbber kept spinning when geocoding failed; the error message is shown now (96f0ec3)
  • With collapsed: false, clicking the icon with a mouse did not geocode, and clicking into the input did (236028b)
  • With Leaflet 2, pressing into the input collapsed the control (236028b)
  • The icon could not be toggled with the keyboard in the touch and hover expand modes (236028b)
  • Enter while composing with an IME (Japanese, Chinese, Korean) started a search (6554269)
  • Unset options such as API keys were sent as key=undefined (8b43075)
  • Photon: suggestions dropped the map location bias (c83e9c7)
  • Result HTML was re-serialized together with the result icon via innerHTML += (c68f4ca)

Development

  • Run the tests against Leaflet 1.9 and 2.0, new specs for the control; npm run typecheck against both Leaflet versions (44d0208)
  • Replace conventional-changelog-cli with a dependency-free npm run changelog script (84908eb) (67b840f)
  • Use CSS nesting (flattened in the build) (6e44b2b)
  • Update @types/leaflet 1.9.22 (f46b90b), typedoc 0.28.20 (5d48a82), happy-dom 21.0.4 (59bb2e6), typescript 6.0.3 (850d768), vite-plus 1.6.0 (172120e)
Changelog

Sourced from leaflet-control-geocoder's changelog.

42.0.0 (2026-11-16)

This version provides compatibility with Leaflet 2.0.0-beta.4 while staying compatible with Leaflet 1.9, and modernizes the control's accessibility, input handling and styling.

Breaking changes

  • The search icon and the throbber are drawn by a ::before mask in currentColor instead of a background-image. If you replaced the icon via background-image, hide the mask with .leaflet-control-geocoder-icon::before { display: none } (7ea66b8)
  • Results are <li><span> instead of <li><a>, and the control is a <search> element instead of a <div>. Update custom CSS targeting .leaflet-control-geocoder-alternatives a or div.leaflet-control-geocoder (82f5948) (2a04fd7)
  • The errorMessage option is inserted as text, not as HTML (396082f)
  • Result HTML (htmlTemplate) is sanitized by the Sanitizer API where supported, which removes e.g. style attributes and event handlers (c68f4ca)
  • The marker popup content is an element instead of a string (c68f4ca)
  • The built-in geocoders reject with the new HttpError on HTTP error responses (8b43075)
  • Only the icon button toggles the control (or geocodes with collapsed: false), not any press inside the control (236028b)
  • The input uses font: inherit with at least 16px, and the input and result widths are in rem (b6a328a)

Features

  • Leaflet 2.0 compatibility: replace the removed L.Browser.touch, typings compatible with Leaflet 2's bundled types; peer dependency leaflet: ^1.6.0 || ^2.0.0-beta.4 (40dd51a) (faef65d)
  • Abort superseded requests via AbortController; GeocodingContext.signal is passed to fetch by the built-in geocoders (96f0ec3) (c83e9c7)
  • New errorgeocode and errorsuggest events (96f0ec3)
  • Accessibility:
    • ARIA combobox pattern: role=combobox input with aria-expanded and aria-activedescendant, role=listbox results (82f5948)
    • label for the input (new inputLabel option), <search> landmark (2a04fd7)
    • focus management: expanding focuses the input, collapsing returns the focus to the icon (82f5948)
    • "Nothing found" is announced via a role=status live region (396082f)
    • keep the focus ring; mark the selected result with an outline, also in forced colors mode (ec5ff44)
    • throbber animation slowed down for prefers-reduced-motion (7ea66b8)
  • Theming via --leaflet-control-geocoder-* CSS custom properties, color-scheme: light (b6a328a)
  • Mobile keyboards: enterkeyhint=search, no autocorrect/autocapitalize/spellcheck (2a04fd7)
  • Right-to-left layouts via CSS logical properties (b6a328a)

Fixes

  • The throbber kept spinning when geocoding failed; the error message is shown now (96f0ec3)
  • With collapsed: false, clicking the icon with a mouse did not geocode, and clicking into the input did (236028b)
  • With Leaflet 2, pressing into the input collapsed the control (236028b)
  • The icon could not be toggled with the keyboard in the touch and hover expand modes (236028b)
  • Enter while composing with an IME (Japanese, Chinese, Korean) started a search (6554269)
  • Unset options such as API keys were sent as key=undefined (8b43075)
  • Photon: suggestions dropped the map location bias (c83e9c7)
  • Result HTML was re-serialized together with the result icon via innerHTML += (c68f4ca)

Development

  • Run the tests against Leaflet 1.9 and 2.0, new specs for the control; npm run typecheck against both Leaflet versions (44d0208)
  • Replace conventional-changelog-cli with a dependency-free npm run changelog script (84908eb) (67b840f)
  • Use CSS nesting (flattened in the build) (6e44b2b)
  • Update @types/leaflet 1.9.22 (f46b90b), typedoc 0.28.20 (5d48a82), happy-dom 21.0.4 (59bb2e6), typescript 6.0.3 (850d768), vite-plus 1.6.0 (172120e)
Commits
  • 053e585 42.0.0
  • 67b840f package: replace conventional-changelog with a dependency-free script
  • b6a328a style: theming custom properties, color-scheme, scalable sizes
  • 7ea66b8 style: draw icons as currentColor masks, spin the throbber with CSS
  • ec5ff44 style: keep the focus ring, mark the selected result with an outline
  • 6e44b2b style: use CSS nesting, drop unused rules
  • c68f4ca control: insert result HTML via the Sanitizer API's setHTML()
  • 396082f control: announce "Nothing found" via a live region
  • 82f5948 control: ARIA combobox pattern, focus management
  • 2a04fd7 control: <search> landmark, input label, mobile keyboard hints
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [leaflet-control-geocoder](https://github.com/perliedman/leaflet-control-geocoder) from 4.0.0 to 42.0.0.
- [Release notes](https://github.com/perliedman/leaflet-control-geocoder/releases)
- [Changelog](https://github.com/perliedman/leaflet-control-geocoder/blob/master/CHANGELOG.md)
- [Commits](perliedman/leaflet-control-geocoder@4.0.0...42.0.0)

---
updated-dependencies:
- dependency-name: leaflet-control-geocoder
  dependency-version: 42.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Development

Successfully merging this pull request may close these issues.

0 participants