Skip to content

refactor(react-router): replace substr with substring #12080

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

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

bilalk711
Copy link
Contributor

@bilalk711 bilalk711 commented Oct 6, 2024

Issue

In the history package, JS substr method was used that is deprecated now.

Solution

I replaced that method with substring and the functionality is not affected. It is just a minor refactor.


Supersedes #12077

Copy link

changeset-bot bot commented Oct 6, 2024

🦋 Changeset detected

Latest commit: cf98cde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch
@react-router/fs-routes Patch
@react-router/remix-config-routes-adapter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MichaelDeBoey MichaelDeBoey changed the title Removed deprecated substr string method with substring in history package refactor(react-router): replace substr with substring Oct 6, 2024
@bilalk711
Copy link
Contributor Author

@brophdawg11 can you please review and merge this PR?
It is just a minor refactor.

@timdorr timdorr requested a review from brophdawg11 October 8, 2024 14:27
@brophdawg11
Copy link
Contributor

@bilalk711 Could you clean up this PR so it's just your commits? I'm seeing a bunch of unrelated commits in here.

Could you also add a changeset per #12080 (comment)?

@bilalk711 bilalk711 force-pushed the dev-history-bilalk711 branch 2 times, most recently from 9d7a1ba to 0fd6bc9 Compare October 20, 2024 11:11
@bilalk711 bilalk711 force-pushed the dev-history-bilalk711 branch from 0fd6bc9 to e913761 Compare October 20, 2024 11:37
@bilalk711
Copy link
Contributor Author

@bilalk711 Could you clean up this PR so it's just your commits? I'm seeing a bunch of unrelated commits in here.

Could you also add a changeset per #12080 (comment)?

I removed the irrelevant commits and added a changeset.
I'm so sorry for that, I'll keep it in mind next time.

Copy link
Contributor

@brophdawg11 brophdawg11 left a comment

Choose a reason for hiding this comment

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

Thanks!

@brophdawg11
Copy link
Contributor

Just FYI this is going into dev so it ill be included in the v7 release when that comes out

@brophdawg11 brophdawg11 merged commit a934cc9 into remix-run:dev Oct 21, 2024
5 checks passed
Copy link
Contributor

🤖 Hello there,

We just published version 7.0.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 6.28.1-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 6.28.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 6.28.2-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

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.

3 participants