Skip to content

Commit 805083e

Browse files
authored
Merge pull request NativeScript#448 from NativeScript/hdeshev/ng-rc7
Support NG RC7
2 parents 51d2ed6 + c29da8f commit 805083e

File tree

8 files changed

+895
-39
lines changed

8 files changed

+895
-39
lines changed

doc/upgrading-zonejs.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Upgrading Zone.js
2+
3+
`nativescript-angular` uses a fork of the `zone.js` package in order to work around incompatibilities between node, browser, and mobile implementations.
4+
5+
The fork resides at https://github.com/NativeScript/zone.js in the `zone-nativescript` branch. It adds a separate `lib/nativescript/nativescript.ts` entry point that is used to generate a new bundle: `dist/zone-nativescript.js`.
6+
7+
To upgrade to a newer release of `zone.js`:
8+
9+
1. Identify the upgrade target -- most likely a release tag.
10+
2. Rebase the `zone-nativescript` branch on top of the upgrade target.
11+
3. Rebuild: `gulp build`
12+
4. Run the node-based smoke tests: `gulp test/nativescript`
13+
5. Run the browser tests: `node_modules/.bin/karma start karma.conf.js --single-run` (You need to run node `test/ws-server.js` in a separate console first)
14+
6. Commit `dist/zone-nativescript.js`, drop the previous `dist/zone-nativescript.js` commit from the branch. Force push the new `zone-nativescript` branch to GitHub.
15+
7. Update your copy of `nativescript-angular/zone.js/dist/zone-nativescript.js` with the bundle you just built.

nativescript-angular/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "nativescript-angular",
4-
"version": "0.5.1",
4+
"version": "0.6.0",
55
"description": "An Angular 2 renderer that lets you build mobile apps with NativeScript.",
66
"homepage": "http://www.telerik.com",
77
"bugs": "http://www.telerik.com",
@@ -19,17 +19,16 @@
1919
},
2020
"dependencies": {
2121
"nativescript-intl": "^0.0.4",
22-
"@angular/core": "2.0.0-rc.6",
23-
"@angular/common": "2.0.0-rc.6",
24-
"@angular/compiler": "2.0.0-rc.6",
25-
"@angular/http": "2.0.0-rc.6",
26-
"@angular/platform-browser": "2.0.0-rc.6",
27-
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
28-
"@angular/platform-server": "2.0.0-rc.6",
29-
"@angular/forms": "2.0.0-rc.6",
30-
"@angular/router": "3.0.0-rc.2",
31-
"rxjs": "5.0.0-beta.11",
32-
"zone.js": "^0.6.17",
22+
"@angular/core": "2.0.0-rc.7",
23+
"@angular/common": "2.0.0-rc.7",
24+
"@angular/compiler": "2.0.0-rc.7",
25+
"@angular/http": "2.0.0-rc.7",
26+
"@angular/platform-browser": "2.0.0-rc.7",
27+
"@angular/platform-browser-dynamic": "2.0.0-rc.7",
28+
"@angular/platform-server": "2.0.0-rc.7",
29+
"@angular/forms": "2.0.0-rc.7",
30+
"@angular/router": "3.0.0-rc.3",
31+
"rxjs": "5.0.0-beta.12",
3332
"reflect-metadata": "^0.1.8",
3433
"parse5": "1.3.2",
3534
"punycode": "1.3.2",
@@ -38,6 +37,7 @@
3837
},
3938
"devDependencies": {
4039
"tns-core-modules": ">=2.2.0 || >=2.2.0-2016",
40+
"zone.js": "^0.6.21",
4141
"typescript": "^1.8.10"
4242
},
4343
"nativescript": {}

nativescript-angular/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'globals';
2-
import "zone.js/dist/zone-node";
2+
import "./zone.js/dist/zone-nativescript";
33

44
import 'reflect-metadata';
55
import './polyfills/array';

0 commit comments

Comments
 (0)