Skip to content

2.0.0

Choose a tag to compare

@fabioformosa fabioformosa released this 06 Nov 00:13
· 38 commits to master since this release

ADDED array conversion method

const cars: Car[] = ...
const carDtos: CarDto[] =  this.convertionService.convertAll(cars, CarDto);

ADDED debug mode. If metamorphosis is registered in debug mode, all logs are displayed in console.

import { MetamorphosisNestModule } from '@fabio.formosa/metamorphosis-nest';

@Module({
  imports: [MetamorphosisModule.register({logger : true})],
  ...
}
export class MyApp{
}

You use a custom logger, as following:

import { MetamorphosisNestModule } from '@fabio.formosa/metamorphosis-nest';

@Module({
  imports: [MetamorphosisModule.register({logger : myCustomerLogger.debug})],
  ...
}
export class MyApp{
}

where myCustomerLogger.debug must be a function (msg: string) => void

FIXED none

BREAKING CHANGE now import metamorphosisModule as following:

import { MetamorphosisNestModule } from '@fabio.formosa/metamorphosis-nest';

@Module({
  imports: [MetamorphosisModule.register()],
  ...
}
export class MyApp{
}