@opsydyn/oxlint-effect 2.0.0 → 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.0",
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",
@@ -17,7 +17,9 @@ overrides, and lint/typecheck commands. Match guidance to those installed
17
17
  versions. A skill obtained from GitHub may describe exports newer than the
18
18
  consumer package; verify exports before adding them.
19
19
 
20
- This unreleased 2.0 checkout defaults to Effect 4. Published 1.x remains Effect 3.
20
+ Published 2.x defaults to Effect 4. Published 1.x remains Effect 3 and does not
21
+ export the `effect3` namespace; that namespace is available after upgrading the
22
+ plugin to 2.x, without upgrading the consumer's Effect dependency.
21
23
  For every group, consult [versioned rule guidance](references/versioned-rules.md)
22
24
  and the matching pinned consumer's annotated failures, repairs and scope notes.
23
25
  Legacy uses `effect3`; manual sensitive rules default to 4. Do not mix a legacy
@@ -50,6 +52,10 @@ Do not enable every group merely because it is available.
50
52
 
51
53
  ## Diagnose Or Repair Domain Code
52
54
 
55
+ Use the Effect 4 pairs above for current consumers. The links in the following
56
+ legacy walkthrough target Effect 3; substitute their `assets/effect4/`
57
+ counterparts for Effect 4 and consult the versioned guide before adapting APIs.
58
+
53
59
  Read [domain modeling](references/domain-modeling.md) for DDD warnings. Identify
54
60
  the exact rule ID, source span, enabled policy, and surrounding domain contract.
55
61
  Separate what the syntax detector observed from what the application actually
@@ -2,8 +2,9 @@
2
2
 
3
3
  ## Effect Major
4
4
 
5
- In this unreleased 2.0 checkout default groups target Effect 4; published 1.x
6
- remains legacy. Every preset and rules-only companion is available under
5
+ Published 2.x default groups target Effect 4; published 1.x remains legacy and
6
+ does not export `effect3`. Upgrade the plugin to 2.x to select legacy presets
7
+ without upgrading Effect. Every preset and rules-only companion is available under
7
8
  `effect3` for Effect 3. See [all versioned groups](versioned-rules.md) for the
8
9
  matching failure/repair corpus. Verify the installed package before selecting it.
9
10
 
@@ -39,6 +40,13 @@ vendor plugin source or copy this repository's development dependencies.
39
40
 
40
41
  ## Select Policy
41
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
+
42
50
  `recommended` selects the package's broad default policy. `ddd` combines Domain
43
51
  Modeling and Error Modeling; `domainModeling` selects just Domain Modeling.
44
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