@opsydyn/oxlint-effect 2.0.1 → 2.1.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.1.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,19 @@ A passing control labelled as a gap is not a recommended repair.
12
12
 
13
13
  ## API Selection
14
14
 
15
+ In plugin 2.1+, both recommended presets allow Effect.fn generators, explicit Effect/Layer
16
+ contracts and named Effect aliases. Their three historical bans remain opt-in
17
+ in effectComposition/allRules; they are style preferences, not correctness rules.
18
+ Preserve meaningful public contracts and use named Effect.fn for tracing. A
19
+ throwing body still needs Effect.fail/try/tryPromise rather than a suppressed rule.
20
+
21
+ Collection concurrency is sequential when omitted. no-unbounded-effect-all and
22
+ no-unbounded-concurrent-retry now require visible unbounded/Infinity budgets,
23
+ not merely missing options. Plugin 2.0.x retains its older bans and option-presence
24
+ policy; check the installed version before prescribing these changes.
25
+ An unresolved budget or later opaque spread remains
26
+ unknown, not proved bounded. Do not add ceremonial options to safe sequential work.
27
+
15
28
  Current Context.Service replaces legacy Context.Tag/Effect.Service construction
16
29
  where the actual consumer contract supports it. Current broad recovery uses
17
30
  Effect.catch/catchEager; legacy catchAll remains legacy policy. Legacy Effect.catch