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

feat(js): update @swc/core and @swc/helpers packages #16372

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Apr 18, 2023

This PR updates/migrates @swc/core, @swc/cli, and @swc/helpers packages to keep them aligned.

We previously mixed ^ and ~ version ranges, which lead to some problems when @swc/core was updated to a version incompatible with the resolved @swc/helpers package. Now they are all on ~ range to mitigate these issues.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Apr 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Apr 18, 2023 6:09pm

packages/react/src/utils/versions.ts Outdated Show resolved Hide resolved
packages/js/migrations.json Outdated Show resolved Hide resolved
@jaysoo jaysoo force-pushed the feat/update-swc-helper-package branch 2 times, most recently from a0e27ab to 46f825a Compare April 18, 2023 15:05
@jaysoo jaysoo force-pushed the feat/update-swc-helper-package branch from d5cce4a to ea91cb3 Compare April 18, 2023 16:24
@@ -71,11 +72,12 @@ async function addLinting(host: Tree, options: NormalizedSchema) {
{
...extraEslintDependencies.devDependencies,
...(options.compiler === 'swc'
? { '@swc/core': swcCoreVersion, 'swc-loader': swcLoaderVersion }
? { 'swc-loader': swcLoaderVersion }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Followup: I guess this is not part of addSwcDependencies?

Let's add another function to the @nx/js utils.

@@ -1,7 +1,6 @@
export const nxVersion = require('../../package.json').version;

export const swcLoaderVersion = '0.1.15';
export const swcHelpersVersion = '~0.4.11';
export const tsLibVersion = '^2.3.0';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Followup: We should also use the util in @nx/js for adding tslib.

But that's not a part of the scope for this PR so let's do it separately.

@jaysoo jaysoo force-pushed the feat/update-swc-helper-package branch 2 times, most recently from 3aec57d to 47f403b Compare April 18, 2023 17:21
@jaysoo jaysoo force-pushed the feat/update-swc-helper-package branch from 47f403b to 9e7c50e Compare April 18, 2023 18:08
@jaysoo jaysoo enabled auto-merge (squash) April 18, 2023 18:32
@jaysoo jaysoo merged commit fda18e0 into nrwl:master Apr 18, 2023
@jaysoo jaysoo deleted the feat/update-swc-helper-package branch April 18, 2023 18:59
peppoasap pushed a commit to peppoasap/nx that referenced this pull request Apr 18, 2023
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants