From 2e944a85695749bd13de7349342b93cf81363df2 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Thu, 21 Dec 2017 14:06:54 +0200 Subject: [PATCH 1/8] feat: add support for Angular 5.1 (#1134) --- .../bin/remove-polyfills-metadata.js | 5 --- nativescript-angular/package.json | 38 +++++++++---------- 2 files changed, 19 insertions(+), 24 deletions(-) delete mode 100644 nativescript-angular/bin/remove-polyfills-metadata.js diff --git a/nativescript-angular/bin/remove-polyfills-metadata.js b/nativescript-angular/bin/remove-polyfills-metadata.js deleted file mode 100644 index 4c1d4af30..000000000 --- a/nativescript-angular/bin/remove-polyfills-metadata.js +++ /dev/null @@ -1,5 +0,0 @@ -const { unlinkSync } = require("fs"); - -unlinkSync("./polyfills/console.metadata.json"); -unlinkSync("./polyfills/array.metadata.json"); - diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index a60458968..f3fc81f8e 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -33,7 +33,7 @@ "postinstall": "node postinstall.js", "tsc": "tsc -p tsconfig.json", "ngc": "ngc -p tsconfig.json", - "prepare": "npm run ngc && node ./bin/remove-polyfills-metadata.js" + "prepare": "npm run ngc" }, "bin": { "update-app-ng-deps": "./bin/update-app-ng-deps" @@ -43,30 +43,30 @@ "reflect-metadata": "^0.1.8" }, "peerDependencies": { - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/platform-browser-dynamic": "~5.1.0", + "@angular/common": "~5.1.0", + "@angular/compiler": "~5.1.0", + "@angular/core": "~5.1.0", + "@angular/forms": "~5.1.0", + "@angular/http": "~5.1.0", + "@angular/platform-browser": "~5.1.0", + "@angular/router": "~5.1.0", "rxjs": "^5.5.0", "tns-core-modules": "^3.1.0 || >3.4.0-", "zone.js": "^0.8.4", "typescript": "~2.4.2" }, "devDependencies": { - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/animations": "~5.0.0", - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/compiler-cli": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/platform-browser-dynamic": "~5.1.0", + "@angular/animations": "~5.1.0", + "@angular/common": "~5.1.0", + "@angular/compiler": "~5.1.0", + "@angular/compiler-cli": "~5.1.0", + "@angular/core": "~5.1.0", + "@angular/forms": "~5.1.0", + "@angular/http": "~5.1.0", + "@angular/platform-browser": "~5.1.0", + "@angular/router": "~5.1.0", "codelyzer": "^4.0.0", "rxjs": "^5.5.0", "tns-core-modules": "next", From 493048fc30d682d6a7fd9dba05176b24bc4ed809 Mon Sep 17 00:00:00 2001 From: Manol Donev Date: Thu, 21 Dec 2017 16:46:28 +0200 Subject: [PATCH 2/8] docs(flexbox layout) add flexbox layout code snippets (#1124) --- tests/app/snippets/layouts.component.html | 137 +++++++++++++++------- tests/app/snippets/layouts.component.ts | 3 +- 2 files changed, 99 insertions(+), 41 deletions(-) diff --git a/tests/app/snippets/layouts.component.html b/tests/app/snippets/layouts.component.html index c472f02bd..3cc2fbdb3 100644 --- a/tests/app/snippets/layouts.component.html +++ b/tests/app/snippets/layouts.component.html @@ -1,8 +1,8 @@ - - + + @@ -11,16 +11,16 @@ - + - + - - + + @@ -28,7 +28,7 @@ - + @@ -37,7 +37,7 @@ - + @@ -46,11 +46,11 @@ - + - - - + + + @@ -60,43 +60,43 @@ - - - + + + - - - + + + - - + + - + - + - + - - + + @@ -104,9 +104,9 @@ - + - + @@ -115,17 +115,17 @@ - + - + - - + + @@ -133,19 +133,19 @@ - + - + - + - + - - + + @@ -153,7 +153,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -171,5 +171,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + \ No newline at end of file diff --git a/tests/app/snippets/layouts.component.ts b/tests/app/snippets/layouts.component.ts index 5912f1a27..5892c0492 100644 --- a/tests/app/snippets/layouts.component.ts +++ b/tests/app/snippets/layouts.component.ts @@ -10,7 +10,8 @@ import {Component} from "@angular/core"; "#main > DockLayout { margin: 10 }", "#main > GridLayout { margin: 10 }", "#main > StackLayout { margin: 10 }", - "#main > WrapLayout { margin: 10 }" + "#main > WrapLayout { margin: 10 }", + "#main > FlexboxLayout { margin: 10 }" ] }) export class LayoutsComponent { From 661a78101d553ba3586eae85bfd82445f9c6f6be Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Wed, 10 Jan 2018 15:43:18 +0200 Subject: [PATCH 3/8] release: cut the 5.1.0 release --- nativescript-angular/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index f3fc81f8e..934cd44e1 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "nativescript-angular", - "version": "5.0.0", + "version": "5.1.0", "description": "An Angular renderer that lets you build mobile apps with NativeScript.", "homepage": "https://www.nativescript.org/", "bugs": "https://github.com/NativeScript/nativescript-angular/issues", From b97b8bba78608dcd186bbc6d95d588d28e563bc8 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Wed, 10 Jan 2018 15:43:18 +0200 Subject: [PATCH 4/8] docs: add changelog for 5.1.0 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0439009ed..acb11ecaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ + +# [5.1.0](https://github.com/NativeScript/nativescript-angular/compare/5.0.0...5.1.0) (2018-01-10) + + +### Features + +* add support for Angular 5.1 ([#1134](https://github.com/NativeScript/nativescript-angular/issues/1134)) ([2e944a8](https://github.com/NativeScript/nativescript-angular/commit/2e944a8)) + + # [5.0.0](https://github.com/NativeScript/nativescript-angular/compare/5.0.0-rc.0...v5.0.0) (2017-12-20) From faa69002c9b6e0ef73e758479f5fe83b98d50967 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Mon, 15 Jan 2018 21:49:41 +0200 Subject: [PATCH 5/8] chore: bump Angular versions to 5.2.0 (#1154) --- nativescript-angular/package.json | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index 934cd44e1..1da430b1a 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -43,30 +43,30 @@ "reflect-metadata": "^0.1.8" }, "peerDependencies": { - "@angular/platform-browser-dynamic": "~5.1.0", - "@angular/common": "~5.1.0", - "@angular/compiler": "~5.1.0", - "@angular/core": "~5.1.0", - "@angular/forms": "~5.1.0", - "@angular/http": "~5.1.0", - "@angular/platform-browser": "~5.1.0", - "@angular/router": "~5.1.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/router": "~5.2.0", "rxjs": "^5.5.0", "tns-core-modules": "^3.1.0 || >3.4.0-", "zone.js": "^0.8.4", "typescript": "~2.4.2" }, "devDependencies": { - "@angular/platform-browser-dynamic": "~5.1.0", - "@angular/animations": "~5.1.0", - "@angular/common": "~5.1.0", - "@angular/compiler": "~5.1.0", - "@angular/compiler-cli": "~5.1.0", - "@angular/core": "~5.1.0", - "@angular/forms": "~5.1.0", - "@angular/http": "~5.1.0", - "@angular/platform-browser": "~5.1.0", - "@angular/router": "~5.1.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/animations": "~5.2.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/compiler-cli": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/router": "~5.2.0", "codelyzer": "^4.0.0", "rxjs": "^5.5.0", "tns-core-modules": "next", From 2a5742ba5dced8a2c6023ff50b03d5d01e0147f1 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Tue, 16 Jan 2018 11:06:24 +0200 Subject: [PATCH 6/8] feat: enable typescript 2.6 (#1156) --- e2e/renderer/package.json | 20 ++++++++++---------- e2e/router/package.json | 20 ++++++++++---------- nativescript-angular/package.json | 4 ++-- ng-sample/package.json | 29 +++++++++++++++-------------- tests/package.json | 22 +++++++++++----------- 5 files changed, 48 insertions(+), 47 deletions(-) diff --git a/e2e/renderer/package.json b/e2e/renderer/package.json index 5edac50fa..4c6ff75d8 100644 --- a/e2e/renderer/package.json +++ b/e2e/renderer/package.json @@ -10,14 +10,14 @@ } }, "dependencies": { - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/router": "~5.2.0", "nativescript-angular": "file:../../nativescript-angular", "nativescript-intl": "^3.0.0", "reflect-metadata": "~0.1.8", @@ -42,11 +42,11 @@ "nativescript-dev-appium": "next", "nativescript-dev-typescript": "~0.4.0", "tslib": "^1.7.1", - "typescript": "~2.4.2" + "typescript": "~2.6.2" }, "scripts": { "e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts", "compile-tests-w": "tsc -p e2e --watch", "update-app-ng-deps": "update-app-ng-deps" } -} +} \ No newline at end of file diff --git a/e2e/router/package.json b/e2e/router/package.json index df5a6f219..0dc072e07 100644 --- a/e2e/router/package.json +++ b/e2e/router/package.json @@ -13,15 +13,15 @@ } }, "dependencies": { - "@angular/animations": "~4.4.1", - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/animations": "~5.2.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/router": "~5.2.0", "nativescript-angular": "file:../../nativescript-angular", "nativescript-intl": "^3.0.0", "reflect-metadata": "~0.1.8", @@ -46,7 +46,7 @@ "nativescript-dev-appium": "next", "nativescript-dev-typescript": "~0.4.0", "tslib": "^1.7.1", - "typescript": "~2.4.2" + "typescript": "~2.6.2" }, "scripts": { "e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts", diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index 1da430b1a..eaddbef21 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -54,7 +54,7 @@ "rxjs": "^5.5.0", "tns-core-modules": "^3.1.0 || >3.4.0-", "zone.js": "^0.8.4", - "typescript": "~2.4.2" + "typescript": "~2.6.2" }, "devDependencies": { "@angular/platform-browser-dynamic": "~5.2.0", @@ -71,7 +71,7 @@ "rxjs": "^5.5.0", "tns-core-modules": "next", "tslint": "^5.5.0", - "typescript": "~2.4.2", + "typescript": "~2.6.2", "zone.js": "^0.8.12" } } diff --git a/ng-sample/package.json b/ng-sample/package.json index 7c10e3b7e..ecd45f339 100644 --- a/ng-sample/package.json +++ b/ng-sample/package.json @@ -32,19 +32,19 @@ }, "homepage": "https://github.com/NativeScript/template-hello-world", "dependencies": { - "@angular/animations": "~5.0.0", - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/animations": "~5.2.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/router": "~5.2.0", "nativescript-angular": "file:../nativescript-angular", - "rxjs": "^5.5.2", + "rxjs": "^5.5.0", "tns-core-modules": "next", - "zone.js": "~0.8.2" + "zone.js": "^0.8.4" }, "devDependencies": { "babel-traverse": "6.9.0", @@ -55,9 +55,10 @@ "nativescript-dev-typescript": "^0.3.1", "shelljs": "^0.7.0", "tslint": "^4.5.1", - "typescript": "~2.4.2" + "typescript": "~2.6.2" }, "scripts": { - "tslint": "tslint --project tsconfig.json --config tslint.json" + "tslint": "tslint --project tsconfig.json --config tslint.json", + "update-app-ng-deps": "update-app-ng-deps" } -} +} \ No newline at end of file diff --git a/tests/package.json b/tests/package.json index 575f5344a..b7cc8a1ee 100644 --- a/tests/package.json +++ b/tests/package.json @@ -20,15 +20,15 @@ ], "homepage": "http://nativescript.org", "dependencies": { - "@angular/animations": "~5.0.0", - "@angular/common": "~5.0.0", - "@angular/compiler": "~5.0.0", - "@angular/core": "~5.0.0", - "@angular/forms": "~5.0.0", - "@angular/http": "~5.0.0", - "@angular/platform-browser": "~5.0.0", - "@angular/platform-browser-dynamic": "~5.0.0", - "@angular/router": "~5.0.0", + "@angular/animations": "~5.2.0", + "@angular/common": "~5.2.0", + "@angular/compiler": "~5.2.0", + "@angular/core": "~5.2.0", + "@angular/forms": "~5.2.0", + "@angular/http": "~5.2.0", + "@angular/platform-browser": "~5.2.0", + "@angular/platform-browser-dynamic": "~5.2.0", + "@angular/router": "~5.2.0", "nativescript-angular": "../nativescript-angular", "nativescript-unit-test-runner": "^0.3.4", "rxjs": "^5.5.0", @@ -60,7 +60,7 @@ "socket.io-client": "1.4.8", "tslib": "^1.7.1", "tslint": "^4.5.1", - "typescript": "~2.4.2", + "typescript": "~2.6.2", "mocha": "~3.5.0" }, "scripts": { @@ -68,4 +68,4 @@ "compile-tests-w": "tsc -p e2e --watch", "update-app-ng-deps": "update-app-ng-deps" } -} +} \ No newline at end of file From ccd940a687cac82d20eec00418091f98f63b07ba Mon Sep 17 00:00:00 2001 From: vchimev Date: Wed, 17 Jan 2018 17:16:51 +0200 Subject: [PATCH 7/8] release: cut the 5.2.0 release --- nativescript-angular/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index eaddbef21..39c4e6608 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "nativescript-angular", - "version": "5.1.0", + "version": "5.2.0", "description": "An Angular renderer that lets you build mobile apps with NativeScript.", "homepage": "https://www.nativescript.org/", "bugs": "https://github.com/NativeScript/nativescript-angular/issues", @@ -52,7 +52,7 @@ "@angular/platform-browser": "~5.2.0", "@angular/router": "~5.2.0", "rxjs": "^5.5.0", - "tns-core-modules": "^3.1.0 || >3.4.0-", + "tns-core-modules": "^3.4.0 || >4.0.0-", "zone.js": "^0.8.4", "typescript": "~2.6.2" }, From 865675327d972d1f4657935b50dd992d81f34865 Mon Sep 17 00:00:00 2001 From: vchimev Date: Wed, 17 Jan 2018 17:25:50 +0200 Subject: [PATCH 8/8] docs: add changelog for 5.2.0 --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index acb11ecaa..eaa1cdc72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ + +# [5.2.0](https://github.com/NativeScript/nativescript-angular/compare/5.0.0...5.2.0) (2018-01-17) + + +### Features + +* add support for Angular 5.2 ([#1154](https://github.com/NativeScript/nativescript-angular/issues/1154)) ([faa690](https://github.com/NativeScript/nativescript-angular/commit/faa690)) + +* enable typescript 2.6 ([#1156](https://github.com/NativeScript/nativescript-angular/issues/1156)) ([2a5742b](https://github.com/NativeScript/nativescript-angular/commit/2a5742b)) + + + # [5.1.0](https://github.com/NativeScript/nativescript-angular/compare/5.0.0...5.1.0) (2018-01-10)