Skip to content

Releases: atlassian/extract-react-types

[email protected]

04 Jul 11:02
a73f916
Compare
Choose a tag to compare

Minor Changes

  • a763063 #199 Thanks @madou! - Props that have comments which start with eslint-ignore or @ts- are no longer rendered,
    other surrounding comments are still rendered for the prop however.

  • a763063 #199 Thanks @madou! - Props that have comments which contain @internal or @access private are no longer rendered to the props table,
    essentially having the prop and all of its comments hidden.

[email protected]

09 Jun 02:05
47978d9
Compare
Choose a tag to compare

Major Changes

  • 1ec5f76 #196 Thanks @marionebl! - Remove Atlaskit specific process.env switches (#195)

    BREAKING CHANGE
    This removes the previously available process.env switches to conditionally disable the loader.
    To restore the previous behaviour you'll have to use the resolveLoader webpack config, e.g.

    // webpack.config.js
    const enabled =
      ['production', 'staging'].includes(process.env.WEBSITE_ENV) ||
      process.env.FORCE_EXTRACT_REACT_TYPES;
    
    module.exports = {
      /* ... */
      resolveLoader: {
        alias: {
          'extract-react-types-loader': enabled
            ? undefined
            : require.resolve('./noop-extract-react-types-loader')
        }
      }
    };
    // noop-extract-react-types-loader.js
    module.exports = function noopExtractReactPropTypesLoader() {
      return `module.exports = {
        component: {
          kind: 'object',
          members: [
            {
              kind: 'property',
              key: { kind: 'id', name: 'Warning' },
              value: { kind: 'any' },
              optional: false,
              leadingComments: [
                {
                  type: 'commentBlock',
                  value: `extract-react-types is not being run in dev mode for speed reasons. If you need to
      see prop types add the environment variable \`FORCE_EXTRACT_REACT_TYPES\`
                  raw: '**'
                }
              ],
              default: {
                kind: 'string',
                value: 'Prop types are not shown in dev mode'
              }
            }
          ],
          referenceIdName: 'NoopPropTpes'
        }
      };`
    }

[email protected]

25 May 07:14
12a5fe6
Compare
Choose a tag to compare

Patch Changes

[email protected]

20 Apr 00:15
d5cd916
Compare
Choose a tag to compare

Patch Changes

[email protected]

08 Mar 23:49
0b9456e
Compare
Choose a tag to compare

Minor Changes

[email protected]

05 Mar 00:14
48e0ff1
Compare
Choose a tag to compare

Minor Changes

[email protected]

05 Mar 00:14
48e0ff1
Compare
Choose a tag to compare

Patch Changes

[email protected]

05 Mar 00:14
48e0ff1
Compare
Choose a tag to compare

Patch Changes

[email protected]

04 Mar 05:31
6466c41
Compare
Choose a tag to compare

Patch Changes

  • 4589e9f #169 Thanks @danieldelcore! - Fixes a bug where variable names clash with type properties of the same name, causing a "Missing converter for: [path]" error

  • ff72fd8 #171 Thanks @danieldelcore! - Internal refactor. Changes internal logic and file structure only.

[email protected]

03 Mar 23:00
d889453
Compare
Choose a tag to compare

Patch Changes