@jsverse/transloco 7.2.1 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { EmbeddedViewRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { Subscription } from 'rxjs';
3
2
  import { Content } from './template-handler';
4
3
  import { HashMap } from './types';
5
4
  import * as i0 from "@angular/core";
@@ -9,6 +8,7 @@ interface ViewContext {
9
8
  currentLang: string;
10
9
  }
11
10
  export declare class TranslocoDirective implements OnInit, OnDestroy, OnChanges {
11
+ private destroyRef;
12
12
  private service;
13
13
  private tpl;
14
14
  private providerLang;
@@ -18,7 +18,6 @@ export declare class TranslocoDirective implements OnInit, OnDestroy, OnChanges
18
18
  private host;
19
19
  private vcr;
20
20
  private renderer;
21
- subscription: Subscription | null;
22
21
  view: EmbeddedViewRef<ViewContext> | undefined;
23
22
  private memo;
24
23
  key: string | undefined;
@@ -17,7 +17,6 @@ export declare class TranslocoService implements OnDestroy {
17
17
  private interceptor;
18
18
  private fallbackStrategy;
19
19
  langChanges$: Observable<string>;
20
- private subscription;
21
20
  private translations;
22
21
  private cache;
23
22
  private firstFallbackLang;
@@ -41,7 +41,7 @@ export declare class DefaultTranspiler implements TranslocoTranspiler {
41
41
  *
42
42
  *
43
43
  */
44
- protected handleObject({ value, params, translation, key }: TranspileParams<Record<any, any>>): Record<any, any>;
44
+ protected handleObject({ value, params, translation, key, }: TranspileParams<Record<any, any>>): Record<any, any>;
45
45
  protected handleArray({ value, ...rest }: TranspileParams<unknown[]>): any[];
46
46
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTranspiler, never>;
47
47
  static ɵprov: i0.ɵɵInjectableDeclaration<DefaultTranspiler>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsverse/transloco",
3
- "version": "7.2.1",
3
+ "version": "7.4.0",
4
4
  "description": "The internationalization (i18n) library for Angular",
5
5
  "schematics": "./schematics/src/collection.json",
6
6
  "publishConfig": {