react and @types/react versions locked to ~18.2 due to some breaking changes in react types for 18.3 when using node 22
create-sitecore-jss updates
upgraded sinon
adjusted tests to handle errors correctly for new sinon
Known issue:
(node:8860) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead. error will pop up in console when building packages or apps. This does not affect app execution, and is caused by dependencies of dependencies JSS uses. This error will go away in time, as dependencies are updates (i.e. for http-proxy-middlewarehttps://github.com/chimurai/http-proxy-middleware/issues/1058).
Description / Motivation
Update monorepo and samples to use node 22
node>=22
@types/node
deps to22.9.0
5.6.3
for compatibility@typescript-eslint
@typescript-eslint
plugin updated to version 8, some rules adjusted@stylistic/eslint-plugin-ts
dep added to keep using rules removed from@typescript-eslint
(https://github.com/typescript-eslint/typescript-eslint/issues/8072)eslint
version has been bumped to 8 for compatibility. v9 introduces some breaking changes in configuration and will be upgraded to laterreact
and@types/react
versions locked to~18.2
due to some breaking changes in react types for18.3
when using node 22sinon
Known issue:
(node:8860) [DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead.
error will pop up in console when building packages or apps. This does not affect app execution, and is caused by dependencies of dependencies JSS uses. This error will go away in time, as dependencies are updates (i.e. forhttp-proxy-middleware
https://github.com/chimurai/http-proxy-middleware/issues/1058).Testing Details
Types of changes