Skip to content

Commit 76dc522

Browse files
authored
Merge pull request #1906 from processing/chore/update-node
Update to node 16.14.2, update all dependencies to latest minor version
2 parents 5560b91 + 5fdb80e commit 76dc522

33 files changed

+63625
-15664
lines changed

.babelrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
],
4141
"@babel/plugin-proposal-nullish-coalescing-operator",
4242
"@babel/plugin-proposal-do-expressions",
43-
"@babel/plugin-proposal-function-bind"
43+
"@babel/plugin-proposal-function-bind",
44+
["@babel/plugin-proposal-private-methods", { "loose": true }]
4445
],
4546
"presets": [
4647
"@babel/preset-env",
@@ -85,6 +86,7 @@
8586
],
8687
"@babel/plugin-proposal-nullish-coalescing-operator",
8788
"@babel/plugin-proposal-do-expressions",
88-
"@babel/plugin-proposal-function-bind"
89+
"@babel/plugin-proposal-function-bind",
90+
["@babel/plugin-proposal-private-methods", { "loose": true }]
8991
]
9092
}

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": ["airbnb", "prettier"],
3-
"parser": "babel-eslint",
3+
"parser": "@babel/eslint-parser",
44
"env": {
55
"browser": true,
66
"node": true,
@@ -69,7 +69,7 @@
6969
"react", "jsx-a11y", "import", "prettier"
7070
],
7171
"settings": {
72-
"import/parser": "babel-eslint",
72+
"import/parser": "@babel/eslint-parser",
7373
"import/resolve": {
7474
"moduleDirectory": ["node_modules"]
7575
}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Use Node.js
1212
uses: actions/setup-node@v1
1313
with:
14-
node-version: '12.x'
14+
node-version: '16.x'
1515
- run: npm install
1616
- run: npm run test
1717
- run: npm run lint

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
16.14.2

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: node_js
33
node_js:
4-
- "12.16.1"
4+
- "16.14.2"
55

66
cache:
77
directories:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.16.1 as base
1+
FROM node:16.14.2 as base
22
ENV APP_HOME=/usr/src/app \
33
TERM=xterm
44
RUN mkdir -p $APP_HOME

client/index.integration.test.jsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@ import { rest } from 'msw';
33
import React from 'react';
44
import { Router, browserHistory } from 'react-router';
55

6-
import {
7-
reduxRender,
8-
act,
9-
waitFor,
10-
fireEvent,
11-
screen,
12-
within
13-
} from './test-utils';
6+
import { reduxRender, act, waitFor, screen, within } from './test-utils';
147
import configureStore from './store';
158
import routes from './routes';
169
import * as Actions from './modules/User/actions';

client/jest.setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@babel/polyfill';
1+
import 'regenerator-runtime/runtime';
22

33
// See: https://github.com/testing-library/jest-dom
44
// eslint-disable-next-line import/no-extraneous-dependencies

client/modules/App/components/DevTools.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
2-
import { createDevTools } from 'redux-devtools';
3-
import LogMonitor from 'redux-devtools-log-monitor';
4-
import DockMonitor from 'redux-devtools-dock-monitor';
2+
import { createDevTools } from '@redux-devtools/core';
3+
import { LogMonitor } from '@redux-devtools/log-monitor';
4+
import { DockMonitor } from '@redux-devtools/dock-monitor';
55

66
const devTools = (
77
<DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w">

client/modules/IDE/components/Console.jsx

Lines changed: 108 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import { bindActionCreators } from 'redux';
77
import { useSelector, useDispatch } from 'react-redux';
88
import classNames from 'classnames';
99
import { Console as ConsoleFeed } from 'console-feed';
10-
import {
11-
CONSOLE_FEED_LIGHT_STYLES,
12-
CONSOLE_FEED_DARK_STYLES,
13-
CONSOLE_FEED_CONTRAST_STYLES
14-
} from '../../../styles/components/_console-feed.scss';
1510
import warnLightUrl from '../../../images/console-warn-light.svg?byUrl';
1611
import warnDarkUrl from '../../../images/console-warn-dark.svg?byUrl';
1712
import warnContrastUrl from '../../../images/console-warn-contrast.svg?byUrl';
@@ -42,6 +37,114 @@ import { useDidUpdate } from '../hooks/custom-hooks';
4237
import useHandleMessageEvent from '../hooks/useHandleMessageEvent';
4338
import { listen } from '../../../utils/dispatcher';
4439

40+
const CONSOLE_FEED_WITHOUT_ICONS = {
41+
LOG_WARN_ICON: 'none',
42+
LOG_ERROR_ICON: 'none',
43+
LOG_DEBUG_ICON: 'none',
44+
LOG_INFO_ICON: 'none'
45+
};
46+
47+
const CONSOLE_FEED_LIGHT_STYLES = {
48+
BASE_BACKGROUND_COLOR: '',
49+
LOG_ERROR_BACKGROUND: 'hsl(0, 100%, 97%)',
50+
LOG_ERROR_COLOR: '#D11518',
51+
LOG_ERROR_BORDER: 'hsl(0, 100%, 92%)',
52+
LOG_WARN_BACKGROUND: 'hsl(50, 100%, 95%)',
53+
LOG_WARN_COLOR: '#996B00',
54+
LOG_WARN_BORDER: 'hsl(50, 100%, 88%)',
55+
LOG_INFO_COLOR: '#4D4D4D',
56+
LOG_DEBUG_COLOR: '#0071AD',
57+
LOG_DEBUG_BACKGROUND: '#D6F1FF',
58+
LOG_DEBUG_BORDER: '#C2EBFF',
59+
LOG_COLOR: '#4D4D4D',
60+
ARROW_COLOR: '#666',
61+
OBJECT_NAME_COLOR: '#333',
62+
OBJECT_VALUE_NULL_COLOR: '#747474',
63+
OBJECT_VALUE_UNDEFINED_COLOR: '#747474',
64+
OBJECT_VALUE_STRING_COLOR: '#47820A',
65+
OBJECT_VALUE_REGEXP_COLOR: '#A06801',
66+
OBJECT_VALUE_NUMBER_COLOR: '#333',
67+
OBJECT_VALUE_BOOLEAN_COLOR: '#D52889',
68+
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: '#0B7CA9',
69+
LOG_AMOUNT_BACKGROUND: '#5276B7',
70+
LOG_AMOUNT_COLOR: '#FFF',
71+
LOG_WARN_AMOUNT_BACKGROUND: '#996B00',
72+
LOG_ERROR_AMOUNT_BACKGROUND: '#D11518',
73+
LOG_DEBUG_AMOUNT_BACKGROUND: '#0071AD'
74+
};
75+
76+
const CONSOLE_FEED_DARK_STYLES = {
77+
BASE_BACKGROUND_COLOR: '',
78+
BASE_COLOR: 'white',
79+
OBJECT_NAME_COLOR: 'white',
80+
OBJECT_VALUE_NULL_COLOR: '#DE4A9B',
81+
OBJECT_VALUE_UNDEFINED_COLOR: '#DE4A9B',
82+
OBJECT_VALUE_REGEXP_COLOR: '#EE9900',
83+
OBJECT_VALUE_STRING_COLOR: '#58a10b',
84+
OBJECT_VALUE_SYMBOL_COLOR: 'hsl(230, 100%, 80%)',
85+
OBJECT_VALUE_NUMBER_COLOR: 'white',
86+
OBJECT_VALUE_BOOLEAN_COLOR: '#DE4A9B',
87+
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: '#b58318',
88+
LOG_ERROR_BACKGROUND: '#1F0000',
89+
LOG_ERROR_COLOR: '#DF3A3D',
90+
LOG_WARN_BACKGROUND: 'hsl(50, 100%, 10%)',
91+
LOG_WARN_COLOR: '#F5BC38',
92+
LOG_INFO_COLOR: '#D9D9D9',
93+
LOG_INFO_BORDER: '#4D4D4D',
94+
LOG_COLOR: '#D9D9D9',
95+
LOG_DEBUG_COLOR: '#0C99E2',
96+
LOG_DEBUG_BACKGROUND: '#05232E',
97+
LOG_DEBUG_BORDER: '#0C546E',
98+
TABLE_BORDER_COLOR: 'grey',
99+
TABLE_TH_BACKGROUND_COLOR: 'transparent',
100+
TABLE_TH_HOVER_COLOR: 'grey',
101+
TABLE_SORT_ICON_COLOR: 'grey',
102+
TABLE_DATA_BACKGROUND_IMAGE: 'grey',
103+
TABLE_DATA_BACKGROUND_SIZE: 'grey',
104+
ARROW_COLOR: '#D9D9D9',
105+
LOG_AMOUNT_BACKGROUND: '#5276B7',
106+
LOG_AMOUNT_COLOR: '#333',
107+
LOG_WARN_AMOUNT_BACKGROUND: '#996B00',
108+
LOG_ERROR_AMOUNT_BACKGROUND: '#D11518',
109+
LOG_DEBUG_AMOUNT_BACKGROUND: '#0071AD'
110+
};
111+
112+
const CONSOLE_FEED_CONTRAST_STYLES = {
113+
BASE_BACKGROUND_COLOR: '',
114+
BASE_COLOR: 'white',
115+
OBJECT_NAME_COLOR: 'white',
116+
OBJECT_VALUE_NULL_COLOR: '#FFA9D9',
117+
OBJECT_VALUE_UNDEFINED_COLOR: '#FFA9D9',
118+
OBJECT_VALUE_REGEXP_COLOR: '#2DE9B6',
119+
OBJECT_VALUE_STRING_COLOR: '#2DE9B6',
120+
OBJECT_VALUE_SYMBOL_COLOR: '#B3BEFF',
121+
OBJECT_VALUE_NUMBER_COLOR: '#FFA9D9',
122+
OBJECT_VALUE_BOOLEAN_COLOR: '#FFA9D9',
123+
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: '#F5DC23',
124+
LOG_ERROR_BACKGROUND: '#1F0000',
125+
LOG_ERROR_COLOR: '#EA7B7D',
126+
LOG_WARN_BACKGROUND: 'hsl(50, 100%, 10%)',
127+
LOG_WARN_COLOR: '#F5BC38',
128+
LOG_INFO_COLOR: '#D9D9D9',
129+
LOG_INFO_BORDER: '#4D4D4D',
130+
LOG_COLOR: '#D9D9D9',
131+
LOG_DEBUG_COLOR: '#38B6F5',
132+
LOG_DEBUG_BACKGROUND: '#05232E',
133+
LOG_DEBUG_BORDER: '#0C546E',
134+
TABLE_BORDER_COLOR: 'grey',
135+
TABLE_TH_BACKGROUND_COLOR: 'transparent',
136+
TABLE_TH_HOVER_COLOR: 'grey',
137+
TABLE_SORT_ICON_COLOR: 'grey',
138+
TABLE_DATA_BACKGROUND_IMAGE: 'grey',
139+
TABLE_DATA_BACKGROUND_SIZE: 'grey',
140+
ARROW_COLOR: '#D9D9D9',
141+
LOG_AMOUNT_BACKGROUND: '#5276B7',
142+
LOG_AMOUNT_COLOR: '#333',
143+
LOG_WARN_AMOUNT_BACKGROUND: '#966C08',
144+
LOG_ERROR_AMOUNT_BACKGROUND: '#DD3134',
145+
LOG_DEBUG_AMOUNT_BACKGROUND: '#097BB3'
146+
};
147+
45148
const getConsoleFeedStyle = (theme, fontSize) => {
46149
const style = {
47150
BASE_FONT_FAMILY: 'Inconsolata, monospace'

client/modules/IDE/components/Editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
22
import React from 'react';
33
import CodeMirror from 'codemirror';
44
import emmet from '@emmetio/codemirror-plugin';
5-
import prettier from 'prettier';
5+
import prettier from 'prettier/standalone';
66
import babelParser from 'prettier/parser-babel';
77
import htmlParser from 'prettier/parser-html';
88
import cssParser from 'prettier/parser-postcss';

client/styles/components/_console-feed.scss

Lines changed: 0 additions & 107 deletions
This file was deleted.

client/utils/reduxFormUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ export const domOnlyProps = ({
1616
...domProps }) => domProps;
1717
/* eslint-enable */
1818

19-
// eslint-disable-next-line max-len
20-
const EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i;
19+
/* eslint-disable */
20+
const EMAIL_REGEX =
21+
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i;
22+
/* eslint-enable */
2123

2224
function validateNameEmail(formProps, errors) {
2325
if (!formProps.username) {

contributor_docs/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Follow these instructions to set up your development environment, which you need
66

77
_Note_: The installation steps assume you are using a Unix-like shell. If you are using Windows, you will need to use `copy` instead of `cp`.
88

9-
1. Install Node.js. The recommended way is to Node through [nvm](https://github.com/nvm-sh/nvm). You can also install [node.js](https://nodejs.org/download/release/v12.16.1/) version 12.16.1 directly from the Node.js website.
9+
1. Install Node.js. The recommended way is to Node through [nvm](https://github.com/nvm-sh/nvm). You can also install [node.js](https://nodejs.org/download/release/v16.14.2/) version 16.14.2 directly from the Node.js website.
1010
2. [Fork](https://help.github.com/articles/fork-a-repo) the [p5.js Web Editor repository](https://github.com/processing/p5.js-web-editor) into your own GitHub account.
1111
3. [Clone](https://help.github.com/articles/cloning-a-repository/) your new fork of the repository from GitHub onto your local computer.
1212

1313
```
1414
$ git clone https://github.com/YOUR_USERNAME/p5.js-web-editor.git
1515
```
1616

17-
4. If you are using nvm, run `$ nvm use` to set your Node version to 12.16.1
17+
4. If you are using nvm, run `$ nvm use` to set your Node version to 16.14.2
1818
5. Navigate into the project folder and install all its necessary dependencies with npm.
1919

2020
```

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (process.env.NODE_ENV === 'production') {
77
require('@babel/register')({
88
presets: ["@babel/preset-env"]
99
});
10-
require('@babel/polyfill');
10+
require('regenerator-runtime/runtime');
1111
//// in development, let .env values override those in the environment already (i.e. in docker-compose.yml)
1212
// so commenting this out makes the docker container work.
1313
// if (process.env.NODE_ENV === 'development') {

0 commit comments

Comments
 (0)