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

chore: pin swc to 1.5.7 #11759

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/medusa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"@opentelemetry/resources": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/sdk-trace-node": "^1.26.0",
"@swc/core": "^1.7.28",
"@swc/helpers": "^0.5.0",
"@swc/core": "1.5.7",
"@swc/helpers": "^0.5.11",
"@swc/jest": "^0.2.36",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^8.5.9",
Expand Down Expand Up @@ -132,7 +132,7 @@
"@mikro-orm/knex": "6.4.3",
"@mikro-orm/migrations": "6.4.3",
"@mikro-orm/postgresql": "6.4.3",
"@swc/core": "^1.7.28",
"@swc/core": "1.5.7",
"awilix": "^8.0.1",
"react-dom": "^18.0.0",
"yalc": "1.0.0-pre.53"
Expand Down
147 changes: 144 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6133,8 +6133,8 @@ __metadata:
"@opentelemetry/resources": ^1.26.0
"@opentelemetry/sdk-node": ^0.53.0
"@opentelemetry/sdk-trace-node": ^1.26.0
"@swc/core": ^1.7.28
"@swc/helpers": ^0.5.0
"@swc/core": 1.5.7
"@swc/helpers": ^0.5.11
"@swc/jest": ^0.2.36
"@types/express": ^4.17.17
"@types/jsonwebtoken": ^8.5.9
Expand Down Expand Up @@ -6166,7 +6166,7 @@ __metadata:
"@mikro-orm/knex": 6.4.3
"@mikro-orm/migrations": 6.4.3
"@mikro-orm/postgresql": 6.4.3
"@swc/core": ^1.7.28
"@swc/core": 1.5.7
awilix: ^8.0.1
react-dom: ^18.0.0
yalc: 1.0.0-pre.53
Expand Down Expand Up @@ -13255,6 +13255,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-darwin-arm64@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-darwin-arm64@npm:1.5.7"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@swc/core-darwin-arm64@npm:1.7.28":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should have been removed I assume? or do we still reference 1.7.28 somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is being used by our packages internally for development. There are two usages of swc in our codebase.

  • One is us using it to for development + testing.
  • Another is us using to compile plugins during development and compile the host app during development. This one relies on the peerDependency and expects the host app to install it and this version should be pinned to work on all platforms reliably.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

version: 1.7.28
resolution: "@swc/core-darwin-arm64@npm:1.7.28"
Expand All @@ -13269,6 +13276,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-darwin-x64@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-darwin-x64@npm:1.5.7"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@swc/core-darwin-x64@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-darwin-x64@npm:1.7.28"
Expand All @@ -13283,6 +13297,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-linux-arm-gnueabihf@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.5.7"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@swc/core-linux-arm-gnueabihf@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.7.28"
Expand All @@ -13297,6 +13318,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-linux-arm64-gnu@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm64-gnu@npm:1.5.7"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@swc/core-linux-arm64-gnu@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-linux-arm64-gnu@npm:1.7.28"
Expand All @@ -13311,6 +13339,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-linux-arm64-musl@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm64-musl@npm:1.5.7"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@swc/core-linux-arm64-musl@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-linux-arm64-musl@npm:1.7.28"
Expand All @@ -13325,6 +13360,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-linux-x64-gnu@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-x64-gnu@npm:1.5.7"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@swc/core-linux-x64-gnu@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-linux-x64-gnu@npm:1.7.28"
Expand All @@ -13339,6 +13381,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-linux-x64-musl@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-x64-musl@npm:1.5.7"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@swc/core-linux-x64-musl@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-linux-x64-musl@npm:1.7.28"
Expand All @@ -13353,6 +13402,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-win32-arm64-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-arm64-msvc@npm:1.5.7"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@swc/core-win32-arm64-msvc@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-win32-arm64-msvc@npm:1.7.28"
Expand All @@ -13367,6 +13423,13 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-win32-ia32-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-ia32-msvc@npm:1.5.7"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@swc/core-win32-ia32-msvc@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-win32-ia32-msvc@npm:1.7.28"
Expand All @@ -13381,13 +13444,66 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-win32-x64-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-x64-msvc@npm:1.5.7"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@swc/core-win32-x64-msvc@npm:1.7.28":
version: 1.7.28
resolution: "@swc/core-win32-x64-msvc@npm:1.7.28"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@swc/core@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core@npm:1.5.7"
dependencies:
"@swc/core-darwin-arm64": 1.5.7
"@swc/core-darwin-x64": 1.5.7
"@swc/core-linux-arm-gnueabihf": 1.5.7
"@swc/core-linux-arm64-gnu": 1.5.7
"@swc/core-linux-arm64-musl": 1.5.7
"@swc/core-linux-x64-gnu": 1.5.7
"@swc/core-linux-x64-musl": 1.5.7
"@swc/core-win32-arm64-msvc": 1.5.7
"@swc/core-win32-ia32-msvc": 1.5.7
"@swc/core-win32-x64-msvc": 1.5.7
"@swc/counter": ^0.1.2
"@swc/types": 0.1.7
peerDependencies:
"@swc/helpers": ^0.5.0
dependenciesMeta:
"@swc/core-darwin-arm64":
optional: true
"@swc/core-darwin-x64":
optional: true
"@swc/core-linux-arm-gnueabihf":
optional: true
"@swc/core-linux-arm64-gnu":
optional: true
"@swc/core-linux-arm64-musl":
optional: true
"@swc/core-linux-x64-gnu":
optional: true
"@swc/core-linux-x64-musl":
optional: true
"@swc/core-win32-arm64-msvc":
optional: true
"@swc/core-win32-ia32-msvc":
optional: true
"@swc/core-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@swc/helpers":
optional: true
checksum: 83ab96bee5d448e580d8a6c8c1d1fbfdfaf5561f8904140122e49c428c2336790d31e7bdcdf610ce8f20c7f682785263d2ebab7cb56c2dcb5ea46be54eab2c03
languageName: node
linkType: hard

"@swc/core@npm:^1.4.8":
version: 1.5.3
resolution: "@swc/core@npm:1.5.3"
Expand Down Expand Up @@ -13496,6 +13612,15 @@ __metadata:
languageName: node
linkType: hard

"@swc/helpers@npm:^0.5.11":
version: 0.5.15
resolution: "@swc/helpers@npm:0.5.15"
dependencies:
tslib: ^2.8.0
checksum: 33002f74f6f885f04c132960835fdfc474186983ea567606db62e86acd0680ca82f34647e8e610f4e1e422d1c16fce729dde22cd3b797ab1fd9061a825dabca4
languageName: node
linkType: hard

"@swc/jest@npm:^0.2.36":
version: 0.2.36
resolution: "@swc/jest@npm:0.2.36"
Expand All @@ -13509,6 +13634,15 @@ __metadata:
languageName: node
linkType: hard

"@swc/types@npm:0.1.7":
version: 0.1.7
resolution: "@swc/types@npm:0.1.7"
dependencies:
"@swc/counter": ^0.1.3
checksum: da7c542de0a44b85a98139db03920448e86309d28ad9e9335f91b4025e5f32ae4fbbfdd0f287330fb0de737e7c5ec4f64ade0fc5fffea6c2fd9ac681b1e97bea
languageName: node
linkType: hard

"@swc/types@npm:^0.1.12":
version: 0.1.12
resolution: "@swc/types@npm:0.1.12"
Expand Down Expand Up @@ -32259,6 +32393,13 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:^2.8.0":
version: 2.8.1
resolution: "tslib@npm:2.8.1"
checksum: 9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62
languageName: node
linkType: hard

"tslib@npm:~2.6.0":
version: 2.6.3
resolution: "tslib@npm:2.6.3"
Expand Down
Loading