diff --git a/.changeset/friendly-horses-kneel.md b/.changeset/friendly-horses-kneel.md new file mode 100644 index 0000000000..ebc11a7deb --- /dev/null +++ b/.changeset/friendly-horses-kneel.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-plugin-api': patch +--- + +Removed unnecessary `i18next` dependency. diff --git a/.changeset/sour-taxis-rush.md b/.changeset/sour-taxis-rush.md new file mode 100644 index 0000000000..1241cf3e8c --- /dev/null +++ b/.changeset/sour-taxis-rush.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +Removed unnecessary `history` and `immer` dependencies. diff --git a/packages/core-components/package.json b/packages/core-components/package.json index 854f815ae5..7248a600a6 100644 --- a/packages/core-components/package.json +++ b/packages/core-components/package.json @@ -66,8 +66,6 @@ "d3-shape": "^3.0.0", "d3-zoom": "^3.0.0", "dagre": "^0.8.5", - "history": "^5.0.0", - "immer": "^9.0.1", "linkify-react": "4.1.3", "linkifyjs": "4.1.3", "lodash": "^4.17.21", @@ -114,6 +112,7 @@ "@types/react-window": "^1.8.5", "@types/zen-observable": "^0.8.0", "cross-fetch": "^4.0.0", + "history": "^5.0.0", "msw": "^1.0.0" }, "files": [ diff --git a/packages/core-components/src/layout/Sidebar/Items.tsx b/packages/core-components/src/layout/Sidebar/Items.tsx index f9970749d0..b2449075cc 100644 --- a/packages/core-components/src/layout/Sidebar/Items.tsx +++ b/packages/core-components/src/layout/Sidebar/Items.tsx @@ -34,7 +34,7 @@ import ArrowDropUp from '@material-ui/icons/ArrowDropUp'; import ArrowRightIcon from '@material-ui/icons/ArrowRight'; import SearchIcon from '@material-ui/icons/Search'; import classnames from 'classnames'; -import { Location } from 'history'; +import type { Location } from 'history'; import React, { ComponentProps, ComponentType, diff --git a/packages/core-components/src/layout/Sidebar/utils.test.ts b/packages/core-components/src/layout/Sidebar/utils.test.ts index 976108a63d..19fe3e5671 100644 --- a/packages/core-components/src/layout/Sidebar/utils.test.ts +++ b/packages/core-components/src/layout/Sidebar/utils.test.ts @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { Location, Path } from 'history'; +import type { Location, Path } from 'history'; import { isLocationMatch } from './utils'; describe('isLocationMatching', () => { diff --git a/packages/core-components/src/layout/Sidebar/utils.ts b/packages/core-components/src/layout/Sidebar/utils.ts index 5dba73f4cd..bf5f77a26f 100644 --- a/packages/core-components/src/layout/Sidebar/utils.ts +++ b/packages/core-components/src/layout/Sidebar/utils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Location, Path } from 'history'; +import type { Location, Path } from 'history'; import { isEqual, isMatch } from 'lodash'; import qs from 'qs'; diff --git a/packages/core-plugin-api/package.json b/packages/core-plugin-api/package.json index 71a6b741fc..d431f26811 100644 --- a/packages/core-plugin-api/package.json +++ b/packages/core-plugin-api/package.json @@ -50,8 +50,7 @@ "@backstage/types": "workspace:^", "@backstage/version-bridge": "workspace:^", "@types/react": "^16.13.1 || ^17.0.0", - "history": "^5.0.0", - "i18next": "^22.4.15" + "history": "^5.0.0" }, "peerDependencies": { "react": "^16.13.1 || ^17.0.0 || ^18.0.0", diff --git a/yarn.lock b/yarn.lock index 0b1b81f289..b7de4e13c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3962,7 +3962,6 @@ __metadata: d3-zoom: ^3.0.0 dagre: ^0.8.5 history: ^5.0.0 - immer: ^9.0.1 linkify-react: 4.1.3 linkifyjs: 4.1.3 lodash: ^4.17.21 @@ -4006,7 +4005,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/react": ^16.13.1 || ^17.0.0 history: ^5.0.0 - i18next: ^22.4.15 peerDependencies: react: ^16.13.1 || ^17.0.0 || ^18.0.0 react-dom: ^16.13.1 || ^17.0.0 || ^18.0.0