Update to Gatsby 4 (#1673)

* Update to Gatsby 4

- remove old/unused packages
- update existing packages

* Roll back Gatsby

* Update README with package version info
This commit is contained in:
Vim 2022-06-07 14:50:08 -04:00 committed by GitHub
commit 9882e9ba22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 623 additions and 894 deletions

View file

@ -12,6 +12,7 @@ This README contains the following content:
- [Feature toggling](#feature-toggling)
- [Environment variables](#environment-variables)
- [Debugging](#debugging)
- [Package versions](#package-versions)
## Installing and running the client site
@ -203,3 +204,16 @@ When developing, to use a flag:
4. Run the _Debug Chrome_ configuration by hitting the green play button
5. Install the [CORS chrome extension](https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en) in the browser that is launched by the debugger.
6. Set breakpoints in VS code!
## Package Versions
The following attemps to explain why certain packages versions have been chosen and what their current limitations are
| package | current version | latest version | using latest? | how does it break? |
|------------|-----------------|----------------|---------------|--------------------|
| gatsby | 3.14.6 | 4.14.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests. |
| gatsby-cli | 3.14.2 | 4.15.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests.|
| sass | 1.32.12 | 1.52.3 | No | This version is needed to surpress the dart warnings on / as division for each component. See [here](https://github.com/twbs/bootstrap/issues/34051#issuecomment-845884423) for more information |
| uswds | 2.11.2 | 3.0.2 | No | Needs to stay at 2.11 for peer dependency on trussworks|
| trussworks | 2.9.0 | 3.0.2 | No | Needs to stay at 2.9 as 3.0 is breaking change |

1497
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -69,17 +69,15 @@
"license-checker": "^25.0.1",
"prettier": "^2.6.0",
"react-test-renderer": "^17.0.2",
"sass": "^1.49.9",
"sass": "~1.32.13",
"sass-loader": "^11.1.1",
"start-server-and-test": "^1.14.0",
"ts-jest": "^27.1.3"
},
"dependencies": {
"-": "^0.0.1",
"@sentry/gatsby": "^6.19.1",
"@trussworks/react-uswds": "^2.8.0",
"@trussworks/react-uswds": "^2.9.0",
"@turf/bbox": "^6.5.0",
"D": "^1.0.0",
"d3-ease": "^3.0.1",
"gatsby-plugin-env-variables": "^2.2.0",
"gatsby-plugin-robots-txt": "^1.7.0",