angular/aio/content/guide
JiaLiPassion 583a9d38a1 feat(zone.js): upgrade zone.js to angular package format(APF) (#36540)
Close #35157

In the current version of zone.js, zone.js uses it's own package format, and it is not following the rule
of Angualr package format(APF), so it is not easily to be consumed by Angular CLI or other bundle tools.
For example, zone.js npm package has two bundles,

1. zone.js/dist/zone.js, this is a `es5` bundle.
2. zone.js/dist/zone-evergreen.js, this is a `es2015` bundle.

And Angular CLI has to add some hard-coding code to handle this case, o5376a8b139/packages/schematics/angular/application/files/src/polyfills.ts.template (L55-L58)

This PR upgrade zone.js npm package format to follow APF rule, https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx

The updated points are:

1. in package.json, update all bundle related properties

```
  "main": "./bundles/zone.umd.js",
  "module": "./fesm2015/zone.js",
  "es2015": "./fesm2015/zone.js",
  "fesm2015": "./fesm2015/zone.js",
```

2. re-organize dist folder, for example for `zone.js` bundle, now we have

```
  dist/
      bundles/
             zone.js            // this is the es5 bundle
      fesm2015/
             zone.js            // this is the es2015 bundle (in the old version is `zone-evergreen.js`)
```

3. have several sub-packages.

1. `zone-testing`, provide zone-testing bundles include zone.js and testing libraries
2. `zone-node`, provide zone.js implemention for NodeJS
3. `zone-mix`, provide zone.js patches for both Browser and NodeJS

All those sub-packages will have their own `package.json` and the bundle will reference `bundles(es5)` and `fesm2015(es2015)`.

4. keep backward compatibility, still keep the `zone.js/dist` folder, and all bundles will be redirected to `zone.js/bundles` or `zone.js/fesm2015` folders.

PR Close #36540
2020-06-11 11:08:48 -07:00
..
accessibility.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
ajs-quick-reference.md docs: refactor routing doc (#35566) 2020-04-16 10:36:01 -07:00
angular-compiler-options.md docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
animations.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
aot-compiler.md docs: correct typos in doc for template type guards (#37090) 2020-05-13 16:01:20 -07:00
aot-metadata-errors.md docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
app-shell.md docs: update universal docs for new ivy implementation (#33040) 2019-10-21 11:25:44 -04:00
architecture-components.md docs: improve startup nav, naming, and terminology (#35533) 2020-04-22 17:08:29 -04:00
architecture-modules.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
architecture-next-steps.md docs: Remove duplicate and (#37067) 2020-05-13 15:59:41 -07:00
architecture-services.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
architecture.md docs: place download section in architecture to the top (#36565) 2020-04-21 12:50:29 -04:00
attribute-directives.md docs: change p to pointer for better understanding (#34927) 2020-01-28 13:04:25 -08:00
bootstrapping.md docs: change page title and minor edit (#36021) 2020-04-01 13:16:18 -07:00
browser-support.md feat(zone.js): upgrade zone.js to angular package format(APF) (#36540) 2020-06-11 11:08:48 -07:00
build.md docs: fix typo (#36665) 2020-04-20 13:36:40 -04:00
cheatsheet.md docs: clarify meaning of injectable decorator (#31573) 2019-07-16 23:57:50 -04:00
cli-builder.md docs: add link to publish a library in ivy guide (#34986) 2020-01-27 10:50:52 -08:00
comparing-observables.md fix(docs-infra): convert hard-coded comparing-observables examples into a proper mini-app (#34327) 2020-01-21 13:14:46 -05:00
complex-animation-sequences.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
component-interaction.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
component-styles.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
creating-libraries.md docs: add note on publishing libraries in ivy (#36556) 2020-06-08 15:05:51 -07:00
dependency-injection-in-action.md docs(core): fix typo in dependency injection guide (interactive --> interacting) (#34853) 2020-01-21 13:03:04 -05:00
dependency-injection-navtree.md docs: fix typo in Dependency Injection guide (#36304) 2020-03-30 11:14:55 -07:00
dependency-injection-providers.md docs(core): add missing quote in dependency injection provider guide (#34854) 2020-01-21 13:02:29 -05:00
dependency-injection.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
deployment.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
deprecations.md docs: fix typo in deprecations (#37379) 2020-06-01 17:17:44 -04:00
displaying-data.md docs: Change important alert of ngFor (#36176) 2020-03-23 11:36:09 -07:00
docs-style-guide.md docs(docs-infra): fix small typo (#37258) 2020-06-08 14:42:49 -07:00
dynamic-component-loader.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
dynamic-form.md docs: refactor dynamic forms topic as tutorial (#36465) 2020-05-12 10:49:23 -07:00
elements.md docs: place download section to the top of the page (#36067) 2020-04-03 11:00:26 -07:00
entry-components.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
feature-modules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
file-structure.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
form-validation.md docs: refactor form validation doc to be task-oriented (#36374) 2020-05-11 10:59:50 -07:00
forms-overview.md docs: refactor template-driven forms doc as a tutorial (#36732) 2020-06-03 12:27:28 -07:00
forms.md docs: refactor template-driven forms doc as a tutorial (#36732) 2020-06-03 12:27:28 -07:00
frequent-ngmodules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
glossary.md docs: grammatical error in ngcc (#37156) 2020-05-18 10:23:51 -07:00
hierarchical-dependency-injection.md fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
http.md docs: fix various typos (#37443) 2020-06-04 16:03:54 -07:00
i18n.md docs: Ivy i18n guide updates for localize option (#34053) 2019-12-03 10:14:15 -08:00
ivy-compatibility-examples.md docs: add example to illustrate binding order differences in ivy (#36643) 2020-04-17 12:29:58 -04:00
ivy-compatibility.md docs: add example to illustrate binding order differences in ivy (#36643) 2020-04-17 12:29:58 -04:00
ivy.md docs: remove speeding update ngcc section (#36049) 2020-03-13 07:58:14 -07:00
language-service.md feat(docs-infra): simplify image styles and remove figure references (#33748) 2019-11-14 09:27:02 -08:00
lazy-loading-ngmodules.md docs: move lazy loading and preloading tasks from router to lazy loading doc (#36748) 2020-05-15 10:01:52 -07:00
libraries.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
lifecycle-hooks.md docs: refactor lifecycle hooks doc topic for task orientation (#36353) 2020-05-13 15:51:21 -07:00
migration-dynamic-flag.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
migration-injectable.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-localize.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-module-with-providers.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
migration-renderer.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-undecorated-classes.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
module-types.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodule-api.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
ngmodule-faq.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodule-vs-jsmodule.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
ngmodules.md refactor(docs-infra): remove linenums=false since it is now the default (#31674) 2019-07-24 14:38:54 -07:00
npm-packages.md build(docs-infra): update docs examples package.json templates wrt core-js (#36143) 2020-04-06 15:31:07 -07:00
observables-in-angular.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
observables.md docs: clarify observables doc with new titles and tooltips (#36023) 2020-03-27 10:49:03 -07:00
pipes.md docs: place download section in angular pipes to the top (#36073) 2020-04-03 11:01:08 -07:00
practical-observable-usage.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
providers.md docs: clarifies the service limitation (#36349) 2020-05-14 11:59:44 -07:00
reactive-forms.md docs: update reactive forms page (#35969) 2020-04-07 15:24:17 -07:00
releases.md docs: remove version ^7.0.0 from LTS support (#36708) 2020-04-20 13:38:04 -04:00
reusable-animations.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
route-animations.md docs: Clarifies code section is a continuation from the section above (#35111) 2020-02-06 15:31:41 -08:00
router-tutorial.md docs: Add new section, tutorials, to left nav, and a tutorial on routing (#36545) 2020-05-05 11:51:19 -07:00
router.md docs: move lazy loading and preloading tasks from router to lazy loading doc (#36748) 2020-05-15 10:01:52 -07:00
rx-library.md docs: update rxjs refs (#31780) 2019-08-08 12:15:29 -07:00
schematics-authoring.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
schematics-for-libraries.md docs: fix typo in Schematics guide (#36328) 2020-03-30 15:32:05 -07:00
schematics.md docs: make page titles and toc task-oriented (#36024) 2020-04-01 13:16:48 -07:00
security.md docs: add CSRF to XSRF section of http guide (#32933) 2019-11-21 16:57:12 -05:00
service-worker-communications.md docs: replace into with in (#36778) 2020-05-08 09:39:26 -07:00
service-worker-config.md docs(service-worker): add staleWhileRevalidate strategy (#37301) 2020-06-08 11:41:20 -07:00
service-worker-devops.md docs: clarrify use of sw behind redirect (#32915) 2019-10-21 16:50:52 -04:00
service-worker-getting-started.md docs: fix various typos (#37443) 2020-06-04 16:03:54 -07:00
service-worker-intro.md docs: reference articles specifically (#32221) 2019-08-26 15:03:04 -07:00
set-document-title.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
setup-local.md docs: improve startup nav, naming, and terminology (#35533) 2020-04-22 17:08:29 -04:00
sharing-ngmodules.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
singleton-services.md docs: reword explanation for using singleton services decorative to be more understandable (#35002) 2020-03-02 09:30:54 -08:00
static-query-migration.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
structural-directives.md docs: fix minor error in the "Structural directives" guide (#37452) 2020-06-05 09:20:43 -07:00
styleguide.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
template-syntax.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
template-typecheck.md docs: add doc for template type guards to stuctural-directives.md (#34549) 2020-05-12 14:40:01 -07:00
testing.md docs: Minor grammar fix: "bug-free" (#36515) 2020-06-11 11:07:54 -07:00
transition-and-triggers.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
typescript-configuration.md docs: add strictTemplates in place of fullTemplateTypeCheck (#35628) 2020-03-30 10:57:15 -07:00
universal.md feat(zone.js): upgrade zone.js to angular package format(APF) (#36540) 2020-06-11 11:08:48 -07:00
updating-to-version-9.md docs: update deprecation guide to move deprecated APIs to removals (#36891) 2020-05-05 11:55:58 -07:00
updating.md docs: remove the release schedule from docs (#34474) 2020-02-06 14:29:21 -08:00
upgrade-performance.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
upgrade-setup.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
upgrade.md docs(upgrade): remove outdated/non-applicable AOT section from upgrade guide (#36015) 2020-03-18 10:00:02 -07:00
user-input.md feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -08:00
using-libraries.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
visual-studio-2015.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
web-worker.md docs: add missing command in WebWorker guide (#36397) 2020-04-06 09:29:17 -07:00
workspace-config.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
zone.md docs(zone.js): fix typos in NgZone guide code example (#36597) 2020-04-13 08:16:59 -07:00