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

Change or add support to new version of SWC #98

Open
codermarcos opened this issue Mar 25, 2024 · 1 comment · May be fixed by #99
Open

Change or add support to new version of SWC #98

codermarcos opened this issue Mar 25, 2024 · 1 comment · May be fixed by #99

Comments

@codermarcos
Copy link

Problem

The package @swc/register is deprecated we should use @swc-node/register instead as they mention in the official repository swc-project/register which is archived since Feb 8, 2024.

Terminal output / screenshots

image

npm WARN deprecated @swc/register@0.1.10: Use @swc-node/register instead

Question

I would love contribute opening a pull request to this project but I'm not sure if this repository maintains some kind of compatibility with older versions!

For example, should I just replace the actual module with the new one?

'.ts': [
    ...
    {
-      module: '@swc/register',
+      module: '@swc-node/register',
       register: function (hook, config) { ... },
    },
]

Should the next version be 4.0.0?

Or just add the new one:

'.ts': [
    ...
    {
        module: '@swc/register',
        register: function (hook, config) { ... },
    },
+   {
+       module: '@swc-node/register',
+       register: function (hook, config) { ... },
+   },
]

Should the next version be 3.1.2 or 3.2.0 🤔

@phated
Copy link
Member

phated commented Mar 28, 2024

Thanks for letting us know! We maintain backwards compatibility so you'd need to add a new entry before the deprecated version and you'd need to adjust all of the test directories.

codermarcos added a commit to codermarcos/interpret that referenced this issue Mar 28, 2024
From fork codermarcos/interpret

On branch master
Changes to be committed:
	modified:   index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants