angular-cn/packages
Alex Rickabaugh b9a91a5e74 fix(service-worker): don't crash if SW not supported
Currently a bug exists where attempting to inject SwPush crashes the
application if Service Workers are unsupported. This happens because
SwPush doesn't properly detect that navigator.serviceWorker isn't
set.

This change ensures that all passive observation of SwPush and
SwUpdate doesn't cause crashes, and that calling methods to perform
actions on them results in rejected Promises. It's up to applications
to detect when those services are not available, and refrain from
attempting to use them.

To that end, this change also adds an `isSupported` getter to both
services, so users don't have to rely on feature detection directly
with browser APIs. Currently this simply detects whether the SW API
is present, but in the future it will be expanded to detect whether
a particular browser supports specific APIs (such as push
notifications, for example).
2017-12-01 14:18:16 -08:00
..
animations fix(animations): ensure multi-level leave animations work (#19455) 2017-11-28 18:24:41 -06:00
bazel fix(bazel): produce named AMD modules for codegen (#20547) 2017-11-27 13:44:41 -06:00
benchpress fix(benchpress): Allow ignoring navigationStart events in perflog metric. (#20312) 2017-11-16 16:18:38 -06:00
common fix(common): don't strip XSSI prefix for if error isn't JSON (#19958) 2017-11-28 22:27:10 -06:00
compiler fix(compiler): correctly detect when to serialze summary metadata (#20668) 2017-11-28 16:43:35 -06:00
compiler-cli fix(compiler-cli): fix memory leak in program creation (#20692) 2017-11-29 16:53:11 -06:00
core fix(animations): ensure multi-level leave animations work (#19455) 2017-11-28 18:24:41 -06:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
forms fix(forms): updateOn should check if change occurred (#20358) 2017-11-17 16:28:46 -06:00
http fix: add missing globals from each rollup configuration (#20028) 2017-10-30 23:09:17 -04:00
language-service fix(language-service): Allow empty templates (#20651) 2017-11-29 16:52:55 -06:00
platform-browser Revert "fix(core): should use native addEventListener in ngZone (#20672)" 2017-11-29 14:56:29 -06:00
platform-browser-dynamic feat(platform-browser-dynamic): export `JitCompilerFactory` (#20478) 2017-11-22 08:56:11 -06:00
platform-server fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
platform-webworker fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
platform-webworker-dynamic refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
router fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
service-worker fix(service-worker): don't crash if SW not supported 2017-12-01 14:18:16 -08:00
upgrade fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
BUILD.bazel build: update to latest @bazel/typescript (#19277) 2017-09-25 12:40:22 -07:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json refactor: update angular to support TypeScript 2.4 2017-09-12 10:31:30 -07:00
tsconfig-metadata.json refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tsconfig.json build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
types.d.ts fix: don’t use the global `ng` at all with closure enhanced optimizations 2017-09-27 10:09:56 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT