Skip to content

Commit

Permalink
Update node.js to v20 (#4574)
Browse files Browse the repository at this point in the history
* Update node to v20

* Fix dependencies

* Update test snapshots
  • Loading branch information
gusevda authored Jan 25, 2024
1 parent ae0de76 commit ba05406
Show file tree
Hide file tree
Showing 9 changed files with 3,726 additions and 7,577 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
defaults: &defaults
working_directory: ~/happa
docker:
- image: cimg/node:16.20
- image: cimg/node:20.11

job_filters: &job_filters
filters:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Happa is a single page JavaScript application using React+Redux and runs in mode

To run happa locally, you need:

- [NodeJS 16](https://nodejs.org/)
- [NodeJS 20](https://nodejs.org/)
- [`yarn`](https://yarnpkg.com/)
- [`kubectl`](https://github.com/giantswarm/kubectl) - Necessary to use happa against a Giant Swarm installation.

Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const esModules = [
'unist-builder',
'@rjsf/core/node_modules',
'vfile',
'trim-lines',
].join('|');

const config: Config.InitialOptions = {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"private": true,
"src": "src",
"test": "test",
"engines": {
"node": "20"
},
"scripts": {
"lint": "./node_modules/.bin/eslint --ext .js,.ts,.tsx ./src/",
"lint:fix": "yarn lint --fix",
Expand Down Expand Up @@ -247,7 +250,8 @@
"http-proxy": "1.18.1",
"node-fetch": "2.6.12",
"trim": "1.0.1",
"underscore": "1.13.6"
"underscore": "1.13.6",
"string-width": "4.2.3"
},
"lint-staged": {
"*.{js,ts,tsx}": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports[`CLIGuide renders the contents when open 1`] = `
>
<svg
aria-label="FormUp"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -123,7 +123,7 @@ exports[`CLIGuide renders without crashing 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -197,7 +197,7 @@ exports[`CLIGuidesList renders the children as-is if there is only one 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -269,7 +269,7 @@ exports[`CLIGuidesList renders the contents when open 1`] = `
>
<svg
aria-label="FormUp"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -332,7 +332,7 @@ exports[`CLIGuidesList renders the contents when open 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -395,7 +395,7 @@ exports[`CLIGuidesList renders the contents when open 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 XHhNK"
class="StyledIcon-sc-ofa7kd-0 gLGkbm"
viewBox="0 0 24 24"
>
<path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`DateInput renders a button that triggers the calendar 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 fqIJoZ"
class="StyledIcon-sc-ofa7kd-0 cYvCKl"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -86,7 +86,7 @@ exports[`DateInput renders a disabled input 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -136,7 +136,7 @@ exports[`DateInput renders a simple input 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -198,7 +198,7 @@ exports[`DateInput renders an input with a help message 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -255,7 +255,7 @@ exports[`DateInput renders an input with a label 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -312,7 +312,7 @@ exports[`DateInput renders an input with a validation error 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -374,7 +374,7 @@ exports[`DateInput renders an input with an info message 1`] = `
>
<svg
aria-label="Calendar"
class="StyledIcon-sc-ofa7kd-0 kFgwXN"
class="StyledIcon-sc-ofa7kd-0 cBAfEZ"
viewBox="0 0 24 24"
>
<path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports[`MultiSelect renders a simple input 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports[`Select renders a disabled input 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -122,7 +122,7 @@ exports[`Select renders a simple input 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -189,7 +189,7 @@ exports[`Select renders an input inside the dropdown, that can search through th
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -267,7 +267,7 @@ exports[`Select renders an input with a help message 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -340,7 +340,7 @@ exports[`Select renders an input with a label 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -413,7 +413,7 @@ exports[`Select renders an input with a validation error 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down Expand Up @@ -491,7 +491,7 @@ exports[`Select renders an input with an info message 1`] = `
>
<svg
aria-label="FormDown"
class="StyledIcon-sc-ofa7kd-0 gwztcJ"
class="StyledIcon-sc-ofa7kd-0 dckCqB"
viewBox="0 0 24 24"
>
<path
Expand Down
Loading

0 comments on commit ba05406

Please sign in to comment.