chore: support TypeScript 5 in TS transformer (#21925)

Fixes https://github.com/microsoft/playwright/issues/21900
This commit is contained in:
Max Schmitt 2023-03-23 18:07:02 +01:00 committed by GitHub
parent 667ee45c32
commit e621e52f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 502 additions and 402 deletions

View File

@ -6,39 +6,39 @@ This project incorporates components from the projects listed below. The origina
- @ampproject/remapping@2.2.0 (https://github.com/ampproject/remapping)
- @babel/code-frame@7.18.6 (https://github.com/babel/babel)
- @babel/compat-data@7.20.1 (https://github.com/babel/babel)
- @babel/core@7.20.2 (https://github.com/babel/babel)
- @babel/generator@7.20.4 (https://github.com/babel/babel)
- @babel/compat-data@7.21.0 (https://github.com/babel/babel)
- @babel/core@7.21.3 (https://github.com/babel/babel)
- @babel/generator@7.21.3 (https://github.com/babel/babel)
- @babel/helper-annotate-as-pure@7.18.6 (https://github.com/babel/babel)
- @babel/helper-compilation-targets@7.20.0 (https://github.com/babel/babel)
- @babel/helper-create-class-features-plugin@7.20.2 (https://github.com/babel/babel)
- @babel/helper-compilation-targets@7.20.7 (https://github.com/babel/babel)
- @babel/helper-create-class-features-plugin@7.21.0 (https://github.com/babel/babel)
- @babel/helper-environment-visitor@7.18.9 (https://github.com/babel/babel)
- @babel/helper-function-name@7.19.0 (https://github.com/babel/babel)
- @babel/helper-function-name@7.21.0 (https://github.com/babel/babel)
- @babel/helper-hoist-variables@7.18.6 (https://github.com/babel/babel)
- @babel/helper-member-expression-to-functions@7.18.9 (https://github.com/babel/babel)
- @babel/helper-member-expression-to-functions@7.21.0 (https://github.com/babel/babel)
- @babel/helper-module-imports@7.18.6 (https://github.com/babel/babel)
- @babel/helper-module-transforms@7.20.2 (https://github.com/babel/babel)
- @babel/helper-module-transforms@7.21.2 (https://github.com/babel/babel)
- @babel/helper-optimise-call-expression@7.18.6 (https://github.com/babel/babel)
- @babel/helper-plugin-utils@7.20.2 (https://github.com/babel/babel)
- @babel/helper-replace-supers@7.19.1 (https://github.com/babel/babel)
- @babel/helper-replace-supers@7.20.7 (https://github.com/babel/babel)
- @babel/helper-simple-access@7.20.2 (https://github.com/babel/babel)
- @babel/helper-skip-transparent-expression-wrappers@7.20.0 (https://github.com/babel/babel)
- @babel/helper-split-export-declaration@7.18.6 (https://github.com/babel/babel)
- @babel/helper-string-parser@7.19.4 (https://github.com/babel/babel)
- @babel/helper-validator-identifier@7.19.1 (https://github.com/babel/babel)
- @babel/helper-validator-option@7.18.6 (https://github.com/babel/babel)
- @babel/helpers@7.20.1 (https://github.com/babel/babel)
- @babel/helper-validator-option@7.21.0 (https://github.com/babel/babel)
- @babel/helpers@7.21.0 (https://github.com/babel/babel)
- @babel/highlight@7.18.6 (https://github.com/babel/babel)
- @babel/parser@7.20.3 (https://github.com/babel/babel)
- @babel/parser@7.21.3 (https://github.com/babel/babel)
- @babel/plugin-proposal-class-properties@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-dynamic-import@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-export-namespace-from@7.18.9 (https://github.com/babel/babel)
- @babel/plugin-proposal-logical-assignment-operators@7.18.9 (https://github.com/babel/babel)
- @babel/plugin-proposal-logical-assignment-operators@7.20.7 (https://github.com/babel/babel)
- @babel/plugin-proposal-nullish-coalescing-operator@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-numeric-separator@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-optional-chaining@7.18.9 (https://github.com/babel/babel)
- @babel/plugin-proposal-optional-chaining@7.21.0 (https://github.com/babel/babel)
- @babel/plugin-proposal-private-methods@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-private-property-in-object@7.18.6 (https://github.com/babel/babel)
- @babel/plugin-proposal-private-property-in-object@7.21.0 (https://github.com/babel/babel)
- @babel/plugin-syntax-async-generators@7.8.4 (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-generators)
- @babel/plugin-syntax-dynamic-import@7.8.3 (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-dynamic-import)
- @babel/plugin-syntax-export-namespace-from@7.8.3 (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-export-namespace-from)
@ -53,20 +53,20 @@ This project incorporates components from the projects listed below. The origina
- @babel/plugin-syntax-optional-chaining@7.8.3 (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-chaining)
- @babel/plugin-syntax-private-property-in-object@7.14.5 (https://github.com/babel/babel)
- @babel/plugin-syntax-typescript@7.20.0 (https://github.com/babel/babel)
- @babel/plugin-transform-modules-commonjs@7.19.6 (https://github.com/babel/babel)
- @babel/plugin-transform-react-jsx@7.20.7 (https://github.com/babel/babel)
- @babel/plugin-transform-typescript@7.20.2 (https://github.com/babel/babel)
- @babel/preset-typescript@7.18.6 (https://github.com/babel/babel)
- @babel/template@7.18.10 (https://github.com/babel/babel)
- @babel/traverse@7.20.1 (https://github.com/babel/babel)
- @babel/types@7.20.7 (https://github.com/babel/babel)
- @babel/plugin-transform-modules-commonjs@7.21.2 (https://github.com/babel/babel)
- @babel/plugin-transform-react-jsx@7.21.0 (https://github.com/babel/babel)
- @babel/plugin-transform-typescript@7.21.3 (https://github.com/babel/babel)
- @babel/preset-typescript@7.21.0 (https://github.com/babel/babel)
- @babel/template@7.20.7 (https://github.com/babel/babel)
- @babel/traverse@7.21.3 (https://github.com/babel/babel)
- @babel/types@7.21.3 (https://github.com/babel/babel)
- @jest/types@27.5.1 (https://github.com/facebook/jest)
- @jridgewell/gen-mapping@0.1.1 (https://github.com/jridgewell/gen-mapping)
- @jridgewell/gen-mapping@0.3.2 (https://github.com/jridgewell/gen-mapping)
- @jridgewell/resolve-uri@3.0.7 (https://github.com/jridgewell/resolve-uri)
- @jridgewell/resolve-uri@3.1.0 (https://github.com/jridgewell/resolve-uri)
- @jridgewell/set-array@1.1.1 (https://github.com/jridgewell/set-array)
- @jridgewell/sourcemap-codec@1.4.13 (https://github.com/jridgewell/sourcemap-codec)
- @jridgewell/trace-mapping@0.3.13 (https://github.com/jridgewell/trace-mapping)
- @jridgewell/sourcemap-codec@1.4.14 (https://github.com/jridgewell/sourcemap-codec)
- @jridgewell/trace-mapping@0.3.17 (https://github.com/jridgewell/trace-mapping)
- @types/istanbul-lib-coverage@2.0.4 (https://github.com/DefinitelyTyped/DefinitelyTyped)
- @types/istanbul-lib-report@3.0.0 (https://github.com/DefinitelyTyped/DefinitelyTyped)
- @types/istanbul-reports@3.0.1 (https://github.com/DefinitelyTyped/DefinitelyTyped)
@ -82,9 +82,9 @@ This project incorporates components from the projects listed below. The origina
- anymatch@3.1.3 (https://github.com/micromatch/anymatch)
- binary-extensions@2.2.0 (https://github.com/sindresorhus/binary-extensions)
- braces@3.0.2 (https://github.com/micromatch/braces)
- browserslist@4.21.4 (https://github.com/browserslist/browserslist)
- browserslist@4.21.5 (https://github.com/browserslist/browserslist)
- buffer-from@1.1.2 (https://github.com/LinusU/buffer-from)
- caniuse-lite@1.0.30001434 (https://github.com/browserslist/caniuse-lite)
- caniuse-lite@1.0.30001469 (https://github.com/browserslist/caniuse-lite)
- chalk@2.4.2 (https://github.com/chalk/chalk)
- chalk@4.1.2 (https://github.com/chalk/chalk)
- chokidar@3.5.3 (https://github.com/paulmillr/chokidar)
@ -97,7 +97,7 @@ This project incorporates components from the projects listed below. The origina
- debug@4.3.4 (https://github.com/debug-js/debug)
- define-lazy-prop@2.0.0 (https://github.com/sindresorhus/define-lazy-prop)
- diff-sequences@27.5.1 (https://github.com/facebook/jest)
- electron-to-chromium@1.4.284 (https://github.com/kilian/electron-to-chromium)
- electron-to-chromium@1.4.337 (https://github.com/kilian/electron-to-chromium)
- enquirer@2.3.6 (https://github.com/enquirer/enquirer)
- escalade@3.1.1 (https://github.com/lukeed/escalade)
- escape-string-regexp@1.0.5 (https://github.com/sindresorhus/escape-string-regexp)
@ -124,9 +124,10 @@ This project incorporates components from the projects listed below. The origina
- js-tokens@4.0.0 (https://github.com/lydell/js-tokens)
- jsesc@2.5.2 (https://github.com/mathiasbynens/jsesc)
- json5@2.2.3 (https://github.com/json5/json5)
- lru-cache@5.1.1 (https://github.com/isaacs/node-lru-cache)
- micromatch@4.0.5 (https://github.com/micromatch/micromatch)
- ms@2.1.2 (https://github.com/zeit/ms)
- node-releases@2.0.6 (https://github.com/chicoxyzzy/node-releases)
- node-releases@2.0.10 (https://github.com/chicoxyzzy/node-releases)
- normalize-path@3.0.0 (https://github.com/jonschlinkert/normalize-path)
- open@8.4.0 (https://github.com/sindresorhus/open)
- picocolors@1.0.0 (https://github.com/alexeyraspopov/picocolors)
@ -147,6 +148,7 @@ This project incorporates components from the projects listed below. The origina
- to-fast-properties@2.0.0 (https://github.com/sindresorhus/to-fast-properties)
- to-regex-range@5.0.1 (https://github.com/micromatch/to-regex-range)
- update-browserslist-db@1.0.10 (https://github.com/browserslist/update-db)
- yallist@3.1.1 (https://github.com/isaacs/yallist)
%% @ampproject/remapping@2.2.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -381,7 +383,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/code-frame@7.18.6 AND INFORMATION
%% @babel/compat-data@7.20.1 NOTICES AND INFORMATION BEGIN HERE
%% @babel/compat-data@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -406,9 +408,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/compat-data@7.20.1 AND INFORMATION
END OF @babel/compat-data@7.21.0 AND INFORMATION
%% @babel/core@7.20.2 NOTICES AND INFORMATION BEGIN HERE
%% @babel/core@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -433,9 +435,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/core@7.20.2 AND INFORMATION
END OF @babel/core@7.21.3 AND INFORMATION
%% @babel/generator@7.20.4 NOTICES AND INFORMATION BEGIN HERE
%% @babel/generator@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -460,7 +462,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/generator@7.20.4 AND INFORMATION
END OF @babel/generator@7.21.3 AND INFORMATION
%% @babel/helper-annotate-as-pure@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -489,7 +491,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-annotate-as-pure@7.18.6 AND INFORMATION
%% @babel/helper-compilation-targets@7.20.0 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-compilation-targets@7.20.7 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -514,9 +516,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-compilation-targets@7.20.0 AND INFORMATION
END OF @babel/helper-compilation-targets@7.20.7 AND INFORMATION
%% @babel/helper-create-class-features-plugin@7.20.2 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-create-class-features-plugin@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -541,7 +543,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-create-class-features-plugin@7.20.2 AND INFORMATION
END OF @babel/helper-create-class-features-plugin@7.21.0 AND INFORMATION
%% @babel/helper-environment-visitor@7.18.9 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -570,7 +572,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-environment-visitor@7.18.9 AND INFORMATION
%% @babel/helper-function-name@7.19.0 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-function-name@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -595,7 +597,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-function-name@7.19.0 AND INFORMATION
END OF @babel/helper-function-name@7.21.0 AND INFORMATION
%% @babel/helper-hoist-variables@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -624,7 +626,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-hoist-variables@7.18.6 AND INFORMATION
%% @babel/helper-member-expression-to-functions@7.18.9 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-member-expression-to-functions@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -649,7 +651,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-member-expression-to-functions@7.18.9 AND INFORMATION
END OF @babel/helper-member-expression-to-functions@7.21.0 AND INFORMATION
%% @babel/helper-module-imports@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -678,7 +680,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-module-imports@7.18.6 AND INFORMATION
%% @babel/helper-module-transforms@7.20.2 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-module-transforms@7.21.2 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -703,7 +705,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-module-transforms@7.20.2 AND INFORMATION
END OF @babel/helper-module-transforms@7.21.2 AND INFORMATION
%% @babel/helper-optimise-call-expression@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -759,7 +761,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-plugin-utils@7.20.2 AND INFORMATION
%% @babel/helper-replace-supers@7.19.1 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-replace-supers@7.20.7 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -784,7 +786,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-replace-supers@7.19.1 AND INFORMATION
END OF @babel/helper-replace-supers@7.20.7 AND INFORMATION
%% @babel/helper-simple-access@7.20.2 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -921,7 +923,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-validator-identifier@7.19.1 AND INFORMATION
%% @babel/helper-validator-option@7.18.6 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helper-validator-option@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -946,9 +948,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helper-validator-option@7.18.6 AND INFORMATION
END OF @babel/helper-validator-option@7.21.0 AND INFORMATION
%% @babel/helpers@7.20.1 NOTICES AND INFORMATION BEGIN HERE
%% @babel/helpers@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -973,7 +975,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/helpers@7.20.1 AND INFORMATION
END OF @babel/helpers@7.21.0 AND INFORMATION
%% @babel/highlight@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1002,7 +1004,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/highlight@7.18.6 AND INFORMATION
%% @babel/parser@7.20.3 NOTICES AND INFORMATION BEGIN HERE
%% @babel/parser@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright (C) 2012-2014 by various contributors (see AUTHORS)
@ -1024,7 +1026,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================
END OF @babel/parser@7.20.3 AND INFORMATION
END OF @babel/parser@7.21.3 AND INFORMATION
%% @babel/plugin-proposal-class-properties@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1107,7 +1109,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-export-namespace-from@7.18.9 AND INFORMATION
%% @babel/plugin-proposal-logical-assignment-operators@7.18.9 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-proposal-logical-assignment-operators@7.20.7 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1132,7 +1134,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-logical-assignment-operators@7.18.9 AND INFORMATION
END OF @babel/plugin-proposal-logical-assignment-operators@7.20.7 AND INFORMATION
%% @babel/plugin-proposal-nullish-coalescing-operator@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1188,7 +1190,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-numeric-separator@7.18.6 AND INFORMATION
%% @babel/plugin-proposal-optional-chaining@7.18.9 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-proposal-optional-chaining@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1213,7 +1215,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-optional-chaining@7.18.9 AND INFORMATION
END OF @babel/plugin-proposal-optional-chaining@7.21.0 AND INFORMATION
%% @babel/plugin-proposal-private-methods@7.18.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1242,7 +1244,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-private-methods@7.18.6 AND INFORMATION
%% @babel/plugin-proposal-private-property-in-object@7.18.6 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-proposal-private-property-in-object@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1267,7 +1269,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-proposal-private-property-in-object@7.18.6 AND INFORMATION
END OF @babel/plugin-proposal-private-property-in-object@7.21.0 AND INFORMATION
%% @babel/plugin-syntax-async-generators@7.8.4 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1647,7 +1649,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-syntax-typescript@7.20.0 AND INFORMATION
%% @babel/plugin-transform-modules-commonjs@7.19.6 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-transform-modules-commonjs@7.21.2 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1672,9 +1674,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-transform-modules-commonjs@7.19.6 AND INFORMATION
END OF @babel/plugin-transform-modules-commonjs@7.21.2 AND INFORMATION
%% @babel/plugin-transform-react-jsx@7.20.7 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-transform-react-jsx@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1699,9 +1701,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-transform-react-jsx@7.20.7 AND INFORMATION
END OF @babel/plugin-transform-react-jsx@7.21.0 AND INFORMATION
%% @babel/plugin-transform-typescript@7.20.2 NOTICES AND INFORMATION BEGIN HERE
%% @babel/plugin-transform-typescript@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1726,9 +1728,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/plugin-transform-typescript@7.20.2 AND INFORMATION
END OF @babel/plugin-transform-typescript@7.21.3 AND INFORMATION
%% @babel/preset-typescript@7.18.6 NOTICES AND INFORMATION BEGIN HERE
%% @babel/preset-typescript@7.21.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1753,9 +1755,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/preset-typescript@7.18.6 AND INFORMATION
END OF @babel/preset-typescript@7.21.0 AND INFORMATION
%% @babel/template@7.18.10 NOTICES AND INFORMATION BEGIN HERE
%% @babel/template@7.20.7 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1780,9 +1782,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/template@7.18.10 AND INFORMATION
END OF @babel/template@7.20.7 AND INFORMATION
%% @babel/traverse@7.20.1 NOTICES AND INFORMATION BEGIN HERE
%% @babel/traverse@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1807,9 +1809,9 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/traverse@7.20.1 AND INFORMATION
END OF @babel/traverse@7.21.3 AND INFORMATION
%% @babel/types@7.20.7 NOTICES AND INFORMATION BEGIN HERE
%% @babel/types@7.21.3 NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License
@ -1834,7 +1836,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/types@7.20.7 AND INFORMATION
END OF @babel/types@7.21.3 AND INFORMATION
%% @jest/types@27.5.1 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1910,7 +1912,7 @@ SOFTWARE.
=========================================
END OF @jridgewell/gen-mapping@0.3.2 AND INFORMATION
%% @jridgewell/resolve-uri@3.0.7 NOTICES AND INFORMATION BEGIN HERE
%% @jridgewell/resolve-uri@3.1.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright 2019 Justin Ridgewell <jridgewell@google.com>
@ -1932,7 +1934,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=========================================
END OF @jridgewell/resolve-uri@3.0.7 AND INFORMATION
END OF @jridgewell/resolve-uri@3.1.0 AND INFORMATION
%% @jridgewell/set-array@1.1.1 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -1958,7 +1960,7 @@ SOFTWARE.
=========================================
END OF @jridgewell/set-array@1.1.1 AND INFORMATION
%% @jridgewell/sourcemap-codec@1.4.13 NOTICES AND INFORMATION BEGIN HERE
%% @jridgewell/sourcemap-codec@1.4.14 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License
@ -1982,9 +1984,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================
END OF @jridgewell/sourcemap-codec@1.4.13 AND INFORMATION
END OF @jridgewell/sourcemap-codec@1.4.14 AND INFORMATION
%% @jridgewell/trace-mapping@0.3.13 NOTICES AND INFORMATION BEGIN HERE
%% @jridgewell/trace-mapping@0.3.17 NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright 2022 Justin Ridgewell <justin@ridgewell.name>
@ -2006,7 +2008,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=========================================
END OF @jridgewell/trace-mapping@0.3.13 AND INFORMATION
END OF @jridgewell/trace-mapping@0.3.17 AND INFORMATION
%% @types/istanbul-lib-coverage@2.0.4 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -2332,7 +2334,7 @@ THE SOFTWARE.
=========================================
END OF braces@3.0.2 AND INFORMATION
%% browserslist@4.21.4 NOTICES AND INFORMATION BEGIN HERE
%% browserslist@4.21.5 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License (MIT)
@ -2355,7 +2357,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF browserslist@4.21.4 AND INFORMATION
END OF browserslist@4.21.5 AND INFORMATION
%% buffer-from@1.1.2 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -2383,7 +2385,7 @@ SOFTWARE.
=========================================
END OF buffer-from@1.1.2 AND INFORMATION
%% caniuse-lite@1.0.30001434 NOTICES AND INFORMATION BEGIN HERE
%% caniuse-lite@1.0.30001469 NOTICES AND INFORMATION BEGIN HERE
=========================================
Attribution 4.0 International
@ -2781,7 +2783,7 @@ public licenses.
Creative Commons may be contacted at creativecommons.org.
=========================================
END OF caniuse-lite@1.0.30001434 AND INFORMATION
END OF caniuse-lite@1.0.30001469 AND INFORMATION
%% chalk@2.4.2 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -3031,7 +3033,7 @@ SOFTWARE.
=========================================
END OF diff-sequences@27.5.1 AND INFORMATION
%% electron-to-chromium@1.4.284 NOTICES AND INFORMATION BEGIN HERE
%% electron-to-chromium@1.4.337 NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright 2018 Kilian Valkhof
@ -3039,7 +3041,7 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
=========================================
END OF electron-to-chromium@1.4.284 AND INFORMATION
END OF electron-to-chromium@1.4.337 AND INFORMATION
%% enquirer@2.3.6 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -3596,6 +3598,26 @@ SOFTWARE.
=========================================
END OF json5@2.2.3 AND INFORMATION
%% lru-cache@5.1.1 NOTICES AND INFORMATION BEGIN HERE
=========================================
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
=========================================
END OF lru-cache@5.1.1 AND INFORMATION
%% micromatch@4.0.5 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License (MIT)
@ -3648,7 +3670,7 @@ SOFTWARE.
=========================================
END OF ms@2.1.2 AND INFORMATION
%% node-releases@2.0.6 NOTICES AND INFORMATION BEGIN HERE
%% node-releases@2.0.10 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License
@ -3672,7 +3694,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================
END OF node-releases@2.0.6 AND INFORMATION
END OF node-releases@2.0.10 AND INFORMATION
%% normalize-path@3.0.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
@ -4128,8 +4150,28 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF update-browserslist-db@1.0.10 AND INFORMATION
%% yallist@3.1.1 NOTICES AND INFORMATION BEGIN HERE
=========================================
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
=========================================
END OF yallist@3.1.1 AND INFORMATION
SUMMARY BEGIN HERE
=========================================
Total Packages: 143
Total Packages: 145
=========================================
END OF SUMMARY

File diff suppressed because it is too large Load Diff

View File

@ -10,31 +10,31 @@
},
"dependencies": {
"@babel/code-frame": "^7.18.6",
"@babel/core": "^7.20.2",
"@babel/core": "^7.21.3",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/parser": "^7.20.3",
"@babel/parser": "^7.21.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-dynamic-import": "^7.18.6",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9",
"@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.0",
"@babel/plugin-syntax-async-generators": "^7.8.4",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/plugin-syntax-json-strings": "^7.8.3",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
"@babel/plugin-transform-react-jsx": "^7.20.7",
"@babel/preset-typescript": "^7.18.6"
"@babel/plugin-transform-modules-commonjs": "^7.21.2",
"@babel/plugin-transform-react-jsx": "^7.21.0",
"@babel/preset-typescript": "^7.21.0"
},
"devDependencies": {
"@types/babel__code-frame": "^7.0.3",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.0",
"@types/babel__helper-plugin-utils": "^7.10.0",
"@types/babel__traverse": "^7.18.2"
"@types/babel__traverse": "^7.18.3"
}
}

View File

@ -95,3 +95,25 @@ test('should be able to access |this| inside class properties', async ({ runInli
expect(result.exitCode).toBe(0);
expect(result.passed).toBe(1);
});
test('should work with |const| Type Parameters', async ({ runInlineTest }) => {
test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21900' });
const result = await runInlineTest({
'example.spec.ts': `
import { test, expect } from '@playwright/test';
test('works', () => {
type HasNames = { names: readonly string[] };
function getNamesExactly<const T extends HasNames>(arg: T): T['names'] {
// ^^^^^
return arg.names;
}
const names = getNamesExactly({ names: ['Alice', 'Bob', 'Eve'] });
console.log('names: ' + names.join(', '))
})
`,
});
expect(result.exitCode).toBe(0);
expect(result.passed).toBe(1);
expect(result.output).toContain('names: Alice, Bob, Eve');
});