@particle-academy/fancy-connector-core 0.6.0 → 0.6.1

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/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@ All notable changes to `fancy-connector-core` are documented here, in
6
6
  **This package is pre-1.0, so breaking changes land in MINOR releases.** The
7
7
  version number is not a promise it can keep yet; the entries below are.
8
8
 
9
+ ## [0.6.1] - 2026-09-13
10
+
11
+ ### Fixed
12
+
13
+ - **`ConnectorError` declares `attempts` and `idempotent` on its type.** A failed
14
+ call has attached both since 0.5.0, but the class never declared them, so
15
+ TypeScript refused `error.attempts` and the README taught a cast. They are
16
+ `declare` fields: nothing changes at runtime, and an error that did not end a
17
+ call still has no such property. **What to do:** nothing; a cast you added
18
+ still compiles and can go.
19
+
9
20
  ## [0.6.0] - 2026-09-13
10
21
 
11
22
  Additive only. **What a consumer must DO: nothing** — see each entry.
package/README.md CHANGED
@@ -84,10 +84,8 @@ try {
84
84
  error.kind; // the retry primitive
85
85
  error.providerCode; // only where the service declared `providerCodeFrom`
86
86
  error.cause; // the classified error; for a thrown transport, the original below it
87
- // Set at runtime but not declared on the `ConnectorError` type, so read them
88
- // through a narrowing of your own:
89
- (error as { attempts?: Attempt[] }).attempts; // every failed attempt of the call, in order
90
- (error as { idempotent?: boolean }).idempotent; // what the call declared — "never allowed to retry" vs "retries ran out"
87
+ error.attempts; // every failed attempt of the call, in order
88
+ error.idempotent; // what the call declared — "never allowed to retry" vs "retries ran out"
91
89
  }
92
90
  ```
93
91