Skip to content

Commit

Permalink
Merge pull request #1000 from 200ok-ch/feat/upgrade-to-node-20.17.0-lts
Browse files Browse the repository at this point in the history
Upgrade to node 20.17.0 lts
  • Loading branch information
munen authored Nov 11, 2024
2 parents ded7951 + 8c0e157 commit 7c3d829
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 48 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
jobs:
deploy-stage:
docker:
- image: circleci/node:16.13.1-bullseye
- image: cimg/node:20.17.0
steps:
- checkout
- restore_cache:
Expand All @@ -24,7 +24,7 @@ jobs:
command: 'FTP_USER=${FTP_USER_STAGE} FTP_PASSWD=${FTP_PASSWD_STAGE} ./bin/compile_doc_and_upload.sh'
deploy-prod:
docker:
- image: circleci/node:16.13.1-bullseye
- image: cimg/node:20.17.0
steps:
- checkout
- restore_cache:
Expand All @@ -43,7 +43,7 @@ jobs:

build:
docker:
- image: circleci/node:16.13.1-bullseye
- image: cimg/node:20.17.0

working_directory: ~/repo

Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:

build-docs:
docker:
- image: circleci/node:16.13.1-bullseye
- image: cimg/node:20.17.0

working_directory: ~/repo

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ yarn-error.log*
/documentation.org

.eslintcache
/src/components/Landing/vendor_css/template.css
/src/components/Landing/vendor_css/template.css.map
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.20.2
v20.17.0
3 changes: 3 additions & 0 deletions bin/compile_sass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

yarn sass --no-source-map src/components/Landing/vendor_css/template.{scss,css}
20 changes: 20 additions & 0 deletions changelog.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ All user visible changes to organice will be documented in this file.

When there are updates to the changelog, you will be notified and see a 'gift' icon appear on the top right corner.

* [2024-11-11 Mon]

** Changed

- No UI/UX changes, but lots of tooling upgrades
- Major version technical upgrades
- nodejs (from 12 to 20)
- Create React App (from 3 to 4)
- eslint (from 6 to 7)
- node-sass to sass
- Minor version technical upgrades
- redux-undo
- React

PRs:

- https://github.com/200ok-ch/organice/pull/1000
- https://github.com/200ok-ch/organice/pull/999
- https://github.com/200ok-ch/organice/pull/998

* [2024-11-09 Sat]
** Fixed

Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"private": true,
"engines": {
"node": "^16.13.1"
"node": "^20.17.0"
},
"resolutions": {
"@babel/core": "^7.16.0"
Expand Down Expand Up @@ -31,16 +31,17 @@
"react-scripts": "4.0.3",
"redux": "^4.1.0",
"redux-thunk": "^2.3.0",
"redux-undo": "1.0.1",
"sass": "1.44.0",
"redux-undo": "1.1.0",
"sass": "1.45.0",
"webdav": "^3.3.0"
},
"scripts": {
"start": "./bin/compile_search_parser.sh && react-scripts start",
"build": "./bin/compile_search_parser.sh && react-scripts build",
"test:dbg": "./bin/compile_search_parser.sh && react-scripts --inspect-brk test --runInBand --no-cache",
"test": "./bin/compile_search_parser.sh && react-scripts test --env=jsdom",
"coverage": "./bin/compile_search_parser.sh && react-scripts test --env=jsdom --coverage --watchAll=false",
"start": "./bin/compile_search_parser.sh && yarn run compile-sass && react-scripts --openssl-legacy-provider start",
"compile-sass": "./bin/compile_sass.sh",
"build": "./bin/compile_search_parser.sh && yarn run compile-sass && react-scripts --openssl-legacy-provider build",
"test:dbg": "./bin/compile_search_parser.sh && yarn run compile-sass && react-scripts --inspect-brk test --runInBand --no-cache",
"test": "./bin/compile_search_parser.sh && yarn run compile-sass && react-scripts test --env=jsdom",
"coverage": "./bin/compile_search_parser.sh && yarn run compile-sass && react-scripts test --env=jsdom --coverage --watchAll=false",
"eslint": "./node_modules/.bin/eslint --cache .",
"nibble": "./node_modules/.bin/eslint-nibble --cache .",
"prettier": "./node_modules/.bin/prettier \"**/*.js\"",
Expand All @@ -59,7 +60,7 @@
"eslint-nibble": "^6.1.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-redux": "^3.3.0",
"eslint-plugin-react-redux": "4.0.0",
"prettier": "^2.0.5",
"prettier-eslint": "^11.0.0",
"prettier-eslint-cli": "^5.0.1",
Expand Down
12 changes: 11 additions & 1 deletion src/components/Landing/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import React from 'react';
import { Link } from 'react-router-dom';

import './vendor_css/template.scss';
// NOTE: Importing of the scss file works for `yarn start` just fine
// as it should according to the docs:
// https://create-react-app.dev/docs/adding-a-sass-stylesheet/
// However, after leaving node 12 behind, `yarn build` will
// throw an error. Since we don't really update the scss a whole
// lot, we import the compiled css file and a task `yarn
// compile-sass`.

// import './vendor_css/template.scss';
import './vendor_css/template.css';

import './stylesheet.css';

// import AOS from 'aos';
Expand Down
67 changes: 34 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5690,33 +5690,15 @@ eslint-plugin-react-hooks@^4.2.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596"
integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==

eslint-plugin-react-redux@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-redux/-/eslint-plugin-react-redux-3.3.0.tgz#85ee447872a89f47bf996cd9e6e16eaf0fc39080"
integrity sha512-DmuDP5EVUXciddfCzu3WQnmQP+eZWRxyuzvuk80casan1HP1PEn+LPcmK8S7ySU1yeneyIFyne9TKiP/p9kr0w==
eslint-plugin-react-redux@4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-redux/-/eslint-plugin-react-redux-4.0.0.tgz#f4b4a89c34d4f1d14000d27c1246639b4e88e644"
integrity sha512-oT43AoOgqsXjYKm7JiQCD1Mxp2tjO/ywv/WJn0cVNVirpd91xfvxWnYU93tqKSZwdryxdZ/S+ea2iIYeRdeaZg==
dependencies:
eslint-plugin-react "^7.16.0"
eslint-plugin-react "^7.28.0"
eslint-rule-composer "^0.3.0"

eslint-plugin-react@^7.16.0, eslint-plugin-react@^7.23.2:
version "7.23.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.23.2.tgz#2d2291b0f95c03728b55869f01102290e792d494"
integrity sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==
dependencies:
array-includes "^3.1.3"
array.prototype.flatmap "^1.2.4"
doctrine "^2.1.0"
has "^1.0.3"
jsx-ast-utils "^2.4.1 || ^3.0.0"
minimatch "^3.0.4"
object.entries "^1.1.3"
object.fromentries "^2.0.4"
object.values "^1.1.3"
prop-types "^15.7.2"
resolve "^2.0.0-next.3"
string.prototype.matchall "^4.0.4"

eslint-plugin-react@^7.21.5:
eslint-plugin-react@^7.21.5, eslint-plugin-react@^7.28.0:
version "7.37.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.37.2.tgz#cd0935987876ba2900df2f58339f6d92305acc7a"
integrity sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==
Expand All @@ -5740,6 +5722,24 @@ eslint-plugin-react@^7.21.5:
string.prototype.matchall "^4.0.11"
string.prototype.repeat "^1.0.0"

eslint-plugin-react@^7.23.2:
version "7.23.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.23.2.tgz#2d2291b0f95c03728b55869f01102290e792d494"
integrity sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==
dependencies:
array-includes "^3.1.3"
array.prototype.flatmap "^1.2.4"
doctrine "^2.1.0"
has "^1.0.3"
jsx-ast-utils "^2.4.1 || ^3.0.0"
minimatch "^3.0.4"
object.entries "^1.1.3"
object.fromentries "^2.0.4"
object.values "^1.1.3"
prop-types "^15.7.2"
resolve "^2.0.0-next.3"
string.prototype.matchall "^4.0.4"

eslint-plugin-testing-library@^3.9.2:
version "3.10.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-testing-library/-/eslint-plugin-testing-library-3.10.2.tgz#609ec2b0369da7cf2e6d9edff5da153cc31d87bd"
Expand Down Expand Up @@ -11862,10 +11862,10 @@ redux-thunk@^2.3.0:
resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.3.0.tgz#51c2c19a185ed5187aaa9a2d08b666d0d6467622"
integrity sha512-km6dclyFnmcvxhAcrQV2AkZmPQjzPDjgVlQtR0EQjxZPyJ0BnMf3in1ryuR8A2qU0HldVRfxYXbFSKlI3N7Slw==

redux-undo@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/redux-undo/-/redux-undo-1.0.1.tgz#8d989d6c326e6718f4471042e90a5b8b6f3317eb"
integrity sha512-0yFPT+FUgwxCEiS0Mg5T1S4tkgjR8h6sJRY9CW4EMsbJOf1SxO289TbJmlzhRouCHacdDF+powPjrjLHoJYxWQ==
redux-undo@1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/redux-undo/-/redux-undo-1.1.0.tgz#ae28e517797b1aa5521d55da561f7214d310f8a5"
integrity sha512-zzLFh2qeF0MTIlzDhDLm9NtkfBqCllQJ3OCuIl5RKlG/ayHw6GUdIFdMhzMS9NnrnWdBX5u//ExMOHpfudGGOg==

redux@^4.0.4, redux@^4.1.0:
version "4.1.0"
Expand Down Expand Up @@ -12371,13 +12371,14 @@ sass-loader@^10.0.5:
schema-utils "^3.0.0"
semver "^7.3.2"

sass@1.44.0:
version "1.44.0"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.44.0.tgz#619aa0a2275c097f9af5e6b8fe8a95e3056430fb"
integrity sha512-0hLREbHFXGQqls/K8X+koeP+ogFRPF4ZqetVB19b7Cst9Er8cOR0rc6RU7MaI4W1JmUShd1BPgPoeqmmgMMYFw==
sass@1.45.0:
version "1.45.0"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.45.0.tgz#192ede1908324bb293a3e403d1841dbcaafdd323"
integrity sha512-ONy5bjppoohtNkFJRqdz1gscXamMzN3wQy1YH9qO2FiNpgjLhpz/IPRGg0PpCjyz/pWfCOaNEaiEGCcjOFAjqw==
dependencies:
chokidar ">=3.0.0 <4.0.0"
immutable "^4.0.0"
source-map-js ">=0.6.2 <2.0.0"

sax@^1.2.4, sax@~1.2.4:
version "1.2.4"
Expand Down Expand Up @@ -12775,7 +12776,7 @@ source-list-map@^2.0.0:
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==

source-map-js@^1.2.1:
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
Expand Down

0 comments on commit 7c3d829

Please sign in to comment.