Happy coding folks! Beta 17 has arrived! https://github.com/aurelia/aurelia/releases/tag/v2.0.0-beta.17
Please give it a try and help report any issues you run into either via the repo issues or discord chat here
Changelog summary:
What’s Changed
BREAKING CHANGES:
-
template: auto infer binding expression when empty by @bigopon in feat(template): auto infer binding expression when empty by bigopon · Pull Request #1963 · aurelia/aurelia · GitHub
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 feat(convention): rewrite runtime-html decorators by Sayan751 · Pull Request #1960 · aurelia/aurelia · GitHub
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 betterIf you are using convention plugin in an existing app, to migrate, update the
resource.d.ts
declaration like the following for*.html
:declare module '*.html' { import { IContainer, PartialBindableDefinition } from 'aurelia'; export const name: string; export const template: string; export default template; export const dependencies: string[]; export const containerless: boolean | undefined; export const bindables: ( | string | (PartialBindableDefinition & { name: string }) )[]; export const shadowOptions: { mode: 'open' | 'closed' } | undefined; export function register(container: IContainer): void; } // ... other declaration like css etc..
Features:
- feat(repeat): allow custom repeatable value by @bigopon in feat(repeat): allow custom repeatable value by bigopon · Pull Request #1962 · aurelia/aurelia · GitHub
- feat(template): support spread syntax … by @bigopon in feat(template): support spread syntax ... by bigopon · Pull Request #1965 · aurelia/aurelia · GitHub
Bug fixes:
- fix(au-slot): separate parent scope selection from host scope selection by @bigopon in fix(au-slot): separate parent scope selection from host scope selection by bigopon · Pull Request #1961 · aurelia/aurelia · GitHub
Refactoring:
- refactor(kernel): mark side effect free by @bigopon in refactor(kernel): mark side effect free by bigopon · Pull Request #1964 · aurelia/aurelia · GitHub
Full Changelog: Comparing v2.0.0-beta.16...v2.0.0-beta.17 · aurelia/aurelia · GitHub