Releases: atlassian/extract-react-types
pretty-proptypes@1.3.0
Minor Changes
-
a763063
#199 Thanks @madou! - Props that have comments which start witheslint-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.
extract-react-types-loader@1.0.0
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 theresolveLoader
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' } };` }
extract-react-types@0.30.2
Patch Changes
f5866b0
#188 Thanks @declan-warn! - Adds support for string type keys in TypeScript.
extract-react-types@0.30.1
Patch Changes
7a46827
#183 Thanks @danieldelcore! - Adds support for React.FC and FC
pretty-proptypes@1.2.0
Minor Changes
84e9241
#174 Thanks @declan-warn! - Added a new hybrid layout for displaying props.
extract-react-types@0.30.0
Minor Changes
c1aa88d
#172 Thanks @danieldelcore! - Forced minor (no changes)
extract-react-types-loader@0.3.17
Patch Changes
-
c1aa88d
#172 Thanks @danieldelcore! - Forced minor (no changes) -
Updated dependencies [
c1aa88d
]:- extract-react-types@0.30.0
babel-plugin-extract-react-types@0.1.14
Patch Changes
- Updated dependencies [
c1aa88d
]:- extract-react-types@0.30.0
extract-react-types@0.29.3
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.
extract-react-types@0.29.2
Patch Changes
8688631
#167 Thanks @danieldelcore! - Minor variable rename and code formatting