Skip to content

Releases: tsedio/tsed

v5.0.9

16 Jan 08:47
Compare
Choose a tag to compare

5.0.9 (2019-01-16)

Bug Fixes

  • common: allow configuration null value (a30dda4)

v5.0.8

09 Jan 13:15
Compare
Choose a tag to compare

5.0.8 (2019-01-09)

Bug Fixes

  • Fix $onInit calling in unit test (c5de1af), closes #504

v5.0.7

31 Dec 09:30
Compare
Choose a tag to compare

5.0.7 (2018-12-31)

Bug Fixes

  • fix compilation (b2173a3)
  • Fix constant import in RouteService (8ae6e85)

v5.0.6

31 Dec 07:55
Compare
Choose a tag to compare

5.0.6 (2018-12-31)

Bug Fixes

  • Typescript target compilation (56a7a6c)

v5.0.5

31 Dec 07:15
Compare
Choose a tag to compare

5.0.5 (2018-12-31)

Bug Fixes

  • Bad import on SendResponseMiddleware (28898c8)

v5.0.4

26 Dec 07:31
Compare
Choose a tag to compare

5.0.4 (2018-12-26)

Bug Fixes

  • Fix deploy script. Now all @tsed/* are a dependencies insteadof peerDependencies (ed0fac1)

v5.0.3

24 Dec 14:57
Compare
Choose a tag to compare

5.0.3 (2018-12-24)

Bug Fixes

  • mvc: Fix error 500 when endpoint return nothing and status is 204 (9ee0185)
  • mvc: Update session documentation (1d2f0b0)
  • Remove deprecated onAuth hook on ServerLoader (7d61e9f)

v5.0.2

23 Dec 13:10
Compare
Choose a tag to compare

5.0.2 (2018-12-23)

Bug Fixes

  • Deploy script and coverage report (aaa3126)

v5.0.1

23 Dec 12:57
Compare
Choose a tag to compare

5.0.1 (2018-12-23)

Bug Fixes

  • Force republish packages (8d2babb)

v5.0.0

23 Dec 12:09
Compare
Choose a tag to compare
v5.0.0 Pre-release
Pre-release

5.0.0 (2018-12-23)

Note: npm publish has failed to pack the v5.0.0 (problem with an old released one year ago). The official npm version is the 5.0.1.

chore

  • di: Remove method ServerLoader.getSettingsService (59ae2b8)
  • di: remove OnInjectorReady interface (a47a60f)
  • di: Remove static method InjectorService.construct (1215d3c)
  • di: Remove static method InjectorService.emit (834f1dc)
  • di: Remove static method InjectorService.factory (68d065e)
  • di: Remove static method InjectorService.get (abc70c4)
  • di: Remove static method InjectorService.has (628e455)
  • di: Remove static method InjectorService.invoke (6b0305d)
  • di: Remove static method InjectorService.invokeMethod (f75bd75)
  • di: Remove static method InjectorService.load (37b1de8)
  • di: Remove static method InjectorService.service (407a487)
  • di: Remove static method InjectorService.set (17679c3)
  • mvc: Remove FilterService (66f0ff0)
  • mvc: Remove MiddlewareService (a465f1f)
  • mvc: Remove RouterController (62f147b)

Features

  • testing: Make sure injectbootstrap can be called from strict context (204e15e)
  • testing: Promisify the inject function. (58fbaed)
  • testing: Promisify the bootstrap function (f2885a9)
  • testing: Promisify the loadInjector function

BREAKING CHANGES

You have to install as dependencies the @tsed/di packages:

$ npm install --save @tsed/di

Note: @tsed/common export all symbols from @tsed/di


  • testing: inject(MyServer)() now returns a Promise.

Change

beforeEach(inject([MyService, Done], (myService: MyService, done: Done) => {
   myService.doSomething().then(done);
}))

to

beforeEach(async () => {
    let myService
    await inject([MyService], (_myService_: MyService) {
       myService = _myService_
    })();
   // other custom logic

   await myService.doSomething();
})

or

beforeEach(inject([MyService], async (myService: MyService) {
    await myService.something();
}));
  • testing: boostrap(MyServer) now returns a Promise.

Change

beforeEach(done => bootstrap(MyServer)(done))

to

beforeEach(async () => await bootstrap(MyServer)())

or

beforeEach(bootstrap(MyServer))
  • mvc: Remove MiddlewareService. Use InjectorService instead of.
  • di: Remove static method ServerLoader.getSettingsService. Use ServerLoader.settings insteadof
  • di: Remove OnInjectorReady interface. Use OnInit instead of.
  • di: Remove static method InjectorService.invoke. Create a new instance of InjectorService and use injector.invoke instead of.
  • di: Remove static method InjectorService.invokeMethod. Create a new instance of InjectorService and use injector.invokeMethod instead of.
  • di: Remove static method InjectorService.set. No alternative
  • di: Remove static method InjectorService.has. Create a new instance of InjectorService and use injector.has instead of.
  • di: Remove static method InjectorService.load. Create a new instance of InjectorService and use injector.load instead of.
  • di: Remove static method InjectorService.factory. Use registerFactory instead of.
  • di: Remove static method InjectorService.service. Use registerService instead of.
  • di: Remove static method InjectorService.construct. No alternative.
  • di: Remove static method InjectorService.get. Create a new instance of injector and use injector.get() instead of.
  • di: Remove static method InjectorService.emit. Create a new instance of injector and use injector.emit() instead of.
  • mvc: Remove RouterController. Use ExpressRouter insteadof.
  • mvc: Remove FilterService. Use InjectorService instead of.