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
The current error message for this package is flatly incorrect:
error "define-properties" should be replaced with native functionality. You can instead use Object.defineProperties. Read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties depend/ban-dependencies
It's ofc fine if you want to suggest an alternative, but Object.defineProperties isn't it by itself.
The text was updated successfully, but these errors were encountered:
can you give us an example of a very common use of define-properties which shows this?
I know they're not directly equivalent but I'd like to see the main usage that shows it, to help people understand (incl me). importantly I'm not asking for the logical differences (we already know those), but the most common real world usage that shows it
it may be we just need to move it to the preferred manifest instead so we can document the usage/suggestions
The main usage is to take an additional mapping object with predicates, so that each property is conditionally defined.
It certainly uses an Object.defineProperty polyfill, and could be made to use the native Object.defineProperty/Object.defineProperties in a fork, but isn’t itself a polyfill.
The current error message for this package is flatly incorrect:
error "define-properties" should be replaced with native functionality. You can instead use Object.defineProperties. Read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties depend/ban-dependencies
It's ofc fine if you want to suggest an alternative, but
Object.defineProperties
isn't it by itself.The text was updated successfully, but these errors were encountered: