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

fix(deps): update dependency react-router-dom to v6.15.0 #62

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 14, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-router-dom 6.11.1 -> 6.15.0 age adoption passing confidence

Release Notes

remix-run/react-router (react-router-dom)

v6.15.0

Compare Source

Minor Changes
  • Add's a new redirectDocument() function which allows users to specify that a redirect from a loader/action should trigger a document reload (via window.location) instead of attempting to navigate to the redirected location via React Router (#​10705)
Patch Changes
  • Fixes an edge-case affecting web extensions in Firefox that use URLSearchParams and the useSearchParams hook. (#​10620)
  • Do not include hash in useFormAction() for unspecified actions since it cannot be determined on the server and causes hydration issues (#​10758)
  • Reorder effects in unstable_usePrompt to avoid throwing an exception if the prompt is unblocked and a navigation is performed synchronously (#​10687, #​10718)
  • Updated dependencies:

v6.14.2

Compare Source

Patch Changes
  • Properly decode element id when emulating hash scrolling via <ScrollRestoration> (#​10682)
  • Add missing <Form state> prop to populate history.state on submission navigations (#​10630)
  • Support proper hydration of Error subclasses such as ReferenceError/TypeError (#​10633)
  • Updated dependencies:

v6.14.1

Compare Source

Patch Changes

v6.14.0

Compare Source

Minor Changes
  • Add support for application/json and text/plain encodings for useSubmit/fetcher.submit. To reflect these additional types, useNavigation/useFetcher now also contain navigation.json/navigation.text and fetcher.json/fetcher.text which include the json/text submission if applicable (#​10413)

    // The default behavior will still serialize as FormData
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
      submit({ key: "value" }, { method: "post" });
      // navigation.formEncType => "application/x-www-form-urlencoded"
      // navigation.formData    => FormData instance
    }
    
    async function action({ request }) {
      // request.headers.get("Content-Type") => "application/x-www-form-urlencoded"
      // await request.formData()            => FormData instance
    }
    // Opt-into JSON encoding with `encType: "application/json"`
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
      submit({ key: "value" }, { method: "post", encType: "application/json" });
      // navigation.formEncType => "application/json"
      // navigation.json        => { key: "value" }
    }
    
    async function action({ request }) {
      // request.headers.get("Content-Type") => "application/json"
      // await request.json()                => { key: "value" }
    }
    // Opt-into text encoding with `encType: "text/plain"`
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
      submit("Text submission", { method: "post", encType: "text/plain" });
      // navigation.formEncType => "text/plain"
      // navigation.text        => "Text submission"
    }
    
    async function action({ request }) {
      // request.headers.get("Content-Type") => "text/plain"
      // await request.text()                => "Text submission"
    }
Patch Changes
  • When submitting a form from a submitter element, prefer the built-in new FormData(form, submitter) instead of the previous manual approach in modern browsers (those that support the new submitter parameter) (#​9865, #​10627)
    • For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for type="image" buttons
    • If developers want full spec-compliant support for legacy browsers, they can use the formdata-submitter-polyfill
  • Call window.history.pushState/replaceState before updating React Router state (instead of after) so that window.location matches useLocation during synchronous React 17 rendering (#​10448)
    • ⚠️ However, generally apps should not be relying on window.location and should always reference useLocation when possible, as window.location will not be in sync 100% of the time (due to popstate events, concurrent mode, etc.)
  • Fix tsc --skipLibCheck:false issues on React 17 (#​10622)
  • Upgrade typescript to 5.1 (#​10581)
  • Updated dependencies:

v6.13.0

Compare Source

Minor Changes
  • Move React.startTransition usage behind a future flag to avoid issues with existing incompatible Suspense usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of startTransition until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a useMemo. (#​10596)

    Existing behavior will no longer include React.startTransition:

    <BrowserRouter>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>
    
    <RouterProvider router={router} />

    If you wish to enable React.startTransition, pass the future flag to your component:

    <BrowserRouter future={{ v7_startTransition: true }}>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>
    
    <RouterProvider router={router} future={{ v7_startTransition: true }}/>
Patch Changes
  • Work around webpack/terser React.startTransition minification bug in production mode (#​10588)
  • Updated dependencies:

v6.12.1

Compare Source

Warning
Please use version 6.13.0 or later instead of 6.12.1. This version suffers from a webpack/terser minification issue resulting in invalid minified code in your resulting production bundles which can cause issues in your application. See #​10579 for more details.

Patch Changes
  • Adjust feature detection of React.startTransition to fix webpack + react 17 compilation error (#​10569)
  • Updated dependencies:

v6.12.0

Compare Source

Minor Changes
  • Wrap internal router state updates with React.startTransition if it exists (#​10438)
Patch Changes

v6.11.2

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@sonarcloud
Copy link

sonarcloud bot commented Aug 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

Coverage Summary

Status Category Percentage Covered / Total
🟢 Lines 90.29% / 65% 9934 / 11002
🟢 Statements 90.29% / 65% 9934 / 11002
🟢 Functions 70.64% / 65% 308 / 436
🟢 Branches 84.35% / 65% 717 / 850
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
src/App.tsx 92.3% 60% 100% 92.3% 27, 35-38
src/Iconfont.tsx 100% 100% 100% 100%
src/accountUtils.tsx 79.74% 96.15% 66.66% 79.74% 20-31, 34-35, 71-73, 89, 93-95, 101-102, 104-106, 136-138, 144-146
src/api.tsx 100% 100% 100% 100%
src/buildingsUtils.tsx 95.06% 100% 100% 95.06% 68-69, 77-78
src/componentsFunctions.tsx 68.18% 94.11% 100% 68.18% 27-39, 41-42, 75-83, 85-88
src/globalUtils.tsx 97.21% 87.5% 77.77% 97.21% 70-75, 125, 305-307
src/hooks.ts 100% 100% 100% 100%
src/store.ts 100% 100% 100% 100%
src/Account/Account.tsx 100% 100% 33.33% 100%
src/Account/AvatarDrawer.tsx 100% 91.66% 71.42% 100%
src/Account/OrganizationDrawer.tsx 100% 100% 50% 100%
src/Account/RightSide/AccountActivity.tsx 100% 100% 100% 100%
src/Account/RightSide/AccountNotification.tsx 100% 100% 100% 100%
src/Account/RightSide/ChangePassword.tsx 100% 100% 100% 100%
src/Account/RightSide/InfoAccount.tsx 100% 100% 100% 100%
src/Account/RightSide/SecuritySettings.tsx 100% 100% 50% 100%
src/Account/RightSide/Modal/EditAccountModal.tsx 100% 100% 85.71% 100%
src/Components/CustomComponents.tsx 100% 100% 100% 100%
src/Components/Empty.tsx 100% 100% 100% 100%
src/Components/LoadingSpinner.tsx 100% 100% 100% 100%
src/Components/SignInForm.tsx 100% 100% 54.54% 100%
src/Consumer/Dashboard.tsx 100% 83.33% 66.66% 100%
src/Consumer/DashboardRoutes.tsx 91.05% 80% 80% 91.05% 43-50, 109-111
src/Consumer/utils.tsx 57.46% 61.53% 25% 57.46% 104-129, 182-183, 189-190, 206-253, 378-379, 385-410, 463-465, 480-482, 485-487, 490-492, 495-497, 500-502, 569-606, 609-619, 630-644, 647-663, 677-721, 725-775, 779-830
src/Consumer/Building/AddNewBuilding.tsx 98.97% 100% 50% 98.97% 38-39
src/Consumer/Building/BuildingCard.tsx 93.37% 78.57% 66.66% 93.37% 136-146
src/Consumer/Building/BuildingOptions.tsx 100% 100% 100% 100%
src/Consumer/Building/BuildingsTab.tsx 80.86% 88.23% 41.17% 80.86% 50-65, 79-83, 86-101, 145-147
src/Consumer/Building/EditBuildingModal.tsx 100% 100% 100% 100%
src/Consumer/Building/KpiCard.tsx 100% 85% 100% 100%
src/Consumer/Building/MapboxMap.tsx 100% 66.66% 100% 100%
src/Consumer/Building/RenewableCards.tsx 98.97% 62.5% 33.33% 98.97% 52
src/Consumer/Building/utils.tsx 68.18% 42.1% 45.45% 68.18% 68-69, 98-99, 102-103, 152-167, 202-216, 251-252, 257-258, 261-319, 338-349
src/Consumer/Building/Resources/ContractModal.tsx 100% 100% 100% 100%
src/Consumer/Building/Resources/ResourcesContent.tsx 100% 100% 50% 100%
src/Consumer/Building/Resources/ResourcesModal.tsx 100% 100% 100% 100%
src/Consumer/Building/Resources/utils.tsx 94.54% 46.66% 36.36% 94.54% 244-245, 247-248, 250-251, 253-254, 259-264, 315-317, 369, 377, 379, 381
src/Consumer/DashboardCards/BannerCard.tsx 100% 100% 100% 100%
src/Consumer/DashboardCards/BuildingsProductionCard.tsx 72% 100% 33.33% 72% 15-35
src/Consumer/DashboardCards/DownloadCard.tsx 100% 100% 100% 100%
src/Consumer/DashboardCards/EarningsCard.tsx 100% 100% 100% 100%
src/Consumer/DashboardCards/StatsCard.tsx 100% 100% 100% 100%
src/Consumer/DashboardCards/TableCard.tsx 100% 100% 100% 100%
src/Consumer/Header/Header.tsx 100% 100% 100% 100%
src/Consumer/Invoices/ElectricInvoices.tsx 100% 88.23% 100% 100%
src/Consumer/Invoices/GasInvoices.tsx 100% 88.23% 100% 100%
src/Consumer/Invoices/Invoices.tsx 99.31% 85.71% 80% 99.31% 30
src/Consumer/Invoices/InvoicesModal.tsx 72% 71.42% 100% 72% 33-42, 48-65
src/Consumer/Invoices/InvoicesWrapper.tsx 100% 50% 100% 100%
src/Consumer/Invoices/WaterInvoices.tsx 100% 92.3% 100% 100%
src/Consumer/Invoices/utilsInvoices.ts 100% 100% 20% 100%
src/Consumer/Organizations/Organizations.tsx 100% 60% 66.66% 100%
src/Consumer/Organizations/RenewableCard.tsx 73.8% 60% 100% 73.8% 24-44, 46
src/Consumer/Organizations/TypeCard.tsx 98% 100% 100% 98% 18
src/Consumer/Organizations/utils.tsx 92.75% 100% 66.66% 92.75% 59-63
src/Home/Banner.tsx 100% 50% 100% 100%
src/Home/Content0.tsx 100% 100% 100% 100%
src/Home/Content11.tsx 100% 100% 100% 100%
src/Home/Content3.tsx 98.93% 60% 100% 98.93% 23
src/Home/Feature1.tsx 91.3% 50% 100% 91.3% 13-18
src/Home/Feature4.tsx 95.69% 75% 100% 95.69% 44-47
src/Home/Footer1.tsx 100% 100% 100% 100%
src/Home/Home.tsx 100% 100% 100% 100%
src/Home/Nav.tsx 100% 80% 33.33% 100%
src/Home/data.source.tsx 100% 100% 100% 100%
src/Home/utils.ts 100% 100% 100% 100%
src/Login/Login.tsx 100% 100% 100% 100%
src/Service/Banner.tsx 100% 100% 100% 100%
src/Service/Feature6.tsx 100% 100% 100% 100%
src/Service/Feature8.tsx 100% 100% 100% 100%
src/Service/Pricing0.tsx 100% 100% 100% 100%
src/Service/data.source.tsx 100% 100% 100% 100%
src/Service/index.tsx 100% 100% 100% 100%
src/Vendor/CompleteOrganization.tsx 70.93% 56.52% 54.54% 70.93% 33-35, 37, 52-56, 66-69, 71-74, 76-80, 90-92, 95-119
src/Vendor/CustomerDrawer.tsx 82.04% 90% 66.66% 82.04% 143-179, 181-187
src/Vendor/CustomerModal.tsx 94.64% 88.88% 100% 94.64% 22-26, 28
src/Vendor/CustomersBuildingTable.tsx 100% 100% 100% 100%
src/Vendor/Dashboard.tsx 79.5% 90% 50% 79.5% 39-56, 60-65, 75-80, 114-116
src/Vendor/ModalDetails.tsx 100% 93.33% 80% 100%
src/Vendor/VendorRoutes.tsx 80% 60% 50% 80% 30-33, 35-38, 40-43, 48, 50, 53, 55, 60-63, 69-71, 116-118
src/Vendor/Customers/Customers.tsx 86.82% 100% 66.66% 86.82% 66-81, 85
src/Vendor/DashboardCards/CarouselKpi.tsx 100% 11.11% 100% 100%
src/Vendor/DashboardCards/ConsumeCard.tsx 69.85% 80% 100% 69.85% 21-61
src/Vendor/DashboardCards/UsersCard.tsx 75.51% 81.25% 100% 75.51% 33-65, 67, 75, 89
src/Vendor/Edit/EditCard.tsx 84.15% 90% 60% 84.15% 19-28, 35-40
src/Vendor/Edit/EditPlan.tsx 100% 100% 100% 100%
src/Vendor/Organization/OrganizationCard.tsx 100% 100% 100% 100%
src/Vendor/OrganizationSteps/FirstStep.tsx 100% 84.84% 100% 100%
src/Vendor/OrganizationSteps/SecondStep.tsx 100% 100% 33.33% 100%
src/Vendor/OrganizationSteps/ThirdStep.tsx 65.82% 100% 50% 65.82% 7-9, 20-28, 42-45, 48-58
src/Vendor/OrganizationSteps/utils.tsx 49.18% 100% 33.33% 49.18% 28-39, 43-61
src/Vendor/Pages/Resources.tsx 100% 90.9% 100% 100%
src/Vendor/Pages/ResourcesCard.tsx 100% 100% 100% 100%
src/Vendor/Pages/ResourcesModal.tsx 92.09% 91.66% 53.84% 92.09% 86-91, 96-100, 104-105, 107
src/Vendor/Pages/Wrapper.tsx 100% 66.66% 66.66% 100%
src/Vendor/Pages/utils.tsx 96.52% 75% 42.85% 96.52% 132-133, 136-137, 183-184, 202-203
src/reducers/allOrganization.ts 100% 50% 100% 100%
src/reducers/allUsers.ts 100% 50% 100% 100%
src/reducers/buildings.ts 100% 50% 100% 100%
src/reducers/organization.ts 100% 50% 100% 100%
src/reducers/preference.ts 100% 66.66% 100% 100%
src/reducers/user.ts 100% 75% 100% 100%

@LeleDallas LeleDallas merged commit 70608bb into main Aug 15, 2023
5 checks passed
@renovate renovate bot deleted the renovate/react-router-monorepo branch August 15, 2023 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant