Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fully revert `@swc/core` to 1.13.5 (#35046)

David Taylor9633079d4c4b
diff --git a/app/assets/javascripts/discourse/package.json b/app/assets/javascripts/discourse/package.json
index 67c29b9365d..c0310416ab4 100644
--- a/app/assets/javascripts/discourse/package.json
+++ b/app/assets/javascripts/discourse/package.json
@@ -83,7 +83,7 @@
"@glimmer/component": "^2.0.0",
"@glimmer/tracking": "^1.1.2",
"@popperjs/core": "^2.11.8",
- "@swc/core": "^1.13.20",
+ "@swc/core": "^1.13.5",
"@types/jquery": "^3.5.33",
"@types/qunit": "^2.19.13",
"@types/rsvp": "^4.0.9",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a0578fce0f9..8a960a52dbc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -437,7 +437,7 @@ importers:
version: 2.1.8(@embroider/[email protected](@glint/[email protected]))(@glint/[email protected])
'@embroider/webpack':
specifier: ^4.1.0
'@floating-ui/dom':
specifier: ^1.7.4
version: 1.7.4
@@ -451,8 +451,8 @@ importers:
specifier: ^2.11.8
version: 2.11.8
'@swc/core':
- specifier: ^1.13.20
- version: 1.13.20
+ specifier: ^1.13.5
+ version: 1.13.5
'@types/jquery':
specifier: ^3.5.33
version: 3.5.33
@@ -521,7 +521,7 @@ importers:
version: 2.0.1(@babel/[email protected])(@glint/[email protected])
ember-auto-import:
specifier: ^2.10.1
ember-buffered-proxy:
specifier: ^2.1.1
version: 2.1.1(@babel/[email protected])
@@ -560,7 +560,7 @@ importers:
version: 6.1.1
ember-exam:
specifier: ^10.0.0
ember-load-initializers:
specifier: ^3.0.1
version: 3.0.1([email protected](patch_hash=tyhbf7f4uxnr3gt4x2tdcudbva)(@glimmer/[email protected])([email protected]))
@@ -587,7 +587,7 @@ importers:
version: 2.6.0
imports-loader:
specifier: ^5.0.0
jquery:
specifier: ^3.7.1
version: 3.7.1
@@ -641,10 +641,10 @@ importers:
version: 2.1.1(patch_hash=ng672yys7q7cl7vz44xn3y54uq)
webpack:
specifier: 5.101.3
- version: 5.101.3(@swc/[email protected])([email protected])
+ version: 5.101.3(@swc/[email protected])([email protected])
webpack-retry-chunk-load-plugin:
specifier: ^3.1.1
webpack-stats-plugin:
specifier: ^1.1.3
version: 1.1.3
@@ -2736,135 +2736,66 @@ packages:
'@socket.io/[email protected]':
resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}
- resolution: {integrity: sha512-k/nqRwm6G3tw1BbCDxc3KmAMGsuDYA5Uh4MjYm23e+UziLyHz0z7W0zja3el+yGBIZXKlgSzWVFLsFDFzVqtgg==}
- engines: {node: '>=10'}
- cpu: [arm64]
- os: [darwin]
-
resolution: {integrity: sha512-lKNv7SujeXvKn16gvQqUQI5DdyY8v7xcoO3k06/FJbHJS90zEwZdQiMNRiqpYw/orU543tPaWgz7cIYWhbopiQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-7xr+ACdUMNyrN87oEF1GvJIZJBAhGolfQVB0EYP08JEy8VSh//FEwfdlUz8gweaZyjOl1nuPS6ncXlKgZuZU8A==}
- engines: {node: '>=10'}
- cpu: [x64]
- os: [darwin]
-
resolution: {integrity: sha512-ILd38Fg/w23vHb0yVjlWvQBoE37ZJTdlLHa8LRCFDdX4WKfnVBiblsCU9ar4QTMNdeTBEX9iUF4IrbNWhaF1Ng==}
engines: {node: '>=10'}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-IaOLxU1U/oGV3lZ2T8tD5nB/5O60UFPqj5ZxYzDpCBVB73tDQDIxiDcro1X81nHbwJHjuHmbIrhoflS7LQN6+A==}
- engines: {node: '>=10'}
- cpu: [arm]
- os: [linux]
-
resolution: {integrity: sha512-Q6eS3Pt8GLkXxqz9TAw+AUk9HpVJt8Uzm54MvPsqp2yuGmY0/sNaPPNVqctCX9fu/Nu8eaWUen0si6iEiCsazQ==}
engines: {node: '>=10'}
cpu: [arm]
os: [linux]
- resolution: {integrity: sha512-Lg6FyotDydXGnNnlw+u7vCZzR2+fX3Q2HiULBTYl2dey3TvRyzAfEhdgMjUc4beRzf26U9rzMuTroJ6KMBCBjA==}
- engines: {node: '>=10'}
- cpu: [arm64]
- os: [linux]
-
resolution: {integrity: sha512-aNDfeN+9af+y+M2MYfxCzCy/VDq7Z5YIbMqRI739o8Ganz6ST+27kjQFd8Y/57JN/hcnUEa9xqdS3XY7WaVtSw==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-d1SvxmFykS0Ep8nPbduV1UwCvFjZ3ESzFKQdTbkr72bge8AseILBI9TbLTmoeWndDaTesiiTKRD5Y1iAvF1wvA==}
- engines: {node: '>=10'}
- cpu: [arm64]
- os: [linux]
-
resolution: {integrity: sha512-9+ZxFN5GJag4CnYnq6apKTnnezpfJhCumyz0504/JbHLo+Ue+ZtJnf3RhyA9W9TINtLE0bC4hKpWi8ZKoETyOQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-Bwmng57EuMod58Q8GDJA8rmUgFl20taK8w8MqeeDMiCnZY2+rJrNERbIX3sXZbwsf/kCIELZ7q4ZXiwdyB4zoQ==}
- engines: {node: '>=10'}
- cpu: [x64]
- os: [linux]
-
resolution: {integrity: sha512-WD530qvHrki8Ywt/PloKUjaRKgstQqNGvmZl54g06kA+hqtSE2FTG9gngXr3UJxYu/cNAjJYiBifm7+w4nbHbA==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-osCm3VEKL/OIKInyhy75S5B+R+QGBdpR1B5vwTYqG/1RB4vFM3O5SDtRZabd6NV9Cxc9dcLztWyZjhs2qp63SQ==}
- engines: {node: '>=10'}
- cpu: [x64]
- os: [linux]
-
resolution: {integrity: sha512-Luj8y4OFYx4DHNQTWjdIuKTq2f5k6uSXICqx+FSabnXptaOBAbJHNbHT/06JZh6NRUouaf0mYXN0mcsqvkhd7Q==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-svbQNirwEa6zwaAJPrEmQnMVZsOz8Jpr4nakFLkYIQwwJ73sBUkUJvH9ouIWmIu5bvgQrbQlRpxWTIY3e0Utlg==}
- engines: {node: '>=10'}
- cpu: [arm64]
- os: [win32]
-
resolution: {integrity: sha512-cZ6UpumhF9SDJvv4DA2fo9WIzlNFuKSkZpZmPG1c+4PFSEMy5DFOjBSllCvnqihCabzXzpn6ykCwBmHpy31vQw==}
engines: {node: '>=10'}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-uVjjwGXJltUQK0v1qQSNGeMS6osLJuwgeTti5N7kxQ6mOfa1irxq+TX0YdIVQwIONMjzI+TP7lhqPeA9VdUjRg==}
- engines: {node: '>=10'}
- cpu: [ia32]
- os: [win32]
-
resolution: {integrity: sha512-C5Yi/xIikrFUzZcyGj9L3RpKljFvKiDMtyDzPKzlsDrKIw2EYY+bF88gB6oGY5RGmv4DAX8dbnpRAqgFD0FMEw==}
engines: {node: '>=10'}
cpu: [ia32]
os: [win32]
- resolution: {integrity: sha512-Xm1JAew/P0TgsPSXyo60IH865fAmt9b2Mzd0FBJ77Q1xA1o/Oi9teCeGChyFq3+6JFao6uT0N4mcI3BJ4WBfkA==}
- engines: {node: '>=10'}
- cpu: [x64]
- os: [win32]
-
resolution: {integrity: sha512-YrKdMVxbYmlfybCSbRtrilc6UA8GF5aPmGKBdPvjrarvsmf4i7ZHGCEnLtfOMd3Lwbs2WUZq3WdMbozYeLU93Q==}
engines: {node: '>=10'}
cpu: [x64]
os: [win32]
- resolution: {integrity: sha512-w6REE95NkGhQH/baA0reb6IQjVzSy5HOz9bZnRTFgOv+a1ZDo4p6yVs4McpFOZJeu810DSHayO3mwBsBXxZcaw==}
- engines: {node: '>=10'}
- peerDependencies:
- '@swc/helpers': '>=0.5.17'
- peerDependenciesMeta:
- '@swc/helpers':
- optional: true
-
resolution: {integrity: sha512-WezcBo8a0Dg2rnR82zhwoR6aRNxeTGfK5QCD6TQ+kg3xx/zNT02s/0o+81h/3zhvFSB24NtqEr8FTw88O5W/JQ==}
engines: {node: '>=10'}
@@ -10322,15 +10253,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@babel/core': 7.28.4([email protected])
- '@embroider/core': 3.5.5(@glint/[email protected])
- transitivePeerDependencies:
- - supports-color
- - webpack
-
dependencies:
'@babel/core': 7.28.4([email protected])
@@ -10339,7 +10261,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- webpack
- optional: true
dependencies:
@@ -10428,16 +10349,10 @@ snapshots:
- supports-color
- utf-8-validate
- dependencies:
- '@embroider/core': 3.5.5(@glint/[email protected])
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
'@embroider/core': 3.5.5(@glint/[email protected])
webpack: 5.101.3(@swc/[email protected])([email protected])
- optional: true
'@embroider/[email protected](@glint/[email protected])':
dependencies:
@@ -10540,37 +10455,6 @@ snapshots:
'@embroider/core': 3.5.5(@glint/[email protected])
'@embroider/webpack': 4.1.0(@embroider/[email protected](@glint/[email protected]))([email protected](@swc/[email protected])([email protected]))
- dependencies:
- '@babel/core': 7.28.4([email protected])
- '@babel/preset-env': 7.28.3(@babel/[email protected])([email protected])
- '@embroider/core': 3.5.5(@glint/[email protected])
- '@embroider/hbs-loader': 3.0.3(@embroider/[email protected](@glint/[email protected]))([email protected](@swc/[email protected])([email protected]))
- '@embroider/shared-internals': 2.9.0([email protected])
- '@types/supports-color': 8.1.3
- assert-never: 1.4.0
- csso: 4.2.0
- debug: 4.4.3([email protected])
- escape-string-regexp: 4.0.0
- fs-extra: 9.1.0
- jsdom: 25.0.1([email protected])
- lodash: 4.17.21
- mini-css-extract-plugin: 2.9.4([email protected](@swc/[email protected])([email protected]))
- semver: 7.7.2
- source-map-url: 0.4.1
- supports-color: 8.1.1
- terser: 5.44.0
- webpack: 5.101.3(@swc/[email protected])([email protected])
- transitivePeerDependencies:
- - bufferutil
- - canvas
- - utf-8-validate
-
dependencies:
'@babel/core': 7.28.4([email protected])
@@ -10601,7 +10485,6 @@ snapshots:
- bufferutil
- canvas
- utf-8-validate
- optional: true
'@esbuild/[email protected]':
optional: true
@@ -11451,82 +11334,36 @@ snapshots:
'@socket.io/[email protected]': {}
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- optional: true
-
optional: true
- dependencies:
- '@swc/counter': 0.1.3
- '@swc/types': 0.1.25
- optionalDependencies:
- '@swc/core-darwin-arm64': 1.13.20
- '@swc/core-darwin-x64': 1.13.20
- '@swc/core-linux-arm-gnueabihf': 1.13.20
- '@swc/core-linux-arm64-gnu': 1.13.20
- '@swc/core-linux-arm64-musl': 1.13.20
- '@swc/core-linux-x64-gnu': 1.13.20
- '@swc/core-linux-x64-musl': 1.13.20
- '@swc/core-win32-arm64-msvc': 1.13.20
- '@swc/core-win32-ia32-msvc': 1.13.20
- '@swc/core-win32-x64-msvc': 1.13.20
-
dependencies:
'@swc/counter': 0.1.3
@@ -12206,15 +12043,6 @@ snapshots:
- dependencies:
- '@babel/core': 7.28.4([email protected])
- find-cache-dir: 3.3.2
- loader-utils: 2.0.4
- make-dir: 3.1.0
- schema-utils: 2.7.1
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
'@babel/core': 7.28.4([email protected])
@@ -12224,20 +12052,12 @@ snapshots:
schema-utils: 2.7.1
webpack: 5.101.3(@swc/[email protected])([email protected])
- dependencies:
- '@babel/core': 7.28.4([email protected])
- find-cache-dir: 4.0.0
- schema-utils: 4.3.2
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
'@babel/core': 7.28.4([email protected])
find-cache-dir: 4.0.0
schema-utils: 4.3.2
webpack: 5.101.3(@swc/[email protected])([email protected])
- optional: true
dependencies:
@@ -13306,20 +13126,6 @@ snapshots:
- dependencies:
- icss-utils: 5.1.0([email protected])
- loader-utils: 2.0.4
- postcss: 8.5.6
- postcss-modules-extract-imports: 3.1.0([email protected])
- postcss-modules-local-by-default: 4.2.0([email protected])
- postcss-modules-scope: 3.2.1([email protected])
- postcss-modules-values: 4.0.0([email protected])
- postcss-value-parser: 4.2.0
- schema-utils: 3.3.0
- semver: 7.7.2
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
icss-utils: 5.1.0([email protected])
@@ -13537,49 +13343,6 @@ snapshots:
- '@glint/template'
- supports-color
- dependencies:
- '@babel/core': 7.28.4([email protected])
- '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])
- '@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])
- '@babel/plugin-proposal-private-methods': 7.18.6(@babel/[email protected])
- '@babel/plugin-transform-class-static-block': 7.28.3(@babel/[email protected])([email protected])
- '@babel/preset-env': 7.28.3(@babel/[email protected])([email protected])
- '@embroider/macros': 1.18.1(@glint/[email protected])
- '@embroider/shared-internals': 2.9.1
- babel-plugin-ember-modules-api-polyfill: 3.5.0
- babel-plugin-ember-template-compilation: 2.4.1
- babel-plugin-htmlbars-inline-precompile: 5.3.1
- babel-plugin-syntax-dynamic-import: 6.18.0
- broccoli-debug: 0.6.5
- broccoli-funnel: 3.0.8
- broccoli-merge-trees: 4.2.0
- broccoli-plugin: 4.0.7
- broccoli-source: 3.0.1
- debug: 4.4.3([email protected])
- fs-extra: 10.1.0
- fs-tree-diff: 2.0.1
- handlebars: 4.7.8
- is-subdir: 1.2.0
- js-string-escape: 1.0.1
- lodash: 4.17.21
- mini-css-extract-plugin: 2.9.4([email protected](@swc/[email protected])([email protected]))
- minimatch: 3.1.2
- parse5: 6.0.1
- pkg-entry-points: 1.1.1
- resolve: 1.22.10
- resolve-package-path: 4.0.3
- semver: 7.7.2
- typescript-memoize: 1.1.1
- walk-sync: 3.0.0
- transitivePeerDependencies:
- - '@glint/template'
- - supports-color
- - webpack
-
dependencies:
'@babel/core': 7.28.4([email protected])
@@ -14052,13 +13815,13 @@ snapshots:
- eslint
- typescript
dependencies:
'@babel/core': 7.28.4([email protected])
chalk: 5.6.0
cli-table3: 0.6.5
debug: 4.4.3([email protected])
ember-cli-babel: 8.2.0(@babel/[email protected])
ember-source: 6.6.0(patch_hash=tyhbf7f4uxnr3gt4x2tdcudbva)(@glimmer/[email protected])([email protected])
@@ -15643,11 +15406,11 @@ snapshots:
dependencies:
source-map-js: 1.2.1
strip-comments: 2.0.1
- webpack: 5.101.3(@swc/[email protected])([email protected])
+ webpack: 5.101.3(@swc/[email protected])([email protected])
@@ -16574,12 +16337,6 @@ snapshots:
dependencies:
dom-walk: 0.1.2
- dependencies:
- schema-utils: 4.3.2
- tapable: 2.2.3
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
schema-utils: 4.3.2
@@ -18441,12 +18198,6 @@ snapshots:
- dependencies:
- loader-utils: 2.0.4
- schema-utils: 3.3.0
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
loader-utils: 2.0.4
@@ -18637,18 +18388,6 @@ snapshots:
- dependencies:
- '@jridgewell/trace-mapping': 0.3.31
- jest-worker: 27.5.1
- schema-utils: 4.3.2
- serialize-javascript: 6.0.2
- terser: 5.44.0
- webpack: 5.101.3(@swc/[email protected])([email protected])
- optionalDependencies:
- '@swc/core': 1.13.20
- esbuild: 0.25.10
-
dependencies:
'@jridgewell/trace-mapping': 0.3.31
@@ -18766,15 +18505,6 @@ snapshots:
dependencies:
tslib: 2.8.1
- dependencies:
- json-parse-better-errors: 1.0.2
- loader-runner: 4.3.0
- loader-utils: 2.0.4
- neo-async: 2.6.2
- schema-utils: 3.3.0
- webpack: 5.101.3(@swc/[email protected])([email protected])
-
dependencies:
json-parse-better-errors: 1.0.2
@@ -18783,7 +18513,6 @@ snapshots:
neo-async: 2.6.2
schema-utils: 3.3.0
webpack: 5.101.3(@swc/[email protected])([email protected])
- optional: true
dependencies:
@@ -19330,47 +19059,15 @@ snapshots:
dependencies:
prettier: 2.8.8
- webpack: 5.101.3(@swc/[email protected])([email protected])
+ webpack: 5.101.3(@swc/[email protected])([email protected])
- dependencies:
- '@types/eslint-scope': 3.7.7
- '@types/estree': 1.0.8
- '@types/json-schema': 7.0.15
- '@webassemblyjs/ast': 1.14.1
- '@webassemblyjs/wasm-edit': 1.14.1
- '@webassemblyjs/wasm-parser': 1.14.1
- acorn: 8.15.0
- acorn-import-phases: 1.0.4([email protected])
- browserslist: 4.25.4
- chrome-trace-event: 1.0.4
- enhanced-resolve: 5.18.3
- es-module-lexer: 1.7.0
- eslint-scope: 5.1.1
- events: 3.3.0
- glob-to-regexp: 0.4.1
- graceful-fs: 4.2.11
- json-parse-even-better-errors: 2.3.1
- loader-runner: 4.3.0
- mime-types: 2.1.35
- neo-async: 2.6.2
- schema-utils: 4.3.2
- tapable: 2.2.3
- watchpack: 2.4.4
- webpack-sources: 3.3.3
- transitivePeerDependencies:
- - '@swc/core'
- - esbuild
- - uglify-js
-
dependencies:
'@types/eslint-scope': 3.7.7