diff --git a/.circleci/config.yml b/.circleci/config.yml index 398b698ee7..625c644f70 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -731,8 +731,8 @@ jobs: - run: yarn --cwd packages/zone.js promisetest - run: yarn --cwd packages/zone.js promisefinallytest - run: yarn bazel build //packages/zone.js:npm_package && - cp dist/bin/packages/zone.js/npm_package/dist/zone-mix.js ./packages/zone.js/test/extra/ && - cp dist/bin/packages/zone.js/npm_package/dist/zone-patch-electron.js ./packages/zone.js/test/extra/ && + cp dist/bin/packages/zone.js/npm_package/bundles/zone-mix.umd.js ./packages/zone.js/test/extra/ && + cp dist/bin/packages/zone.js/npm_package/bundles/zone-patch-electron.umd.js ./packages/zone.js/test/extra/ && yarn --cwd packages/zone.js electrontest - run: yarn --cwd packages/zone.js jesttest diff --git a/BUILD.bazel b/BUILD.bazel index 7a97832224..48e84cc328 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -20,9 +20,9 @@ filegroup( # do not sort srcs = [ "@npm//:node_modules/core-js/client/core.js", - "//packages/zone.js/dist:zone.js", - "//packages/zone.js/dist:zone-testing.js", - "//packages/zone.js/dist:task-tracking.js", + "//packages/zone.js/bundles:zone.umd.js", + "//packages/zone.js/bundles:zone-testing.umd.js", + "//packages/zone.js/bundles:task-tracking.umd.js", "//:test-events.js", "//:shims_for_IE.js", # Including systemjs because it defines `__eval`, which produces correct stack traces. diff --git a/aio/content/examples/setup/src/index.html b/aio/content/examples/setup/src/index.html index d28fe05691..9943adfb10 100644 --- a/aio/content/examples/setup/src/index.html +++ b/aio/content/examples/setup/src/index.html @@ -11,7 +11,7 @@ - + - + diff --git a/aio/content/examples/upgrade-module/src/index-a-to-ajs-transclusion.html b/aio/content/examples/upgrade-module/src/index-a-to-ajs-transclusion.html index 767ce3312b..9a03da2748 100644 --- a/aio/content/examples/upgrade-module/src/index-a-to-ajs-transclusion.html +++ b/aio/content/examples/upgrade-module/src/index-a-to-ajs-transclusion.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-ajs-a-hybrid-bootstrap.html b/aio/content/examples/upgrade-module/src/index-ajs-a-hybrid-bootstrap.html index 7bcc58d0ee..f00aaf722f 100644 --- a/aio/content/examples/upgrade-module/src/index-ajs-a-hybrid-bootstrap.html +++ b/aio/content/examples/upgrade-module/src/index-ajs-a-hybrid-bootstrap.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-ajs-to-a-projection.html b/aio/content/examples/upgrade-module/src/index-ajs-to-a-projection.html index a49e5070df..4ce22ee94f 100644 --- a/aio/content/examples/upgrade-module/src/index-ajs-to-a-projection.html +++ b/aio/content/examples/upgrade-module/src/index-ajs-to-a-projection.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-ajs-to-a-providers.html b/aio/content/examples/upgrade-module/src/index-ajs-to-a-providers.html index a0cc20d068..c545edf8e6 100644 --- a/aio/content/examples/upgrade-module/src/index-ajs-to-a-providers.html +++ b/aio/content/examples/upgrade-module/src/index-ajs-to-a-providers.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-downgrade-io.html b/aio/content/examples/upgrade-module/src/index-downgrade-io.html index 0d71f04404..48956abdf4 100644 --- a/aio/content/examples/upgrade-module/src/index-downgrade-io.html +++ b/aio/content/examples/upgrade-module/src/index-downgrade-io.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-downgrade-static.html b/aio/content/examples/upgrade-module/src/index-downgrade-static.html index fe4e327292..7b68bc1cba 100644 --- a/aio/content/examples/upgrade-module/src/index-downgrade-static.html +++ b/aio/content/examples/upgrade-module/src/index-downgrade-static.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-upgrade-io.html b/aio/content/examples/upgrade-module/src/index-upgrade-io.html index 7d87a2fa27..e57a05bac2 100644 --- a/aio/content/examples/upgrade-module/src/index-upgrade-io.html +++ b/aio/content/examples/upgrade-module/src/index-upgrade-io.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-module/src/index-upgrade-static.html b/aio/content/examples/upgrade-module/src/index-upgrade-static.html index bd36796c55..74461d9ce2 100644 --- a/aio/content/examples/upgrade-module/src/index-upgrade-static.html +++ b/aio/content/examples/upgrade-module/src/index-upgrade-static.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/aot/index.html b/aio/content/examples/upgrade-phonecat-2-hybrid/aot/index.html index fdc9584928..a051e91e8d 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/aot/index.html +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/aot/index.html @@ -26,7 +26,7 @@ - + diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/copy-dist-files.js b/aio/content/examples/upgrade-phonecat-2-hybrid/copy-dist-files.js index a857af085c..50088e69ea 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/copy-dist-files.js +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/copy-dist-files.js @@ -3,7 +3,7 @@ var fsExtra = require('fs-extra'); var resources = [ // polyfills 'node_modules/core-js/client/shim.min.js', - 'node_modules/zone.js/dist/zone.min.js', + 'node_modules/zone.js/bundles/zone.umd.min.js', // css 'app/app.css', 'app/app.animations.css', @@ -20,6 +20,7 @@ var resources = [ 'app/phone-detail/phone-detail.module.js' ]; resources.map(function(sourcePath) { - var destPath = `aot/${sourcePath}`; + // Need to rename zone.umd.min.js to zone.min.js + var destPath = `aot/${sourcePath}`.replace('.umd.min.js', '.min.js'); fsExtra.copySync(sourcePath, destPath); }); diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/index.html b/aio/content/examples/upgrade-phonecat-2-hybrid/index.html index f747e641e0..f313fb2855 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/index.html +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/index.html @@ -27,7 +27,7 @@ - + diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.ajs.js b/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.ajs.js index 699b5075f7..ee2d3ea8e9 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.ajs.js +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.ajs.js @@ -21,8 +21,8 @@ module.exports = function(config) { 'node_modules/core-js/client/shim.js', // zone.js - 'node_modules/zone.js/dist/zone.js', - 'node_modules/zone.js/dist/zone-testing.js', + 'node_modules/zone.js/bundles/zone.umd.js', + 'node_modules/zone.js/bundles/zone-testing.umd.js', // RxJs. { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.js b/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.js index fe8a6bc8dc..a90f534178 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.js +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.js @@ -31,8 +31,8 @@ module.exports = function(config) { 'node_modules/core-js/client/shim.js', // zone.js - 'node_modules/zone.js/dist/zone.js', - 'node_modules/zone.js/dist/zone-testing.js', + 'node_modules/zone.js/bundles/zone.umd.js', + 'node_modules/zone.js/bundles/zone-testing.umd.js', // RxJs { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, diff --git a/aio/content/examples/upgrade-phonecat-3-final/index.html b/aio/content/examples/upgrade-phonecat-3-final/index.html index fee59370e6..5a74aba36d 100644 --- a/aio/content/examples/upgrade-phonecat-3-final/index.html +++ b/aio/content/examples/upgrade-phonecat-3-final/index.html @@ -12,7 +12,7 @@ - + diff --git a/aio/content/examples/upgrade-phonecat-3-final/karma.conf.js b/aio/content/examples/upgrade-phonecat-3-final/karma.conf.js index d290d6e61e..455eae2715 100644 --- a/aio/content/examples/upgrade-phonecat-3-final/karma.conf.js +++ b/aio/content/examples/upgrade-phonecat-3-final/karma.conf.js @@ -31,8 +31,8 @@ module.exports = function(config) { 'node_modules/core-js/client/shim.js', // zone.js - 'node_modules/zone.js/dist/zone.js', - 'node_modules/zone.js/dist/zone-testing.js', + 'node_modules/zone.js/bundles/zone.umd.js', + 'node_modules/zone.js/bundles/zone-testing.umd.js', // RxJs { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, diff --git a/aio/content/guide/browser-support.md b/aio/content/guide/browser-support.md index 9a3d7b57bf..b4e315b97b 100644 --- a/aio/content/guide/browser-support.md +++ b/aio/content/guide/browser-support.md @@ -526,7 +526,7 @@ For example: // __Zone_enable_cross_context_check = true; </script> <!-- zone.js required by Angular --> - <script src="node_modules/zone.js/dist/zone.js"></script> + <script src="node_modules/zone.js/bundles/zone.umd.js"></script> <!-- application polyfills --> diff --git a/aio/content/guide/universal.md b/aio/content/guide/universal.md index 8ac0f40efd..d7b70c5ad9 100644 --- a/aio/content/guide/universal.md +++ b/aio/content/guide/universal.md @@ -227,7 +227,7 @@ as a navigation URL intended for the router. Fortunately, application routes have something in common: their URLs lack file extensions. (Data requests also lack extensions but they're easy to recognize because they always begin with `/api`.) -All static asset requests have a file extension (such as `main.js` or `/node_modules/zone.js/dist/zone.js`). +All static asset requests have a file extension (such as `main.js` or `/node_modules/zone.js/bundles/zone.umd.js`). Because we use routing, we can easily recognize the three types of requests and handle them differently. diff --git a/dev-infra/benchmark/component_benchmark/component_benchmark.bzl b/dev-infra/benchmark/component_benchmark/component_benchmark.bzl index da68981680..9394cdd69a 100644 --- a/dev-infra/benchmark/component_benchmark/component_benchmark.bzl +++ b/dev-infra/benchmark/component_benchmark/component_benchmark.bzl @@ -129,7 +129,7 @@ def component_benchmark( # The server for our application. ts_devserver( name = server, - bootstrap = ["//packages/zone.js/dist:zone.js"], + bootstrap = ["//packages/zone.js/bundles:zone.umd.js"], port = 4200, static_files = assets + styles, deps = [":" + app_main + ".min_debug.es2015.js"], diff --git a/integration/bazel/package.json b/integration/bazel/package.json index 5a95287ca0..b87ab109d0 100644 --- a/integration/bazel/package.json +++ b/integration/bazel/package.json @@ -16,7 +16,7 @@ "reflect-metadata": "0.1.12", "rxjs": "file:../../node_modules/rxjs", "tslib": "file:../../node_modules/tslib", - "zone.js": "0.10.3" + "zone.js": "file:../../dist/zone.js-dist" }, "devDependencies": { "@angular/bazel": "file:../../dist/packages-dist/bazel", diff --git a/integration/bazel/src/BUILD.bazel b/integration/bazel/src/BUILD.bazel index 65dbb8ff41..2968f24a0d 100644 --- a/integration/bazel/src/BUILD.bazel +++ b/integration/bazel/src/BUILD.bazel @@ -46,7 +46,7 @@ ts_devserver( serving_path = "/bundle.min.js", static_files = [ "index.html", - "@npm//:node_modules/zone.js/dist/zone.min.js", + "@npm//:node_modules/zone.js/bundles/zone.umd.min.js", ], deps = ["//src"], ) @@ -72,7 +72,7 @@ pkg_web( srcs = [ "index.html", ":bundle.min", - "@npm//:node_modules/zone.js/dist/zone.min.js", + "@npm//:node_modules/zone.js/bundles/zone.umd.min.js", ], ) diff --git a/integration/bazel/src/hello-world/BUILD.bazel b/integration/bazel/src/hello-world/BUILD.bazel index cfc93212a9..5f72e67774 100644 --- a/integration/bazel/src/hello-world/BUILD.bazel +++ b/integration/bazel/src/hello-world/BUILD.bazel @@ -49,7 +49,7 @@ ts_library( karma_web_test_suite( name = "test", bootstrap = [ - "@npm//:node_modules/zone.js/dist/zone-testing-bundle.js", + "@npm//:node_modules/zone.js/bundles/zone-testing-bundle.umd.js", "@npm//:node_modules/reflect-metadata/Reflect.js", ], browsers = [ diff --git a/integration/bazel/src/index.html b/integration/bazel/src/index.html index a23562e782..c422507145 100644 --- a/integration/bazel/src/index.html +++ b/integration/bazel/src/index.html @@ -9,7 +9,7 @@