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

chore: remove vm2 from dev dependencies #284

Merged
merged 6 commits into from
Jul 20, 2023
Merged

chore: remove vm2 from dev dependencies #284

merged 6 commits into from
Jul 20, 2023

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Jul 14, 2023

vm2 is a transitive dependency that we do not use, and we patched it to be completely harmless. However, it seems the automation is not able to detect that, and is producing annoying warnings, so let's update it.

Refs: #283

@aduh95 aduh95 changed the title chore: update vm2 dependency chore: update vm2 dev dependency Jul 14, 2023
@aduh95
Copy link
Contributor Author

aduh95 commented Jul 14, 2023

Hum it seems that 3.9.19 is also affected, so that won't fix the automated report 😒 https://www.npmjs.com/package/vm2 shows that the package is deprecated and won't be fixed, so let's remove it from our dependency tree instead.

@aduh95 aduh95 changed the title chore: update vm2 dev dependency chore: remove vm2 from dev dependencies Jul 14, 2023
@aduh95
Copy link
Contributor Author

aduh95 commented Jul 14, 2023

It seems it's not possible to affect dependencies using patches, @arcanis is that right? I'd have sworn that was possible at some point.

@arcanis
Copy link
Contributor

arcanis commented Jul 14, 2023

Metadata are retrieved from the registry, so I think patch won't be able to change them; probably something we should fix in Yarn 🤔

In the meantime we can use a resolutions field to map vm2 to a portal:./path/to/vm2/mock; I'm not in front of my computer to test but I think it should do the trick.

vm2/index.js Outdated Show resolved Hide resolved
@aduh95 aduh95 requested review from arcanis and merceyz July 14, 2023 14:08
@aduh95 aduh95 merged commit b340844 into main Jul 20, 2023
@aduh95 aduh95 deleted the vm2-update branch July 20, 2023 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants