* ➕ add test fixture
* ➕ add removeTypeDuplicates for typescript
* ➕ add createTSUnionType for typescript
* 💊 fix ConditionalExpression for typescript
* 💊 fix ConditionalExpression
* 💊 fix added test case
* ➕ add new line at the end of the file
* 💊 types.every(f) => f(types[0])
* 🔄 bug => foo
* ➕ add TSBaseType
* ➕ add conditions NOT to break backward compatibility
* Fix nested classes reference private fields
* Process only visible private fields when redeclaring
* Comments
* Skip class traversal if there are no private fields
* Handle redeclared private field in computed key
* Transform initializers with ids in rest elements
Fix issue 11281. Transform parameters with default initializers that
have ids that are also in a parameter with a rest element.
Before, these parameters were not transformed.
* Add plugin-transform-parameters as dependency
* Remove outdated comment
* Use set instead of array for paramsWithRestElement
* Skip when encounter "Scope"
Previously, f({...R}, f = R => R) would be incorrectly transformed.
* Pass in loose mode option instead of false
* Address review and re-organize tests
Checking the RHS of an assignment pattern/checking the parent of
an identifier node fails on cases like "({...R}, a = f(R))" or
"({...R}, {[R.key]: a = 42})".
Also refactor tests by removing unecessary tests and
separating "should transform" from "should not transform" tests.
* Fixed useBuiltIns and modules validation when using 'false' as option
* Added tests for 'validateUseBuiltInsOptions' and for 'validateModulesOption' when input is 'false'
Co-authored-by: Jovica Markoski <jovica@upshiftwork.com>
* Fix createSuper in Babel <7.5.5
In Babel <7.5.5, addHelper only throws when called for the first time.
This was fixed by babel/babel#10208, but since we are already adding
a workaround for <7.9.0, we may as well fix <7.5.5
* Use 7.0.0 in "babel-old-version" test
* Ignore abstract methods when decorating class
* Address Nico's feedback
* Add input/output test
* Update test output to account for _nonIterableRest changes
* Test Babel compiled using an old version of @babel/core
This should catch regressions where we use a new helper without a fallback
for older versions, or when we use a new @babel/traverse method.
* Enable the test
* Define default value for vars shadowing params
* Remove from package.json
* Only convert traverse the params if needed
This prevents this plugin from running after the destructuring
transform, which causes #11256
* Review
* Review
* Update packages/babel-plugin-transform-parameters/src/params.js [skip ci]
Co-Authored-By: Brian Ng <bng412@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>