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

[Vue3] [email protected] Deprecated #2212

Open
SamuelMwangiW opened this issue Jan 26, 2025 · 2 comments
Open

[Vue3] [email protected] Deprecated #2212

SamuelMwangiW opened this issue Jan 26, 2025 · 2 comments

Comments

@SamuelMwangiW
Copy link

Version:

  • @inertiajs/vue3 version: 2.0.3

Describe the problem:

I am getting the following warning in the terminal while running npm run build.

Warning

deprecated [email protected]: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.

I am using the Vue package but lodash is referenced in the react and svelte equivalents as well.

  1. "lodash.isequal": "^4.5.0"
  2. "lodash.isequal": "^4.5.0"
  3. "lodash": "^4.5.0"

A quick search shows that lodash.isequal is only used by useForm() but I am not confident with Typescript enough to attempt a PR 🙈

Steps to reproduce:

Run npm run build on a project with vite & @inertiajs/vue3

Image
@SamuelMwangiW
Copy link
Author

SamuelMwangiW commented Jan 26, 2025

May be closed by #2210 though the PR replaces lodash with @gilbarbara/deep-equal as opposed to using the native util.isDeepStrictEqual as suggested by lodash maintainer

@lcdss
Copy link

lcdss commented Jan 27, 2025

May be closed by #2210 though the PR replaces lodash with @gilbarbara/deep-equal as opposed to using the native util.isDeepStrictEqual as suggested by lodash maintainer

Unfortunately isDeepStrictEqual is currently only available in Node so we still need a non native alternative. The ones I choose I think are the best taking bundle size, performance, maintainability, popularity and typescript support into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants