interpret icon indicating copy to clipboard operation
interpret copied to clipboard

Change or add support to new version of SWC

Open codermarcos opened this issue 1 year ago • 3 comments

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/[email protected]: 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 🤔

codermarcos avatar Mar 25 '24 21:03 codermarcos

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.

phated avatar Mar 28 '24 00:03 phated