siko 0.4.0 → 0.4.1
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 +36 -7
- package/dist/cli/runner.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [0.4.1] - 2026-02-08
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- **Critical**: Configuration options now properly applied to file discovery
|
|
5
|
+
- Extensions filter now correctly excludes .tsx/.jsx files
|
|
6
|
+
- Exclude patterns now properly respected during instrumentation
|
|
7
|
+
- Config settings were being ignored in v0.4.0
|
|
8
|
+
|
|
9
|
+
This fixes JSX/TSX instrumentation issues in React projects.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
## [0.4.0] - 2026-02-08
|
|
2
14
|
|
|
3
15
|
### Added
|
|
@@ -93,11 +105,28 @@
|
|
|
93
105
|
|
|
94
106
|
### Planned
|
|
95
107
|
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
108
|
+
#### v0.5.0
|
|
109
|
+
- **Full JSX/TSX support** - Currently requires exclusion workaround, working on native React/JSX instrumentation
|
|
110
|
+
- HTML report generation with interactive UI
|
|
111
|
+
- Performance optimizations (parallel processing, caching)
|
|
112
|
+
|
|
113
|
+
#### v0.6.0+
|
|
114
|
+
- Watch mode for continuous analysis
|
|
115
|
+
- Historical trend analysis and comparison
|
|
116
|
+
- Integration with popular test frameworks (Jest plugins, Vitest integration)
|
|
100
117
|
- Browser environment support
|
|
101
|
-
- Code coverage integration
|
|
102
|
-
- IDE extensions
|
|
103
|
-
|
|
118
|
+
- Code coverage integration (merge with Istanbul/nyc)
|
|
119
|
+
- IDE extensions (VSCode, WebStorm)
|
|
120
|
+
|
|
121
|
+
#### Known Limitations
|
|
122
|
+
|
|
123
|
+
**JSX/TSX Support (v0.4.x)**
|
|
124
|
+
- Limited JSX/TSX support due to Babel transformation issues
|
|
125
|
+
- **Workaround**: Exclude .tsx/.jsx files in config:
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"extensions": [".js", ".ts"],
|
|
129
|
+
"exclude": ["**/*.tsx", "**/*.jsx", "src/components/**"]
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
- **Target**: Full React/JSX support in v0.5.0
|
package/dist/cli/runner.js
CHANGED
|
@@ -46,6 +46,7 @@ const path = __importStar(require("path"));
|
|
|
46
46
|
const chalk_1 = __importDefault(require("chalk"));
|
|
47
47
|
const babel = __importStar(require("@babel/core"));
|
|
48
48
|
const babel_plugin_1 = __importDefault(require("../instrumentation/babel-plugin"));
|
|
49
|
+
const types_1 = require("../config/types");
|
|
49
50
|
/**
|
|
50
51
|
* Get absolute path to siko runtime
|
|
51
52
|
*/
|
|
@@ -88,13 +89,18 @@ function instrumentFile(filePath) {
|
|
|
88
89
|
*/
|
|
89
90
|
async function runWithInstrumentation(command, options = {}) {
|
|
90
91
|
console.log(chalk_1.default.cyan('🔧 siko: Instrumenting code...\n'));
|
|
92
|
+
const config = options.config || types_1.DEFAULT_CONFIG;
|
|
91
93
|
// Clean previous run data
|
|
92
94
|
if (options.clean !== false) {
|
|
93
95
|
cleanPreviousData();
|
|
94
96
|
}
|
|
95
97
|
// Find files to instrument
|
|
96
98
|
const { findProjectFiles } = require('../utils');
|
|
97
|
-
const files = findProjectFiles(
|
|
99
|
+
const files = findProjectFiles({
|
|
100
|
+
includeDirs: config.include,
|
|
101
|
+
exclude: config.exclude,
|
|
102
|
+
extensions: config.extensions,
|
|
103
|
+
});
|
|
98
104
|
if (files.length === 0) {
|
|
99
105
|
console.log(chalk_1.default.yellow('⚠️ No JavaScript/TypeScript files found to instrument'));
|
|
100
106
|
console.log(chalk_1.default.gray('Looking in: src/, lib/, app/, or current directory\n'));
|
package/package.json
CHANGED