Skip to content

@odatano/nightgate 0.28.0

Choose a tag to compare

@maxalexweber1 maxalexweber1 released this 27 Sep 18:32
· 52 commits to main since this release
646077f

@odatano/nightgate 0.28.0

One error model with string codes, batch segment outcomes, a single-instance database lease.

  • Breaking: error.code of a status-only reject is a class code (INVALID_ARGUMENT, NOT_FOUND, ...), not "400".
  • Error registry in docs/reference.md#http-error-codes; codes on error classes, across the worker boundary, and on a sanitized 5xx.
  • getJobStatus.chainSegments (new column): [{ segment, calls, applied }] for confirmed batches.
  • Admin reconcileNightBalances(address?, after?, limit?): drift report, writes nothing.
  • InstanceLeases (new entity), NIGHTGATE_INSTANCE_LEASE_TTL_MS: one process per database; a displaced process dispatches, writes and broadcasts nothing.
  • Timed-out worker RPC cancelled at its next wait point, never after the submit intent.
  • Wallet not at tip before the build: NetworkOrTimeout / wallet-not-synced, sponsor fails over.
  • Revoked grant or sponsor policy: job code AGENT_GRANT_REVOKED / SPONSOR_POLICY_* (was Error).
  • BlockStatistics: count per returned row, page 100 (max 1000).
  • @odatano/nightgate-tx 0.7.0: isRetryable(err), RETRYABLE_ERROR_CODES.

Full Changelog: v0.27.2...v0.28.0