scope 2.3.0-beta.1 copy "scope: ^2.3.0-beta.1" to clipboard
scope: ^2.3.0-beta.1 copied to clipboard

outdated

A Dependency injection (Inversion of Control) library. Supports nested Scopes and multiple values of the same type.

2.3.0-beta.1 #

  • Added a GlobalScope object which implements a Singleton pattern which can be overriden by injecting a Scope.

2.2.1 #

  • Improved debug messages for ScopeKeys by providing the type and debug name if available.

2.2.0 #

  • ENH: Added new method hasScopeValue
  • ENH: added withDefault argument to use to provide site specific defaults
  • BREAKING: Subtle change to method hasScopeKey. Previously it return true if the key was in scope or if it had a default value. Use hasScopeValue to get the original implementation and use hasScopeKey to check if a key exists.

2.1.2 #

  • purged singleton from the doc as it is now single.

2.1.1 #

  • purged the term generator for the code/doco as it should be sequence.

2.1.0 #

  • Deprecated factory in favour of single. Added sequence in favour of the originally planned generator.

2.0.2 #

updated description again.

2.0.1 #

Updated readme and pubspec description.

2.0.0 #

  • renamed packaged to scope.

1.0.2 #

  • changed hasScopeKey to not throw an exception internally as it is a pain when debugging with all exception catching on.

1.0.1 #

updated lib to confirm with naming conventions.

1.0.0 #

Initial release.

9
likes
0
pub points
99%
popularity

Publisher

verified publisheronepub.dev

A Dependency injection (Inversion of Control) library. Supports nested Scopes and multiple values of the same type.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on scope