Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

build: fix path-to-regexp to older version due to node 14 requirement.#2187

Merged
ehsannas merged 2 commits intomainfrom
ehsann/fix-dep
Sep 19, 2024
Merged

build: fix path-to-regexp to older version due to node 14 requirement.#2187
ehsannas merged 2 commits intomainfrom
ehsann/fix-dep

Conversation

@ehsannas
Copy link
Copy Markdown
Contributor

Sinon depends on the nise package. That package just published v6.0.1 which updated path-to-regexp from v6.2.1 to v8.1.0 with sinonjs/nise#226. That should have been a major version bump, as this ended up introducing a breaking change that now it depends on Node >= 16, which is causing our CI to break.

This PR fixes path-to-regexp to ^6.2.1 like previously to make it work on Node >= 14

Similar to googleapis/nodejs-bigquery-storage#475 and googleapis/nodejs-bigquery#1403

@ehsannas ehsannas requested review from a team September 18, 2024 21:40
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Sep 18, 2024
@ehsannas ehsannas self-assigned this Sep 18, 2024
@product-auto-label product-auto-label Bot added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Sep 18, 2024
@ehsannas ehsannas requested a review from sofisl September 18, 2024 22:45
Copy link
Copy Markdown
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

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

Unlikely to matter, but you could do "path-to-regexp": "^6.0.0". This would ensure we always have the latest v6.x.x release. Otherwise LGTM

@ehsannas ehsannas merged commit 7fe408e into main Sep 19, 2024
@ehsannas ehsannas deleted the ehsann/fix-dep branch September 19, 2024 21:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore Issues related to the googleapis/nodejs-firestore API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants