Skip to content

Release v24.8.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 22:41
8dc03d5

Generated proxies now say which part they are, a client can ask whether a part is available for the data it is about, and the availability manifest has one documented format with shared test vectors.

Added

  • Every generated command and query proxy (including model-bound read model queries) declares static part: the full name of the part and its module, feature and slice. The gate stays on the server. Generate the proxies again after updating. (#3982)
  • /.cratis/availability accepts part and arguments, so a gate that reads arguments.vesselId answers for one vessel with the same gate that decides an execution. IUnavailableParts.Get(PartQuestion) does the same from code.
  • @cratis/arc has askAvailability(part, args), PartAvailability and isSuspended; CommandResult has isSuspended and onSuspended. Suspended is told apart from NotAvailable.
  • @cratis/arc.react has useIsAvailable(part, args?), and RequireAvailable takes args and a suspended slot.
  • The availability manifest file: one JSON format and schema in Specifications/availability, written by the engine (ManifestFileBuilder) and by the proxy generator at build (CratisAvailabilityManifest), and read and decided by ManifestFileEvaluator.
  • Shared data-driven test vectors in Specifications/availability/vectors that any Arc engine can run; the .NET engine runs them in its specifications.