@depup/oxlint 1.83.0-depup.0 → 1.85.0-depup.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/README.md +2 -2
- package/changes.json +1 -1
- package/dist/bindings.js +29 -28
- package/dist/cli.js +4 -3
- package/dist/lint.js +73 -18
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/oxlint
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.85.0 |
|
|
17
|
+
| Processed | 2026-09-21 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/dist/bindings.js
CHANGED
|
@@ -23,7 +23,8 @@ const loadErrors = [], isMusl = () => {
|
|
|
23
23
|
};
|
|
24
24
|
function requireNative() {
|
|
25
25
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
26
|
-
|
|
26
|
+
let overrideBinding = require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
27
|
+
return overrideBinding && typeof overrideBinding.__napiBindingTarget == "string" && overrideBinding.__napiBindingTarget, overrideBinding;
|
|
27
28
|
} catch (err) {
|
|
28
29
|
loadErrors.push(err);
|
|
29
30
|
}
|
|
@@ -36,7 +37,7 @@ function requireNative() {
|
|
|
36
37
|
}
|
|
37
38
|
try {
|
|
38
39
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
39
|
-
if (bindingPackageVersion !== "1.
|
|
40
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
40
41
|
return binding;
|
|
41
42
|
} catch (e) {
|
|
42
43
|
loadErrors.push(e);
|
|
@@ -49,7 +50,7 @@ function requireNative() {
|
|
|
49
50
|
}
|
|
50
51
|
try {
|
|
51
52
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
52
|
-
if (bindingPackageVersion !== "1.
|
|
53
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
53
54
|
return binding;
|
|
54
55
|
} catch (e) {
|
|
55
56
|
loadErrors.push(e);
|
|
@@ -65,7 +66,7 @@ function requireNative() {
|
|
|
65
66
|
}
|
|
66
67
|
try {
|
|
67
68
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
68
|
-
if (bindingPackageVersion !== "1.
|
|
69
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
69
70
|
return binding;
|
|
70
71
|
} catch (e) {
|
|
71
72
|
loadErrors.push(e);
|
|
@@ -78,7 +79,7 @@ function requireNative() {
|
|
|
78
79
|
}
|
|
79
80
|
try {
|
|
80
81
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
81
|
-
if (bindingPackageVersion !== "1.
|
|
82
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
82
83
|
return binding;
|
|
83
84
|
} catch (e) {
|
|
84
85
|
loadErrors.push(e);
|
|
@@ -92,7 +93,7 @@ function requireNative() {
|
|
|
92
93
|
}
|
|
93
94
|
try {
|
|
94
95
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
95
|
-
if (bindingPackageVersion !== "1.
|
|
96
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
96
97
|
return binding;
|
|
97
98
|
} catch (e) {
|
|
98
99
|
loadErrors.push(e);
|
|
@@ -105,7 +106,7 @@ function requireNative() {
|
|
|
105
106
|
}
|
|
106
107
|
try {
|
|
107
108
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
108
|
-
if (bindingPackageVersion !== "1.
|
|
109
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
109
110
|
return binding;
|
|
110
111
|
} catch (e) {
|
|
111
112
|
loadErrors.push(e);
|
|
@@ -119,7 +120,7 @@ function requireNative() {
|
|
|
119
120
|
}
|
|
120
121
|
try {
|
|
121
122
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
122
|
-
if (bindingPackageVersion !== "1.
|
|
123
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
123
124
|
return binding;
|
|
124
125
|
} catch (e) {
|
|
125
126
|
loadErrors.push(e);
|
|
@@ -132,7 +133,7 @@ function requireNative() {
|
|
|
132
133
|
}
|
|
133
134
|
try {
|
|
134
135
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.
|
|
136
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
137
|
return binding;
|
|
137
138
|
} catch (e) {
|
|
138
139
|
loadErrors.push(e);
|
|
@@ -145,7 +146,7 @@ function requireNative() {
|
|
|
145
146
|
}
|
|
146
147
|
try {
|
|
147
148
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "1.
|
|
149
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
150
|
return binding;
|
|
150
151
|
} catch (e) {
|
|
151
152
|
loadErrors.push(e);
|
|
@@ -160,7 +161,7 @@ function requireNative() {
|
|
|
160
161
|
}
|
|
161
162
|
try {
|
|
162
163
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
163
|
-
if (bindingPackageVersion !== "1.
|
|
164
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
164
165
|
return binding;
|
|
165
166
|
} catch (e) {
|
|
166
167
|
loadErrors.push(e);
|
|
@@ -173,7 +174,7 @@ function requireNative() {
|
|
|
173
174
|
}
|
|
174
175
|
try {
|
|
175
176
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
176
|
-
if (bindingPackageVersion !== "1.
|
|
177
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
177
178
|
return binding;
|
|
178
179
|
} catch (e) {
|
|
179
180
|
loadErrors.push(e);
|
|
@@ -189,7 +190,7 @@ function requireNative() {
|
|
|
189
190
|
}
|
|
190
191
|
try {
|
|
191
192
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
192
|
-
if (bindingPackageVersion !== "1.
|
|
193
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
193
194
|
return binding;
|
|
194
195
|
} catch (e) {
|
|
195
196
|
loadErrors.push(e);
|
|
@@ -202,7 +203,7 @@ function requireNative() {
|
|
|
202
203
|
}
|
|
203
204
|
try {
|
|
204
205
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
205
|
-
if (bindingPackageVersion !== "1.
|
|
206
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
206
207
|
return binding;
|
|
207
208
|
} catch (e) {
|
|
208
209
|
loadErrors.push(e);
|
|
@@ -217,7 +218,7 @@ function requireNative() {
|
|
|
217
218
|
}
|
|
218
219
|
try {
|
|
219
220
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
220
|
-
if (bindingPackageVersion !== "1.
|
|
221
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
222
|
return binding;
|
|
222
223
|
} catch (e) {
|
|
223
224
|
loadErrors.push(e);
|
|
@@ -230,7 +231,7 @@ function requireNative() {
|
|
|
230
231
|
}
|
|
231
232
|
try {
|
|
232
233
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "1.
|
|
234
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
234
235
|
return binding;
|
|
235
236
|
} catch (e) {
|
|
236
237
|
loadErrors.push(e);
|
|
@@ -245,7 +246,7 @@ function requireNative() {
|
|
|
245
246
|
}
|
|
246
247
|
try {
|
|
247
248
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "1.
|
|
249
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
249
250
|
return binding;
|
|
250
251
|
} catch (e) {
|
|
251
252
|
loadErrors.push(e);
|
|
@@ -258,7 +259,7 @@ function requireNative() {
|
|
|
258
259
|
}
|
|
259
260
|
try {
|
|
260
261
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
261
|
-
if (bindingPackageVersion !== "1.
|
|
262
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
262
263
|
return binding;
|
|
263
264
|
} catch (e) {
|
|
264
265
|
loadErrors.push(e);
|
|
@@ -273,7 +274,7 @@ function requireNative() {
|
|
|
273
274
|
}
|
|
274
275
|
try {
|
|
275
276
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
276
|
-
if (bindingPackageVersion !== "1.
|
|
277
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
277
278
|
return binding;
|
|
278
279
|
} catch (e) {
|
|
279
280
|
loadErrors.push(e);
|
|
@@ -286,7 +287,7 @@ function requireNative() {
|
|
|
286
287
|
}
|
|
287
288
|
try {
|
|
288
289
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
289
|
-
if (bindingPackageVersion !== "1.
|
|
290
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
290
291
|
return binding;
|
|
291
292
|
} catch (e) {
|
|
292
293
|
loadErrors.push(e);
|
|
@@ -301,7 +302,7 @@ function requireNative() {
|
|
|
301
302
|
}
|
|
302
303
|
try {
|
|
303
304
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
304
|
-
if (bindingPackageVersion !== "1.
|
|
305
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
305
306
|
return binding;
|
|
306
307
|
} catch (e) {
|
|
307
308
|
loadErrors.push(e);
|
|
@@ -314,7 +315,7 @@ function requireNative() {
|
|
|
314
315
|
}
|
|
315
316
|
try {
|
|
316
317
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
317
|
-
if (bindingPackageVersion !== "1.
|
|
318
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
318
319
|
return binding;
|
|
319
320
|
} catch (e) {
|
|
320
321
|
loadErrors.push(e);
|
|
@@ -328,7 +329,7 @@ function requireNative() {
|
|
|
328
329
|
}
|
|
329
330
|
try {
|
|
330
331
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
331
|
-
if (bindingPackageVersion !== "1.
|
|
332
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
332
333
|
return binding;
|
|
333
334
|
} catch (e) {
|
|
334
335
|
loadErrors.push(e);
|
|
@@ -341,7 +342,7 @@ function requireNative() {
|
|
|
341
342
|
}
|
|
342
343
|
try {
|
|
343
344
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.
|
|
345
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
346
|
return binding;
|
|
346
347
|
} catch (e) {
|
|
347
348
|
loadErrors.push(e);
|
|
@@ -356,7 +357,7 @@ function requireNative() {
|
|
|
356
357
|
}
|
|
357
358
|
try {
|
|
358
359
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.
|
|
360
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
361
|
return binding;
|
|
361
362
|
} catch (e) {
|
|
362
363
|
loadErrors.push(e);
|
|
@@ -369,7 +370,7 @@ function requireNative() {
|
|
|
369
370
|
}
|
|
370
371
|
try {
|
|
371
372
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
372
|
-
if (bindingPackageVersion !== "1.
|
|
373
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
373
374
|
return binding;
|
|
374
375
|
} catch (e) {
|
|
375
376
|
loadErrors.push(e);
|
|
@@ -382,7 +383,7 @@ function requireNative() {
|
|
|
382
383
|
}
|
|
383
384
|
try {
|
|
384
385
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
385
|
-
if (bindingPackageVersion !== "1.
|
|
386
|
+
if (bindingPackageVersion !== "1.85.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
386
387
|
return binding;
|
|
387
388
|
} catch (e) {
|
|
388
389
|
loadErrors.push(e);
|
|
@@ -449,7 +450,7 @@ if (forceWasi || (nativeBinding = requireNative()), !nativeBinding || forceWasi)
|
|
|
449
450
|
if (candidateError = __napiWasiResolveCandidate("@oxlint/binding-wasm32-wasi", !0, void 0), candidateFailed = candidateError !== null, !candidateFailed) {
|
|
450
451
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
451
452
|
let bindingPackageVersion = require("@oxlint/binding-wasm32-wasi/package.json").version;
|
|
452
|
-
if (bindingPackageVersion !== "1.
|
|
453
|
+
if (bindingPackageVersion !== "1.85.0") throw Error(`WASI binding package version mismatch, expected 1.85.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
453
454
|
}
|
|
454
455
|
wasiBinding = require("@oxlint/binding-wasm32-wasi"), nativeBinding = wasiBinding, wasiBindingLoaded = !0;
|
|
455
456
|
}
|
package/dist/cli.js
CHANGED
|
@@ -38,11 +38,12 @@ function setupRuleConfigsWrapper(optionsJSON) {
|
|
|
38
38
|
* @param optionsIds - IDs of options to use for rules on this file, in same order as `ruleIds`
|
|
39
39
|
* @param settingsJSON - Settings for file, as JSON
|
|
40
40
|
* @param globalsJSON - Globals for file, as JSON
|
|
41
|
+
* @param collectTimings - Whether to collect per-rule timing information
|
|
41
42
|
* @param workspaceUri - Workspace URI (`null` in CLI mode, `string` in LSP mode)
|
|
42
|
-
* @returns Diagnostics or error serialized to JSON
|
|
43
|
+
* @returns Diagnostics and optional timing records, or an error serialized to JSON
|
|
43
44
|
*/
|
|
44
|
-
function lintFileWrapper(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri) {
|
|
45
|
-
return lintFile(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri);
|
|
45
|
+
function lintFileWrapper(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, collectTimings, workspaceUri) {
|
|
46
|
+
return lintFile(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, collectTimings, workspaceUri);
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Create a new workspace.
|
package/dist/lint.js
CHANGED
|
@@ -14274,7 +14274,7 @@ function resetSettings() {
|
|
|
14274
14274
|
}
|
|
14275
14275
|
//#endregion
|
|
14276
14276
|
//#region package.json
|
|
14277
|
-
var version = "1.
|
|
14277
|
+
var version = "1.85.0";
|
|
14278
14278
|
//#endregion
|
|
14279
14279
|
//#region src-js/plugins/context.ts
|
|
14280
14280
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
|
@@ -22144,7 +22144,28 @@ var PatchedWeakMap = class extends WeakMap {
|
|
|
22144
22144
|
}
|
|
22145
22145
|
};
|
|
22146
22146
|
ObjectDefineProperty$1(PatchedWeakMap, "name", { value: "WeakMap" }), globalThis.WeakMap = PatchedWeakMap;
|
|
22147
|
-
const resetWeakMaps = resetWeakMapsFn
|
|
22147
|
+
const resetWeakMaps = resetWeakMapsFn;
|
|
22148
|
+
//#endregion
|
|
22149
|
+
//#region src-js/plugins/timing.ts
|
|
22150
|
+
function timeCall(timing, callback) {
|
|
22151
|
+
let start = performance.now();
|
|
22152
|
+
try {
|
|
22153
|
+
return callback();
|
|
22154
|
+
} finally {
|
|
22155
|
+
timing.durationMs += performance.now() - start, timing.calls++;
|
|
22156
|
+
}
|
|
22157
|
+
}
|
|
22158
|
+
function wrapTimedFunction(fn, timing) {
|
|
22159
|
+
return (...args) => {
|
|
22160
|
+
let start = performance.now();
|
|
22161
|
+
try {
|
|
22162
|
+
return fn(...args);
|
|
22163
|
+
} finally {
|
|
22164
|
+
timing.durationMs += performance.now() - start, timing.calls++;
|
|
22165
|
+
}
|
|
22166
|
+
};
|
|
22167
|
+
}
|
|
22168
|
+
const { matches: esqueryMatches, parse: esqueryParse } = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
22148
22169
|
(function(e, t) {
|
|
22149
22170
|
typeof exports == "object" && module !== void 0 ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e ||= self).esquery = t();
|
|
22150
22171
|
})(exports, (function() {
|
|
@@ -23601,8 +23622,9 @@ let visitPropsCacheNextIndex = 0;
|
|
|
23601
23622
|
* Add a visitor to compiled visitor.
|
|
23602
23623
|
*
|
|
23603
23624
|
* @param visitor - Visitor object
|
|
23625
|
+
* @param timing - Timing accumulator for the rule which owns this visitor
|
|
23604
23626
|
*/
|
|
23605
|
-
function addVisitorToCompiled(visitor) {
|
|
23627
|
+
function addVisitorToCompiled(visitor, timing) {
|
|
23606
23628
|
if (typeof visitor != "object" || !visitor) throw TypeError("Visitor returned from `create` method must be an object");
|
|
23607
23629
|
let keys = ObjectKeys(visitor), keysLen = keys.length;
|
|
23608
23630
|
if (keysLen === 0) return;
|
|
@@ -23619,7 +23641,7 @@ function addVisitorToCompiled(visitor) {
|
|
|
23619
23641
|
let specificity = 0, isExit = name.endsWith(":exit");
|
|
23620
23642
|
isExit && (name = name.slice(0, -5), specificity = 536870912);
|
|
23621
23643
|
let visitProp = visitPropsCache[visitPropsCacheNextIndex++];
|
|
23622
|
-
visitProp.fn = visitFn, visitProp.specificity = specificity, visitProp.selectorStr = name;
|
|
23644
|
+
visitProp.fn = timing === void 0 ? visitFn : wrapTimedFunction(visitFn, timing), visitProp.specificity = specificity, visitProp.selectorStr = name;
|
|
23623
23645
|
let typeId = NODE_TYPE_IDS_MAP.get(name);
|
|
23624
23646
|
if (typeId !== void 0) {
|
|
23625
23647
|
visitProp.specificity |= 1, typeId < 27 ? addLeafVisitFn(typeId, visitProp) : typeId < 165 ? addNonLeafVisitFn(typeId, visitProp, isExit) : addCfgVisitFn(typeId, visitProp, isExit);
|
|
@@ -23627,7 +23649,10 @@ function addVisitorToCompiled(visitor) {
|
|
|
23627
23649
|
}
|
|
23628
23650
|
if (name !== "*") {
|
|
23629
23651
|
let selector = parseSelector(name);
|
|
23630
|
-
visitProp.specificity |= selector.specificity, selector.isComplex
|
|
23652
|
+
if (visitProp.specificity |= selector.specificity, selector.isComplex) {
|
|
23653
|
+
let timedVisitFn = visitProp.fn;
|
|
23654
|
+
visitProp.fn = wrapVisitFnWithSelectorMatch(timedVisitFn, selector.esquerySelector);
|
|
23655
|
+
}
|
|
23631
23656
|
let { typeIds } = selector;
|
|
23632
23657
|
if (typeIds !== null) {
|
|
23633
23658
|
for (let i = 0, len = typeIds.length; i < len; i++) {
|
|
@@ -23850,16 +23875,36 @@ const ObjectDefineProperty = Object.defineProperty, buffers = [], afterHooks = [
|
|
|
23850
23875
|
* @param optionsIds - IDs of options to use for rules on this file, in same order as `ruleIds`
|
|
23851
23876
|
* @param settingsJSON - Settings for this file, as JSON string
|
|
23852
23877
|
* @param globalsJSON - Globals for this file, as JSON string
|
|
23878
|
+
* @param collectTimings - Whether to collect per-rule timing information
|
|
23853
23879
|
* @param workspaceUri - Workspace URI (`null` in CLI, string in LSP)
|
|
23854
|
-
* @returns Diagnostics or error serialized to JSON
|
|
23880
|
+
* @returns Diagnostics and optional timing records, or an error serialized to JSON
|
|
23855
23881
|
*/
|
|
23856
|
-
function lintFile(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri) {
|
|
23882
|
+
function lintFile(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, collectTimings, workspaceUri) {
|
|
23883
|
+
let start = collectTimings ? performance.now() : 0, timings = collectTimings ? [] : null;
|
|
23857
23884
|
try {
|
|
23858
|
-
lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri);
|
|
23885
|
+
lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri, timings);
|
|
23859
23886
|
let ret = null;
|
|
23860
|
-
|
|
23887
|
+
if (timings !== null) {
|
|
23888
|
+
let runtimeMs = performance.now() - start;
|
|
23889
|
+
ret = JSONStringify({ Success: {
|
|
23890
|
+
diagnostics,
|
|
23891
|
+
timings: {
|
|
23892
|
+
rules: timings,
|
|
23893
|
+
runtimeMs
|
|
23894
|
+
}
|
|
23895
|
+
} });
|
|
23896
|
+
} else diagnostics.length !== 0 && (ret = JSONStringify({ Success: { diagnostics } }));
|
|
23897
|
+
return diagnostics.length = 0, resetFile(), ret;
|
|
23861
23898
|
} catch (err) {
|
|
23862
|
-
|
|
23899
|
+
runAfterHooks(!1);
|
|
23900
|
+
let timingOutput = timings === null ? void 0 : {
|
|
23901
|
+
rules: timings,
|
|
23902
|
+
runtimeMs: performance.now() - start
|
|
23903
|
+
}, failure = { Failure: {
|
|
23904
|
+
message: getErrorMessage(err),
|
|
23905
|
+
timings: timingOutput
|
|
23906
|
+
} };
|
|
23907
|
+
return clearStateAfterError(), JSONStringify(failure);
|
|
23863
23908
|
}
|
|
23864
23909
|
}
|
|
23865
23910
|
/**
|
|
@@ -23873,10 +23918,11 @@ function lintFile(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON,
|
|
|
23873
23918
|
* @param settingsJSON - Settings for this file, as JSON string
|
|
23874
23919
|
* @param globalsJSON - Globals for this file, as JSON string
|
|
23875
23920
|
* @param workspaceUri - Workspace URI (`null` in CLI, string in LSP)
|
|
23921
|
+
* @param timings - Timing accumulators, or `null` if timings are not being collected
|
|
23876
23922
|
* @throws {Error} If any parameters are invalid
|
|
23877
23923
|
* @throws {*} If any rule throws
|
|
23878
23924
|
*/
|
|
23879
|
-
function lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri) {
|
|
23925
|
+
function lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJSON, globalsJSON, workspaceUri, timings = null) {
|
|
23880
23926
|
if (buffer === null) buffer = buffers[bufferId];
|
|
23881
23927
|
else {
|
|
23882
23928
|
let { buffer: arrayBuffer, byteOffset } = buffer;
|
|
@@ -23888,18 +23934,24 @@ function lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJ
|
|
|
23888
23934
|
let hasBOM = buffer[2147483574] === 1;
|
|
23889
23935
|
setupSourceForFile(buffer, hasBOM), setSettingsForFile(settingsJSON), setGlobalsForFile(globalsJSON);
|
|
23890
23936
|
for (let i = 0, len = ruleIds.length; i < len; i++) {
|
|
23891
|
-
let ruleId = ruleIds[i], ruleDetails = registeredRules[ruleId];
|
|
23892
|
-
ruleDetails.ruleIndex =
|
|
23937
|
+
let ruleId = ruleIds[i], ruleDetails = registeredRules[ruleId], ruleIndex = i;
|
|
23938
|
+
ruleDetails.ruleIndex = ruleIndex;
|
|
23939
|
+
let timing;
|
|
23940
|
+
timings !== null && (timing = {
|
|
23941
|
+
ruleIndex,
|
|
23942
|
+
durationMs: 0,
|
|
23943
|
+
calls: 0
|
|
23944
|
+
}, timings.push(timing));
|
|
23893
23945
|
let optionsId = optionsIds[i];
|
|
23894
23946
|
OPTIONS_DESCRIPTOR.value = optionsId === 0 ? ruleDetails.defaultOptions : allOptions[optionsId], ObjectDefineProperty(ruleDetails.context, "options", OPTIONS_DESCRIPTOR);
|
|
23895
23947
|
let { visitor } = ruleDetails;
|
|
23896
|
-
if (visitor === null) visitor = ruleDetails.rule.create(ruleDetails.context);
|
|
23948
|
+
if (visitor === null) visitor = timing === void 0 ? ruleDetails.rule.create(ruleDetails.context) : timeCall(timing, () => ruleDetails.rule.create(ruleDetails.context));
|
|
23897
23949
|
else {
|
|
23898
23950
|
let { beforeHook, afterHook } = ruleDetails;
|
|
23899
|
-
if (beforeHook !== null && beforeHook() === !1) continue;
|
|
23900
|
-
afterHook !== null && afterHooks.push(afterHook);
|
|
23951
|
+
if (beforeHook !== null && (timing === void 0 ? beforeHook() : timeCall(timing, beforeHook)) === !1) continue;
|
|
23952
|
+
afterHook !== null && afterHooks.push(timing === void 0 ? afterHook : wrapTimedFunction(afterHook, timing));
|
|
23901
23953
|
}
|
|
23902
|
-
addVisitorToCompiled(visitor);
|
|
23954
|
+
addVisitorToCompiled(visitor, timing);
|
|
23903
23955
|
}
|
|
23904
23956
|
let visitorState = finalizeCompiledVisitor();
|
|
23905
23957
|
visitorState !== 0 && (ast === null && initAst(), visitorState === 2 ? walkProgramWithCfg(ast, compiledVisitor) : walkProgram(ast, compiledVisitor), resetCompiledVisitor()), runAfterHooks(!0);
|
|
@@ -23943,7 +23995,10 @@ function resetFile() {
|
|
|
23943
23995
|
* in the correct initial state for linting the next file.
|
|
23944
23996
|
*/
|
|
23945
23997
|
function resetStateAfterError() {
|
|
23946
|
-
runAfterHooks(!1),
|
|
23998
|
+
runAfterHooks(!1), clearStateAfterError();
|
|
23999
|
+
}
|
|
24000
|
+
function clearStateAfterError() {
|
|
24001
|
+
finalizeCompiledVisitor(), resetCompiledVisitor(), diagnostics.length = 0, ancestors.length = 0, resetFile(), resetCfgWalk();
|
|
23947
24002
|
}
|
|
23948
24003
|
//#endregion
|
|
23949
24004
|
export { BLOCK_ALIGN as _, loadPlugin as a, DATA_POINTER_POS_32 as b, registeredRules as c, PLACEHOLDER_REGEX as d, diagnostics as f, ACTIVE_SIZE as g, getNodeByRangeIndex as h, resetStateAfterError as i, allOptions as l, getLineColumnFromOffset as m, lintFile as n, registerPlugin as o, replacePlaceholders as p, lintFileImpl as r, registeredPluginNames as s, buffers as t, setOptions as u, BLOCK_SIZE as v, BUFFER_SIZE as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.85.0-depup.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint",
|
|
@@ -93,32 +93,32 @@
|
|
|
93
93
|
},
|
|
94
94
|
"preferUnplugged": true,
|
|
95
95
|
"optionalDependencies": {
|
|
96
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
97
|
-
"@oxlint/binding-android-arm64": "1.
|
|
98
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
99
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
100
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
101
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
102
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
103
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
104
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
105
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
106
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
107
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
108
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
109
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
110
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
111
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
112
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
113
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
114
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
96
|
+
"@oxlint/binding-darwin-arm64": "1.85.0",
|
|
97
|
+
"@oxlint/binding-android-arm64": "1.85.0",
|
|
98
|
+
"@oxlint/binding-win32-arm64-msvc": "1.85.0",
|
|
99
|
+
"@oxlint/binding-linux-arm64-gnu": "1.85.0",
|
|
100
|
+
"@oxlint/binding-linux-arm64-musl": "1.85.0",
|
|
101
|
+
"@oxlint/binding-openharmony-arm64": "1.85.0",
|
|
102
|
+
"@oxlint/binding-android-arm-eabi": "1.85.0",
|
|
103
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.85.0",
|
|
104
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.85.0",
|
|
105
|
+
"@oxlint/binding-win32-ia32-msvc": "1.85.0",
|
|
106
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.85.0",
|
|
107
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.85.0",
|
|
108
|
+
"@oxlint/binding-linux-riscv64-musl": "1.85.0",
|
|
109
|
+
"@oxlint/binding-linux-s390x-gnu": "1.85.0",
|
|
110
|
+
"@oxlint/binding-darwin-x64": "1.85.0",
|
|
111
|
+
"@oxlint/binding-win32-x64-msvc": "1.85.0",
|
|
112
|
+
"@oxlint/binding-freebsd-x64": "1.85.0",
|
|
113
|
+
"@oxlint/binding-linux-x64-gnu": "1.85.0",
|
|
114
|
+
"@oxlint/binding-linux-x64-musl": "1.85.0"
|
|
115
115
|
},
|
|
116
116
|
"depup": {
|
|
117
117
|
"changes": {},
|
|
118
118
|
"depsUpdated": 0,
|
|
119
119
|
"originalPackage": "oxlint",
|
|
120
|
-
"originalVersion": "1.
|
|
121
|
-
"processedAt": "2026-09-
|
|
120
|
+
"originalVersion": "1.85.0",
|
|
121
|
+
"processedAt": "2026-09-21T16:10:53.794Z",
|
|
122
122
|
"smokeTest": "passed"
|
|
123
123
|
}
|
|
124
124
|
}
|