@opsydyn/oxlint-effect 2.0.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opsydyn/oxlint-effect",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "Oxlint plugin rules for Effect TypeScript code shape constraints.",
5
5
  "author": "Alan Currie",
6
6
  "license": "MIT",
@@ -40,6 +40,13 @@ vendor plugin source or copy this repository's development dependencies.
40
40
 
41
41
  ## Select Policy
42
42
 
43
+ In plugin 2.1+, recommended and effect3.recommended no longer enable no-effect-fn-generator,
44
+ no-manual-effect-channels or no-effect-type-alias. The full effectComposition
45
+ group and allRules retain those explicit style opt-ins. Disable them when using
46
+ the full group with traced functions or deliberate public service contracts.
47
+ Plugin 2.0.x retains the previous defaults; upgrading is a deliberate policy
48
+ migration, not merely changing the consuming project's Effect major.
49
+
43
50
  `recommended` selects the package's broad default policy. `ddd` combines Domain
44
51
  Modeling and Error Modeling; `domainModeling` selects just Domain Modeling.
45
52
  They are alternative starting policies, not escalating installation steps.
@@ -12,6 +12,42 @@ 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
+
38
+ In plugin 2.1+, both recommended presets allow Effect.fn generators, explicit Effect/Layer
39
+ contracts and named Effect aliases. Their three historical bans remain opt-in
40
+ in effectComposition/allRules; they are style preferences, not correctness rules.
41
+ Preserve meaningful public contracts and use named Effect.fn for tracing. A
42
+ throwing body still needs Effect.fail/try/tryPromise rather than a suppressed rule.
43
+
44
+ Collection concurrency is sequential when omitted. no-unbounded-effect-all and
45
+ no-unbounded-concurrent-retry now require visible unbounded/Infinity budgets,
46
+ not merely missing options. Plugin 2.0.x retains its older bans and option-presence
47
+ policy; check the installed version before prescribing these changes.
48
+ An unresolved budget or later opaque spread remains
49
+ unknown, not proved bounded. Do not add ceremonial options to safe sequential work.
50
+
15
51
  Current Context.Service replaces legacy Context.Tag/Effect.Service construction
16
52
  where the actual consumer contract supports it. Current broad recovery uses
17
53
  Effect.catch/catchEager; legacy catchAll remains legacy policy. Legacy Effect.catch