From 62f55755b27debe72937619050b872f7a77057f6 Mon Sep 17 00:00:00 2001 From: Thomas Nisole Date: Mon, 18 Nov 2024 15:19:52 +0100 Subject: [PATCH] release: v8.2.0-rc.2 --- package-lock.json | 8 ++-- package.json | 2 +- .../ngx-firestore-repository/package.json | 4 +- projects/ngx-http-repository/package.json | 4 +- projects/ngx-repository/package.json | 4 +- .../src/lib/ngx-repository.module.ts | 41 +++++++++---------- 6 files changed, 30 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6864da0..4ee9ff5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@angular/platform-browser": "^18.0.1", "@angular/platform-browser-dynamic": "^18.0.1", "@angular/router": "^18.0.1", - "@paddls/ngx-serializer": "^6.2.0", + "@paddls/ngx-serializer": "^6.2.1", "@paddls/rxjs-common": "^2.1.0", "@paddls/ts-serializer": "^1.2.0", "@types/chance": "^1.0.10", @@ -5543,9 +5543,9 @@ } }, "node_modules/@paddls/ngx-serializer": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@paddls/ngx-serializer/-/ngx-serializer-6.2.0.tgz", - "integrity": "sha512-RAU4y6fZE4y7hC6/X38p8LUp5l4i8V1vgcbnwtUYwzId4MENkczUBjYe5GNVSPGh0N8wYYNfxcujqUlndT2KkQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@paddls/ngx-serializer/-/ngx-serializer-6.2.1.tgz", + "integrity": "sha512-PwuPmIVogV+S7R0dG8czyyVByYUOi9eaAXrSXpL0TYJC86tJAX5UooM+fbXayxBXSX4C4DbHACkJXiATrWkFzQ==", "dependencies": { "@paddls/ts-serializer": ">=1.2.0", "tslib": "^2.3.0" diff --git a/package.json b/package.json index 801f7c6..7e0f3c0 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@angular/platform-browser": "^18.0.1", "@angular/platform-browser-dynamic": "^18.0.1", "@angular/router": "^18.0.1", - "@paddls/ngx-serializer": "^6.2.0", + "@paddls/ngx-serializer": "^6.2.1", "@paddls/rxjs-common": "^2.1.0", "@paddls/ts-serializer": "^1.2.0", "@types/chance": "^1.0.10", diff --git a/projects/ngx-firestore-repository/package.json b/projects/ngx-firestore-repository/package.json index 5e29a1e..1ec315f 100644 --- a/projects/ngx-firestore-repository/package.json +++ b/projects/ngx-firestore-repository/package.json @@ -1,10 +1,10 @@ { "name": "@paddls/ngx-firestore-repository", - "version": "8.2.0-rc.1", + "version": "8.2.0-rc.2", "peerDependencies": { "@angular/common": ">= 18.0.0", "@angular/core": ">= 18.0.0", - "@paddls/ngx-repository": "^8.0.0 || 8.2.0-rc.1", + "@paddls/ngx-repository": "^8.0.0 || 8.2.0-rc.2", "firebase": ">= 9.9.2" }, "dependencies": { diff --git a/projects/ngx-http-repository/package.json b/projects/ngx-http-repository/package.json index a0cc5ee..32aee5c 100644 --- a/projects/ngx-http-repository/package.json +++ b/projects/ngx-http-repository/package.json @@ -1,10 +1,10 @@ { "name": "@paddls/ngx-http-repository", - "version": "8.2.0-rc.1", + "version": "8.2.0-rc.2", "peerDependencies": { "@angular/common": ">= 18.0.0", "@angular/core": ">= 18.0.0", - "@paddls/ngx-repository": "^8.0.0 || 8.2.0-rc.1" + "@paddls/ngx-repository": "^8.0.0 || 8.2.0-rc.2" }, "dependencies": { "tslib": "^2.0.0", diff --git a/projects/ngx-repository/package.json b/projects/ngx-repository/package.json index fa9bda9..42ed085 100644 --- a/projects/ngx-repository/package.json +++ b/projects/ngx-repository/package.json @@ -1,12 +1,12 @@ { "name": "@paddls/ngx-repository", - "version": "8.2.0-rc.1", + "version": "8.2.0-rc.2", "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0" }, "dependencies": { - "@paddls/ngx-serializer": "^6.2.0", + "@paddls/ngx-serializer": "^6.2.1", "@paddls/rxjs-common": "^2.1.0", "object-hash": "^2.0.3", "tslib": "^2.0.0" diff --git a/projects/ngx-repository/src/lib/ngx-repository.module.ts b/projects/ngx-repository/src/lib/ngx-repository.module.ts index 78547bd..7892b7e 100644 --- a/projects/ngx-repository/src/lib/ngx-repository.module.ts +++ b/projects/ngx-repository/src/lib/ngx-repository.module.ts @@ -1,21 +1,21 @@ import 'reflect-metadata'; -import { Injector, ModuleWithProviders, NgModule, Provider } from '@angular/core'; -import { NgxRepositoryService } from './ngx-repository.service'; -import { DEFAULT_NORMALIZER_CONFIGURATION, NormalizerConfiguration } from '@paddls/ts-serializer'; -import { RequestManager } from './core/manager/request.manager'; -import { RepositoryNormalizer } from './normalizer/repository-denormalizer'; -import { DenormalizeResponseProcessor } from './core/response/processor/denormalize-response.processor'; -import { PageResponseProcessor } from './core/response/processor/page-response.processor'; -import { IdResponseProcessor } from './core/response/processor/id-response.processor'; -import { PathColumnResponseProcessor } from './core/response/processor/path-column-response.processor'; -import { OriginalQueryResponseProcessor } from './core/response/processor/original-query-response.processor'; -import { PublisherService } from './core/event-stream/publisher.service'; -import { NgxSerializerModule, NORMALIZER_CONFIGURATION_TOKEN } from '@paddls/ngx-serializer'; -import { VoidResponseProcessor } from './core/response/processor/void-response.processor'; -import { ResponseBuilder } from './core/response/response.builder'; -import { TokenRegistry } from './core/registry/token.registry'; -import { BodyResponseProcessor } from './core/response/processor/body.response-processor'; +import {Injector, ModuleWithProviders, NgModule, Provider} from '@angular/core'; +import {NgxRepositoryService} from './ngx-repository.service'; +import {DEFAULT_NORMALIZER_CONFIGURATION, NormalizerConfiguration} from '@paddls/ts-serializer'; +import {RequestManager} from './core/manager/request.manager'; +import {RepositoryNormalizer} from './normalizer/repository-denormalizer'; +import {DenormalizeResponseProcessor} from './core/response/processor/denormalize-response.processor'; +import {PageResponseProcessor} from './core/response/processor/page-response.processor'; +import {IdResponseProcessor} from './core/response/processor/id-response.processor'; +import {PathColumnResponseProcessor} from './core/response/processor/path-column-response.processor'; +import {OriginalQueryResponseProcessor} from './core/response/processor/original-query-response.processor'; +import {PublisherService} from './core/event-stream/publisher.service'; +import {NgxSerializerModule} from '@paddls/ngx-serializer'; +import {VoidResponseProcessor} from './core/response/processor/void-response.processor'; +import {ResponseBuilder} from './core/response/response.builder'; +import {TokenRegistry} from './core/registry/token.registry'; +import {BodyResponseProcessor} from './core/response/processor/body.response-processor'; /** * @ignore @@ -53,8 +53,7 @@ const MODULE_PROVIDERS: Provider[] = [ @NgModule({ imports: [ NgxSerializerModule - ], - providers: MODULE_PROVIDERS + ] }) export class NgxRepositoryModule { @@ -69,10 +68,8 @@ export class NgxRepositoryModule { return { ngModule: NgxRepositoryModule, providers: [ - { - provide: NORMALIZER_CONFIGURATION_TOKEN, - useValue: config && config.normalizerConfiguration ? config.normalizerConfiguration : DEFAULT_NORMALIZER_CONFIGURATION - } + ...NgxSerializerModule.forRoot(config && config.normalizerConfiguration ? config : {normalizerConfiguration: DEFAULT_NORMALIZER_CONFIGURATION}).providers, + ...MODULE_PROVIDERS ] }; }