Releases: mridgway/hoist-non-react-statics
Releases · mridgway/hoist-non-react-statics
Use descriptors for properties
TypeScript Definition Fixes
TypeScript Definitions
v2.2.0 2.2.0
Bug fix for protected key access
v2.1.1 2.1.1
Support for static methods
This changes the implementation back to using getOwnPropertyNames, but only hoists enumerables and non-enumerable static methods.
Enumerability Changes
There should be no breaking changes for most users. Previous specs for static class properties used non-enumerable properties. To accommodate this we also hoisted non-enumerable properties. The spec has changed and class properties are now enumerable, so we have removed the hoisting of non-enumerables since it can be problematic with native properties.
Potentially Breaking Change
- Only hoist enumerable statics
New Features
- Hoist statics of inherited classes