@tinycloud/node-sdk 3.12.0-beta.3 → 3.12.0-beta.4
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 +2 -2
- package/dist/core.cjs +1 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Routing uses the complete space URI, not a short space name or a single account-
|
|
|
8
8
|
|
|
9
9
|
Encryption is resolved separately: descriptor reads, network creation, and decrypt requests use the signed `encryptionNode`, including its invocation audience. A data-space host does not become an encryption destination, or vice versa.
|
|
10
10
|
|
|
11
|
-
Explicit `host`, saved-profile hosts, local discovery, and new-user defaults are onboarding hints. The lookup checks v2 first, then v1 to distinguish absence from an existing v1 registration. Cold HTTP5xx, transport errors and timeouts without
|
|
11
|
+
Explicit `host`, saved-profile hosts, local discovery, and new-user defaults are onboarding hints only after the reachable registry confirms genuine absence. The lookup checks v2 first, then v1 to distinguish absence from an existing v1 registration. Cold HTTP5xx, transport errors and timeouts without saved settings refuse live routing with `registry_unavailable`; neither a configured/default host nor `onNodeNotFound` may override that refusal. Low-level background lookup may still describe an offline unregistered verdict, but policy lookups do not authorize it. HTTP4xx refusals, v1-only registrations, corrupt caches, invalid responses, remembered registrations, empty registered memberships and missing encryption destinations never authorize fallback. Signed strings are validated without rewriting them.
|
|
12
12
|
|
|
13
13
|
`NodeNotRespondingError` has code `NODE_NOT_RESPONDING`. Registry refusals and node-identity mismatches remain distinct errors. Multi-node writes are not atomic: `PartialNodeWriteError` exposes `succeeded` URLs and `failed` destinations/statuses/causes so callers do not mistake incomplete writes for success.
|
|
14
14
|
|
|
@@ -32,7 +32,7 @@ Each caller retains registration evidence observed before joining an in-flight r
|
|
|
32
32
|
|
|
33
33
|
Restored host hints install alongside the replacement session and service graph. Subsequent public delegation preparation uses that installed hint when fresh routing permits onboarding; verified signed destinations still take precedence.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
With no saved settings, an unreachable registry refuses before data requests; it does not select a default host or emit a default-host warning. Warm fallback still logs `Storage settings are unreachable; using cached settings checked less than 1 hour ago.` once per owner/client cache after selecting the verified cached route. `onRegistryFallback(reason, code?)` collects that value-free diagnostic instead of the default console warning, using `using_cached_settings`. Background refresh alone does not warn. CLI errors keep `REGISTRY_UNAVAILABLE` and explain that no settings are saved on this computer.
|
|
36
36
|
|
|
37
37
|
This is a client cache: a node that performs online registry admission still needs its own registry connectivity. It is not a whole-service-outage guarantee.
|
|
38
38
|
|
package/dist/core.cjs
CHANGED
|
@@ -6590,8 +6590,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
6590
6590
|
stagedSessionExpiry = signedExpiry ?? persistedPolicyExpiry ?? persistedExpiry(void 0);
|
|
6591
6591
|
}
|
|
6592
6592
|
const restoreHints = this.explicitHost ? [this.explicitHost] : sessionData.tinycloudHosts ?? [];
|
|
6593
|
-
const
|
|
6594
|
-
const stagedHost = resolvedHost ?? (0, import_sdk_core11.exactHttpOrigin)(restoreHints[0] ?? this.config.host, "restored host hint");
|
|
6593
|
+
const stagedHost = (0, import_sdk_core11.exactHttpOrigin)(restoreHints[0] ?? this.config.host, "restored host hint");
|
|
6595
6594
|
let restoredNodeFeatures;
|
|
6596
6595
|
let replicaProtocolMismatch = false;
|
|
6597
6596
|
if (this.config.replication?.enabled) {
|