C2LC-575: Update react-scripts to version 5

Metadata

Source
C2LC-575
Type
Task
Priority
N/A
Status
Done
Resolution
N/A
Assignee
N/A
Reporter
Simon Bates
Created
2021-12-21T09:59:00.388-0500
Updated
2022-01-24T16:07:16.274-0500
Versions
N/A
Fixed Versions
  1. Coding Env 1.2
Component
  1. Coding Environment

Description

Version 5 of react-scripts has been released. Updating to version 5 will address security vulnerabilities in dependencies of our current version of react-scripts (4.0.3).

This version will update a number of dependencies that we use within Weavly, such as Jest. It also drops support for Node v12. We currently run our Netlify deployment on Node 12, and will need to update the Netlify build to Node 14 as part of this work:

https://github.com/codelearncreate/c2lc-coding-environment/blob/6382c1015b41fd9529439b69e73b4305704a9e96/netlify.toml

Node 12 reaches end of life in April 2022:

https://nodejs.org/en/about/releases/

We currently run GitHub CI against Node 12 and Node 14. As part of this task, we can update that to Node 14 and Node 16.

Changelog for react-scripts version 5:

https://github.com/facebook/create-react-app/releases/tag/v5.0.0