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

Update water-abstraction-helpers to latest version #496

Merged
merged 3 commits into from
Dec 1, 2022
Merged

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Nov 29, 2022

DEFRA/water-abstraction-team#45
DEFRA/water-abstraction-helpers#200

This resolves an issue in specific scenarios where the logger in helpers expects an instance of Error.

It also removes the dead deep-map dependency. When we bumped the helpers everything broke! After investigation, this was because scripts/licence-creator/index.js was requiring deep-map to do some work (see new comment in code to find out what that is).

The problem is deep-map was then requiring es6-weak-map but only had it listed as a dev dependency. This is raised as an issue and someone has even gone to the effort of creating a fix PR. But to no avail, as these were done in 2019 and multiple pings to the contributor have not resulted in the fix being merged.

The last release was 4 years ago so this is clearly an abandoned project. Also, we've been able to replicate what it was doing with very little extra code so it was unnecessary in the first place.

DEFRA/water-abstraction-team#45
DEFRA/water-abstraction-helpers#200

This resolves an issue found in certain scenarios where the logger in helpers is expecting an instance of `Error`.
@Cruikshanks Cruikshanks added the dependencies Pull requests that update a dependency file label Nov 29, 2022
@Cruikshanks Cruikshanks self-assigned this Nov 29, 2022
So, with our bump of the helpers everything broke! After investigation this was because `scripts/licence-creator/index.js` was requiring [deep-map](https://github.com/mcmath/deep-map) to do some work (see new comment in code to find out what that is).

The problem is **deep-map** was then requiring `es6-weak-map` but only had it listed as a dev dependency. This is raised [as an issue](mcmath/deep-map#14) and someone has even gone to the effort of creating a [fix PR](mcmath/deep-map#15). But to no avail as these were done in 2019 and multiple pings to the contributor have not resulted in the fix being merged.

The last release was 4 years ago so this is clearly an abandoned project. Also, we've been able to replicate what it was doing with very little extra code so it was unnecessary in the first place.
@Cruikshanks Cruikshanks merged commit c1632dd into main Dec 1, 2022
@Cruikshanks Cruikshanks deleted the bump-helpers branch December 1, 2022 00:28
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants