Skip to content

Remove nanoid #1712

Closed
Closed
@imranbarbhuiya

Description

@imranbarbhuiya

Description
A brief description of the bug. Provide either a screenshot or the full error message

Hi, thanks for this awesome lib, the new version added nanoid for middleware usage, I'm using this package in my rn project and crypto isn't available there. Not only rn but there's other platforms/runtimes too where crypto available so adding that to dep and using it even when we arent using middleware makes it impossible for me to update. For now, I patched the package to remove nanoid. I can create a pr to fix it but need to discuss what should we use instead.

Reproduction
How can this be reproduced / when did the error occur? Does the issue occur in a specific browser, or all browsers?
Use the package in any env where crypto isn't available

Expected result
It should work and specially when I'm not even using middleware so id is useless for me.
(in case it’s not obvious)

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions