Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump react-router-dom from 6.26.1 to 7.0.1 #157

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react-dom": "18.2.0",
"react-hotkeys-hook": "4.5.0",
"react-icons": "5.3.0",
"react-router-dom": "6.26.1",
"react-router": "7.0.1",
"recharts": "2.12.7",
"use-immer": "0.10.0",
"use-undo": "1.1.1",
Expand Down
67 changes: 38 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "bootstrap/dist/css/bootstrap.min.css";
import { Route, BrowserRouter as Router, Routes } from "react-router-dom";
import { Route, BrowserRouter as Router, Routes } from "react-router";
import "./App.css";
import "./colors.css";
import { BudgetProvider } from "./guitos/context/BudgetContext";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/hooks/useDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Papa from "papaparse";
import type React from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import type { Option } from "react-bootstrap-typeahead/types/types";
import { useNavigate, useParams } from "react-router-dom";
import { useNavigate, useParams } from "react-router";
import { createBudgetNameList, saveLastOpenedBudget } from "../../utils";
import { useBudget } from "../context/BudgetContext";
import { useConfig } from "../context/ConfigContext";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/hooks/useMove.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useNavigate } from "react-router-dom";
import { useNavigate } from "react-router";
import { saveLastOpenedBudget } from "../../utils";
import { useBudget } from "../context/BudgetContext";
import type { Budget } from "../domain/budget";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/Budget/BudgetPage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cleanup, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { act } from "react-dom/test-utils";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { describe, expect, it, vi } from "vitest";
import {
budgetContextSpy,
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/Budget/BudgetPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { produce } from "immer";
import { Suspense, lazy, useCallback, useEffect, useState } from "react";
import { Col, Container, Row, ToastContainer } from "react-bootstrap";
import { useHotkeys } from "react-hotkeys-hook";
import { useParams } from "react-router-dom";
import { useParams } from "react-router";
import { createBudgetNameList } from "../../../utils";
import { useBudget } from "../../context/BudgetContext";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { vi } from "vitest";
import { describe, expect, it } from "vitest";
import { BudgetItemsMother } from "../../domain/budgetItem.mother";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/ChartsPage/ChartsPage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { vi } from "vitest";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import ChartsPage from "./ChartsPage";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/ItemForm/ItemFormGroup.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { createRef } from "react";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { describe, expect, it } from "vitest";
import { setBudgetMock } from "../../../setupTests";
import { BudgetMother } from "../../domain/budget.mother";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/LandingPage/LandingPage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { describe, expect, it } from "vitest";
import { setBudgetMock } from "../../../setupTests";
import { BudgetMother } from "../../domain/budget.mother";
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/NavBar/NavBar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { beforeEach, describe, expect, it, vi } from "vitest";
import {
budgetContextSpy,
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/sections/TableCard/TableCard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cleanup, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter } from "react-router";
import { describe, expect, it } from "vitest";
import { setBudgetMock } from "../../../setupTests";
import { BudgetMother } from "../../domain/budget.mother";
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Big from "big.js";
import type { MutableRefObject } from "react";
import type { NavigateFunction } from "react-router-dom";
import type { NavigateFunction } from "react-router";
import type { Budget } from "./guitos/domain/budget";
import type { ItemOperation } from "./guitos/domain/calculationHistoryItem";
import type { UserOptions } from "./guitos/domain/userOptions";
Expand Down
Loading