Supports and requires Angular 13.
While Angular 13 allows both RxJS 6 and RxJS >= 7.4, v13 of the lib does not officially support RxJS 6 anymore. It may work but has not been tested.
No lib change.
Allow RxJS 7 in peerDependencies, to align with Angular 12.2.
Note that Angular and this lib are still built with RxJS 6, so be cautious if you want to upgrade RxJS right now without waiting for Angular 13.
Supports and requires Angular 12.
No lib change.
No code change, just rebuilt with Angular 11.1.
Supports and requires Angular 11.
No lib change.
Supports and requires Angular 10.
No lib change.
Add a new and more standard way to change lib options:
Now in version >= 9.1:
import { OfflineModule } from '@ngx-pwa/offline';
@NgModule({
imports: [
OfflineModule.forRoot({
routeOffline: '/oops/offline',
routeUnavailable: '/oops/unavailable',
})
]
})
export class AppModule {}
Previously in version < 9.1:
import { offlineProviders } from '@ngx-pwa/offline';
@NgModule({
providers: [
offlineProviders({
routeOffline: '/oops/offline',
routeUnavailable: '/oops/unavailable',
})
]
})
export class AppModule {}
The old way is still available but is now deprecated and will be removed in v10.
Fix an issue with catchOffline
operator documentation where the wrong JSDoc
was displayed, wrongly indicating to not use it.
To update: npm install @ngx-pwa/offline@9
- Support for Angular 9
- Typing issue related to RxJS
- Allow Angular 8 in
peerDependencies
- Allow Angular 7 in
peerDependencies
catchOffline
RxJS operatorOnlineGuard
forcanActivate
,canActivateChild
andcanLoad
online
to check online status withNetwork
serviceonlineChanges
to observe when online status changes withNetwork
service
- Full support of official Angular Package Format v6
- Distribution files and directories have been changed to match official Angular Package Format v6. It affects your code only if you were manually loading UMD bundles, otherwise building tools like Angular CLI / webpack know where to find the files.