Skip to content

Commit

Permalink
Upgrades (#1902)
Browse files Browse the repository at this point in the history
* Upgrade Sentry

* Rangy

* source-map-explorer

* Lighthouse

* tslint

* minor packages

* uuid

* yargs

* workbox-*

* ts-unused-exports

* tiny-async-pool

Can migrate to v2, but requires a code change in three places.

* stylelint

* serve-static

* semver-sort

* redux, et al, mostly restricting versions

* query-string

They added TypeScript definitions in 6.3, and that broke lint.

* prop-types + prettier

* path-to-regexp

* mime

* mdn-polyfills

* Update caniuse-lite

* less

* remove md5-file packages

* http-proxy-middleware, html-entities, history

* glob, focus-with-polyfill, details-element-polyfill

Update .nvmrc

glob@<9

* express, date-fns, date-fns-tz

* color

and lock ts-utils version

* @types/yargs, @types/uuid

* Lock versions for styled-components and styled-icons

* @craco/craco

* @types/*

* @formatjs/intl-pluralrules

* @aws-sdk/*

aws

* @babel/*

* Final yarn upgrade outdated

* match @types to package versions

remove  @types/stacktrace-js
jest
puppeteer

* revert typed package versions

* ignore-styles

* js-cookie, node-fetch

* puppeteer

* Fix babel-config

* Match @types to package versions

Generally used ~ to constrain major+minor versions. Some packages were not matchable

* sentry, jest-image-snapshot

---------

Co-authored-by: staxly[bot] <35789409+staxly[bot]@users.noreply.github.com>
  • Loading branch information
RoyEJohnson and staxly[bot] authored Apr 5, 2023
1 parent 38bb618 commit 8a7f804
Show file tree
Hide file tree
Showing 5 changed files with 3,538 additions and 3,573 deletions.
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
} ],
"unit-no-unknown": true,
"unit-case": "lower",
"value-keyword-case": ["lower", ignoreKeywords: ["dummyValue"]],
"value-list-max-empty-lines": 0,
"value-no-vendor-prefix": [ true, {
"severity": "warning"
Expand Down
182 changes: 90 additions & 92 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,50 @@
"node": "14.x"
},
"dependencies": {
"@craco/craco": "^6.1.2",
"@formatjs/intl-pluralrules": "^4.0.6",
"@craco/craco": "<7",
"@formatjs/intl-pluralrules": "^5.1.10",
"@openstax/event-capture-client": "^1.5.2",
"@openstax/highlighter": "1.13.0",
"@openstax/open-search-client": "0.1.0-build.7",
"@openstax/ts-utils": "^1.1.12",
"@sentry/integrations": "7.2.0",
"@sentry/react": "7.2.0",
"@openstax/ts-utils": "1.1.12",
"@sentry/integrations": "^7.44.2",
"@sentry/react": "^7.44.2",
"color": "^3.1.2",
"details-element-polyfill": "^2.3.1",
"flat": "^5.0.1",
"focus-within-polyfill": "^5.0.4",
"history": "^4.7.2",
"html-entities": "^1.2.1",
"js-cookie": "^2.2.1",
"details-element-polyfill": "^2.4.0",
"flat": "~5.0",
"focus-within-polyfill": "^5.2.1",
"history": "4.7.2",
"html-entities": "^2.3.3",
"js-cookie": "~2.2",
"lodash": "^4.17.21",
"mdn-polyfills": "^5.18.0",
"mime": "^2.5.0",
"path-to-regexp": "^3.0.0",
"prop-types": "^15.7.2",
"query-string": "^6.2.0",
"rangy": "^1.3.0",
"mdn-polyfills": "^5.20.0",
"mime": "^3.0.0",
"path-to-regexp": "<4",
"prop-types": "^15.8.1",
"query-string": "~6.2",
"rangy": "^1.3.1",
"react": "^16",
"react-dom": "^16",
"react-intl": "^5.12.0",
"react-loadable": "^5.5.0",
"react-redux": "^7.1.0",
"react-intl": "<5.13",
"react-loadable": "~5.5",
"react-redux": "~7.1",
"react-scripts": "^4.0.3",
"redux": "^4.0.1",
"reselect": "^4.0.0",
"scroll-to-element": "^2.0.2",
"stacktrace-js": "^2.0.0",
"styled-components": "^4.3.2",
"styled-icons": "^8.1.0",
"redux": "4.0.1",
"reselect": "4.0.0",
"scroll-to-element": "^2.0.3",
"stacktrace-js": "~2.0",
"styled-components": "~4.3",
"styled-icons": "8.1.0",
"typesafe-actions": "^4.4.2",
"typescript": "^4.2.0",
"typescript": "<4.3.0",
"url": "^0.11.0",
"uuid": "^3.4.0",
"weak-map": "^1.0.5",
"workbox-core": "^5.1.3",
"workbox-expiration": "^5.1.3",
"workbox-precaching": "^5.1.3",
"workbox-routing": "^5.1.3",
"workbox-strategies": "^5.1.3"
"uuid": "~7.0",
"weak-map": "^1.0.8",
"workbox-core": "^6.5.4",
"workbox-expiration": "^6.5.4",
"workbox-precaching": "^6.5.4",
"workbox-routing": "^6.5.4",
"workbox-strategies": "^6.5.4"
},
"scripts": {
"trust-localhost": "./script/trust-localhost.bash",
Expand Down Expand Up @@ -102,84 +102,82 @@
"not op_mini all"
],
"devDependencies": {
"@aws-sdk/client-cloudformation": "^3.43.0",
"@aws-sdk/client-s3": "^3.44.0",
"@aws-sdk/client-sqs": "^3.43.0",
"@aws-sdk/credential-providers": "^3.45.0",
"@babel/core": "^7.20.5",
"@aws-sdk/client-cloudformation": "^3.295.0",
"@aws-sdk/client-s3": "^3.295.0",
"@aws-sdk/client-sqs": "^3.295.0",
"@aws-sdk/credential-providers": "^3.295.0",
"@babel/core": "^7.21.3",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.18.6",
"@babel/preset-react": "<7.17",
"@babel/preset-typescript": "^7.21.0",
"@babel/register": "^7.0.0",
"@openstax/types": "^3.1.0",
"@types/color": "^3.0.0",
"@types/express": "^4.16.0",
"@types/flat": "^0.0.28",
"@types/color": "^3.0.3",
"@types/express": "~4.17",
"@types/flat": "~5.0",
"@types/gtag.js": "0.0.12",
"@types/history": "^4.7.2",
"@types/ignore-styles": "^5.0.0",
"@types/jest": "^24.0.15",
"@types/jest-image-snapshot": "^2.4.0",
"@types/js-cookie": "^2.2.2",
"@types/lodash": "^4.14.136",
"@types/md5-file": "^4.0.0",
"@types/history": "4.7.2",
"@types/ignore-styles": "~5.0",
"@types/jest": "^26",
"@types/jest-image-snapshot": "~2.12",
"@types/js-cookie": "~2.2",
"@types/lodash": "4.14.160",
"@types/node": "^14.0.0",
"@types/node-fetch": "^2.1.4",
"@types/node-fetch": "~2.6",
"@types/pretty": "^2.0.0",
"@types/progress": "^2.0.3",
"@types/puppeteer": "^3.0.1",
"@types/query-string": "^6.2.0",
"@types/puppeteer": "~5.4",
"@types/query-string": "~6.2",
"@types/react": "^16",
"@types/react-dom": "^16.9.0",
"@types/react-loadable": "^5.5.0",
"@types/react-redux": "^7.1.1",
"@types/react-test-renderer": "^16.9.1",
"@types/semver-sort": "^0.0.1",
"@types/serve-static": "^1.13.2",
"@types/stacktrace-js": "^0.0.32",
"@types/styled-components": "^4.1.12",
"@types/tiny-async-pool": "^1.0.0",
"@types/uuid": "^3.4.7",
"@types/yargs": "^13.0.0",
"@types/react-dom": "^16",
"@types/react-loadable": "~5.5",
"@types/react-redux": "7.1.1",
"@types/react-test-renderer": "~16.9",
"@types/semver-sort": "~0.0",
"@types/serve-static": "~1.15",
"@types/stacktrace-js": "~2.0",
"@types/styled-components": "~4.1",
"@types/tiny-async-pool": "~1.0",
"@types/uuid": "~7.0",
"@types/yargs": "~13.0",
"babel-core": "7.0.0-bridge.0",
"babel-plugin-transform-dynamic-import": "^2.1.0",
"codecov": "^3.8.1",
"date-fns": "^2.28.0",
"date-fns-tz": "^1.2.2",
"express": "^4.17.3",
"glob": "^7.1.3",
"http-proxy-middleware": "^0.19.0",
"ignore-styles": "^5.0.1",
"jest-image-snapshot": "^2.9.0",
"jest-puppeteer": "^4.2.0",
"less": "^3.9.0",
"lighthouse": "^5.1.0",
"md5-file": "^4.0.0",
"node-fetch": "2.6.7",
"codecov": "^3.8.3",
"date-fns": "^2.29.3",
"date-fns-tz": "^2.0.0",
"express": "~4.17",
"glob": "<9",
"http-proxy-middleware": "<1",
"ignore-styles": "~5.0",
"jest-image-snapshot": "~2.12",
"jest-puppeteer": "^5",
"less": "^4.1.3",
"lighthouse": "^9",
"node-fetch": "~2.6",
"pify": "^4.0.1",
"portfinder": "^1.0.19",
"prettier": "^1.16.4",
"portfinder": "^1.0.32",
"prettier": "1.19.1",
"pretty": "^2.0.0",
"progress": "^2.0.3",
"puppeteer": "^5.1.0",
"react-test-renderer": "^16.11.0",
"puppeteer": "~5.4",
"react-test-renderer": "~16.9",
"resize-observer-polyfill": "^1.5.1",
"semver-sort": "^0.0.4",
"serve-static": "^1.13.2",
"sitemap": "^3.2.2",
"source-map-explorer": "^2.5.2",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^18.3.0",
"semver-sort": "~0.0",
"serve-static": "~1.15",
"sitemap": "<4",
"source-map-explorer": "^2.5.3",
"stylelint": "<14",
"stylelint-config-standard": "<23",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.5.2",
"tiny-async-pool": "^1.0.4",
"ts-unused-exports": "^2.0.11",
"tslint": "^5.11.0",
"yargs": "^13.2.4"
"tiny-async-pool": "~1.0",
"ts-unused-exports": "<7",
"tslint": "6.1.3",
"yargs": "~13.2"
},
"jest": {
"testEnvironment": "jsdom",
Expand Down
4 changes: 2 additions & 2 deletions src/babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module.exports = function(additionalExtensions = ['.ts', '.tsx']) {
],
plugins: [
'macros',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/transform-runtime',
'babel-plugin-transform-dynamic-import',
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"jsRules": {},
"rules": {
"array-type": false,
"interface-name": [true, "never-prefix"],
"prefer-object-spread": true,
"quotemark": [true, "single"],
Expand Down
Loading

0 comments on commit 8a7f804

Please sign in to comment.