Skip to content

use URLSearchParams instead of the url-search-params package (deprecated) #5601

Closed

Description

@mahmoud-triki

Is your feature request related to a problem? Please describe.

The axios npm package is using the url-search-params which is deprecated.
You can see more details about the deprecating of the url-search-params package here.

Describe the solution you'd like

Use the URLSearchParams API instead

Describe alternatives you've considered

uninstall the url-search-params npm package

Additional context/Screenshots

You can do npm install and you'll see the npm Deprecation warning

Activity

  1. WillianAgostini commented on Mar 16, 2023

    @WillianAgostini
    Contributor

    Hi @mahmoud-triki
    Apparently it's just being used here

    import URLSearchParams from 'url-search-params';

    I believe that you can create a PR by removing the dependency, the import in that line and the comment in the README.
    Would you like to do this?

  2. joan8ruth commented on Mar 16, 2023

    @joan8ruth

    Hi @WillianAgostini
    I think this is something I would like to do.

    Regards,
    Joanna

  3. mahmoud-triki commented on Mar 16, 2023

    @mahmoud-triki
    Author

    That works, thank you for the followup!

  4. sreenidhithallam commented on Apr 3, 2023

    @sreenidhithallam

    Hi @WillianAgostini , Could you please assign this issue on my name as this is unassigned

  5. WillianAgostini commented on Apr 3, 2023

    @WillianAgostini
    Contributor

    Hi @sreenidhithallam
    No needs to link the issue to you
    Feel free to develop the fix and create a PR linking this issue.

  6. added a commit that references this issue on Apr 21, 2023
    b39692e
  7. WillianAgostini commented on May 2, 2023

    @WillianAgostini
    Contributor

    Just open a PR following the template added at creation time

  8. npiyush97 commented on May 28, 2023

    @npiyush97
    Contributor

    @mahmoud-triki issue is fixed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions