Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
$au
property for definition by @bigopon in https://github.com/aurelia/aurelia/pull/1939
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.14...v2.0.0-beta.15
For the Aurelia 2 codebase, the usage of experimental decorators is turned off in https://github.com/aurelia/aurelia/pull/1932, and all the decorators are migrated to the TC39 decorators. This means when you update your Aurelia2 dependencies to v2.0.0-beta.15 or higher, you need to do the following.
tsconfig.json
: "emitDecoratorMetadata": true
and "experimentalDecorators": true
. This activates the native/TC39 decorator.target
property is set to something lower than esnext
. If this is set to esnext
, then TypeScript assumes reasonably that the target runtime supports decorators natively, and hence does not transpile those.class MyClass {
public constructor(
@IBar private readonly bar: IBar,
@IFoo foo: IFoo,
) {}
}
Instead, use the resolve
function.
import { resolve } from 'aurelia'; // also can be exported from `@aurelia/kernel`.
class MyClass {
private readonly bar: IBar = resolve(IBar);
public constructor(
// alternative#1
foo: IFoo = resolve(IFoo)
) {
// alternative#2
const foo: IFoo = resolve(IFoo)
}
}
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.13...v2.0.0-beta.14
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.12...v2.0.0-beta.13
.enhance
API by @bigopon in https://github.com/aurelia/aurelia/pull/1916
IHttpClient
by @ivanbacher in https://github.com/aurelia/aurelia/pull/1907
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.11...v2.0.0-beta.12
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.10...v2.0.0-beta.11
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.9...v2.0.0-beta.10