cobalt_annotations 1.2.0
cobalt_annotations: ^1.2.0 copied to clipboard
Annotations for Cobalt — @CobaltInject, @injected, @CobaltBootstrap, @CobaltInit and @CobaltScopeRoot.
1.2.0 #
CobaltInject.instantiations: a generic class lists the instantiations it registers, as in@CobaltInject(instantiations: [Cache<Note>, Cache<Tag>]), one registration each. Read bycobalt_generator1.2.0.
1.1.1 #
- No code changes in this package. Republished in lockstep with 1.1.1:
a shorter README with a Quick start,
examples/helloas the smallest app,docs/OVERVIEW.mdfor everything the README no longer holds, anddocs/TROUBLESHOOTING.md, one entry per error.
1.1.0 #
- No code changes in this package. Republished in lockstep with 1.1.0, which adds Korean to the inspector and to the documentation.
1.0.0 #
- The API is stable: from here on, only a major release breaks it — see Compatibility in the README. No code changes in this package since 0.9.0; coming from an older 0.x, MIGRATION lists what to change.
0.9.0 #
- No code changes.
@CobaltHookAll's documentation shows a hook asfinal class … extends CobaltHook<T>, ascobalt0.9.0 requires.
0.8.0 #
@CobaltHookAll/@cobaltHookAll: adds the annotatedCobaltHook<T>to the generated root scope, withorderamong several.
0.7.0 #
- No code changes in this package. Republished in lockstep with 0.7.0, which
makes
CobaltResolvera base class (breaking), adds getters toCobaltRegistrationKindand lets the inspector open on a chosen tab — seecobalt's changelog.
0.6.0 #
- No code changes in this package. Republished in lockstep with 0.6.0, which
adds build times to observers and the inspector, a graph snapshot in
cobalt_testand a lint rule — seecobalt's changelog.
0.5.0 #
@CobaltDecorates(Target, allNames: true)wraps every registration ofTarget, whatever its name. It cannot be combined withname:.@cobaltTransient(orlifetime: CobaltLifetime.transient) next to@CobaltInit, and on a module member returning aFuture, now means an async transient built by everygetAsync. It used to be ignored.
0.4.0 #
@CobaltParamon an@CobaltInitclass makes it an async parameterized factory, built by eachgetAsyncWithParam. It used to be refused.
0.3.0 #
@CobaltDecorates(Target, {name, order}): the generated form ofCobaltScope.decorate. The class implementsTargetand takes the wrapped instance in its constructor;ordersays which of several wraps which.
0.2.1 #
- No code changes in this package. Republished in lockstep with the toolchain
packages, which now accept analyzer 13 and 14 — see
cobalt_generator's changelog.
0.2.0 #
@CobaltInit(lazy: true), and the shorthand@cobaltLazyInit: the class is built by the firstgetAsyncinstead of duringscope.init().@CobaltInject(lazyInit: true)— the same for a@CobaltModulemember returning aFuture.
0.1.2 #
- No code changes in this package. Republished in lockstep with a
packaging fix in
cobalt0.1.2 (a stray file removed from its archive) — see its changelog. A fix in one package still ships as a patch for all fifteen, because publishing a subset is what lets the set drift.
0.1.1 #
- No code changes in this package. Republished in lockstep with the fix
in
cobalt_lint0.1.1 — see its changelog. Lockstep is the whole versioning policy: a fix in one package still ships as a patch for all fifteen, because publishing a subset is what lets the set drift.
0.1.0 #
- An optional
@CobaltParamparameter is refused: the record the call site passes carries no defaults, so the default could never be used. @CobaltParammarks a constructor parameter the call site supplies rather than the graph.- Initial release.
- Annotations shared by the generator and the lint plugin, with no runtime and
no analyzer dependency:
@CobaltInject(plus the@cobaltInject/@cobaltSingleton/@cobaltTransientshorthands),@Injected,@Named,@CobaltBootstrap,@CobaltInit,@CobaltScopeRootand@CobaltEnvironment. CobaltEnvironment.matcheslives here rather than in the runtime: it is pure logic over strings, and both generated and hand-written code need it.@CobaltScopeRoot(provides: [...])andCobaltProvideddeclare registrations the generator cannot see, so its completeness check does not report them missing.@CobaltModulemarks a class whose members register types the package does not own, and@CobaltInjectgaineddisposefor closing them.