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!: update to lerna 6 #918

Merged
merged 5 commits into from Nov 25, 2022
Merged

build!: update to lerna 6 #918

merged 5 commits into from Nov 25, 2022

Conversation

subzero10
Copy link
Member

@subzero10 subzero10 commented Oct 28, 2022

Status

READY

Description

The automated update from dependabot is failing so I'm trying it manually.
Lerna 6 brings performance improvements.

@subzero10 subzero10 self-assigned this Oct 28, 2022
@subzero10 subzero10 added the js @honeybadger-io/js label Oct 28, 2022
@subzero10
Copy link
Member Author

CI is failing with node v12. I didn't see anything in Lerna's changelog about removing support. I created an issue in the lerna repository.

@subzero10
Copy link
Member Author

So, I looked a bit deeper in Lerna's changelog and it seems they dropped support for node v10 and v12 in v5. It looks though that lerna really stopped working with node v12 at v6.

@joshuap What's our convention/policy about node version support? node v12 reached end of life 6 months ago.
FYI lerna v6 upgrade can be delayed, but we'll probably face issues like this one with more packages pretty soon.

@joshuap
Copy link
Member

joshuap commented Oct 31, 2022

So, I looked a bit deeper in Lerna's changelog and it seems they dropped support for node v10 and v12 in v5. It looks though that lerna really stopped working with node v12 at v6.

@joshuap What's our convention/policy about node version support? node v12 reached end of life 6 months ago. FYI lerna v6 upgrade can be delayed, but we'll probably face issues like this one with more packages pretty soon.

Our CI should build on officially maintained/supported versions. We can drop for support for anything that is EOL.

@subzero10 subzero10 changed the title chore: update to lerna 6 build!: update to lerna 6 Nov 18, 2022
@subzero10
Copy link
Member Author

@joshuap @shalvah I marked this as breaking change (major version bump) because our CI won't test against node v12 anymore.

This requirement comes from Lerna v6, a monorepo dependency, not a dependency to any of our packages. This means the packages will still work with node v12, at least for now.

Copy link
Member

@joshuap joshuap left a comment

Choose a reason for hiding this comment

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

The changes look good to me, but I'm not sure about the version bump—do we really need to bump the major version just because we're dropping an old version in CI?

@subzero10
Copy link
Member Author

The changes look good to me, but I'm not sure about the version bump—do we really need to bump the major version just because we're dropping an old version in CI?

Good point. I'm not sure to be honest, but here's the argument for it:

  • We are going to stop testing on Node v12.
  • Any new code introduced will not be tested against Node v12.
  • When some change breaks on Node v12, we won't know about it until we get an issue reported (but we don't know if that's going to happen, considering Node v12 has already reached EOL).

I guess we could decide not to do a major version bump, and accept that there is some risk involved for future releases (this release will still work with Node v12).

@joshuap
Copy link
Member

joshuap commented Nov 22, 2022

I could go either way—I'm fine doing the major bump if you're more comfortable with that. Maybe @shalvah could weigh in on this as well.

@shalvah
Copy link
Contributor

shalvah commented Nov 23, 2022

I'm also fine either way, but is there a chance we're introducing other breaking changes soon? If so, I'd hold off the major until that.

@subzero10 subzero10 added this to the v5 milestone Nov 25, 2022
@subzero10 subzero10 changed the base branch from master to releases/v5 November 25, 2022 12:52
@subzero10
Copy link
Member Author

I'm also fine either way, but is there a chance we're introducing other breaking changes soon? If so, I'd hold off the major until that.

Done! We now have 2 changes for the next major release 😉

@subzero10 subzero10 merged commit 1a90d57 into releases/v5 Nov 25, 2022
@subzero10
Copy link
Member Author

See #959.

subzero10 added a commit that referenced this pull request Feb 1, 2023
BethanyBerkowitz pushed a commit that referenced this pull request Feb 1, 2023
subzero10 added a commit that referenced this pull request Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js @honeybadger-io/js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants