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

Node.js v22 Upgrade #934

Open
wants to merge 5 commits into
base: feat/fdc3-2_0-conformance
Choose a base branch
from

Conversation

kruplm
Copy link
Contributor

@kruplm kruplm commented Jan 24, 2025

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:

  1. MessageRouter JS Client
  • Tested Successfully with pricing example
  1. Node.js Launcher
  • Tested Successfully with Node.js Launcher example

Changes in this PR:

  • chore(composeui-node-launcher): Upgrade Node.js to v22
  • chore(messaging/js-client): Upgrade to Node.js v22
  • chore(workflows): Upgrade CI and Release workflows to Node.js v22
  • chore(documentation): Update README Files to Reflect Node.js 22 Upgrade

@kruplm kruplm marked this pull request as ready for review January 24, 2025 16:23
@kruplm kruplm requested a review from a team as a code owner January 24, 2025 16:23
@kruplm kruplm marked this pull request as draft January 24, 2025 16:24
@@ -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 |
Copy link
Member

Choose a reason for hiding this comment

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

22?

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@kruplm kruplm force-pushed the fdc3-2_0-conformance-nodejs22-upgrade branch from 48d5eb5 to 8f31fd8 Compare January 24, 2025 16:56
@kruplm kruplm force-pushed the fdc3-2_0-conformance-nodejs22-upgrade branch from 8f31fd8 to e44335b Compare January 24, 2025 17:41
@kruplm kruplm marked this pull request as ready for review January 29, 2025 13:10
@kruplm kruplm marked this pull request as draft January 29, 2025 13:24
@kruplm kruplm marked this pull request as ready for review January 29, 2025 16:32
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.

3 participants