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

[Chore] Upgrade to Node.js 20.x #1679

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Our versioning strategy is as follows:

* `[sitecore-jss]` `[templates/nextjs-xmcloud]` Load the content styles for the RichText component [#1670](https://github.com/Sitecore/jss/pull/1670)

### 🧹 Chores

* Upgrade to Node.js 20.x ([#1679](https://github.com/Sitecore/jss/pull/1679))

### 🐛 Bug Fixes

* `[templates/node-headless-ssr-proxy]` `[node-headless-ssr-proxy]` Add sc_site qs parameter to Layout Service requests by default ([#1660](https://github.com/Sitecore/jss/pull/1660))
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ variables:
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
versionSpec: '20.x'
- script: |
yarn cache clean --all && yarn install --immutable
displayName: 'yarn install - initial'
Expand Down
2 changes: 1 addition & 1 deletion packages/create-sitecore-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "npm run clean && tsc && ts-node ./scripts/build-templates.ts",
"clean": "del-cli dist types",
"lint": "eslint --no-eslintrc -c .eslintrc ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"watch": "ts-node ./scripts/watch-templates.ts",
"test": "mocha --require ts-node/register \"./src/**/*.test.ts\"",
"coverage": "nyc npm test"
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"scripts": {
"build": "ng-packagr -p ng-package.json",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "ng test",
"test:watch": "ng test --no-single-run --browsers Chrome",
"coverage": "ng test --code-coverage",
Expand Down
1 change: 1 addition & 0 deletions packages/sitecore-jss-angular/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js';
import 'zone.js/testing';
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"watch": "npm run build -- --watch",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"prepublishOnly": "npm run build",
"jss": "node ./dist/cjs/bin/jss.js",
"test": "mocha --require ts-node/register/transpile-only \"./src/**/*.test.ts\"",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"watch": "npm run build -- --watch",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register -r tsconfig-paths/register \"./src/**/*.test.ts\"",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ export function generateComponentBuilder({

/**
* Watch for changes to component builder sources
* @param {string} componentRootPath root path to components
* @param {PackageDefinition[]} packages packages to include in component builder
* @param {ComponentFile[]} components components to include in component builder
* @param {object} config configuration for component builder watcher
* @param {string} config.componentRootPath root path to components
* @param {PackageDefinition[]} config.packages packages to include in component builder
* @param {ComponentFile[]} config.components components to include in component builder
*/
export function watchComponentBuilder({
componentRootPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register \"./src/**/*.test.ts\"",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
"lint": "eslint \"./src/**/*.tsx\" \"./src/**/*.ts\"",
"test": "mocha --require ./test/setup.js \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\" --exit",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class EditingRenderMiddleware {

/**
* Gets query parameters that should be passed along to subsequent requests
* @param query Object of query parameters from incoming URL
* @param {Object} query Object of query parameters from incoming URL
* @returns Object of approved query parameters
*/
protected getQueryParamsForPropagation = (
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register \"./src/**/*.test.ts\"",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-react-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
"lint": "eslint \"./src/**/*.tsx\" \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register/transpile-only --require ./src/tests/shim.ts ./src/tests/jsdom-setup.ts ./src/tests/enzyme-setup.ts \"./src/**/*.test.tsx\" --exit",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"clean": "del-cli dist types",
"typecheck": "tsc",
"fixcrlf": "eslint --rule 'linebreak-style: [\"error\", \"unix\"]' --ext .ts --no-eslintrc --fix ./dist",
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
"lint": "eslint \"./src/**/*.tsx\" \"./src/**/*.ts\"",
"test": "jest",
"prepublishOnly": "npm test && npm run build",
"coverage": "jest --config ./jest.config.coverage.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
"lint": "eslint \"./src/**/*.tsx\" \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register/transpile-only --require ./src/tests/shim.ts ./src/tests/jsdom-setup.ts ./src/tests/enzyme-setup.ts \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\" --exit",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-rendering-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register/transpile-only \"./src/**/*.test.ts\"",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "jest",
"prepublishOnly": "npm run build",
"coverage": "jest --config ./jest.config.coverage.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
"clean": "del-cli dist types",
"lint": "eslint ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --require ts-node/register \"./src/**/*.test.ts\"",
"prepublishOnly": "npm run build",
"coverage": "nyc npm test",
Expand Down