dslop 1.7.0 → 1.7.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 +12 -0
- package/README.md +20 -1
- package/dist/index.cjs +768 -1546
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.7.1
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/turf-sports/dslop/compare/v1.7.0...v1.7.1)
|
|
6
|
+
|
|
7
|
+
### 🔥 Performance
|
|
8
|
+
|
|
9
|
+
- 28x faster with caching, remove text-based detection ([b93742c](https://github.com/turf-sports/dslop/commit/b93742c))
|
|
10
|
+
|
|
11
|
+
### ❤️ Contributors
|
|
12
|
+
|
|
13
|
+
- Siddharth Sharma <sharmasiddharthcs@gmail.com>
|
|
14
|
+
|
|
3
15
|
## v1.7.0
|
|
4
16
|
|
|
5
17
|
[compare changes](https://github.com/turf-sports/dslop/compare/v1.6.1...v1.7.0)
|
package/README.md
CHANGED
|
@@ -149,11 +149,30 @@ function getInitials(person: Person): string {
|
|
|
149
149
|
- Tiny functions (configurable via `--min-lines`)
|
|
150
150
|
- Common patterns from UI libraries (shadcn components, etc.)
|
|
151
151
|
|
|
152
|
+
## Performance
|
|
153
|
+
|
|
154
|
+
dslop uses aggressive caching to make subsequent runs fast:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# First run (builds cache)
|
|
158
|
+
$ dslop --all
|
|
159
|
+
Scanned 1410 files in 2862ms
|
|
160
|
+
Cache: 0 hits, 1410 misses (0% hit rate)
|
|
161
|
+
|
|
162
|
+
# Second run (uses cache)
|
|
163
|
+
$ dslop --all
|
|
164
|
+
Scanned 1410 files in 305ms
|
|
165
|
+
Cache: 1410 hits, 0 misses (100% hit rate)
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Cache is stored in `.dslop-cache` in your project root. Add it to `.gitignore`.
|
|
169
|
+
|
|
170
|
+
Use `--no-cache` to bypass the cache.
|
|
171
|
+
|
|
152
172
|
## Limitations
|
|
153
173
|
|
|
154
174
|
- **TypeScript/JavaScript only:** AST parsing uses Babel with TS/JSX plugins
|
|
155
175
|
- **No cross-language:** Won't detect duplication across languages
|
|
156
|
-
- **Memory:** Loads all AST nodes in memory. Very large codebases (>1M lines) may be slow
|
|
157
176
|
|
|
158
177
|
## License
|
|
159
178
|
|