package_context 2.0.1 copy "package_context: ^2.0.1" to clipboard
package_context: ^2.0.1 copied to clipboard

Initialize a package's config and dependencies as one graph, and read them from a typed package context.

Changelog #

All notable changes to this project are documented in this file.

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

2.0.1 - 2026-08-30 #

Added #

  • Architecture, wiring, and lifecycle diagrams in the README.

2.0.0 - 2026-08-30 #

Added #

  • PackageGraph as the only valid initialized state.
  • initialize to assign the graph once.
  • ensureInitialized for the no-op / refresh / initialize bootstrap.
  • PackageContextNotInitialized and PackageContextAlreadyInitialized.

Removed #

  • One-time setters for config and dependencies.
  • Equatable on PackageConfig and PackageDependencies.

Changed #

  • refresh now takes a PackageGraph.
  • Reading an empty context throws PackageContextNotInitialized.

1.0.0 - 2026-08-30 #

Added #

  • PackageConfig and PackageDependencies as the host-facing boundary types.
  • PackageContext with one-time setters and typed getters for config and dependencies.
  • isInitialized, true only when both values are set.
  • refresh to replace an initialized graph in the same process.
  • reset to clear the graph in tests.
1
likes
0
points
257
downloads

Publisher

unverified uploader

Weekly Downloads

Initialize a package's config and dependencies as one graph, and read them from a typed package context.

Repository (GitHub)
View/report issues

Topics

#architecture

License

unknown (license)

Dependencies

meta

More

Packages that depend on package_context