All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
16.0.0 (2024-09-18)
- deps: requires Angular 18
15.0.0 (2024-06-21)
- Requires Angular 17.3.10 or later, and requires Node 18 or later
14.0.0 (2023-11-09)
- requires node 16+ and angular 16
13.0.1 (2023-10-25)
13.0.0 (2023-06-14)
- deps: requires Angular 15
12.0.4 (2023-05-18)
Note: Version bump only for package ng-idle
12.0.3 (2023-05-18)
Note: Version bump only for package ng-idle
12.0.2 (2023-05-18)
Note: Version bump only for package ng-idle
12.0.1 (2023-05-18)
Note: Version bump only for package ng-idle
12.0.0 (2022-08-06)
- requires node 14+ and angular 14
11.1.0 (2021-09-30)
11.0.3 (2021-07-18)
Note: Version bump only for package ng-idle
11.0.2 (2021-07-18)
Note: Version bump only for package ng-idle
11.0.1 (2021-07-18)
Note: Version bump only for package ng-idle
11.0.0 (2021-07-18)
- This version requires Angular 9 or later.
10.0.0 (2020-09-10)
- project: upgrade to angular 10 (ea853a6)
- project: required angular 10
9.0.0-beta.1 (2020-07-01)
- angular dependency: required angular 9
8.0.0-beta.4 (2019-07-23)
Note: Version bump only for package ng-idle
8.0.0-beta.3 (2019-07-23)
Note: Version bump only for package ng-idle
8.0.0-beta.2 (2019-07-23)
Note: Version bump only for package ng-idle
8.0.0-beta.1 (2019-07-23)
- idle: ensure countdown short circuits if user returns to active (45325d3)
- public-api: retain parity with exports from old index (bd172cf)
- deps: update to Angular 8
7.0.0-beta.1 (2019-05-09)
- deps: update to Angular 7
- deps: This version is only compatible with Angular 7. If you are still using Angular 6, use @ng-idle@6.0.0-beta.5 or upgrade to Angular 7.
6.0.0-beta.5 (2019-04-04)
6.0.0-beta.4 (2019-03-19)
6.0.0-beta.3 (2018-07-16)
- core: check key on storage event argument exists (2fc712d)
6.0.0-beta.2 (2018-05-31)
6.0.0-beta.1 (2018-05-24)
Note: The version scheme for this module has been changed to match the version of Angular it targets. Use an @ng-idle@2.0.0 build if you are using Angular 5.
- deps: This version is only compatible with Angular 6.
2.0.0-beta.15 (2018-03-29)
- E2E tests in Protractor: Change to setInterval to run outside of angular zone (d8599d7)
- Unit Tests: Change to restrict zone.js version (93258e2)
- E2E tests in Protractor: idle constructor has additional paramter
2.0.0-beta.14 (2018-03-29)
- InterruptSource: attach outside Angular (c94fc9a)
2.0.0-beta.13 (2017-12-17)
- EventTargetInterruptSource: constructor takes options that include flag for using passive even (a5e24eb)
- deps: Support for Angular 2.x dropped due to missing @angular/common/http dependency
2.0.0-beta.12 (2017-05-30)
2.0.0-beta.11 (2017-04-14)
- updated imports of rxjs to only import the operators and types used.
2.0.0-beta.10 (2017-03-30)
- deps: support Angular 4 in addition to Angular 2
2.0.0-beta.9 (2017-03-20)
- idle: check expiry on timeout doCountdown (e23233d)
2.0.0-beta.8 (2017-02-20)
- Initialize localStorage idling value to false in constructor (ab71433)
2.0.0-beta.7 (2017-02-16)
2.0.0-beta.6 (2017-02-14)
- AutoResume.notIdle with LocalStorageExpiry wasn't working well (935ade9)
- bugfix when last() with null value throws exception (5b3d175)
2.0.0-beta.5 (2017-02-09)
The new default expiry is now LocalStorageExpiry, and StorageInterruptSource has been added to the default module providers. This in effect makes idle coordination between tabs the new default (rather than SimpleExpiry
). This makes the defaults more like the original ng-idle
. You can of course override the IdleExpiry
provider and go back to SimpleExpiry
or use your own. Special thanks to @rousseaufiliong for porting that functionality.
2.0.0-beta.4 (2016-12-02)
- LICENSE change license to Apache-2.0 (f8caa10)
2.0.0-beta.3 (2016-11-21)
- aot: add AOT support (cc99199)
2.0.0-beta.2 (2016-11-15)
- core, keepalive: emit helpers for es5 compatibility (ed30b6b)
2.0.0-beta.1 (2016-11-14)
- core: modularize core (3f0868a)
- keepalive: Modules have been changed from Ng2IdleModule and Ng2IdleKeepaliveModule to NgIdleModule and NgIdleKeepaliveModule, respectively. Additionally, keepalive imports should now be @ng-idle/keepalive.
- core: This repository has been refactored to follow the @angular model of modularization so that it can be maintained more easily. You will need to change your import statements from 'ng2-idle' to '@ng-idle/core'.
1.0.0-alpha.18 (2016-11-04)
This change removes the core.ts. Instead, you should create an app module using NgModule
and import the new Ng2IdleModule
.
- Change any
import ... from 'ng2-idle/core';
toimport ... from 'ng2-idle';
- Create an AppModule using
NgModule
if you haven't already.NgModule
was added in Angular2 RC.5 - Use
Ng2Module.forRoot()
in your app module'simports
declaration.
Example:
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { Ng2IdleModule } from 'ng2-idle';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
Ng2IdleModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
app.component.ts
import { Component } from '@angular/core';
import {Idle, DEFAULT_INTERRUPTSOURCES} from 'ng2-idle';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor(private idle: Idle) {
// initialize idle here.
}
}
1.0.0-alpha.17 (2016-11-02)
- deps: relax angular dependencies to minor version
1.0.0-alpha.16 (2016-09-19)
- deps: update to angular@2.0.0
1.0.0-alpha.15 (2016-08-23)
- release:: incorrect publishing
1.0.0-alpha.14 (2016-08-23)
DEPRECATED
- deps: update to angular 2.0.0-rc.5
1.0.0-alpha.13 (2016-06-30)
- deps: update to angular 2.0.0-rc.4
1.0.0-alpha.12 (2016-06-22)
Update to Angular 2.0.0-rc.3
1.0.0-alpha.11 (2016-05-09)
This release targets Angular2 RC.1. Angular2 RC.0 introduced breaking changes to how Angular is packaged. You will need to upgrade your application to RC.0 or later for this version of ng2-idle to work.
1.0.0-alpha.10 (2016-04-06)
1.0.0-alpha.9 (2016-03-25)
- typings: add ambient dev dependencies for es6-shim (1a6fe2a)
1.0.0-alpha.8 (2016-03-25)
- dependencies: update to target Angular 2.0.0-beta.12 (37bf7ad)
1.0.0-alpha.7 (2016-02-24)
- EventTargetInterruptSource: target events can be throttled over a specified duration (174d2d0)
- Idle: interrupts are detached when state is idle or not running (e0b2a1e)
1.0.0-alpha.6 (2016-02-16)
- IdleExpiry: add extensible timeout expiry support (31be875)
1.0.0-alpha.5 (2016-02-16)
- Idle: immediately ping and resume keepalive upon interrupting idle state (62b47b2)
1.0.0-alpha.4 (2016-02-16)
- EventTargetInterruptSource: subscribing to multiple events separated by space no longer breaks (c552d07)
- Idle: setKeepaliveEnabled(false) no longer stops keepalive (050a590)
1.0.0-alpha.3 (2016-02-16)
- Build: exclude postinstall task when installing production (1db53ca)
1.0.0-alpha.2 (2016-02-16)
- Keepalive: implements optional keepalive integration (5a727dd)
- Idle: add service with basic features (6db5d50)