-
Notifications
You must be signed in to change notification settings - Fork 16
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
Deps/node engines <16 #94
Conversation
package.json
Outdated
@@ -20,7 +20,10 @@ | |||
}, | |||
"license": "MIT", | |||
"peerDependencies": { | |||
"msw": ">=0.35.0" | |||
"msw": ">=0.36.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't mean to add this, this is for a separate issue, to upgrade msw to 1.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably a breaking change, so I think it's ok to do it at the same time as long as it's documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Left a commend and an unrelated observation in line 🙌
package.json
Outdated
@@ -20,7 +20,10 @@ | |||
}, | |||
"license": "MIT", | |||
"peerDependencies": { | |||
"msw": ">=0.35.0" | |||
"msw": ">=0.36.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably a breaking change, so I think it's ok to do it at the same time as long as it's documented.
@@ -115,7 +115,7 @@ describe("API - With MSW mock generating a pact", () => { | |||
|
|||
test("unhandled route", async () => { | |||
await expect(API.getProduct("11")).rejects.toThrow( | |||
/^connect ECONNREFUSED (127.0.0.1|::1):8081$/ | |||
/^Error: connect ECONNREFUSED (127.0.0.1|::1):8081.*$/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we improve this error message more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it’s just a generic error thrown from axios, ( in test code ), rather than users code. msw already logs out to the console that the request was unhandled
Dropping support for Node versions below 16 in our project.
Why
Active development of Node 14 ended 21 Apr 2020
Active development of Node 16 ended 20 Apr 2021
Main problems of supporting EOL versions
Actions
Considering the aforementioned problems, it is recommended to drop support for versions from testing in our CI systems, for any versions out of security support
We use the following reference site https://endoflife.date
Tested Platforms
We attempt to be tested cross-platform/architecture, across multiple versions. See the
following table for progress.
Legend
Testing Matrix
## Notifying users
Update node_engines field to set to
Update testing matrix, to drop node 14
Add badges to
README
, to notify user