Skip to content

Latest commit

 

History

History
125 lines (93 loc) · 2.67 KB

File metadata and controls

125 lines (93 loc) · 2.67 KB

v1.6.0

Features

  • ANGULAR 4 Compliant: The library is now compliant with the ng4 compiler #23

PEER-DEPENDENCY UPDATES

  • angular: @angular/...4.0.1

v1.5.0

Deprecation

  • AoT compilation: Fixed forRoot method to be compliant with AoT compilations
  • Example:

    • Before:
      	import {Ng2Webstorage, configure as WebstorageConfigure} from 'ng2-webstorage';
    
      	WebstorageConfigure({
      		separator: '.',
      		prefix: 'custom'
      	});
      	
      	@NgModule({
      		imports: [Ng2Webstorage],
      	})
      	export class AppModule {}
    • After:
      	import {Ng2Webstorage} from 'ng2-webstorage';
    
      	@NgModule({
      		imports: [
      			Ng2Webstorage.forRoot({
      				separator: '.',
      				prefix: 'custom'
      			})
      		],
      	})
      	export class AppModule {}

v1.4.3

Features

  • AoT compilation: Add configure method replacing the forRoot one for the AoT compilations #27
  • Example:
    • Before:
      	import {Ng2Webstorage} from 'ng2-webstorage';
    
      	@NgModule({
      		imports: [
      			Ng2Webstorage.forRoot({
      				separator: '.',
      				prefix: 'custom'
      			})
      		],
      	})
      	export class AppModule {}
    • After:
      	import {Ng2Webstorage, configure as WebstorageConfigure} from 'ng2-webstorage';
    
      	WebstorageConfigure({
      		separator: '.',
      		prefix: 'custom'
      	});
      	
      	@NgModule({
      		imports: [Ng2Webstorage],
      	})
      	export class AppModule {}

PEER-DEPENDENCY UPDATES

  • angular: @angular/...2.4.1

v1.4.2

Fix

v1.4.0

Features

  • listener: Now listen the changes made from other windows (Localstorage only) and devtool panel #23

PEER-DEPENDENCY UPDATES

  • angular: @angular/...2.2.0

BREAKING CHANGES

  • KeyStorageHelper: - This service is not exposed anymore. Use the module's method forRoot instead to configure the web storage options.
  • Example:
    • Before:
      	KeyStorageHelper.setStorageKeyPrefix('custom');
      	KeyStorageHelper.setStorageKeySeparator('.');
    • After:
      	@NgModule({
      		imports: [
      			Ng2Webstorage.forRoot({
      				separator: '.',
      				prefix: 'custom'
      			})
      		]
      	})
      	class AppModule {}