Skip to content

aurelia-dependency-injection v0.11.0

Compare
Choose a tag to compare
@EisenbergEffect EisenbergEffect released this 13 Oct 07:17
· 223 commits to master since this release

0.11.0 (2015-10-13)

Bug Fixes

  • repair error msg for broken view model (60880447)
  • Container: remove new in function call (08cd06fd)
  • all:
    • update to latest metadata api (bfa78327)
    • address lint errors (d2e36a57)
    • improve some type info (2aa55dea)
    • switch to new metadata abstraction (05f3bfde)
    • update compiler to latest version (b6a3dd03)
    • explicit import of core-js and switch to Reflect.construct (5ebe60be)
    • switch to metadata api (19c60ad9)
  • bower: correct semver range (3b7670c3)
  • build:
    • update linting, testing and tools (97d032c8)
    • add missing bower bump (39ab3d07)
  • container:
    • improved alias handling (a2eb66c3)
    • prevent a breaking api change (9198b164)
    • add generics to Map type info (072262ef)
    • dry out bad key error message (58a1036f)
    • Improve error message on bad key for DI (6495ad3b, closes #36)
    • enable autoregister of non-functions (c40ac432, closes #31)
    • remove initialize hack (5c9fdd09)
    • better errors for instantiation failures (8c5e3a64)
    • factories are explicit (667a16e4, closes #13)
    • remove bogus createTypedChild api (42b2ae2a)
    • discover registration attributes on base classes (b7af69d1)
  • decorators: remove unnecessary returns (150607d1)
  • dependency-injection: Use correct import for core-js We were previously using `import core from core-j (625c1eea)
  • emptyParameters: import from ./container (7d4cfc92)
  • optional: add Optional annotation to public api (1d688334)
  • package:
  • singleton: alway register in the root container (186b573e, closes #22)
  • util:
    • fix ridiculously dumb error (8cfe89f0)
    • function name polyfill should minify correctly (85358c53)

Features

  • all:
  • annotations: add optional resolver (27a580d3)
  • build: update compiler and switch to register module format (e959d7bb)
  • container:
    • add ability to register aliases for any DI key (d4451482)
    • enable the invoke helper to take additional deps (eec36d2a)
    • turn a container instance into a globally reachable singleton instance (3c02164b)
    • improve helpfulness of activation errors (47aa4871)
    • remove AtScript support (6ed8891a)
    • use new logging AggregateError (6e2548ef)
    • add unregister method (2755688c, closes #19)
    • consume atscript annotation parameters as arrays (7303cb36, closes #15)
    • enable custom class init before constructor (33b4cc1c)
    • enable simple registration when key and value are the same (9f1f502c)
  • cotainer: add InstanceActivator abstraction (0fc2a317)
  • docs: generate api.json from .d.ts file (c6acb7cf)
  • metadata: singleton metadata can now indicate root container target (4a99d4f5)
  • package: switch from es6-shim to core-js (90a501d4)
  • resolver: add parent resolver (f035f1f5)

Breaking Changes

  • Removed base classes for registrations and instance
    activators since metadata now uses key/value pairs rather than
    inheritance.

    (51bfdd1e)