This project is mirrored from https://github.com/angular/angular.git.
Pull mirroring updated .
- Oct 28, 2017
-
-
Matias Niemelä authored
-
Matias Niemelä authored
-
Ward Bell authored
This change coincidentally updates other packages that were in `package.json` because it regenerates `yarn.lock`. This too should be fine. PR Close #19985
-
Chuck Jazdzewski authored
The host view doesn't map back to user code so the template compiler produces a blank `url` for them. PR Close #19965
-
Hans Larsen authored
This adds the proper bindings for calling angular packages from platform-server in the UMD. This was not a problem for universal apps that dont use UMD. Fixes 19899
-
- Oct 27, 2017
-
-
Matias Niemelä authored
-
Matias Niemelä authored
-
Tobias Bosch authored
Fixes #19951 PR Close #19953
-
Tobias Bosch authored
This also changes the compiler so that we throw less often on structural changes and produce a meaningful state in the `ng.Program` in case of errors. Related to #19951 PR Close #19953
-
Tobias Bosch authored
This prevents errors reported against `.ngfactory.ts` files show up as the result of running `ngc`. Closes #19935 PR Close #19953
-
Tobias Bosch authored
Previously, `listLazyRoute` would store invalid information in a compiler internal cache, which lead to incorrect paths that were used during emit. This commit fixes this. PR Close #19953
-
Alex Rickabaugh authored
Observable.merge was called using .call() as if it were an operator and not an Observable factory. This removes the .call() and uses the factory properly. PR Close #19962
-
Alex Rickabaugh authored
Importing ServiceWorkerModule.register() will schedule registration of the Service Worker inside an APP_INITIALIZER. Previously, the Promise returned by navigator.serviceWorker.register() was returned from the initializer function. This has the unwanted side effect of blocking initialization until the SW is registered. Even worse, if the SW script fails to load, this can cause the app initialization to fail. The solution is to not return the registration promise from the initializer function, essentially decoupling registration from the rest of the initialization flow. This change is not unit testable as there are no mocks/adapters yet for navigator.serviceWorker. A future integration test should cover this case with better fidelity. PR Close #19936
-
Alex Rickabaugh authored
Currently, the SwUpdate service doesn't receive messages from the SW. This is because it attempts to subscribe to the 'message' event on ServiceWorkerRegistration, when really messages are emitted by the ServiceWorkerContainer. This change moves to listening on ServiceWorkerContainer and changes the mocks to reflect the way the browser actually works. PR Close #19954
-
- Oct 26, 2017
-
-
Matias Niemelä authored
-
Matias Niemelä authored
-
Jason Aden authored
PR Close #19931
-
Tobias Bosch authored
fix(compiler): automatically set `emitDecoratorMetadata` when `"annotationsAs": "static fields”` (#19927) This is a workaround for https://github.com/angular/tsickle/issues/635. Fixes #19916 PR Close #19927
-
- Oct 25, 2017
-
-
Chuck Jazdzewski authored
The path mapping was broken for Windows by fc0b1d5b. Fixed the path mapping and put code in place to make such a problem to sneek by again. PR Close #19915
-
Chuck Jazdzewski authored
The error collector changes behavior of the metadata resolver in ways that haven't been fully hardened. This changes limits its use to the lazy route detection and the language service. Issue: #19906 PR Close #19912
-
Tobias Bosch authored
This change is needed to prevent users’ builds from breaking. If a user sets `fullTemlateTypeCheck` to true, we will continue to check the templates even when `skipTemplateCodegen` is true as well. Related to #19906 PR Close #19909
-
- Oct 24, 2017
-
-
Matias Niemelä authored
-
Matias Niemelä authored
-
Chuck Jazdzewski authored
This fixes a problem introduced in 8d45fefc which modified how diagnostic error messages are reported for structural metadata errors causing some of the diagnostics to be lost. PR Close #19886
-
Matias Niemelä authored
-
Matias Niemelä authored
-
Alex Rickabaugh authored
PR Close #19875
-
Alex Rickabaugh authored
Fixes #19838 PR Close #19875
-
Alex Rickabaugh authored
PR Close #19875
-
Tobias Bosch authored
Fixes #19718 PR Close #19836
-
Tobias Bosch authored
Usages of `NgTools_InternalApi_NG_2` from `@angular/compiler-cli` will now throw an error. Adds `listLazyRoutes` to `@angular/compiler-cli/ngtools2.ts` for getting the lazy routes of a `ng.Program`. PR Close #19836
-
Alex Eagle authored
This lets other callers of compile() choose different formatting for the diagnostics PR Close #19879
-
Alex Rickabaugh authored
There is no difference in runtime (yet) between versioned and unversioned files. Theoretically, the SW does not have to cache-bust versioned files, but the SW doesn't cache bust files on the first request anyway, so in the common case it doesn't matter. If the hash doesn't match, the SW will cache bust the file to be sure, which is technically unnecessary, but since the file itself is versioned, the likelihood of this happening is rare. This fixes a critical bug where versioned files were erroneously not included in the hashTable in the generated manifest. This could lead to applications not updating if only versioned files changed in between versions. PR Close #19837
-
- Oct 21, 2017
-
-
George Kalpakas authored
-
Peter Bacon Darwin authored
-
Peter Bacon Darwin authored
The GaService and the E2E specs were unnecessarily complicated and had arbitrary async timeouts to ensure that the interplay between the GA library code and the rest of the app worked correctly. This resulted in potential flaky tests if the timeouts were not adequate; this was experienced when Travis upgraded to Chrome 62. The new approach is to block loading of the Analytics library altogether if there is a `__e2e__` flag set in the `SessionStorage` of the browser. It doesn't appear to be enough just to set the flag directly on the window. I think this is because the window gets cleaned when navigation occurs (but I am not certain). The downside of this is that we had to add a small piece of extra logic to the GA snippet in index.html; and we also had to switch from using `<script async ...>` to a programmatic approach to loading the GA library which prevents the browser from eagerly fetching the library. This may be mitigated by adding it to the HTTP/2 push configuration of the Firebase hosting. Re-enables the test that was disabled in https://github.com/angular/angular/pull/19784 Closes #19785
-
Filipe Silva authored
-
Filipe Silva authored
This reverts commit 8bcb2681.
-
- Oct 19, 2017
-
-
Tobias Bosch authored
-
Tobias Bosch authored
-