NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #858 most downloaded on pub.dev
A Dependency injection (Inversion of Control) library. Supports nested Scopes and multiple values of the same type.
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 12 months
Nearly every release is documented
notes for 14 of 15 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
16 releases · first in 2021
One column per quarter.
changed ScopeKey ctors so they are consts. The examples that show them being consts are now correct.
- updated dev dependencies.
Fixed an error in the README example. Use of wrong type.
- update links to doc and repo.
- upgraded dependencies
- upgraded to dart 3.0.
BREAKING: The Scope.run method is now asynchronous. Use Scope.runSync to run a synchronous method. You will likely have to change how you call the run
BREAKING: The Scope.run method is now asynchronous. Use Scope.runSync to run a synchronous method. You will likely have to change how you call the run method. If you have been using something like:
final scope = Scope()
..value<int>(keyAge, 10)
..run(() {
Future.delayed(oneSecond, () {
print('Age: ${use(keyAge)}');
});
});
You will need to change it to:
final scope = Scope()
..value<int>(keyAge, 10);
await scope.run(() async {
Future.delayed(oneSecond, () {
print('Age: ${use(keyAge)}');
});
});
added copyright notices.
Created an example of how overrides work.
Changed the debugName on ScopeKey.withDefault to optional to match ScopeKey.
Added missing types from global scope unit tests.
Added a GlobalScope object which implements a Singleton pattern which can be overriden by injecting a Scope.
Improved debug messages for ScopeKeys by providing the type and debug name if available.
ENH: Added new method hasScopeValue
use to provide site specific defaultspurged singleton from the doc as it is now single.
purged the term generator for the code/doco as it should be sequence.
Deprecated factory in favour of single. Added sequence in favour of the originally planned generator.
updated description again.
updated description again.
- renamed packaged to scope.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →