package_context 2.0.0
package_context: ^2.0.0 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.0 - 2026-08-30 #
Added #
PackageGraphas the only valid initialized state.initializeto assign the graph once.ensureInitializedfor the no-op / refresh / initialize bootstrap.PackageContextNotInitializedandPackageContextAlreadyInitialized.
Removed #
- One-time setters for
configanddependencies. EquatableonPackageConfigandPackageDependencies.
Changed #
refreshnow takes aPackageGraph.- Reading an empty context throws
PackageContextNotInitialized.
1.0.0 - 2026-08-30 #
Added #
PackageConfigandPackageDependenciesas the host-facing boundary types.PackageContextwith one-time setters and typed getters forconfiganddependencies.isInitialized,trueonly when both values are set.refreshto replace an initialized graph in the same process.resetto clear the graph in tests.