-
Notifications
You must be signed in to change notification settings - Fork 25
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
Node.js v22 Upgrade #934
base: feat/fdc3-2_0-conformance
Are you sure you want to change the base?
Node.js v22 Upgrade #934
Conversation
.github/workflows/README.md
Outdated
@@ -8,7 +8,7 @@ Accessing them can be done via the vars object. | |||
| Variable | Description | Example value | | |||
| -------------- | ------------------------------------------------------- | ------------- | | |||
| DOTNET_VERSION | The version of dotnet to load with actions/setup-dotnet | 6.0.x | | |||
| NODE_VERSION | The version of node.js to load with actions/setup-node | 18.x | | |||
| NODE_VERSION | The version of node.js to load with actions/setup-node | 20.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.
22?
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 was meant to be 22. Good catch, let me fix that.
@@ -9,7 +9,7 @@ | |||
"declaration": true, | |||
"outDir": "output", | |||
"lib": [ "es2022", "DOM" ], | |||
"strict": true | |||
"strict": false |
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.
Uhm, are we sure about this?
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.
we can't use 'with' in strict mode.
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.
ok, I did a double check. It looks like that fortunately I only need to remove the enforcement of the strict mode from the script file, but not from the tsconfig.json files. I've reset the value to true.
48d5eb5
to
8f31fd8
Compare
8f31fd8
to
e44335b
Compare
This PR upgrades packages and CI workflows to build on Node.js 22.
Node.js 22 has replaced the 'assert' syntax with 'with'
which had an impact on the packaging for 2 of our libraries:
Changes in this PR: