NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3951 most downloaded on npm
Remove unnecessary React propTypes from the production build
Last release 8 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 6 months
Nearly every release is documented
notes for 42 of 43 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
43 releases · first in 2015
Fix removing declarator type for unsafe-wrap mode. (#180) @jjow
safer type checking (#179) @tquetano-netflix
Add support for custom createReactClass function name (#177) @tquetano-netflix
One column per quarter.
Add support for defining additionalLibraries as a regexp expression (#174) @pkuczynski
Protect against unhandled exception (#171) @lukeapage
Fix babel readonly (#167) @eps1lon
Avoid removeNewlyUnusedIdentifiers when destructuring Arrays
[fix] Avoid removeNewlyUnusedIdentifiers when encountering destructuring
[fix] Remove unused MemberExpression root identifiers
Remove newly unreferenced VariableDeclarators
[core] Upgrade the dependencies
Add a classNameMatchers option to make Component resolution flexible (#135) @vieron
core(babel): upgrade to @babel latest beta (#133) @danez
fix(babel): Support latest beta version of babel 7 (#131) @danez
"Force removal" should abort early (#123) @bnjbvr
Support Babel 7 (#119) @vlad-zhukov
A correct release of the previous one (v0.4.7).
A correct release of the previous one (v0.4.7).
feat(API): support options with the plugins API (#118) @oliviertassinari
Use Array.prototype.indexOf for Node 4 support (#112) @insin
fix: more aggressive remove-proptypes exploration
fix(flow): support tricky use case with flow and the wrap mode (#105) ```js // In type Props = { bar?: string, };
// In
type Props = {
bar?: string,
};
function MyComponent(props: Props) {
return <div {...props} />;
}
// Babel Transformations
[
'babel-plugin-flow-react-proptypes',
'babel-plugin-transform-flow-strip-types',
'babel-plugin-transform-react-remove-prop-types',
]
// Out
function MyComponent(props) {
return React.createElement('div', props);
}
MyComponent.propTypes = process.env.NODE_ENV !== 'production' ? {
bar: require('prop-types').string
} : {};
Add support for removal comment annotations (#103) @EnoahNetzach
feat(lib): change the wrap mode and add a unsafe-wrap mode
Remove import prop-types (#97) @azizhk
This PR is adding a removeImport option to remove the following import statements:
import PropTypes from 'prop-types';
It's disabled by default waiting for people to try it out.
feat(react): support create-react-class over createClass (#93) Dropped the support of React.createClass for the new create-react-class package. Notice
React.createClass for the new create-react-class package.
Notice that we rely on the createReactClass() function name to remove the prop types.fix(class): handle class with no inheritance
[options] Add a ignoreFilenames option
Revert the previous breaking change has the heuristic isn't good enough.
Revert the previous breaking change has the heuristic isn't good enough.
Throw when accessing the propTypes from an imported module
That pattern has proven to be dangerous. It's now documented.
Support extend from a global Component
[stateless] Go deeper in the return statement to look for React element
[Class] Fix an issue with the export syntax
Add support for the React.PureComponent syntax released in v15.3.0 (#41).
React.PureComponent syntax released in v15.3.0 (#41).Add a mode option (#36). The default mode is remove. The new _experimental_ mode is wrap. It's quite useful for libs authors.
remove. The new experimental mode is wrap. It's quite useful for libs authors.Move babel-core to the devDependencies.
babel-core to the devDependencies.Fix an issue when declaring the propTypes with ES6 classes #14
propTypes with ES6 classes #14eslint to increase the code quality.Fix Stateless functional component that returns undefined https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/pull/13
undefined https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/pull/13Add support for ES6 classes without a name #11.
export default class extends Component {};
Fix ES6 class extend when not using React.Component or Component as the inherited class. #7
React.Component or Component as the inherited class. #7Add support for React.createElement syntax with stateless functionnal component. Thanks @NogsMPLS
React.createElement syntax with stateless functionnal component. Thanks @NogsMPLSRemove the /test folder from npm release
/test folder from npm releaseAdd support for stateless functional component #3
extends Component { https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/commit/6c30de0eada39f8bedc38b73dd465e6a76f40152Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →