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

Remove weak dependency for Node 12 compat #8300

Merged
merged 1 commit into from
Oct 6, 2019
Merged

Remove weak dependency for Node 12 compat #8300

merged 1 commit into from
Oct 6, 2019

Conversation

gaetanmaisse
Copy link
Member

@gaetanmaisse gaetanmaisse commented Oct 5, 2019

Issue: #8002

Context

To give some context about weak dependency, it's used only for jest related stuff and only affects some developers. The good news is Jest has been working on that and the next release of Jest will certainly allow us to remove weak from our deps.
See jestjs/jest#8686

What I did

I removed weak dependency from SB project.

--


OLD DESCRIPTION

This is sadly not a fix for #8002 but a workaround to force dev to use Node <12 as long as the issue with node-weak is not fixed.

What I did

I updated engine property of root package.json to force node to be between version 8 and 11 as node-weak dependency is not working on Node 12: TooTallNate/node-weak#99
This node max version can be removed as soon as we found a fix/workaround to node-weak and Node 12 incompatibility.

@vercel
Copy link

vercel bot commented Oct 5, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fix-node-version.storybook.now.sh

@gaetanmaisse gaetanmaisse added the maintenance User-facing maintenance tasks label Oct 5, 2019
@ndelangen
Copy link
Member

I think we could just lazy install the weak dependency

@gaetanmaisse
Copy link
Member Author

gaetanmaisse commented Oct 5, 2019

To give some context about weak dependency, it's used only for jest related stuff and only affects some developers. The good news is Jest has been working on that and the next release of Jest will certainly allow us to remove weak from our deps.
See jestjs/jest#8686

@ndelangen
Copy link
Member

"some developers" === @ndelangen

Just remove the dependency, I'll add it when I need it.

`node-weak` is not working with Node 12 and so make `yarn bootstrap` command fail.
Moreover it is used only for jest related stuff and only affects some developers.
The good news is Jest has been working on that and the next release of Jest will certainly get ride of this dependency.
See jestjs/jest#8686
@vercel vercel bot requested a deployment to staging October 5, 2019 12:33 Abandoned
@gaetanmaisse gaetanmaisse changed the title Fix Node version supported for SB development in root package.json Removed weak dependency from SB Oct 5, 2019
@gaetanmaisse gaetanmaisse changed the title Removed weak dependency from SB Remove weak dependency from SB to make it works with Node 12 Oct 5, 2019
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM!

@shilman shilman changed the title Remove weak dependency from SB to make it works with Node 12 Remove weak dependency for Node 12 compat Oct 6, 2019
@shilman shilman added this to the 5.3.0 milestone Oct 6, 2019
@shilman shilman merged commit a373153 into next Oct 6, 2019
@shilman shilman deleted the fix-node-version branch October 6, 2019 01:16
@Hypnosphi Hypnosphi added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Nov 1, 2019
Hypnosphi pushed a commit that referenced this pull request Nov 9, 2019
Remove `weak` dependency Node 12
# Conflicts:
#	package.json
@Hypnosphi Hypnosphi added the patch:done Patch/release PRs already cherry-picked to main/release branch label Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility with other tools maintenance User-facing maintenance tasks patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants