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 dependencies and drop Node.js 10 support #297

Merged
merged 3 commits into from
Apr 12, 2022
Merged

Update dependencies and drop Node.js 10 support #297

merged 3 commits into from
Apr 12, 2022

Conversation

XhmikosR
Copy link
Collaborator

@XhmikosR XhmikosR commented Dec 18, 2021

Requires #296 so that we have CI running.

Fixes #303, fixes #304 along the way

TODO:

@XhmikosR XhmikosR added the dependencies Pull requests that update a dependency file label Dec 18, 2021
@nicojs
Copy link
Contributor

nicojs commented Jan 10, 2022

@XhmikosR do you know who has maintainer access here? @johnjbarton isn't responding, would love to get some PR's in.

@XhmikosR
Copy link
Collaborator Author

Just be patient, it'll happen when people are back at their offices.

@nicojs
Copy link
Contributor

nicojs commented Jan 13, 2022

I admire your optimism, but my PR #290 has been waiting for 6 months.

I'm not judging here, I know how it is. Just wondering who to contact 😌

@XhmikosR
Copy link
Collaborator Author

Well, I guess @jginsburgn ^^

@XhmikosR XhmikosR force-pushed the xmr-wip branch 4 times, most recently from 543dfa2 to 9971a25 Compare March 30, 2022 05:54
@XhmikosR XhmikosR marked this pull request as ready for review March 30, 2022 05:56
@XhmikosR
Copy link
Collaborator Author

@jginsburgn I'm having trouble with commitlint, I could use a little help. That being said, commitlint should run once in a separate workflow and shouldn't block the other tests.

Also, should I drop Node.js 10 support here? It's causing issues AFAICT

@sgravrock
Copy link

Also, should I drop Node.js 10 support here? It's causing issues AFAICT

I'm not sure how much bearing this has on what karma-jasmine does, but FWIW jasmine 4.x requires at least Node 12.17. Older versions can mostly be made to work with a configuration change, at least for now, but we no longer test against them and aren't making any attempt to keep them working.

@jginsburgn
Copy link
Member

Also, should I drop Node.js 10 support here? It's causing issues AFAICT

I'm not sure how much bearing this has on what karma-jasmine does, but FWIW jasmine 4.x requires at least Node 12.17. Older versions can mostly be made to work with a configuration change, at least for now, but we no longer test against them and aren't making any attempt to keep them working.

TBH I think it should trigger a breaking change. @XhmikosR, @sgravrock and @devoto13 WDYT?

@jginsburgn
Copy link
Member

jginsburgn commented Apr 4, 2022

Also, we should probably support Node.js 14, 16 and 18.

@jginsburgn jginsburgn added the breaking Issues that should be resolved in pre-releases. label Apr 4, 2022
@devoto13
Copy link
Collaborator

devoto13 commented Apr 5, 2022

Yeah, I think that bumping the karma version we test against, major Jasmine bump and minimum Node version bump should trigger a major release.

package.json Outdated Show resolved Hide resolved
@jginsburgn
Copy link
Member

Let's merge this PR once #312 gets settled.

package.json Show resolved Hide resolved
@XhmikosR XhmikosR force-pushed the xmr-wip branch 2 times, most recently from 2c9a839 to a57d1b1 Compare April 11, 2022 05:16
@XhmikosR XhmikosR changed the title Update dependencies Update dependencies and drop Node.js 10 support Apr 11, 2022
@XhmikosR XhmikosR marked this pull request as ready for review April 11, 2022 05:20
@XhmikosR
Copy link
Collaborator Author

BTW how am I supposed to construct the commit message so that linting is passing?

@jginsburgn
Copy link
Member

Rebased and updated to the latest deps.

Personally I would just release this as a major version bump and stop worrying about it :)

I agree with you for this release, as latest is already stale. But at least we should couple it with #304 and all the dependency upgrades we can do! WDYT @devoto13 ?

@jginsburgn
Copy link
Member

BTW how am I supposed to construct the commit message so that linting is passing?

We are using Angular's Commit Message Format, which for breaking changes instead of using the exclamation point after the commit type, uses a special kind of footer.

package.json Outdated Show resolved Hide resolved
.github/workflows/lint.yml Outdated Show resolved Hide resolved
@devoto13
Copy link
Collaborator

I agree with you for this release, as latest is already stale. But at least we should couple it with #304 and all the dependency upgrades we can do! WDYT @devoto13 ?

@jginsburgn I think @XhmikosR is right and we don't need to wait for the beta branch here. I've updated the PR and added BREAKING CHANGE section to each commit, so the changelog should look good now. We can merge this PR, release 5.0.0, and do any other cleanups/updates in the follow-up PRs.

devoto13
devoto13 previously approved these changes Apr 12, 2022
Copy link
Collaborator

@devoto13 devoto13 left a comment

Choose a reason for hiding this comment

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

LGTM
I think the open discussions are non-blocking and we can merge this directly.

@XhmikosR
Copy link
Collaborator Author

Rebased on last time. I'm still having trouble with the Angular commit messages, so if the commit messages need fixing, feel free to reword :)

Should be ready to land from my side.

@devoto13
Copy link
Collaborator

@XhmikosR Well, I did just that before your last rebase 😉

You can set commit message to be the same as in 1d00309, 17934c1 and 2aa3e81.

BREAKING CHANGE: jasmine-core was updated to the 4.1.0.

Please refer to the [release notes](https://github.com/jasmine/jasmine/blob/main/release_notes/4.0.0.md) for the complete list of changes and migration instructions.
BREAKING CHANGE: The minimum required version of Node is 12.0.0.
BREAKING CHANGE: The minimum required version of karma is 6.0.0.
@XhmikosR
Copy link
Collaborator Author

@devoto13 thanks, and sorry about that. I missed the force push, I only saw the approval :/

Copy link
Collaborator

@devoto13 devoto13 left a comment

Choose a reason for hiding this comment

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

@XhmikosR No worries!
LGTM

@jginsburgn jginsburgn merged commit d72c124 into master Apr 12, 2022
@jginsburgn jginsburgn deleted the xmr-wip branch April 12, 2022 17:31
@karmarunnerbot
Copy link
Member

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@XhmikosR
Copy link
Collaborator Author

Something else I noticed @jginsburgn @devoto13: should we move jasmine-core to peer dependencies? In major version bump, ofc.

@jginsburgn
Copy link
Member

I think it makes sense to have it as a dependency! IIUC peer dependencies are meant to be used by plugins to indicate the host package.

@XhmikosR
Copy link
Collaborator Author

Yeah, I'm in between myself... I just noticed that other packages use jasmine-core as a peer dependency. Not a big deal since as long as we are up to date package managers can deduplicate the package.

@devoto13
Copy link
Collaborator

I agree with Jonathan, it's not a plugin and I don't see a good reason why a project must use a single instance of the jasmine-core, so I would prefer to keep it as a regular dependency to make karma-jasmine easier to install.

@jginsburgn
Copy link
Member

Then it is settled: let's keep it as a dependency :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Issues that should be resolved in pre-releases. dependencies Pull requests that update a dependency file released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jasmine 4 support?
6 participants