Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 4.98 KB

File metadata and controls

75 lines (50 loc) · 4.98 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Add a ./described export with a combinator namespace S (S.string/S.number/S.boolean/S.arrayOf/S.record/S.object/S.nothing leaves, plus S.arg/S.method/S.interface) that authors an @endo/patterns interface guard and a matching MethodSchema from a single source, so a discoverable exo's enforced shape and its __getDescription__ hint cannot drift (#958)
  • Add an optional required field to MethodSchema (mirroring required on object JsonSchema) naming which arguments are required, and a { required } option on methodArgsToStruct that validates unlisted arguments as optional, so a method's argument schema can faithfully represent the optional trailing arguments its guard already allows (#958)
  • Add getLibp2pRelayHome() to the ./nodejs exports, returning the libp2p relay's bookkeeping directory (default ~/.libp2p-relay, overridable via $LIBP2P_RELAY_HOME) — kept separate from $OCAP_HOME so one relay can serve daemons with different OCAP_HOMEs (#952)
  • startRelay() accepts an optional publicIp that is fed to libp2p's appendAnnounce, so a relay running on a NAT-backed host can announce its publicly-reachable IPv4 alongside its bound NIC addresses (#952)
  • Add replaceNodeEnvPlugin to the ./vite-plugins exports, a Rolldown transform plugin that inlines process.env.NODE_ENV as a string literal (configurable via { value }, defaulting to 'production') in any module referencing it — used by bundleVat in place of a build-config define, so vats that pull in libraries like immer resolve the reference at bundle time (#967)

Added

  • Add ./vite-plugins export with bundleVat and bundleVats vat bundling utilities (moved from @ocap/repo-tools) (#875)
  • Add vite as an optional peer dependency for the ./vite-plugins subpath (#875)
  • Add CapDataStruct export (#917)
  • Add JSON Schema to superstruct utilities (#876)
  • Add @metamask/kernel-cli utilities (#896)
    • getOcapHome() for obtaining the CLI config dir
    • prettifySmallcaps() for formatting smallcaps values for display
  • Add isCapData() utility (#879)

Changed

  • BREAKING: Rename discoverable exo describe() method to __getDescription__() (#869)

Added

  • Add vat bundle utilities (#763)
  • Add ./libp2p export with startRelay() and ifDefined() utility (#843)
  • Add Promisified<T> utility type (#752)
  • Add makeDiscoverableExo() constructor (#705)
  • Add retry utilities with exponential backoff and wake detection (#678)
  • Add mergeDisjointRecords() utility (#619)
  • Add makeDefaultExo utility (#612)
  • Add hex encoding utilities (#578)

Changed

  • BREAKING: Drop Node 20 support (#837)

Changed

  • Dual-license package under MIT and/or Apache 2.0 (#601)

Changed

  • Bump Endo and Agoric dependencies (#590, #543)

Added

  • Initial release.