Releases: sugoiJS/server
Releases · sugoiJS/server
Feat: Delay service initialization and "Injector" service for ease IoC handling
Features:
- Support for delay service initialization(#4 ) were added while using the
IServerModuleinterface that provides onLoad method. Injectorservice 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
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
New features
@Authorizedand@RequestSchemaPolicyare now available to apply on class level- will affect all class methods.- multiple
@AuthorizedandRequestSchemaPolicyable 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
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
New Features:
- Authorization Policy implemented with AuthProvider and the
@Authorizeddecorator.
Bug Fixes:
- Issue (#6 ) - Policy override the closure scope
- Container is not reachable after init the server
alignment with @sugoi\core 2.0.0
#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