From 2f65e4d41c08f0eea54d6323a3ee9165ec0b7aff Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 6 Nov 2024 13:44:34 -0800 Subject: [PATCH] chore: clean up dependency specifications --- package.json | 44 ++++++++++++++------------------------------ src/setupTest.js | 2 -- 2 files changed, 14 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 462b199..8458f6c 100644 --- a/package.json +++ b/package.json @@ -39,53 +39,37 @@ "bugs": { "url": "https://github.com/edx/frontend-lib-learning-assistant/issues" }, + "dependencies-note": "Most deps are peer deps because they're specified by frontend-app-learning.", "dependencies": { "@edx/brand": "npm:@edx/brand-openedx@1.2.0", - "@fortawesome/fontawesome-svg-core": "1.2.36", - "@fortawesome/free-brands-svg-icons": "5.15.4", - "@fortawesome/free-regular-svg-icons": "5.15.4", - "@fortawesome/free-solid-svg-icons": "5.15.4", - "@fortawesome/react-fontawesome": "0.2.0", "@optimizely/react-sdk": "^2.9.2", - "core-js": "^3.36.1", - "prop-types": "15.8.1", "react-markdown": "^8.0.5", "uuid": "9.0.0" }, "peerDependencies": { - "@edx/frontend-platform": "^7.0.0 || ^8.0.0", - "@openedx/paragon": "^22.0.0", - "@reduxjs/toolkit": "1.8.1", - "react": "16.14.0 || ^17.0.0", - "react-dom": "16.14.0 || ^17.0.0", - "react-redux": "7.2.9", - "react-router": "5.2.1 || ^6.0.0", - "react-router-dom": "5.3.0 || ^6.0.0", - "redux": "4^", - "regenerator-runtime": "0.13.11" + "@edx/browserslist-config": "*", + "@edx/frontend-platform": "^8", + "@openedx/frontend-build": "^14", + "@openedx/paragon": "^22", + "@reduxjs/toolkit": "^1.8", + "prop-types": "^15", + "react": "^17", + "react-dom": "^17", + "react-redux": "^7", + "react-router": "^6", + "react-router-dom": "^6", + "redux": "^4" }, "devDependencies": { - "@edx/browserslist-config": "^1.1.1", "@edx/frontend-platform": "^8.0.0", - "@edx/reactifex": "^2.1.1", - "@openedx/frontend-build": "14.0.3", - "@openedx/paragon": "^22.2.0", - "@reduxjs/toolkit": "1.8.1", + "@edx/reactifex": "^2.2.0", "@testing-library/jest-dom": "6.4.5", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", - "glob": "7.2.3", "husky": "7.0.4", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "react": "17.0.2", - "react-dom": "17.0.2", - "react-redux": "7.2.9", - "react-router": "6.15.0", - "react-router-dom": "6.15.0", - "redux": "4.1.2", - "regenerator-runtime": "0.13.11", "semantic-release": "^21.0.7", "ts-jest": "^29.1.2" } diff --git a/src/setupTest.js b/src/setupTest.js index 0d1754a..9954a7a 100644 --- a/src/setupTest.js +++ b/src/setupTest.js @@ -1,5 +1,3 @@ -import 'core-js/stable'; -import 'regenerator-runtime/runtime'; import '@testing-library/jest-dom'; import { mergeConfig } from '@edx/frontend-platform';