Skip to content

(IDAS-422) CBOS upgrade to node v22#3098

Open
ypk wants to merge 4 commits intomainfrom
feat/IDAS-422-Node-22-Upgrade
Open

(IDAS-422) CBOS upgrade to node v22#3098
ypk wants to merge 4 commits intomainfrom
feat/IDAS-422-Node-22-Upgrade

Conversation

@ypk
Copy link
Copy Markdown
Contributor

@ypk ypk commented Mar 24, 2026

Describe your changes

This upgrades node to v22

  • Updated .nvmrc from 20 to 22.22.0
  • Updated package.json engines fields to >=22.0.0 <23.0.0
  • Updated Docker base images to node:22-alpine3.22
  • Updated Azure Pipeline files nodeVersion from 20
  • Updated Turbo 2.x config by moving NODE_ENV and APP_RELEASE to env field and removed --parallel flags
  • Updated README.md to reflect Node 22 as current version
  • Updated types and broken tests

Issue ticket number and link

IDAS-422 [CBOS] Update Node to v22

Type of change 🧩

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please explain in the description section above)

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have double checked this work does not include any hardcoded secrets or passwords
  • I have made corresponding changes to the documentation
  • I have provided details on how I have tested my code
  • I have referenced the ticket number above
  • I have provided a description of the ticket
  • I have included unit tests to cover any testable code changes

@ypk ypk requested a review from a team as a code owner March 24, 2026 13:24
@ypk ypk changed the title chore(deps): upgrade cbos to node v22 (idas-422) (IDAS-422) CBOS upgrade to node v22 Mar 24, 2026
- Updated .nvmrc from 20 to 22.22.0
- Updated package.json engines fields to >=22.0.0 <23.0.0
- Updated Docker base images to node:22-alpine3.22
- Updated Azure Pipeline files nodeVersion from 20
- Updated Turbo 2.x config by moving NODE_ENV and APP_RELEASE to env field
   and removed --parallel flags
- Updated README.md to reflect Node 22 as current version
@ypk ypk force-pushed the feat/IDAS-422-Node-22-Upgrade branch from da1c7f0 to 16b1aca Compare March 24, 2026 13:27
aria-label="Page 2"> 2</a>
</li>
<li class="govuk-pagination__item govuk-pagination__item--ellipses">&ctdot;</li>
<li class="govuk-pagination__item govuk-pagination__item--ellipsis">&ctdot;</li>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That's unusual. How come the snapshot was out of date without a corresponding template change? Also, the CSS and template is still using the old spelling, so I am a bit confused where is this coming from?

### Node.js

The current node version can be found in the package.json at the root of the project. It is recommended to use a node version manager, such as [nvm](https://github.com/nvm-sh/nvm#installing-and-updating).
The current node version is **Node.js 22.22.0 LTS**. The version can be found in `.nvmrc` and in the `engines` field of package.json files. It is recommended to use a node version manager, such as [nvm](https://github.com/nvm-sh/nvm#installing-and-updating).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please revert to the original comment, otherwise this will need to be updated with every node update and can be missed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

reverted

Comment on lines +16 to +26
// Debug: Check if we're on the right page
cy.get('body').then(($body) => {
cy.log('Current page body HTML snippet: ' + $body.html().substring(0, 500));
});

// Debug: List all form inputs on the page
cy.get('input').then(($inputs) => {
const inputIds = $inputs.map((i, el) => el.id).get();
cy.log('Available input IDs: ' + inputIds.join(', '));
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why has this been included?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed it in my local, I didn't commit it earlier.

removed.

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