Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/angular/angular.git. Pull mirroring updated .
  1. Apr 04, 2019
  2. Apr 03, 2019
  3. Apr 02, 2019
    • George Kalpakas's avatar
      test(docs-infra): avoid click-related CI flake in e2e test (#29641) · deca6a60
      George Kalpakas authored
      One of the tests introduced in #29601 is susceptible to a kind of
      WebDriver flake related to trying to click elements hidden behind fixed
      positioned elements.
      This commit works around the issue by clicking the elements directly
      using JavaScript (instead of `WebElement#click()`).
      
      PR Close #29641
      deca6a60
    • Pete Bacon Darwin's avatar
      fix(ivy): support finding the import of namespace-imported identifiers (#27675) · 63013f1a
      Pete Bacon Darwin authored
      Currently there is no support in ngtsc for imports of the form:
      
      ```
      import * as core from `@angular/core`
      
      export function forRoot(): core.ModuleWithProviders;
      ```
      
      This commit modifies the `ReflectionHost.getImportOfIdentifier(id)`
      method, so that it supports this kind of return type.
      
      PR Close #27675
      63013f1a
    • Filipe Silva's avatar
      docs: add Web Worker guide (#29633) · 8bfaaf16
      Filipe Silva authored
      Followup to https://github.com/angular/angular-cli/pull/13700
      
      PR Close #29633
      8bfaaf16
    • cexbrayat's avatar
      docs: improve formatDate description (#29632) · 1f469cd7
      cexbrayat authored
      PR #29289 reworded the description, making it less obvious that the value to format can be a `Date`.
      
      PR Close #29632
      1f469cd7
    • Alex Rickabaugh's avatar
      perf(ivy): basic incremental compilation for ngtsc (#29380) · 7041e615
      Alex Rickabaugh authored
      This commit introduces a mechanism for incremental compilation to the ngtsc
      compiler.
      
      Previously, incremental information was used in the construction of the
      ts.Program for subsequent compilations, but was not used in ngtsc itself.
      
      This commit adds an IncrementalState class, which tracks state between ngtsc
      compilations. Currently, this supports skipping the TypeScript emit step
      when the compiler can prove the contents of emit have not changed.
      
      This is implemented for @Injectables as well as for files which don't
      contain any Angular decorated types. These are the only files which can be
      proven to be safe today.
      
      See ngtsc/incremental/README.md for more details.
      
      PR Close #29380
      7041e615
    • Alex Rickabaugh's avatar
      test(ivy): support multiple compilations in the ngtsc test env (#29380) · 7316212c
      Alex Rickabaugh authored
      This commit adds support for compiling the same program repeatedly in a way
      that's similar to how incremental builds work in a tool such as the CLI.
      
      * support is added to the compiler entrypoint for reuse of the Program
        object between compilations. This is the basis of the compiler's
        incremental compilation model.
      
      * support is added to wrap the CompilerHost the compiler creates and cache
        ts.SourceFiles in between compilations.
      
      * support is added to track when files are emitted, for assertion purposes.
      
      * an 'exclude' section is added to the base tsconfig to prevent .d.ts
        outputs from the first compilation from becoming inputs to any subsequent
        compilations.
      
      PR Close #29380
      7316212c
    • Alex Rickabaugh's avatar
      feat(ivy): performance trace mechanism for ngtsc (#29380) · aaa16f28
      Alex Rickabaugh authored
      This commit adds a `tracePerformance` option for tsconfig.json. When
      specified, it causes a JSON file with timing information from the ngtsc
      compiler to be emitted at the specified path.
      
      This tracing system is used to instrument the analysis/emit phases of
      compilation, and will be useful in debugging future integration work with
      @angular/cli.
      
      See ngtsc/perf/README.md for more details.
      
      PR Close #29380
      aaa16f28
    • Alex Rickabaugh's avatar
      fix(ivy): avoid remote scoping if it's not actually required (#29404) · 3e569767
      Alex Rickabaugh authored
      Currently, ngtsc decides to use remote scoping if the compilation of a
      component may create a cyclic import. This happens if there are two
      components in a scope (say, A and B) and A directly uses B. During
      compilation of B ngtsc will then note that if B were to use A, a cycle would
      be generated, and so it will opt to use remote scoping for B.
      
      ngtsc already uses the R3TargetBinder to correctly track the imports that
      are actually required, for future cycle tracking. This commit expands that
      usage to not trigger remote scoping unless B actually does consume A in its
      template.
      
      PR Close #29404
      3e569767
    • Tim Deschryver's avatar
      docs: fix typos in getting started (#29640) · abf69dec
      Tim Deschryver authored
      PR Close #29640
      abf69dec