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

build(deps): bump @turf/union from 7.0.0 to 7.1.0 #504

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2024

Bumps @turf/union from 7.0.0 to 7.1.0.

Release notes

Sourced from @​turf/union's releases.

v7.1.0

What's Changed

New Contributors

... (truncated)

Changelog

Sourced from @​turf/union's changelog.

Changelog is no longer maintained. See Turf Github releases

Commits
  • 68915ee v7.1.0
  • 948cdaf Upgrade pnpm/action-setup in github actions (#2696)
  • 5f0d405 Clarify behavior of some existing turf modules (#2683)
  • ad8012c chore: update cluster-dbscan docs (#2624)
  • 36cdb9f Revert @​turf/kinks to 6.5.0 version (#2693)
  • df7e42f Fix @​turf/mask benchmarks to exclude test fixtures that are not usable (#2692)
  • c470ea4 Add test.example.js to the prettier ignore list because it is a generated fil...
  • 7275eb9 Stop turf-mask mutating by default, make it an option (#2635)
  • c8f24e0 Update @​types/geojson to 7946.0.10 minimum (#2688)
  • 25917d8 Rework prettier setup (#2677)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 1, 2024
@dependabot dependabot bot requested a review from a team October 1, 2024 09:48
Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for oslmap ready!

Name Link
🔨 Latest commit 76694bb
🔍 Latest deploy log https://app.netlify.com/sites/oslmap/deploys/675054f0a0e32c000888eb3d
😎 Deploy Preview https://deploy-preview-504--oslmap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DafyddLlyr DafyddLlyr force-pushed the dependabot/npm_and_yarn/turf/union-7.1.0 branch 2 times, most recently from 49b9cca to 58ea0ff Compare December 4, 2024 10:19
@@ -742,7 +742,9 @@ export class MyMap extends LitElement {
}

if (this.showGeojsonDataMarkers) {
this.geojsonData.features.forEach((feature: GeoJSONFeature) => {
this.geojsonData.features.forEach((feature) => {
if (feature.geometry.type !== "Point") return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required type narrowing

const allFeatures = featureSource
.getFeatures()
.map((feature) => geojson.writeFeatureObject(feature))
.filter((feature): feature is Feature<Polygon | MultiPolygon> =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter() is required for type narrowing.

geojson.readFeature(
featureSource.getFeatures().reduce((acc: any, curr) => {
const toMerge = geojson.writeFeatureObject(curr).geometry;
return acc ? union(acc, toMerge) : toMerge;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how this wasn't caught by TS earlier, but this signature of union() was outdated after we moved from v6.5.0 (old docs).

This now accepts a feature collection, not two features (new docs)

As a result, we don't need the reduce() here and I've made this a bit more declarative.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not actually tested this though as I'm getting blocked network requests locally. Still looking into this!

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI think our use of OS Features API has maybe been out of whack for a bit beyond Turf changes here ! Sorry didn't log this as issue sooner - may not be terrible solution to mark clickFeatures and other reliant props as @deprecated in meantime and log as Github Issue to revisit/reimplement?

Think we'll need to come back to some variation of this feature eventually for applications with multiple address (eg union title boundaries).

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking these up & getting to bottom of XML filter issue !

dependabot bot and others added 4 commits December 4, 2024 13:10
Bumps [@turf/union](https://github.com/Turfjs/turf) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/Turfjs/turf/releases)
- [Changelog](https://github.com/Turfjs/turf/blob/master/CHANGELOG.md)
- [Commits](Turfjs/turf@v7.0.0...v7.1.0)

---
updated-dependencies:
- dependency-name: "@turf/union"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@DafyddLlyr DafyddLlyr force-pushed the dependabot/npm_and_yarn/turf/union-7.1.0 branch from 06d5140 to 76694bb Compare December 4, 2024 13:11
@DafyddLlyr DafyddLlyr merged commit 0cf090c into main Dec 4, 2024
5 checks passed
@DafyddLlyr DafyddLlyr deleted the dependabot/npm_and_yarn/turf/union-7.1.0 branch December 4, 2024 13:13
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants