You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
side-channel can be replaced by a WeakMap - I think.
There aren't any docs, so I'm a bit confused how this package has 1400 dependents. How do they know what they're using? It seems like the vast majority of dependents are create-next-app packages that don't directly depend on this in their source, but do in the published package. SO that must be something about create-next-app or Next.js's build system.
But the usages I did see mostly look like they could easily be replaced by a WeakMap. The side-channel tests do have some other APIs, like assert(), but those can probably be one-liners as well.
side-channel
can be replaced by a WeakMap - I think.There aren't any docs, so I'm a bit confused how this package has 1400 dependents. How do they know what they're using? It seems like the vast majority of dependents are create-next-app packages that don't directly depend on this in their source, but do in the published package. SO that must be something about create-next-app or Next.js's build system.
But the usages I did see mostly look like they could easily be replaced by a WeakMap. The side-channel tests do have some other APIs, like assert(), but those can probably be one-liners as well.
It has a pretty large dependency tree: https://deptree.rschristian.dev/?q=side-channel
The text was updated successfully, but these errors were encountered: