Change or add support to new version of SWC
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
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.2or3.2.0🤔
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.