Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@swc/types): add transform.verbatimModuleSyntax #10079

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

colinaaa
Copy link
Contributor

Description:

Add TypeScript definition for transform.verbatimModuleSyntax.

Related issue (if exists): #10078

@colinaaa colinaaa requested a review from a team as a code owner February 22, 2025 05:39
@CLAassistant
Copy link

CLAassistant commented Feb 22, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

changeset-bot bot commented Feb 22, 2025

⚠️ No Changeset found

Latest commit: c416a5d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@ant-design/icons-svg@4.1.0 None 0 3.18 MB zombiej
npm/@ant-design/icons@4.6.4 None +2 14.2 MB zombiej
npm/@ant-design/react-slick@0.28.4 environment +1 852 kB afc163
npm/@babel/code-frame@7.14.5 🔁 npm/@babel/code-frame@7.21.4 None 0 6.95 kB nicolo-ribaudo
npm/@babel/generator@7.15.0 🔁 npm/@babel/generator@7.22.3 None 0 118 kB nicolo-ribaudo
npm/@babel/helper-function-name@7.14.5 🔁 npm/@babel/helper-function-name@7.21.0 None 0 6.22 kB nicolo-ribaudo
npm/@babel/helper-get-function-arity@7.14.5 None 0 2.48 kB nicolo-ribaudo
npm/@babel/helper-hoist-variables@7.14.5 🔁 npm/@babel/helper-hoist-variables@7.18.6 None 0 3.38 kB nicolo-ribaudo
npm/@babel/helper-split-export-declaration@7.14.5 🔁 npm/@babel/helper-split-export-declaration@7.18.6 None 0 4.21 kB nicolo-ribaudo
npm/@babel/helper-validator-identifier@7.14.9 🔁 npm/@babel/helper-validator-identifier@7.19.1 None 0 18.8 kB nicolo-ribaudo
npm/@babel/highlight@7.14.5 🔁 npm/@babel/highlight@7.18.6 None 0 4.87 kB nicolo-ribaudo
npm/@babel/parser@7.16.8 🔁 npm/@babel/parser@7.22.3 None 0 1.67 MB nicolo-ribaudo
npm/@babel/template@7.14.5 None 0 21 kB nicolo-ribaudo
npm/@babel/traverse@7.15.0 Transitive: environment +1 1.15 MB nicolo-ribaudo
npm/@ctrl/tinycolor@3.4.0 None 0 242 kB scttcper
npm/@eslint/eslintrc@0.4.3 filesystem, unsafe Transitive: eval +5 1.22 MB eslintbot
npm/@humanwhocodes/config-array@0.5.0 None 0 34.9 kB nzakas
npm/@humanwhocodes/object-schema@1.2.0 None 0 44.6 kB nzakas
npm/acorn-jsx@5.3.2 None 0 24.4 kB rreverser
npm/ansi-colors@4.1.1 environment 0 24.4 kB jonschlinkert
npm/ansi-regex@5.0.0 None 0 5.69 kB sindresorhus
npm/ansi-styles@3.2.1 None 0 9.37 kB sindresorhus
npm/antd@4.16.13 environment 0 42.5 MB xrkffgg
npm/argparse@1.0.10 environment, filesystem 0 116 kB vitaly
npm/array-tree-filter@2.1.0 None 0 2.95 kB afc163
npm/astral-regex@2.0.0 None 0 3.4 kB kevva
npm/async-validator@3.5.2 None 0 254 kB yiminghe
npm/babel-eslint@10.1.0 None 0 30.4 kB kaicataldo
npm/balanced-match@1.0.2 None 0 6.94 kB juliangruber
npm/callsites@3.1.0 None 0 6.33 kB sindresorhus
npm/chalk@2.4.2 environment 0 26.9 kB sindresorhus
npm/color-convert@1.9.3 None 0 27 kB qix
npm/color-name@1.1.3 None 0 9.36 kB dfcreative
npm/compute-scroll-into-view@1.0.17 None 0 88.8 kB stipsan
npm/concat-map@0.0.1 None 0 4.86 kB substack
npm/copy-to-clipboard@3.3.1 None 0 85 kB sudodoki
npm/cross-spawn@7.0.3 environment, filesystem, shell 0 21.2 kB satazor
npm/date-fns@2.23.0 None 0 6.14 MB kossnocorp
npm/dayjs@1.10.7 None 0 623 kB iamkun
npm/debug@4.3.2 environment 0 41.3 kB qix
npm/deep-is@0.1.3 None 0 8.22 kB thlorenz
npm/doctrine@3.0.0 None 0 106 kB eslint
npm/dom-align@1.12.2 None 0 253 kB yiminghe
npm/enquirer@2.3.6 environment 0 197 kB jonschlinkert
npm/escape-string-regexp@1.0.5 None 0 2.69 kB jbnicolai
npm/eslint-scope@5.1.1 None 0 78.4 kB eslintbot
npm/eslint-utils@2.1.0 None 0 342 kB mysticatea
npm/eslint-visitor-keys@1.3.0 None 0 23.7 kB eslintbot
npm/eslint@7.32.0 filesystem +8 3.32 MB eslintbot
npm/esprima@4.0.1 None 0 314 kB ariya
npm/esquery@1.4.0 None +1 1.02 MB michaelficarra
npm/esrecurse@4.3.0 None 0 13.5 kB michaelficarra
npm/esutils@2.0.3 None 0 50.6 kB michaelficarra
npm/fast-json-stable-stringify@2.1.0 None 0 17 kB esp
npm/fast-levenshtein@2.0.6 None 0 9.44 kB hiddentao
npm/file-entry-cache@6.0.1 filesystem 0 25.6 kB royriojas
npm/flat-cache@3.0.4 filesystem 0 30 kB royriojas
npm/flatted@3.2.2 None 0 77 kB webreflection
npm/fs.realpath@1.0.0 environment, filesystem 0 13.4 kB isaacs
npm/function-bind@1.1.1 None 0 25.2 kB ljharb
npm/functional-red-black-tree@1.0.1 None 0 43.5 kB mikolalysenko
npm/glob-parent@5.1.2 None +1 23.4 kB phated
npm/glob@7.1.7 filesystem 0 55.9 kB isaacs
npm/globals@11.12.0 None 0 39.8 kB sindresorhus
npm/has-flag@3.0.0 None 0 3.13 kB sindresorhus
npm/has@1.0.3 None 0 2.77 kB ljharb
npm/ignore@4.0.6 None 0 37.8 kB kael
npm/imurmurhash@0.1.4 None 0 11.9 kB jensyt
npm/inflight@1.0.6 None 0 3.76 kB isaacs
npm/is-core-module@2.6.0 None 0 21.4 kB ljharb
npm/is-extglob@2.1.1 None 0 6.22 kB jonschlinkert
npm/isexe@2.0.0 environment, filesystem 0 11 kB isaacs
npm/js-tokens@4.0.0 None 0 15.1 kB lydell
npm/js-yaml@3.14.1 eval 0 291 kB vitaly
npm/jsesc@2.5.2 None 0 32 kB mathias
npm/json-schema-traverse@0.4.1 None 0 19.6 kB esp
npm/json-stable-stringify-without-jsonify@1.0.1 None 0 14.2 kB samn
npm/json2mq@0.2.0 None 0 6.04 kB akiran
npm/levn@0.4.1 None 0 24.9 kB gkz
npm/lodash.clonedeep@4.5.0 None 0 48.2 kB jdalton
npm/lodash.merge@4.6.2 None 0 54.1 kB jdalton
npm/lodash.truncate@4.4.2 None 0 19.8 kB jdalton
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/loose-envify@1.4.0 environment 0 5.81 kB zertosh
npm/lru-cache@6.0.0 None 0 15.6 kB isaacs
npm/minimatch@3.0.4 None 0 33.1 kB isaacs
npm/moment@2.29.1 None 0 4.21 MB marwahaha
npm/ms@2.1.2 None 0 6.84 kB styfle
npm/nanoid@4.0.2 None 0 15.3 kB ai
npm/natural-compare@1.4.0 None 0 5.65 kB megawac
npm/once@1.4.0 None 0 4.05 kB isaacs
npm/optionator@0.9.1 🔁 npm/optionator@0.8.3 None +1 71.3 kB gkz
npm/parent-module@1.0.1 None 0 3.92 kB sindresorhus
npm/path-is-absolute@1.0.1 None 0 3.62 kB sindresorhus
npm/path-key@3.1.1 None 0 4.55 kB sindresorhus
npm/path-parse@1.0.7 None 0 4.51 kB jbgutierrez
npm/prelude-ls@1.2.1 🔁 npm/prelude-ls@1.1.2 None 0 36.7 kB gkz
npm/progress@2.0.3 None 0 15.5 kB turbopope
npm/punycode@2.1.1 None 0 32.4 kB mathias
npm/rc-align@4.0.11 None 0 30.3 kB afc163
npm/rc-cascader@1.4.3 None +1 202 kB afc163
npm/rc-checkbox@2.3.2 None 0 22.8 kB afc163
npm/rc-collapse@3.1.2 None +1 138 kB lixuan
npm/rc-dialog@8.6.0 None 0 61.4 kB afc163
npm/rc-drawer@4.3.1 None 0 80.6 kB zombiej
npm/rc-dropdown@3.2.0 None 0 34 kB zombiej
npm/rc-field-form@1.20.1 environment 0 224 kB zombiej
npm/rc-image@5.2.5 None 0 79.6 kB afc163
npm/rc-input-number@7.1.4 None 0 94.5 kB zombiej
npm/rc-mentions@1.6.1 Transitive: environment +2 322 kB afc163
npm/rc-notification@4.5.7 environment 0 53.9 kB zombiej
npm/rc-overflow@1.2.2 None 0 48.9 kB zombiej
npm/rc-pagination@3.1.9 None 0 152 kB afc163
npm/rc-picker@2.5.18 environment 0 626 kB afc163
npm/rc-progress@3.1.4 None 0 34.3 kB afc163
npm/rc-rate@2.9.1 None 0 43.9 kB xrkffgg
npm/rc-resize-observer@1.0.1 None +1 172 kB zombiej
npm/rc-select@12.1.13 environment 0 275 kB zombiej
npm/rc-slider@9.7.2 None +1 234 kB afc163
npm/rc-steps@4.1.3 None 0 50.1 kB afc163
npm/rc-switch@3.2.2 None 0 17.7 kB afc163
npm/rc-table@7.15.2 environment 0 252 kB zombiej
npm/rc-tabs@11.10.1 environment 0 133 kB zombiej
npm/rc-tree-select@4.3.3 environment 0 145 kB afc163
npm/rc-tree@4.2.2 environment +1 460 kB afc163
npm/rc-upload@4.3.1 None 0 62.6 kB zombiej
npm/readline@1.3.0 filesystem 0 1.96 MB craigbrookes
npm/regenerator-runtime@0.13.9 None 0 27.4 kB benjamn
npm/regexpp@3.2.0 None 0 302 kB mysticatea
npm/require-from-string@2.0.2 unsafe 0 3.42 kB floatdrop
npm/resolve-from@4.0.0 filesystem, unsafe 0 4.64 kB sindresorhus
npm/resolve@1.20.0 🔁 npm/resolve@1.1.7 None 0 115 kB ljharb
npm/rimraf@3.0.2 filesystem 0 17.3 kB isaacs
npm/scroll-into-view-if-needed@2.2.28 None 0 39.6 kB stipsan
npm/semver@7.3.5 None 0 88.2 kB isaacs
npm/shallowequal@1.1.0 None 0 7.35 kB dashed
npm/shebang-command@2.0.0 None 0 2.56 kB kevva
npm/shebang-regex@3.0.0 None 0 2.83 kB sindresorhus
npm/slice-ansi@4.0.0 None 0 6.43 kB sindresorhus
npm/sprintf-js@1.0.3 None 0 34.8 kB alexei
npm/string-convert@0.2.1 None 0 4.14 kB akiran
npm/string-width@4.2.2 None 0 5.16 kB sindresorhus
npm/strip-ansi@6.0.0 None 0 4.03 kB sindresorhus
npm/supports-color@5.5.0 environment 0 6.63 kB sindresorhus
npm/table@6.7.1 Transitive: eval +2 1.17 MB gajus
npm/text-table@0.2.0 None 0 11 kB substack
npm/to-fast-properties@2.0.0 None 0 3.5 kB sindresorhus
npm/toggle-selection@1.0.6 None 0 3.32 kB sudodoki
npm/type-fest@0.20.2 🔁 npm/type-fest@0.6.0, npm/type-fest@0.8.1 None 0 111 kB sindresorhus
npm/uri-js@4.4.1 None 0 470 kB garycourt
npm/v8-compile-cache@2.3.0 environment, filesystem, unsafe 0 16.8 kB zertosh
npm/warning@4.0.3 None 0 9.47 kB berkeleytrue
npm/word-wrap@1.2.3 None 0 10.6 kB jonschlinkert
npm/wrappy@1.0.2 None 0 2.96 kB zkat
npm/yallist@4.0.0 None 0 14.8 kB isaacs

🚮 Removed packages: npm/@actions/core@1.11.1, npm/@antfu/ni@0.21.12, npm/@ast-grep/napi-darwin-arm64@0.3.3, npm/@ast-grep/napi-darwin-x64@0.3.3, npm/@ast-grep/napi-linux-x64-gnu@0.3.3, npm/@ast-grep/napi-win32-arm64-msvc@0.3.3, npm/@ast-grep/napi-win32-ia32-msvc@0.3.3, npm/@ast-grep/napi-win32-x64-msvc@0.3.3, npm/@ast-grep/napi@0.3.3, npm/@babel/compat-data@7.25.4, npm/@babel/core@7.22.1, npm/@babel/helper-annotate-as-pure@7.18.6, npm/@babel/helper-builder-binary-assignment-operator-visitor@7.22.3, npm/@babel/helper-compilation-targets@7.22.1, npm/@babel/helper-create-class-features-plugin@7.22.1, npm/@babel/helper-create-regexp-features-plugin@7.22.1, npm/@babel/helper-define-polyfill-provider@0.4.0, npm/@babel/helper-environment-visitor@7.22.1, npm/@babel/helper-member-expression-to-functions@7.22.3, npm/@babel/helper-module-imports@7.21.4, npm/@babel/helper-module-transforms@7.22.1, npm/@babel/helper-optimise-call-expression@7.18.6, npm/@babel/helper-plugin-utils@7.22.5, npm/@babel/helper-remap-async-to-generator@7.18.9, npm/@babel/helper-replace-supers@7.22.1, npm/@babel/helper-simple-access@7.21.5, npm/@babel/helper-skip-transparent-expression-wrappers@7.20.0, npm/@babel/helper-string-parser@7.21.5, npm/@babel/helper-validator-option@7.21.0, npm/@babel/helper-wrap-function@7.20.5, npm/@babel/helpers@7.22.3, npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6, npm/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.3, npm/@babel/plugin-proposal-class-properties@7.18.6, npm/@babel/plugin-proposal-decorators@7.22.3, npm/@babel/plugin-proposal-object-rest-spread@7.20.7, npm/@babel/plugin-proposal-private-property-in-object@7.21.0, npm/@babel/plugin-proposal-unicode-property-regex@7.18.6, npm/@babel/plugin-syntax-async-generators@7.8.4, npm/@babel/plugin-syntax-bigint@7.8.3, npm/@babel/plugin-syntax-class-properties@7.12.13, npm/@babel/plugin-syntax-class-static-block@7.14.5, npm/@babel/plugin-syntax-decorators@7.22.3, npm/@babel/plugin-syntax-dynamic-import@7.8.3, npm/@babel/plugin-syntax-export-namespace-from@7.8.3, npm/@babel/plugin-syntax-import-assertions@7.20.0, npm/@babel/plugin-syntax-import-attributes@7.22.3, npm/@babel/plugin-syntax-import-meta@7.10.4, npm/@babel/plugin-syntax-json-strings@7.8.3, npm/@babel/plugin-syntax-jsx@7.23.3, npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4, npm/@babel/plugin-syntax-nullish-coalescing-operator@7.8.3, npm/@babel/plugin-syntax-numeric-separator@7.10.4, npm/@babel/plugin-syntax-object-rest-spread@7.8.3, npm/@babel/plugin-syntax-optional-catch-binding@7.8.3, npm/@babel/plugin-syntax-optional-chaining@7.8.3, npm/@babel/plugin-syntax-private-property-in-object@7.14.5, npm/@babel/plugin-syntax-top-level-await@7.14.5, npm/@babel/plugin-syntax-typescript@7.21.4, npm/@babel/plugin-syntax-unicode-sets-regex@7.18.6, npm/@babel/plugin-transform-arrow-functions@7.21.5, npm/@babel/plugin-transform-async-generator-functions@7.22.3, npm/@babel/plugin-transform-async-to-generator@7.20.7, npm/@babel/plugin-transform-block-scoped-functions@7.18.6, npm/@babel/plugin-transform-block-scoping@7.21.0, npm/@babel/plugin-transform-class-properties@7.22.3, npm/@babel/plugin-transform-class-static-block@7.22.3, npm/@babel/plugin-transform-classes@7.21.0, npm/@babel/plugin-transform-computed-properties@7.21.5, npm/@babel/plugin-transform-destructuring@7.21.3, npm/@babel/plugin-transform-dotall-regex@7.18.6, npm/@babel/plugin-transform-duplicate-keys@7.18.9, npm/@babel/plugin-transform-dynamic-import@7.22.1, npm/@babel/plugin-transform-exponentiation-operator@7.18.6, npm/@babel/plugin-transform-export-namespace-from@7.22.3, npm/@babel/plugin-transform-for-of@7.21.5, npm/@babel/plugin-transform-function-name@7.18.9, npm/@babel/plugin-transform-json-strings@7.22.3, npm/@babel/plugin-transform-literals@7.18.9, npm/@babel/plugin-transform-logical-assignment-operators@7.22.3, npm/@babel/plugin-transform-member-expression-literals@7.18.6, npm/@babel/plugin-transform-modules-amd@7.20.11, npm/@babel/plugin-transform-modules-commonjs@7.21.5, npm/@babel/plugin-transform-modules-systemjs@7.22.3, npm/@babel/plugin-transform-modules-umd@7.18.6, npm/@babel/plugin-transform-named-capturing-groups-regex@7.22.3, npm/@types/react-dom@16.9.25, npm/@types/react@16.14.62, npm/react-dom@16.14.0

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Critical CVE npm/@babel/traverse@7.15.0 ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/@babel/traverse@7.15.0

Copy link

codspeed-hq bot commented Feb 22, 2025

CodSpeed Performance Report

Merging #10079 will degrade performances by 3.07%

Comparing colinaaa:main (c416a5d) with main (f33b0bc)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 189 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
es/full/minify/libraries/jquery 174.6 ms 167.3 ms +4.36%
es/full/minify/libraries/vue 233.6 ms 241 ms -3.07%

@kdy1 kdy1 merged commit a883cdc into swc-project:main Feb 23, 2025
172 checks passed
@kdy1 kdy1 added this to the Planned milestone Feb 23, 2025
@colinaaa
Copy link
Contributor Author

Hi, @kdy1 this PR hasn't been released yet. Would you please help releasing the @swc/types package? Thanks!

@kdy1 kdy1 modified the milestones: Planned, v1.11.1 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants