diff --git a/CHANGELOG.md b/CHANGELOG.md index df26ba7e6..2976d0082 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ + +# [4.4.1](https://github.com/NativeScript/nativescript-angular/compare/4.4.0...4.4.1) (2017-10-13) + + +### Bug Fixes + +* **forms:** add base-value-accessor.ts for <4.4.0 versions compatibility (#1039) ([79e425c](https://github.com/NativeScript/nativescript-angular/commit/79e425c)) + + + + +# [4.4.0](https://github.com/NativeScript/nativescript-angular/compare/4.2.0...4.4.0) (2017-10-11) + + +### Bug Fixes + +* **forms:** default to unsetValue for value accessors (#846) ([6940955](https://github.com/NativeScript/nativescript-angular/commit/6940955)) +* **forms:** disable onTouch for date, number and selectedIndex value accessors (#986) ([b4b5ef6](https://github.com/NativeScript/nativescript-angular/commit/b4b5ef6)), closes [#887](https://github.com/NativeScript/nativescript-angular/issues/887) + + +### Features + +* add `exportAs` logic for `isActive` on `routerLinkActive` directive (#940) ([147d35a](https://github.com/NativeScript/nativescript-angular/commit/147d35a)) +* **Http:** expand support for request on local files (#982) ([b95184f](https://github.com/NativeScript/nativescript-angular/commit/b95184f)) +* **styling:** Allow loading .css files as a fallback if no .scss file is found(#954) (#955) ([696e914](https://github.com/NativeScript/nativescript-angular/commit/696e914)) +* Angular 4.4 support (#1002) ([c264453](https://github.com/NativeScript/nativescript-angular/commit/c264453)) + + + # [4.2.0](https://github.com/NativeScript/nativescript-angular/compare/3.1.3...4.2.0) (2017-08-09) diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index c56aacd12..adce98011 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "nativescript-angular", - "version": "4.2.0", + "version": "4.4.1", "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", diff --git a/nativescript-angular/value-accessors/base-value-accessor.ts b/nativescript-angular/value-accessors/base-value-accessor.ts new file mode 100644 index 000000000..ec5f5ded8 --- /dev/null +++ b/nativescript-angular/value-accessors/base-value-accessor.ts @@ -0,0 +1,3 @@ +// This file is only for compatibility with pre 4.4.0 releases. +// Please use "nativescript-angular/forms/value-accessors/base-value-accessor" +export * from "../forms/value-accessors/base-value-accessor"; diff --git a/tests/app/tests/list-view-tests.ts b/tests/app/tests/list-view-tests.ts index 20d4bf1d6..3c3d7fb54 100644 --- a/tests/app/tests/list-view-tests.ts +++ b/tests/app/tests/list-view-tests.ts @@ -100,7 +100,7 @@ describe("ListView-tests", () => { }); it("setupItemView is called for every item", (done) => { - return testApp.loadComponent(TestListViewComponent).then((componentRef) => { + testApp.loadComponent(TestListViewComponent).then((componentRef) => { const component = componentRef.instance; setTimeout(() => { assert.equal(component.counter, 3); @@ -112,9 +112,9 @@ describe("ListView-tests", () => { it("itemTemplateSelector selects templates", (done) => { - return testApp.loadComponent(TestListViewSelectorComponent).then((componentRef) => { + testApp.loadComponent(TestListViewSelectorComponent).then((componentRef) => { setTimeout(() => { - assert.deepEqual(testTemplates, { first: 2, second: 1 }); + assert.deepEqual(testTemplates, { first: 2, second: 1 }); done(); }, 1000); }) diff --git a/tests/app/tests/modal-dialog.ts b/tests/app/tests/modal-dialog.ts index c14a13f36..69a909c73 100644 --- a/tests/app/tests/modal-dialog.ts +++ b/tests/app/tests/modal-dialog.ts @@ -50,7 +50,7 @@ describe("modal-dialog", () => { let testApp: TestApp = null; before((done) => { - return TestApp.create([], [ModalComponent, FailComponent, SuccessComponent]).then((app) => { + TestApp.create([], [ModalComponent, FailComponent, SuccessComponent]).then((app) => { testApp = app; // HACK: Wait for the navigations from the test runner app diff --git a/tests/app/tests/property-sets.ts b/tests/app/tests/property-sets.ts index 3b5c5253e..26e78a036 100644 --- a/tests/app/tests/property-sets.ts +++ b/tests/app/tests/property-sets.ts @@ -46,10 +46,10 @@ describe("setting View properties", () => { it("doesn\'t convert number values", () => { let view = new TestView(); viewUtil.setProperty(view, "numValue", "42"); - assert.strictEqual(42, view.numValue); + assert.strictEqual("42", view.numValue); viewUtil.setProperty(view, "numValue", "42."); - assert.strictEqual(42., view.numValue); + assert.strictEqual("42.", view.numValue); viewUtil.setProperty(view, "numValue", 0); assert.strictEqual(0, view.numValue); @@ -58,9 +58,9 @@ describe("setting View properties", () => { it("doesn\'t convert boolean values", () => { let view = new TestView(); viewUtil.setProperty(view, "boolValue", "true"); - assert.strictEqual(true, view.boolValue); + assert.strictEqual("true", view.boolValue); viewUtil.setProperty(view, "boolValue", "false"); - assert.strictEqual(false, view.boolValue); + assert.strictEqual("false", view.boolValue); }); it("sets style values", () => {