@jscutlery/swc-angular 0.21.4 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/index.cjs.js +11 -11
- package/index.esm.js +11 -11
- package/package.json +3 -3
- package/index.esm.d.ts +0 -2
- /package/{index.cjs.d.ts → index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.22.0 (2026-02-12)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **swc-angular:** update @swc/core to version 1.15.x ([#956](https://github.com/jscutlery/devkit/pull/956))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Edouard Bozon
|
|
10
|
+
|
|
11
|
+
## 0.21.5 (2026-02-12)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **rx-computed:** update @jscutlery/operators dependency version from ^2.0.0 to ^3.0.0 ([b96cf37](https://github.com/jscutlery/devkit/commit/b96cf37))
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Edouard Bozon
|
|
20
|
+
|
|
1
21
|
## 0.21.4 (2026-02-06)
|
|
2
22
|
|
|
3
23
|
### 🩹 Fixes
|
package/index.cjs.js
CHANGED
|
@@ -79,13 +79,13 @@ function swcAngularVitePreset(options = {}) {
|
|
|
79
79
|
function swcAngularUnpluginOptions(options = {}) {
|
|
80
80
|
return _extends({}, swcAngularVitePreset(options), {
|
|
81
81
|
/* Since we are using SWC's env option, we need to disable the tsconfigFile option.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
* Otherwise `unpluggin-swc` will try to use the target from the tsconfig's `compilerOptions`,
|
|
83
|
+
* and make SWC produce the following error: "`env` and `jsc.target` cannot be used together".
|
|
84
|
+
*
|
|
85
|
+
* We could have added this extra option to `swcAngularVitePreset`, but forwarding any extra option
|
|
86
|
+
* to SWC will make SWC's configuration parser fail.
|
|
87
|
+
*
|
|
88
|
+
* Cf. https://github.com/unplugin/unplugin-swc/issues/137 */ tsconfigFile: false
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
@@ -93,15 +93,15 @@ function swcAngularUnpluginOptions(options = {}) {
|
|
|
93
93
|
*/ var index = swcAngularPreset();
|
|
94
94
|
function assertCompatibleSwcCoreVersion(version) {
|
|
95
95
|
/* Fallback to reading version from package.json when not exported.
|
|
96
|
-
|
|
96
|
+
* This happens on Stackblitz. */ if (version == undefined) {
|
|
97
97
|
const packageJsonPath = node_path.join(node_path.dirname(require.resolve('@swc/core')), 'package.json');
|
|
98
98
|
version = fileSystem.readJsonFile(packageJsonPath).version;
|
|
99
99
|
}
|
|
100
|
-
if (!version.startsWith('1.
|
|
100
|
+
if (!version.startsWith('1.15.')) {
|
|
101
101
|
console.error(`
|
|
102
102
|
@swc/core version ${version} is incompatible with @jscutlery/swc-angular.
|
|
103
|
-
Please use @swc/core version 1.
|
|
104
|
-
> npm add -D @swc/core@~1.
|
|
103
|
+
Please use @swc/core version 1.15.x
|
|
104
|
+
> npm add -D @swc/core@~1.15.0
|
|
105
105
|
`);
|
|
106
106
|
process.exit(1);
|
|
107
107
|
}
|
package/index.esm.js
CHANGED
|
@@ -75,13 +75,13 @@ function swcAngularVitePreset(options = {}) {
|
|
|
75
75
|
function swcAngularUnpluginOptions(options = {}) {
|
|
76
76
|
return _extends({}, swcAngularVitePreset(options), {
|
|
77
77
|
/* Since we are using SWC's env option, we need to disable the tsconfigFile option.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
* Otherwise `unpluggin-swc` will try to use the target from the tsconfig's `compilerOptions`,
|
|
79
|
+
* and make SWC produce the following error: "`env` and `jsc.target` cannot be used together".
|
|
80
|
+
*
|
|
81
|
+
* We could have added this extra option to `swcAngularVitePreset`, but forwarding any extra option
|
|
82
|
+
* to SWC will make SWC's configuration parser fail.
|
|
83
|
+
*
|
|
84
|
+
* Cf. https://github.com/unplugin/unplugin-swc/issues/137 */ tsconfigFile: false
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
@@ -89,15 +89,15 @@ function swcAngularUnpluginOptions(options = {}) {
|
|
|
89
89
|
*/ var index = swcAngularPreset();
|
|
90
90
|
function assertCompatibleSwcCoreVersion(version) {
|
|
91
91
|
/* Fallback to reading version from package.json when not exported.
|
|
92
|
-
|
|
92
|
+
* This happens on Stackblitz. */ if (version == undefined) {
|
|
93
93
|
const packageJsonPath = join(dirname(require.resolve('@swc/core')), 'package.json');
|
|
94
94
|
version = fileSystem.readJsonFile(packageJsonPath).version;
|
|
95
95
|
}
|
|
96
|
-
if (!version.startsWith('1.
|
|
96
|
+
if (!version.startsWith('1.15.')) {
|
|
97
97
|
console.error(`
|
|
98
98
|
@swc/core version ${version} is incompatible with @jscutlery/swc-angular.
|
|
99
|
-
Please use @swc/core version 1.
|
|
100
|
-
> npm add -D @swc/core@~1.
|
|
99
|
+
Please use @swc/core version 1.15.x
|
|
100
|
+
> npm add -D @swc/core@~1.15.0
|
|
101
101
|
`);
|
|
102
102
|
process.exit(1);
|
|
103
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscutlery/swc-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/jscutlery/devkit"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@jscutlery/swc-angular-plugin": ">=0.11.0 <1.0.0",
|
|
15
|
-
"@swc/core": "~1.
|
|
15
|
+
"@swc/core": "~1.15.0"
|
|
16
16
|
},
|
|
17
17
|
"module": "./index.esm.js",
|
|
18
18
|
"main": "./index.cjs.js",
|
|
19
|
-
"types": "./index.
|
|
19
|
+
"types": "./index.d.ts"
|
|
20
20
|
}
|
package/index.esm.d.ts
DELETED
|
File without changes
|