Skip to content

v1.0.0

Choose a tag to compare

@Xiphe Xiphe released this 28 Oct 14:47
· 105 commits to master since this release
f2ec1a7

1.0.0 (2017-10-28)

Features

  • globalOptions: remove feature (2e15698)

BREAKING CHANGES

  • globalOptions: directive.globalOptions is now being ignored and
    the object in [directive.js, { global: option }] is
    provided to bootstrap instead of globalOptions.
    Migration: When a directive needs globalOptions, the bootstrap
    function can provide them to the directive runtime.

previously:

export default function Directive({ globalOptions }) {
  console.log(globalOptions);
  /* ... */
}

now:

let globalOptions = null;
export function bootstrap(options) {
  globalOptions = options;
}
export default function Directive() {
  console.log(globalOptions);
  /* ... */
}