gulpjs / gulpjs/interpret

Change or add support to new version of SWC

Open
#98 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
262
Forks
65
PR merge metrics
No merged PRs in 30d

Description

### Problem

The package [@swc/register](https://www.npmjs.com/package/@swc/register) is **deprecated** we should use [@swc-node/register](https://www.npmjs.com/package/@swc-node/register) instead as they mention in the official repository [swc-project/register](https://github.com/swc-project/register) which is **archived** since **Feb 8, 2024**.

### Terminal output / screenshots

![image](https://github.com/gulpjs/interpret/assets/12430365/8f62a1a8-c82f-45fd-a056-5ffcc74bb496)

```sh
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](https://github.com/gulpjs/interpret/blob/master/index.js#L267) module with the new one?

```diff
'.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:

```diff
'.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` 🤔

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.