Skip to content

Bump geojson-pydantic from 1.2.0 to 2.0.0 in /services/common #1249

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

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 15, 2025

Bumps geojson-pydantic from 1.2.0 to 2.0.0.

Release notes

Sourced from geojson-pydantic's releases.

2.0.0

What's Changed

Full Changelog: developmentseed/geojson-pydantic@1.2.0...2.0.0

Changelog

Sourced from geojson-pydantic's changelog.

[2.0.0] - 2025-05-05

  • remove custom __iter__, __getitem__ and __len__ methods from GeometryCollection class breaking change

    from geojson_pydantic.geometries import GeometryCollection, Point, MultiPoint
    geoms = GeometryCollection(
    type="GeometryCollection",
    geometries=[
    Point(type="Point", coordinates=(102.0, 0.5)),
    MultiPoint(type="MultiPoint", coordinates=[(100.0, 0.0), (101.0, 1.0)]),
    ],
    )
    ########
    Before
    for geom in geom:       # iter
    pass
    assert len(geoms) == 2  # len
    _ = geoms[0]            # getitem
    
    Now
    for geom in geom.iter():   # iter
    pass
    assert geoms.length == 2  # len
    _ = geoms.geometries[0]   # getitem

  • remove custom __iter__, __getitem__ and __len__ methods from FeatureCollection class breaking change

    from geojson_pydantic import FeatureCollection, Feature, Point
    fc = FeatureCollection(
    type="FeatureCollection", features=[
    Feature(type="Feature", geometry=Point(type="Point", coordinates=(102.0, 0.5)), properties={"name": "point1"}),
    Feature(type="Feature", geometry=Point(type="Point", coordinates=(102.0, 1.5)), properties={"name": "point2"}),
    ]
    )
    ########
    Before
    for feat in fc:      # iter
    pass

... (truncated)

Commits
  • 32e37c8 Bump version: 1.2.0 → 2.0.0
  • 228ed90 release date
  • a4147ff Merge pull request #173 from developmentseed/feature/remove-custom-iter-len-g...
  • fdebb3d fix Z coord for GeometryCollection
  • d17cd18 remove conflicting iter len getitem methods
  • See full diff 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 15, 2025
@dependabot dependabot bot force-pushed the dependabot/pip/services/common/geojson-pydantic-2.0.0 branch 2 times, most recently from 8f8ef61 to 542f3cb Compare May 16, 2025 15:39
Bumps [geojson-pydantic](https://github.com/developmentseed/geojson-pydantic) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/developmentseed/geojson-pydantic/releases)
- [Changelog](https://github.com/developmentseed/geojson-pydantic/blob/main/CHANGELOG.md)
- [Commits](developmentseed/geojson-pydantic@1.2.0...2.0.0)

---
updated-dependencies:
- dependency-name: geojson-pydantic
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/services/common/geojson-pydantic-2.0.0 branch from 542f3cb to 8fc90f8 Compare May 21, 2025 08:47
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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants