Skip to content

fix(deps): update dependency history to v5#2526

Open
renovate[bot] wants to merge 4 commits intomasterfrom
renovate/history-5.x
Open

fix(deps): update dependency history to v5#2526
renovate[bot] wants to merge 4 commits intomasterfrom
renovate/history-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 23, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
history ^4.10.1 -> ^5.0.0 age adoption passing confidence
@​types/history 4.7.11 -> 5.0.0 age adoption passing confidence

Release Notes

remix-run/history (history)

v5.3.0

Compare Source

This release provides support for native ESM consumption of all exports.

v5.2.0

Compare Source

🐛 Bug fixes

  • Fixed a few type declarations and deprecated the following types:
    • State (now set to unknown which will require consumer type narrowing)
    • PartialPath (use Partial<Path> instead)
    • PartialLocation (use Partial<Location> instead)
  • Fixed a regression related to the createPath return value (#​813)

✨ Features

  • We now use statically analyzable CJS exports. This enables named imports in Node ESM scripts (See the commit).

Full Changelog: remix-run/history@v5.1.0...v5.2.0

v5.1.0

Compare Source

Because the prior 5.0.2 release removed the State type parameter from Location, this was technically a breaking change. To correct for this, I'm bumping this as a minor release. It won't affect runtime code, but it may affect your development experience and tests if you were using that parameter.

The State type export is also restored, so you shouldn't have issues with installing React Router v6.

Oh, by the way, did you hear we released React Router v6?

Full Changelog: remix-run/history@v5.0.3...v5.1.0

v5.0.3

Compare Source

Fixed parsePath adding incorrectly adding search

v5.0.2

Compare Source

Just a couple fixes:

  • Fixed search params persisting on redirects
  • Changed the location.state type to any and removed the generic on Location

Full Changelog: remix-run/history@v5.0.1...v5.0.2

v5.0.1

Compare Source

This patch release contains a tiny TypeScript update to use the built-in Partial utility for PartialPath and PartialLocation. We always love it when we can ship just a little less code!

🙏 Credits

Thanks to @​liuhanqu, @​hanquliu, @​chaance and @​mjackson for your contributions!

v5.0.0

Compare Source

Today we are very pleased to announce the stable release of history version 5!

Overview

This version includes many enhancements and fixes a few important issues with the library.

New Features
  • Hash history now has support for location.state
  • Better history.block API, with support for retrying transitions
  • Full TypeScript declarations and IntelliSense docs
  • Adds development and production builds for <script type=module> users
  • Both browser and hash history have support for iframes (custom window objects)
  • About 50% smaller than v4 (and no dependencies)
Bugfixes
  • Fixed some long-standing encoding issues with location.pathname
  • Removed unfixable warnings about pushing the same path in hash history
  • Renamed browser global to HistoryLibrary so it doesn't conflict with window.History
Breaking Changes
  • Removed support for browsers that do not support the HTML5 history API (no pushState)
  • Removed relative pathname support in hash history and memory history
  • Removed getUserConfirmation, keyLength, and hashType APIs

Usage

Please refer to our installation guide for instructions about how to install the library.

There is also a getting started guide as well as a complete API reference in the docs folder.

We are very excited about this release, especially because it will serve as the foundation for the upcoming release of React Router version 6.

Thank you for your support. Enjoy! 😀


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/history-5.x branch 19 times, most recently from 3e85957 to e0b694e Compare April 30, 2025 12:11
@renovate renovate bot force-pushed the renovate/history-5.x branch 11 times, most recently from 44a8415 to 157ad85 Compare May 9, 2025 09:27
@renovate renovate bot force-pushed the renovate/history-5.x branch 8 times, most recently from 6ef75dd to b6337af Compare June 2, 2025 13:19
@renovate renovate bot force-pushed the renovate/history-5.x branch 5 times, most recently from 7f4470f to a08664a Compare June 7, 2025 08:03
@renovate renovate bot force-pushed the renovate/history-5.x branch 4 times, most recently from 2c842a6 to 1e33e98 Compare June 17, 2025 10:57
@umar8hassan umar8hassan self-assigned this Jun 23, 2025
@renovate renovate bot force-pushed the renovate/history-5.x branch 3 times, most recently from b18e83d to 3c5e11e Compare June 23, 2025 12:51
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Jun 23, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@umar8hassan
Copy link
Copy Markdown
Contributor

A few type checks and unit tests have been fixed in this branch. Will continue working on this on my next renovate day

Copy link
Copy Markdown
Contributor

@ibrahimjaved12 ibrahimjaved12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work now:


        <BrowserRouter getUserConfirmation={getUserConfirmation}>
          {props.children}
        </BrowserRouter>

since getUserConfirmation is removed as a breaking change.

Could you please fix this from the codebase?

@umar8hassan
Copy link
Copy Markdown
Contributor

I wasn't able to complete this on my last renovate day on August 11. I will continue this on my next renovate day.

@umar8hassan
Copy link
Copy Markdown
Contributor

I tried a bunch of things, but this also requires react-router to be updated. Without the update, it adds more complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants