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

[Docs] Use native structuredClone instead of clone-deep #906

Open
1 task done
davidsandoz opened this issue Oct 14, 2024 · 0 comments
Open
1 task done

[Docs] Use native structuredClone instead of clone-deep #906

davidsandoz opened this issue Oct 14, 2024 · 0 comments
Labels
enhancement [Issue][PR] New feature pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised

Comments

@davidsandoz
Copy link

Description

As a developer using Storyblok SDK, I want to limit the amount of external dependencies so that the bundle size of my app is as small as possible, and to reduce the possible points of failure.

In the Rendering Rich Text section of the README, there's an example featuring the usage of the clone-deep library.

However, there's a native function structuredClone that is widely available to all browsers.

Suggested solution or improvement

If there's no specific reason for using the clone-deep library instead of the native structuredClone function, replace the usage of clone-deep with structuredClone.

If there's a good reason, then provide an explanation in the README.

Additional context

No response

Validations

@davidsandoz davidsandoz added enhancement [Issue][PR] New feature pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [Issue][PR] New feature pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised
Projects
None yet
Development

No branches or pull requests

1 participant