Go to file
Alex Rickabaugh f10f8db5fb fix(service-worker): several misc fixes for corner cases
This commit fixes several issues discovered through use in real apps.

* The sha1() function operated on text content, causing issues for binary-format files.
  A sha1Binary() function which operates on unparsed data now avoids any encoding issues.
* The characters '?' and '+' were not escaped in Glob-to-regex conversion previously, but
  are now.
* URLs from the browser contain the full origin, but were checked against the table of
  hashes from the manifest which only has the path for URLs from the same origin. Now the
  origin is checked and URLs are relativized to the domain root before comparison if
  appropriate.
* ngsw: prefix was missing from data groups, is now added.
* Occasionally servers will return a redirected response for an asset, and caching it could
  cause errors for navigation requests. The SW now handles this by detecting such responses
  and following the redirect manually, to avoid caching a redirected response.
* The request for known assets is now created from scratch from the URL before fetching from
  the network, in order to sanitize it and avoid carrying any special modes or headers that
  might result in opaque responses.
* Debugging log for troubleshooting.
* Avoid creating errors by returning 504 responses on error.
* Fix bug where idle queue doesn't run in some circumstances.
* Add tests for the above.
2017-10-05 13:27:31 -07:00
.circleci build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
.github docs: does please -> does (#18044) 2017-07-11 11:46:57 -07:00
aio docs(aio): document Custom Async validators 2017-10-04 15:07:46 -07:00
docs docs: add 'bazel' as an Angular component (#19346) 2017-09-28 09:28:42 -07:00
integration test: increase polyfills size upper limit in CLI integration tests 2017-09-27 17:04:24 -07:00
modules refactor(core): add a checkIndex to the compiler view nodes 2017-10-04 14:55:54 -07:00
packages fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
scripts refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tools fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
.bazelrc build: ngc-wrapped as a bazel worker (#18960) 2017-09-01 12:23:11 -05:00
.bowerrc chore(dgeni): clean up legacy typings bundle creation 2015-10-29 21:19:59 +00:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig chore(.editorconfig): include markdown config 2015-01-27 00:14:48 -08:00
.gitattributes chore: force lf EOL for ts files (#11143) 2016-08-29 12:41:58 -07:00
.gitignore build(common): extract i18n locale data from cldr (#18284) 2017-08-22 15:43:04 -05:00
.nvmrc ci: bump node version to 6.9.5 and npm to 3.10.7 2017-02-02 23:28:00 -08:00
.pullapprove.yml docs: add 'bazel' as an Angular component (#19346) 2017-09-28 09:28:42 -07:00
.travis.yml ci(aio): compute AIO deployment mode 2017-08-04 09:14:18 -07:00
BUILD.bazel build: ngc-wrapped as a bazel worker (#18960) 2017-09-01 12:23:11 -05:00
CHANGELOG.md docs: add changelog for 5.0.0-rc.0 2017-09-28 16:29:39 -07:00
CONTRIBUTING.md build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
LICENSE style(docs): update copyright years (#13736) 2017-01-27 20:47:14 -08:00
README.md docs: add BrowserStack badge to README.md (#19314) 2017-09-22 13:09:18 -07:00
WORKSPACE build: update to latest @bazel/typescript (#19277) 2017-09-25 12:40:22 -07:00
bower.json docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
browser-providers.conf.js ci: add Android 6 and 7 (#18803) 2017-09-22 13:13:59 -07:00
build.sh feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
gulpfile.js test(packaging): added test for source map correctness 2017-09-12 16:59:32 -04:00
karma-js.conf.js build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
package.json release: cut the 5.0.0-rc.0 release 2017-09-28 16:26:00 -07:00
protractor-e2e.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
protractor-examples-e2e.conf.js refactor: format and lint code 2016-12-12 11:30:25 -08:00
protractor-perf.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
shims_for_IE.js Revert "refactor: add license header to JS files & format files (#12035)" 2016-10-04 14:06:41 -07:00
test-events.js fix(platform-browser): run BLACK_LISTED_EVENTS outside of ngZone (#18993) 2017-09-05 15:33:22 -05:00
test-main.js feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
test.sh build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
tslint.json build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
yarn.lock build: update to latest @bazel/typescript (#19277) 2017-09-25 12:40:22 -07:00
yarn.lock.readme.md build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00

README.md

Build Status CircleCI BrowserStack Status Join the chat at https://gitter.im/angular/angular Issue Stats Issue Stats npm version

Sauce Test Status

Safari (7+), iOS (7+) and IE mobile (11) are tested on BrowserStack.

Angular

Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.

Quickstart

Get started in 5 minutes.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.