Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
MIT License
Bot releases are hidden (Show)
2.0.0-beta.21 (2024-08-08)
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.20...v2.0.0-beta.21
Published by bigopon 3 months ago
canLoad
/canUnload
hooks now only treat false
as false
.canLoad
and canUnload
only consider true
as can do, which means if a routing component has either the hook canLoad
/canUnload
,true
to load
/unload
. This is not consistent with the rest of the framework, and generally will be easier to miss during refactoring.canLoad
/canUnload
hooks now only treat false
as false
..html
file with convention, bindables
export will be a record, instead of an array.beta.15
-beta.19
will need to change the types for .html
modules in resource.d.ts
like the following example:
...
export const bindables: Record<string, Partial<BindableDefinition>>
...
or if it doesn't matter to your applications, simply having
...
export const bindables: Record<string, any>
...
will also work.Published by bigopon 4 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.18...v2.0.0-beta.19
Published by bigopon 5 months ago
refactor(dom-queue): merge dom read and write queue by @bigopon in https://github.com/aurelia/aurelia/pull/1970
when first started, we went overboard with optimization & many other trends, which resulted in a cumbersome dom queue system. Simplifying them to reduce the number of APIs as well as potential issues.
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.17...v2.0.0-beta.18
Published by bigopon 5 months ago
template: auto infer binding expression when empty by @bigopon in https://github.com/aurelia/aurelia/pull/1963
Previously only the expression of binding to element bindables get auto inferred, now it's expanded to all bindings
with .bind
/.to-view
/.from-view
/.two-way
/.one-time
Examples:
<div some-prop.bind=""> means <div some-prop.bind="someProp">
<div some-prop.bind> means <div some-prop.bind="someProp">
<div some-prop.one-time> means <div some-prop.one-time="someProp">
...
convention: rewrite runtime-html decorators by @Sayan751 in https://github.com/aurelia/aurelia/pull/1960
With tooling in the instable state for the tc39 decorator support, we will generate standard fn call code instead of decorator.
This will likely be changed when browsers start officially supporting it, or at least when the tooling (both spec & tooling stability + compat) gets better
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.16...v2.0.0-beta.17
Published by bigopon 6 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.15...v2.0.0-beta.16
Published by bigopon 6 months ago
$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)
}
}
Published by bigopon 7 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.13...v2.0.0-beta.14
Published by bigopon 7 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.12...v2.0.0-beta.13
Published by bigopon 8 months ago
.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
Published by bigopon 8 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.10...v2.0.0-beta.11
Published by bigopon 9 months ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.9...v2.0.0-beta.10
Published by bigopon 10 months ago
Published by bigopon about 1 year ago
Published by Sayan751 over 1 year ago
Published by bigopon over 1 year ago
Published by bigopon over 1 year ago
2.0.0-beta.5 (2023-04-27)
resolve
(#1748) (a22826a)Aurelia
export beside IAurelia
(a22826a)Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.4...v2.0.0-beta.5
Published by bigopon over 1 year ago
2.0.0-beta.4 (2023-04-13)
Published by bigopon over 1 year ago
Full Changelog: https://github.com/aurelia/aurelia/compare/v2.0.0-beta.2...v2.0.0-beta.3
Published by Sayan751 over 1 year ago
null
binding for default attribute of viewport (e1a49f1)The @aurelia/store-v1
package is deprecated in favor of @aurelia/state
. There will be no further development for this package and this is planned to be removed in the v2.0.0-beta.3
release. Note that this does not affect the Aurelia v1 in any way (the Aurelia v1 plugin can be found at https://github.com/aurelia/store).