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 node 20 pt 3 #2322

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Conversation

cywang117
Copy link
Contributor

chai cannot be bumped to v5, nor husky to v9, nor pretty-ms to v9, due to the Supervisor still being a CommonJS module and the aforementioned packages moving to ESM in those versions. Doing so will result in the ERR_REQUIRE_ESM error until we can migrate to an ESM module (type: module in package.json). See: chaijs/chai#1561

Node 22 should help with ESM <--> CJS interoperability, see docs. We can revisit some NPM bumps after a Node upgrade.

Closes: #2321, #2320, #2319, #2315, #2290

@cywang117 cywang117 force-pushed the update-dependencies-node-20-pt-3 branch from 529f961 to ebf3670 Compare April 26, 2024 07:17
@flowzone-app flowzone-app bot enabled auto-merge April 26, 2024 08:00
@Page-
Copy link
Contributor

Page- commented Apr 29, 2024

@cywang117 husky might be ESM but the supervisor doesn't import it anywhere, it's only used as essentially a binary

@Page-
Copy link
Contributor

Page- commented Apr 29, 2024

PRed the husky update in #2323

TODO: Upgrading io-ts to 2.2.21 will result in some unit tests for
io-ts type validation breaking, due to a change in t.record's handling
of decoding unknown objects. In <2.2.21, a record with a custom key type
will decode an unknown object to Left if it has a key is not of the custom
type. Whereas in [email protected], t.record will strip the invalid key and
decode to Right. This is a breaking change for us.

Change-type: patch
Signed-off-by: Christina Ying Wang <[email protected]>
Change-type: patch
Signed-off-by: Christina Ying Wang <[email protected]>
@cywang117 cywang117 force-pushed the update-dependencies-node-20-pt-3 branch from ebf3670 to 23ba3e4 Compare April 29, 2024 19:25
@cywang117
Copy link
Contributor Author

@balena-ci I self-certify!

@flowzone-app flowzone-app bot merged commit 7234e20 into master Apr 29, 2024
53 checks passed
@flowzone-app flowzone-app bot deleted the update-dependencies-node-20-pt-3 branch April 29, 2024 19:53
This was referenced Apr 29, 2024
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.

2 participants