Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

5.0.0-alpha+15

Choose a tag to compare

@matanlurey matanlurey released this 15 Jun 17:16
· 1518 commits to master since this release

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 (from Dart2JS)
    going forward to emit debug-only conditional code.

New features

  • The from attribute 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 NgTemplateOutlet caused 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 always dynamic), but the compiler no longer crashes.

  • Fixed a bug where Iterable.retype being removed from the SDK caused the
    compiler to crash on the newest Dart2 -dev SDKs. We now use .cast instead.

angular_ast

0.5.3+3

  • Maintenance release for -dev.60.

angular_compiler

0.4.0-alpha+15

  • CompilerFlags no longer parses and supports the 'debug' option and
    genDebugInfo is always false, and is deprecated pending removal in a
    future version.

angular_forms

2.0.0-alpha+7

New Features

  • reset method added to AbstractControl and AbstractControlDirective.

  • RequiredValidator now has a required input. This allows the required
    property to be toggled at runtime. Previously, this could only be set
    statically at compile time.

  • Control.invalid getter added.

Breaking Changes

  • Remove deprecated NG_VALUE_ACCESSOR token. Use ngValueAccessor instead.

  • Abstract updateValue method added to AbstractControl. All subclasses of
    AbstractControl will need to implement this method.

angular_router

2.0.0-alpha+14

Bug fixes

  • Preserves NavigationParams on redirection.

  • Added canNavigate to RouterHook.

  • 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 since alpha+8). Use throwsA.

  • Removed NgTestFixture#query/queryAll, as debug-mode is being turned down.

  • Added isStable API to NgTestStabilizer.

  • Run DelegatingNgTestStabilizer stabilizers 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.