The main class of this package. Can be used as a state manager under a library like zustand.

Hierarchy (View Summary)

Constructors

Properties

envs: SuperSet<Env>
name?: string
networks: SuperSet<Network>
secrets: SuperSet<Secret>
services: SuperSet<Service>
version?: ComposeVersion
volumes: SuperSet<Volume>

Methods

  • Returns a stable string representation usable as an equality key.

    Previously this used a Node crypto.createHash('sha256') digest, but that broke browser bundles (crypto is Node-only, and the Web Crypto subtle.digest is async). The serialized JSON is sufficient for the equal() use case, which only needs deterministic comparison.

    Returns string