You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): drop support for zone.js 0.10.x (#40823)
With this change we drop support for zone.js 0.10.x.
This is needed because in version 12 the CLI will only work with `~0.11.4`. See angular/angular-cli#20034.
BREAKING CHANGE:
Minimum supported `zone.js` version is `0.11.4`
PR Close#40823
in polyfills.ts, import the `zone-bluebird` package.
46
45
47
46
```
48
-
import 'zone.js/dist/zone'; // Included with Angular CLI.
49
-
import 'zone.js/dist/zone-bluebird';
47
+
import 'zone.js'; // Included with Angular CLI.
48
+
import 'zone.js/plugins/zone-bluebird';
50
49
```
51
50
52
51
in main.ts, patch bluebird.
@@ -67,7 +66,7 @@ Node Sample Usage:
67
66
```
68
67
require('zone.js');
69
68
const Bluebird = require('bluebird');
70
-
require('zone.js/dist/zone-bluebird');
69
+
require('zone.js/plugins/zone-bluebird');
71
70
Zone[Zone['__symbol__']('bluebird')](Bluebird);
72
71
Zone.current.fork({
73
72
name: 'bluebird'
@@ -178,7 +177,7 @@ is patched, so each asynchronous call will run in the correct zone.
178
177
For example, in an Angular application, you can load this patch in your `app.module.ts`.
179
178
180
179
```
181
-
import 'zone.js/dist/zone-patch-rxjs';
180
+
import 'zone.js/plugins/zone-patch-rxjs';
182
181
```
183
182
184
183
* electron
@@ -194,9 +193,9 @@ In electron, we patched the following APIs with `zone.js`
194
193
add following line into `polyfill.ts` after loading zone-mix.
195
194
196
195
```
197
-
//import 'zone.js/dist/zone'; // originally added by angular-cli, comment it out
198
-
import 'zone.js/dist/zone-mix'; // add zone-mix to patch both Browser and Nodejs
199
-
import 'zone.js/dist/zone-patch-electron'; // add zone-patch-electron to patch Electron native API
196
+
//import 'zone.js'; // originally added by angular-cli, comment it out
197
+
import 'zone.js/mix'; // add zone-mix to patch both Browser and Nodejs
198
+
import 'zone.js/plugins/zone-patch-electron'; // add zone-patch-electron to patch Electron native API
200
199
```
201
200
202
201
there is a sampel repo [zone-electron](https://github.com/JiaLiPassion/zone-electron).
@@ -207,8 +206,8 @@ user need to patch `io` themselves just like following code.
@@ -229,7 +228,7 @@ there is a sampel repo [zone-jsonp](https://github.com/JiaLiPassion/test-zone-js
229
228
sample usage is:
230
229
231
230
```javascript
232
-
import'zone.js/dist/zone-patch-jsonp';
231
+
import'zone.js/plugins/zone-patch-jsonp';
233
232
Zone['__zone_symbol__jsonp']({
234
233
jsonp: getJSONP,
235
234
sendFuncName:'send',
@@ -243,8 +242,8 @@ Currently only `Chrome 64` native support this feature.
243
242
you can add the following line into `polyfill.ts` after loading `zone.js`.
there is a sample repo [zone-resize-observer](https://github.com/JiaLiPassion/zone-resize-observer) here
0 commit comments