Skip to content

v2.19.0

Compare
Choose a tag to compare
@fkling fkling released this 11 Oct 17:00
· 2325 commits to main since this release

New

  • The names of class declarations and function declarations are now used as displayNames (3f22b3c).

  • In classes, static get propTypes(){} is now inspected for propTypes. I.e. instead of

    class MyComponent extends React.Component {}
    
    MyComponent.propTypes = {
      disabled: PropTypes.boolean,
    };

    you can now write

    class MyComponent extends React.Component {
      static get propTypes() {
        return {
          disabled: PropTypes.boolean,
        };
      }
    }

    (23aa0fe)

Other

  • resolveToModule also resolvesJSXIdentifiers now (2c6e55a)