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

5.0.0-beta+2

Compare
Choose a tag to compare
@matanlurey matanlurey released this 19 Jul 17:35
· 1413 commits to master since this release

We accidentally missed 5.0.0-beta+1, but it was available on pub.

angular

5.0.0-beta+2

New features

  • Added support for named arguments in function calls in templates:

    <span>Hello {{getName(includeExclamationPoint: true)}}</span>

NOTE: Because of the collision of syntax for both named arguments and
pipes, any pipes used as the value of a named argument need to be wrapped
in parentheses: func(namedArg: (pipeName | pipeVar:pipeVarValue)).

Bug fixes

  • Changed the behavior of warnings around @ViewChildren(...). It was more
    difficult than originally thought to warn on incorrect selector usage due to
    the semantics of components and dependency injection. In many cases false
    positives were flagged. Now, any unknown type is just ignored (it may still
    be invalid), and any invalid value throws a build error. For example:

    class A {
      // Might not be valid, but we no longer warn.
      @ViewChildren(SomeArbitraryType)
      List<SomeArbitraryType> someTypes;
    
      // We throw a build error.
      @ViewChildren(1234)
      List thisDoesNotWork;
    }
  • Implicit static tear-offs and field invocations are now supported:

    @Component(
      selector: 'example',
      template: '''
        <!-- Invoking an implicit static field. -->
        <div>{{field()}}</div>
    
        <!-- Binding an implicit static tear-off. -->
        <div [invoke]="tearOff"></div>
      ''',
    )
    class ExampleComponent {
      static String Function() field = () => 'Hello world';
      static String tearOff() => 'Hello world';
    }

5.0.0-beta+1

New features

  • A warning is produced if the compiler removes any elements
    (such as <script>) from your template. This may become an error in future
    versions of AngularDart. Closes #1280.

  • A warning is produced if the selector provided to a query (such as
    @ViewChildren(...)) is invalid and will not produce any elements at
    runtime. This may become an error in future versions of AngularDart.
    Closes #1220.

  • It is now possible to annotate parts of a template with
    @preserveWhitespace instead of opting into preserving whitespace for the
    entire template. Closes #1295:

    <div>
      <div class="whitespace-sensitive" @preserveWhitespace>
        Hello
        World!
      </div>
    </div>
  • Added package:angular/meta.dart, a series of utilities for additional
    static analysis checks and/or functions to retain semantics for migration
    purposes, starting with castCallback1ForDirective and
    castCallback2ForDirective. These methods are only intended to be used
    as stop-gaps for the lack of generic support in AngularDart directives and
    components. Closes #1489.

Bug fixes

  • Fails the build immediately if an element in a component's pipes list is
    unresolved.

  • Support inherited method tear-offs in event listeners. Previously, we only
    considered methods in the Component class itself. Closes #506.

  • Fixed a bug where [attr.name.if] did not work on a static @HostBinding.
    Closes #1484.

Other improvements

  • Fixed a bug where many queries (@ViewChildren() and the like) generated
    additional runtime casts in production mode. Now in Dart2JS with
    --omit-implicit-checks the casts are removed.

  • Emits more optimized code when there are multiple data bindings in a row
    that are checked only once (such as final strings). Previously we
    generated redundant code.

  • Fixed an optimization issue when @ViewChild() or @ContentChild() was
    used on a nested element (i.e. inside a <template>). The code that was
    produced accidentally created two queries instead of one.
    Closes #1455.

angular_ast

0.5.4

  • Add CloseElementAst complement into ContainerAst.
  • Added support for annotations on <template>.
  • The whitespace transformer now understands @preserveWhitespace.

angular_compiler

0.4.0-alpha+18

  • Added $Typed, a TypeChecker for Typed.
  • Added TypeReader for parsing generic directive types.

0.4.0-alpha+17

  • Maintenance release.
  • The minimum SDK version is now sdk: ">=2.0.0-dev.64.2 <2.0.0".

angular_forms

2.0.0-beta+2

New Features

  • Add AbstractControlGroup and AbstractNgForm to allow infrastructure to
    create their own form systems that can be backed by types such as a proto,
    or have different control group logic.

Breaking Changes

  • Use value from AbstractControl for valueChanges event instead of internal
    variable. Allows code to more easily subclass AbstractControl.

2.0.0-beta+1

  • Maintenance release; declare official support for the Dart2 SDK.

angular_router

2.0.0-alpha+17

New features

  • RouteDefinition.redirect now supports forwarding route parameters.

2.0.0-alpha+16

  • Maintenance release; declare official support for the Dart2 SDK.

angular_test

2.0.0-beta+2

  • Maintenence release: Stop using SCREAMING_CAPS consts from dart:*.

2.0.0-beta+1

  • Maintenance release; declare official support for the Dart2 SDK.