5.0.0-alpha+15
angular
5.0.0-alpha+15
Breaking changes
- The compilation mode
--debug(sparingly used externally) is now no longer
supported. Some flags and code paths in the compiler still check/support it
but it will be removed entirely by the final release and should no longer
be used. We will rely on assertion-based tree-shaking (fromDart2JS)
going forward to emit debug-only conditional code.
New features
-
The
fromattribute added to<style>tags created for component styles
now refers to the component URL, rather than its template URL. -
AngularDart now has official support of the
optional new/const feature
of Dart2. The most significant impact to the framework will be increased
terse-ness of the various metadata annotations. Please file issues if you
see any unexpected behavior. Here is one example:// Before @Component( selector: 'comp', directives: const [ FooComponent, ], providers: const [ const ClassProvider(SomeService), ], ) // After @Component( selector: 'comp', directives: [ FooComponent, ], providers: [ ClassProvider(SomeService), ], )
Bug fixes
-
Prevented a crash in
NgTemplateOutletcaused by a specific sequence of
inputs to[ngTemplateOutlet]. -
Relaxed type checks for events bound with a single parameter. In practice
this started failing in Dart2JS with--preview-dart-2, potentially where
synthetic events were being passed instead of the real DOM event:<some-comp (focus)="handleFocus($event)"></some-comp>
import 'dart:html'; void handleFocus(FocusEvent e) { // Failed when 'e' was a CustomEvent or not strictly a FocusEvent. }
-
Fixed a bug where a recursive type signature on a component or directive
would cause a stack overflow. We don't support generic type arguments yet
(the reified type is alwaysdynamic), but the compiler no longer crashes. -
Fixed a bug where
Iterable.retypebeing removed from the SDK caused the
compiler to crash on the newest Dart2 -dev SDKs. We now use.castinstead.
angular_ast
0.5.3+3
- Maintenance release for
-dev.60.
angular_compiler
0.4.0-alpha+15
CompilerFlagsno longer parses and supports the'debug'option and
genDebugInfois alwaysfalse, and is deprecated pending removal in a
future version.
angular_forms
2.0.0-alpha+7
New Features
-
resetmethod added toAbstractControlandAbstractControlDirective. -
RequiredValidatornow has arequiredinput. This allows therequired
property to be toggled at runtime. Previously, this could only be set
statically at compile time. -
Control.invalidgetter added.
Breaking Changes
-
Remove deprecated
NG_VALUE_ACCESSORtoken. UsengValueAccessorinstead. -
Abstract
updateValuemethod added toAbstractControl. All subclasses of
AbstractControlwill need to implement this method.
angular_router
2.0.0-alpha+14
Bug fixes
-
Preserves
NavigationParamson redirection. -
Added
canNavigatetoRouterHook. -
Navigation will no longer succeed for an empty path if it doesn't match a
route.
angular_test
2.0.0-alpha+13
-
Removed
throwsInAngular(was a no-op sincealpha+8). UsethrowsA. -
Removed
NgTestFixture#query/queryAll, as debug-mode is being turned down. -
Added
isStableAPI toNgTestStabilizer. -
Run
DelegatingNgTestStabilizerstabilizers one by one instead of run all
at once.update()for each stabilizers will be run at least once. After
that, it will only be run if the current stabilizer is not stable.