Skip to content

Bump geolib from 3.3.14 to 4.0.0 - #217

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/geolib-4.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/geolib-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026

Copy link
Copy Markdown
Contributor

Bumps geolib from 3.3.14 to 4.0.0.

Release notes

Sourced from geolib's releases.

v4.0.0

4.0.0 (2026-10-08)

⚠ BREAKING CHANGES

  • isPointInPolygon treats polygon edges that span more than 180 (but less than 360) degrees of longitude as crossing the antimeridian. Polygons that relied on such edges going the long way around need an additional vertex in between.
  • computeDestinationPoint uses earthRadius (6,378,137 meters) as its default radius, which moves results by about 0.1%. Pass 6371000 as the fourth argument to get the previous results.
  • getDistanceFromLine now rounds its result to the given accuracy (1 meter by default) and returns more precise values. Pass an accuracy of 0 to get the unrounded distance.
  • The geolib/es/* and geolib/lib/* deep imports are gone. Import named functions from the package root instead, e.g. import { getDistance } from 'geolib', which is fully tree-shakeable now. The browser build moved from lib/index.js to dist/geolib.iife.js and no longer supports AMD loaders. There is no default export: use import * as geolib from 'geolib' instead of import geolib from 'geolib'. The output targets ES2020, so very old browsers such as Internet Explorer are no longer supported, and the type definitions require TypeScript 4.7 or newer.

Features

  • add getIntersectionOfLines (2b761cb), closes #173
  • add isPointInBoundingBox (3268eb8), closes #273
  • export the TypeScript types from the package entry (9d398d5)
  • keep the type of the points in orderByDistance and findNearest (53d4d8a), closes #198
  • return the unrounded distance for an accuracy of 0 (0d66b24), closes #306

Fixes

  • compare the unrounded distance in isPointNearLine (33d5e69)
  • compare the unrounded distance in isPointWithinRadius (dcfbb67)
  • default convertArea to square meters (77e336b)
  • make isPointInLine precise for long and short lines (e5d5a63), closes #237 #237
  • parse WKT polygons regardless of whitespace and parentheses (225fc59), closes #310
  • return false from validators instead of throwing on null (00a7095), closes #307
  • round only the result of getDistanceFromLine (e02175c), closes #298
  • support polygons that cross the antimeridian in isPointInPolygon (76d1960), closes #38
  • use the haversine formula in getDistance as documented (2b59dd6)
  • use the library's earth radius in computeDestinationPoint (2702164), closes #290

Improvements

  • calculate each distance only once in orderByDistance (155e086), closes #206
  • make the unit conversion tables tree-shakeable (1cf06c8)

... (truncated)

Changelog

Sourced from geolib's changelog.

4.0.0 (2026-10-08)

⚠ BREAKING CHANGES

  • isPointInPolygon treats polygon edges that span more than 180 (but less than 360) degrees of longitude as crossing the antimeridian. Polygons that relied on such edges going the long way around need an additional vertex in between.
  • computeDestinationPoint uses earthRadius (6,378,137 meters) as its default radius, which moves results by about 0.1%. Pass 6371000 as the fourth argument to get the previous results.
  • getDistanceFromLine now rounds its result to the given accuracy (1 meter by default) and returns more precise values. Pass an accuracy of 0 to get the unrounded distance.
  • The geolib/es/* and geolib/lib/* deep imports are gone. Import named functions from the package root instead, e.g. import { getDistance } from 'geolib', which is fully tree-shakeable now. The browser build moved from lib/index.js to dist/geolib.iife.js and no longer supports AMD loaders. There is no default export: use import * as geolib from 'geolib' instead of import geolib from 'geolib'. The output targets ES2020, so very old browsers such as Internet Explorer are no longer supported, and the type definitions require TypeScript 4.7 or newer.

Features

  • add getIntersectionOfLines (2b761cb), closes #173
  • add isPointInBoundingBox (3268eb8), closes #273
  • export the TypeScript types from the package entry (9d398d5)
  • keep the type of the points in orderByDistance and findNearest (53d4d8a), closes #198
  • return the unrounded distance for an accuracy of 0 (0d66b24), closes #306

Fixes

  • compare the unrounded distance in isPointNearLine (33d5e69)
  • compare the unrounded distance in isPointWithinRadius (dcfbb67)
  • default convertArea to square meters (77e336b)
  • make isPointInLine precise for long and short lines (e5d5a63), closes #237 #237
  • parse WKT polygons regardless of whitespace and parentheses (225fc59), closes #310
  • return false from validators instead of throwing on null (00a7095), closes #307
  • round only the result of getDistanceFromLine (e02175c), closes #298
  • support polygons that cross the antimeridian in isPointInPolygon (76d1960), closes #38
  • use the haversine formula in getDistance as documented (2b59dd6)
  • use the library's earth radius in computeDestinationPoint (2702164), closes #290

Improvements

  • calculate each distance only once in orderByDistance (155e086), closes #206
  • make the unit conversion tables tree-shakeable (1cf06c8)
  • name functions after their exports (d4c8f85)

... (truncated)

Commits
  • 143a749 release: 4.0.0 - 2026-10-08T02:10:08.162Z [skip ci]
  • 559a800 Merge pull request #318 from manuelbieh/release/v4
  • 4075b86 docs: update the README for version 4
  • 2b761cb feat: add getIntersectionOfLines
  • 3268eb8 feat: add isPointInBoundingBox
  • e9a0248 test: cover implicitly closed polygons in getAreaOfPolygon
  • d4c8f85 refactor: name functions after their exports
  • 53d4d8a feat: keep the type of the points in orderByDistance and findNearest
  • 8817eb9 chore: run type checks and related tests in the pre-commit hook
  • 155e086 perf: calculate each distance only once in orderByDistance
  • 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 [geolib](https://github.com/manuelbieh/geolib) from 3.3.14 to 4.0.0.
- [Release notes](https://github.com/manuelbieh/geolib/releases)
- [Changelog](https://github.com/manuelbieh/geolib/blob/master/CHANGELOG.md)
- [Commits](manuelbieh/geolib@v3.3.14...v4.0.0)

---
updated-dependencies:
- dependency-name: geolib
  dependency-version: 4.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 Oct 14, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Roadmap Oct 14, 2026
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

0 participants