@opsydyn/oxlint-effect 2.1.0 → 2.2.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 +27 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/oxlint-effect/references/versioned-rules.md +23 -0
package/package.json
CHANGED
|
@@ -12,6 +12,29 @@ A passing control labelled as a gap is not a recommended repair.
|
|
|
12
12
|
|
|
13
13
|
## API Selection
|
|
14
14
|
|
|
15
|
+
### Concurrency Accuracy In 2.2+
|
|
16
|
+
|
|
17
|
+
Plugin 2.2.0 and later recalibrates no-race-without-cleanup and the
|
|
18
|
+
two shared/global mutation rules in both majors. Do not prescribe this behaviour
|
|
19
|
+
to an installed 2.1.x consumer. Race warnings require a visible resource-shaped
|
|
20
|
+
acquisition without ownership on its branch, not simply missing finalizers on
|
|
21
|
+
pure/opaque tasks. Sibling cleanup does not establish ownership.
|
|
22
|
+
|
|
23
|
+
Collection writes require visible parallel scheduling (literal concurrency > 1,
|
|
24
|
+
global Infinity or unbounded); omission/one are clean and opaque budgets remain
|
|
25
|
+
unknown. Both majors use lexical state ownership, including const containers;
|
|
26
|
+
function-local state is not global. Unexecuted callback writes are excluded.
|
|
27
|
+
|
|
28
|
+
Only these three rules add value-import binding resolution: named Effect aliases,
|
|
29
|
+
package/subpath namespace imports and named subpath operations, including direct,
|
|
30
|
+
curried and terminal pipe forms. Shadowed/type-only bindings are excluded.
|
|
31
|
+
CommonJS, computed members, re-exports and stored aliases/bodies are not resolved.
|
|
32
|
+
Preserve race success/failure semantics and resource ownership; do not manufacture
|
|
33
|
+
dummy finalizers or suppress an unrelated warning. See each major's
|
|
34
|
+
`src/concurrency-accuracy.bad.ts`, `.good.ts` and `.contracts.ts` consumer files.
|
|
35
|
+
|
|
36
|
+
### Published 2.1 Policy
|
|
37
|
+
|
|
15
38
|
In plugin 2.1+, both recommended presets allow Effect.fn generators, explicit Effect/Layer
|
|
16
39
|
contracts and named Effect aliases. Their three historical bans remain opt-in
|
|
17
40
|
in effectComposition/allRules; they are style preferences, not correctness rules.
|