Skip to content

Latest commit

 

History

History
285 lines (184 loc) · 16.6 KB

CHANGELOG.md

File metadata and controls

285 lines (184 loc) · 16.6 KB

4.2.0 (2017-08-09)

Features

BREAKING CHANGES

  • NativeScriptModule should be imported only in the root application module (usually named AppModule). All other NgModules in the app (both feature and lazy-loaded ones) should import the NativeScriptCommonModule instead. The behavior is aligned with BrowserModule and CommonModule in web Angular apps described in this guide.

Migration steps: In all NgModules, except the root one (AppModule), replace:

import { NativeScriptModule } from "nativescript-angular/nativescript.module";
…
@NgModule({
    imports: [
        NativeScriptModule,
    ]
…
})

with:

import { NativeScriptCommonModule } from "nativescript-angular/common";
…
@NgModule({
    imports: [
        NativeScriptCommonModule,
    ]
…
})

3.1.3 (2017-07-19)

Bug Fixes

  • action-bar: ignore InvisibleNodes when adding title (#903) (8308e45), closes #897
  • asynchronously destroy items evicted on clearHistory navigation (#847) (448412a), closes #829

3.1.2 (2017-07-12)

Bug Fixes

  • renderer: attach CommentNodes to visual tree (#888) (65359fa), closes #872

3.1.1 (2017-06-29)

Bug Fixes

3.1.0 (2017-06-19)

Bug Fixes

  • animations: use parsers from core modules (#844) (1abebb6), closes #738
  • dom-adapter: add fake implementation for getUserAgent (#835) (743131c), closes #831
  • forms: add (touch) event and [disabled] property for controls (#836) (c8a6404), closes #804
  • ns-router-link: convert clearHistory string to boolean (#834) (ff99984), closes #832
  • renderer: add styles when ViewEncapsulation is None (#812) (8d013e2), closes #794
  • renderer: set templateParent to comment and text nodes (#785) (b127ba7), closes #777 #787
  • renderer: stop performing value conversions (#806) (354074d), closes #799

Features

  • Modal: allow modal to be lazily loaded from a module on demand (#772) (6a1f6a9)

3.0.0 (2017-05-03)

Bug Fixes

  • action-bar: Don't remove action items twice. (b96b61f)
  • animations: add onDestroy method to NativeScriptAnimationPlayer (ec07ec3)
  • animations: set nodeType 'element' to newly created views (#720) (8af20ad)
  • gitignore: Add editor files into gitignore (9beea98)
  • init: Bootstrap Angular on page "navigatingTo" event. (85b9d01)
  • list-view: Destroy item views on unload (71301aa)
  • list-view: Do not access destroyed items' ng views. (c6f7549)
  • list-view-comp: IterableDiffer is now parameterized on (f692c5f)
  • ns-http: make defaultOptions of type RequestOptions (073c95d)
  • action bar: attach #comment nodes with _addView (#729) (0490605), closes #725
  • ns-router-link: navigate with urlTree (#728) (3c6f5ab), closes #724
  • use providers' map for injectors in page-router-outlet (#744) (07fe66c), closes #741

Code Refactoring

  • stop exporting NativeScriptModule from platform (#701) (0bd2ba5)

Features

  • animations: introduce NativeScriptAnimationsModule (#704) (f9ad6a5)
  • renderer: use EmulatedRenderer to scope component styles (70603c4)
  • renderer: implement createComment and createText methods using (0f128ad)
  • renderer: support namespaced attributes (#719) (9b5b413)

BREAKING CHANGES

  • animations: To use animations, you need to import the NativeScriptAnimationsModule from "nativescript-angular/animations" in your root NgModule.
  • User applications cannot import NativeScriptModule from "nativescript-angular/platform" anymore. Migration: Before:
import { NativeScriptModule } from "nativescript-angular/platform";

After

import { NativeScriptModule } from
"nativescript-angular/nativescript.module";

1.5.2 (2017-04-18)

Bug Fixes

1.5.1 (2017-03-30)

Bug Fixes

1.5.0 (2017-03-22)

Bug Fixes

  • action-bar: Don't remove action items twice. (677d7e0)
  • animations: add onDestroy method to NativeScriptAnimationPlayer (2e24010)
  • dom_adapter: add missing contains method signature (bae45f6)
  • dom_adapter: update setTitle and getGlobalEventTarget to be compliant with Angular API (25c134d)
  • gitignore: Add editor files into gitignore (819a960)
  • init: Bootstrap Angular on page "navigatingTo" event. (ab04aba)
  • list-view-comp: IterableDiffer is now parameterized on <KeyedTemplate> (780967d)
  • ns-http: make defaultOptions of type RequestOptions (db730e2)
  • page-router-outlet: activateWith instead of activate method (8d832bc)
  • page-router-outlet: manually run detect changes when navigating to new page (07caa74)
  • platform: import InjectionToken and ViewEncapsulation instead of OpaqueToken (c4dc8d4)
  • platform: import MissingTranslationStrategy (d2328a5)
  • renderer: implement createComment and createText methods using Placeholders (c0ec870)
  • renderer: use _eachChildView for nextSibling (150c1ce)
  • renderer: use flags in setStyle and removeStyle instead of booleans (a6d9247)
  • ts: ship package with reference to iterable interface (7edfa6b)

Code Refactoring

  • stop exporting NativeScriptModule from platform (#701) (409e717)

Features

  • animations: introduce NativeScriptAnimationsModule (b5874ba)
  • renderer: implement simple nextSibling method using parent's _eachChildView (98d9d20)
  • renderer: upgrade to be compliant with Angular 4's Renderer2 and RendererFactory2 (a3adcca)
  • renderer: use EmulatedRenderer to scope component styles (25f5111)

BREAKING CHANGES

  • NativeScriptModule: User applications cannot import NativeScriptModule from "nativescript-angular/platform" anymore. Migration: Before:
import { NativeScriptModule } from "nativescript-angular/platform";

After

import { NativeScriptModule } from
"nativescript-angular/nativescript.module";
  • animations: To use animations, you need to import the NativeScriptAnimationsModule from "nativescript-angular/animations" in your root NgModule. Also you need a dependency to "@angular/animations".

  • typescript: The required version of TypeScript is ~2.1. Support for ~2.2 requires changes in tns-core-modules and will be provided with NativeScript 3.0.

1.1.2 (2016-10-28)

  • Angular 2.1.2 compatibility release

1.1.1 (2016-10-21)

  • Angular 2.1.1 compatibility release
  • [Experimental] Support for ahead-of-time(AOT) compilation.

1.1.0 (2016-10-13)

  • Angular 2.1.0 compatibility release

1.0.2 (2016-10-13)

  • Angular 2.0.2 compatibility release
  • Modal dialogs no longer require that you create a ModalDialogService provider in your component.

0.4.0 (2016-08-19)

  • Migrate to Angular 2 RC5.
  • Bootstrapping apps using NgModule's. The old nativescriptBootstrap method is gone, and apps should switch to the platformNativeScriptDynamic().bootstrapModule(MyAppModule) API
  • The library entrypoint is now the nativescript-angular/platform module. Import NativeScriptRouterModule from nativescript-angular/router and NativeScriptFormsModule from nativescript-angular/forms respectively if you want to use routing and form value accessor directives.

0.1.8 (2016-06-22)

0.1.7 (2016-06-21)

Features

  • (#291) Migrate to Angular RC2

  • (#218) Support the new router

Bug Fixes

  • (#273) ModalDialogService.showModal() doesn't show modal

  • (#257) iOS navigation bug

  • (#252) Using text-decoration in a template causes iOS app to crash

  • (#262) Critical - Memory and cpu usage.

  • (#242) Use the ComponentFactory API instead of deprecated DynamicComponentLoader

  • (#229) Implement ngStyle directive

Breaking Changes

  • The Beta Angular Router moved to nativescript-angular/router-deprecated to continue using it change imports:

    • nativescript-angular/router -> nativescript-angular/router-deprecated
    • nativescript-angular/router/ns-router -> nativescript-angular/router-deprecated/ns-router-deprecated
  • Build requires globally installed typings (npm install -g typings)