* add support for logical assignments with private properties
Patches the logic for handling assignment operators and adds support for
handling the logical assignment operators appropriately.
Fixes: https://github.com/babel/babel/issues/11646
* replace hardcoded logical assignment operators with constant
Replace a hardcoded check for logical assignment operators with the
LOGICAL_OPERATORS constant in
plugin-proposal-logical-assignment-operators.
Refs: https://github.com/babel/babel/pull/11702#discussion_r438554423
* - Added failing tests for issue #11885.
* - Fix issue #11885: absoluteRuntime does not work as expected with corejs3.
* - Removed helper code from test output files (tests for issue #11885).
* chore: add @babel/runtime-corejs3 to dev deps
* chore: update test fixtures
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* draft: showConfig support
* feat: pass through showConfig command options
* update test file
* refactor: add createLogger to makeChainWalker
* serializing dynamic plugin instance
* fix flow errors
* chore: add tests on extended config
* fix: do not print empty presets
* add more test cases
* add windows testcases
* address review comments
* throw error when showConfigPath does not exist
* print reason when showConfig is targetting an ignored file
* remove showConfig: boolean
* refactor: simplify environment flag name
* rename test fixtures
* fix: throw when SHOW_CONFIG_FOR is not a regular file
* cleanup test fixtures
* add test on only
* Update packages/babel-core/src/config/files/configuration.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* address review comments
* update test fixtures
* feat: sort config items in ascending priority
Co-authored-by: Brian Ng <bng412@gmail.com>
* chore: update compat-table
* chore: friendly to node < 14 contributors
Co-Authored-By: Brian Ng <bng412@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
* TypeScript 4.0: Support labeled tuple elements
* More tests
* Disallow mixing labeled and unlabeled elements
* Update AST shape
* Enable test after rebase
* Allow labeled spread types
* Fix flow
* Add types and generator suport
* Update packages/babel-parser/src/plugins/typescript/index.js
* Prettier
* chore: update CONTRIBUTING.md [skip ci]
* Update CONTRIBUTING.md [skip ci]
Co-authored-by: Brian Ng <bng412@gmail.com>
* Update CONTRIBUTING.md [skip ci]
Co-authored-by: Brian Ng <bng412@gmail.com>
* Apply suggestions from code review [skip ci]
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
* Replace lodash 'values' usage with Object.keys => .map(obj[key])
* Block scoping: refactor letReferences, outsideLetReferences as objects of type Map
* Remove lodash dependency from babel-plugin-transform-block-scoping
* Fixup: Add missing Object.keys call
* Fixup: Update remaining property accessors
* Coerce Map.values() iterator results into an array via spread operator
* Fixup: Map.put -> Map.set
* Fixup: undo incorrect variable de-duplication
* Replace array-spread-plus-map combination with Array.from call
* Extract an extendMap function as an attempt to create an optimization boundary
* Experiment: cast objects to string (eliminates one Map/object difference per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map )
* Fixup: perform String cast on map keys, not values
* Revert "Fixup: perform String cast on map keys, not values"
This reverts commit abdd147438fa74f51ac50ef1f96bb462810cd3f2.
* Revert "Experiment: cast objects to string (eliminates one Map/object difference per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map )"
This reverts commit a4035c885b37bfd6e926a0362bda9dcf5b5a52c2.
* Experiment: filter keys via Object.prototype.hasOwnProperty.call
* Revert "Experiment: filter keys via Object.prototype.hasOwnProperty.call"
This reverts commit 491c093f213c6229815b2e6dc9243245376265b0.
* Migrate back from Map-based reference storage to Object-based storage; access performance appears much improved for Object property access
* Revert "Migrate back from Map-based reference storage to Object-based storage; access performance appears much improved for Object property access"
This reverts commit 2119acc7f0d78ced3b9ad77820b4b72e5ad67475.
* Iterate over a clone of outsideRefs keys
* Revert "Extract an extendMap function as an attempt to create an optimization boundary"
This reverts commit 85689f2bfc180d0b5c0e674e5de7954470c7ec69.
* Fixup: migrate remaining Object property access to Map.get in tdz module
* ensure only builders starting with lowercase are used
* update generate builders to have function name starting flow lowercase
* fix bug in deprecated builders
* remove comment about not yet discussed change in next major version
* Replace lodash 'includes' usage with Array.prototype.includes
* Replace lodash 'values' usage with Object.values
* Replace lodash 'uniq' usage with Array.from(new Set(...))
* Property safety: ensure that ignoreSuites/ignoreTasks are populated prior to access
* Property safety: ensure that blacklistTypes is populated prior to access
* Revert "Replace lodash 'values' usage with Object.values"
This reverts commit 9fd3679d6db03066daee09fad0050e5292a32aa1.
* Replace lodash 'repeat' usage with String.prototype.repeat
* Replace lodash 'isinteger' usage with Number.isInteger
* Remove explicit lodash dependency from babel-generator package
* Update packages/babel-helper-transform-fixture-test-runner/src/index.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* Rely on optional chaining operator as sole boolean check
* Handle additional optional chaining operator simplification
* Update type signature
Co-authored-by: Brian Ng <bng412@gmail.com>