Skip to content

Releases: sugoiJS/server

Feat: Delay service initialization and "Injector" service for ease IoC handling

24 Mar 20:51

Choose a tag to compare

Features:

  • Support for delay service initialization(#4 ) were added while using the IServerModule interface that provides onLoad method.
  • Injector service were added to allow easier Ioc handling

Breaking changes:

  • Circular dependencies between modules will throw a detailed error on server initialization.

Bug fixes:

  • Double module construct issue fixed, module will no longer initialize more then on time per application

package.json updated

05 Nov 23:01

Choose a tag to compare

Merge branch 'master' of https://github.com/sugoiJS/server

# Conflicts:
#	__tests__/app/app.js
#	__tests__/app/submodule/sub1/sub2/sub2.module.js
#	__tests__/app/submodule/sub3/sub3.controller.d.ts
#	__tests__/app/submodule/sub3/sub3.controller.js
#	__tests__/app/submodule/sub3/sub3.module.js
#	__tests__/server.test.js
#	classes/http-server.class.d.ts
#	classes/http-server.class.js
#	coverage/clover.xml
#	coverage/coverage-final.json
#	coverage/lcov-report/dist/__tests__/app/app.js.html
#	coverage/lcov-report/dist/__tests__/app/controllers/index.controller.js.html
#	coverage/lcov-report/dist/__tests__/app/controllers/index.html
#	coverage/lcov-report/dist/__tests__/app/index.html
#	coverage/lcov-report/dist/__tests__/app/services/auth.service.js.html
#	coverage/lcov-report/dist/__tests__/app/services/index.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/index.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub1.controller.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub1.module.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub1.service.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub2/index.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub2/sub2.controller.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub1/sub2/sub2.module.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub3/index.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub3/sub3.controller.js.html
#	coverage/lcov-report/dist/__tests__/app/submodule/sub3/sub3.module.js.html
#	coverage/lcov-report/dist/classes/auth-provider.class.js.html
#	coverage/lcov-report/dist/classes/http-server.class.js.html
#	coverage/lcov-report/dist/classes/index.html
#	coverage/lcov-report/dist/constants/exceptions.constant.js.html
#	coverage/lcov-report/dist/constants/icons.js.html
#	coverage/lcov-report/dist/constants/index.html
#	coverage/lcov-report/dist/constants/meta-key.js.html
#	coverage/lcov-report/dist/core-utils.js.html
#	coverage/lcov-report/dist/decorators/authorization-policy.decorator.js.html
#	coverage/lcov-report/dist/decorators/express-utils.decorator.js.html
#	coverage/lcov-report/dist/decorators/index.html
#	coverage/lcov-report/dist/decorators/request-schema-policy.decorator.js.html
#	coverage/lcov-report/dist/decorators/server-module.decorator.js.html
#	coverage/lcov-report/dist/exceptions/index.html
#	coverage/lcov-report/dist/exceptions/server.exception.js.html
#	coverage/lcov-report/dist/index.html
#	coverage/lcov-report/dist/index.js.html
#	coverage/lcov-report/dist/services/index.html
#	coverage/lcov-report/dist/services/server-container.service.js.html
#	coverage/lcov-report/dist/utils/authorization.utils.js.html
#	coverage/lcov-report/dist/utils/index.html
#	coverage/lcov-report/dist/utils/parameters-validator.util.js.html
#	coverage/lcov-report/index.html
#	coverage/lcov.info
#	decorators/express-utils.decorator.d.ts
#	package-lock.json
#	package.json

Optimization and features

15 Oct 21:38
1b50d63

Choose a tag to compare

New features

  • @Authorized and @RequestSchemaPolicy are now available to apply on class level- will affect all class methods.
  • multiple @Authorized and RequestSchemaPolicy able to apply on single class\function level.
  • core is no more needed to be installed separately, all methods are re-exported.

Optimization

  • Test coverage

Multiple permissions and roles support for @Authorized

18 Sep 12:05

Choose a tag to compare

New Feature

  • One can pass array of permissions and array of roles into the @Authorized decorator. Those will forward into AuthProvider.

Bug Fix

  • @ServerModule Optional property can run time exception when not found

Policy issue fixed and Authorization implemented

18 Sep 06:10
5eb4201

Choose a tag to compare

New Features:

  • Authorization Policy implemented with AuthProvider and the @Authorized decorator.

Bug Fixes:

  • Issue (#6 ) - Policy override the closure scope
  • Container is not reachable after init the server

alignment with @sugoi\core 2.0.0

05 Sep 18:54

Choose a tag to compare

#Features

  • Extend @ Policy to support request data validation using @ RequestSchemaPolicy.
  • setStatic for support static file serving without re-installing of express.
  • Full integration with inversify-express-utils for routes register