diff --git a/lerna.json b/lerna.json index f20f219c831..ff3c3c26086 100644 --- a/lerna.json +++ b/lerna.json @@ -11,7 +11,7 @@ "packages/third-parties/*", "docs" ], - "version": "7.30.3", + "version": "7.31.0-rc.1", "command": { "bootstrap": { "npmClientArgs": [ diff --git a/package.json b/package.json index 0712ae880e2..547bd3f4337 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/root", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "A TypeScript Framework on top of Express", "private": true, "author": "Romain Lenzotti", diff --git a/packages/core/package.json b/packages/core/package.json index 300af7f1c3b..c56c29f1dfc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/core", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Core module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -29,8 +29,8 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": {} diff --git a/packages/core/src/utils/proxyDelegation.ts b/packages/core/src/utils/proxyDelegation.ts index 21ce5bbafc6..b81db233453 100644 --- a/packages/core/src/utils/proxyDelegation.ts +++ b/packages/core/src/utils/proxyDelegation.ts @@ -1,4 +1,5 @@ import {uniq} from "./uniq"; + /** * @ignore */ @@ -15,6 +16,7 @@ export type ProxyDelegationSetter = (target: T, property: PropertyKey, * @ignore */ export type ProxyDelegationOwnKeys = (target: T) => (string | symbol)[]; + /** * @ignore */ diff --git a/packages/di/.barrelsby.json b/packages/di/.barrelsby.json new file mode 100644 index 00000000000..022ce249c14 --- /dev/null +++ b/packages/di/.barrelsby.json @@ -0,0 +1,5 @@ +{ + "directory": ["./src/common", "./src/node"], + "exclude": ["__mock__", "__mocks__", ".spec.ts"], + "delete": true +} diff --git a/packages/di/jest.config.js b/packages/di/jest.config.js index 1a8032cc794..9f4237c4d92 100644 --- a/packages/di/jest.config.js +++ b/packages/di/jest.config.js @@ -5,10 +5,10 @@ module.exports = { ...require("@tsed/jest-config"), coverageThreshold: { global: { - statements: 98.62, - branches: 96.51, - lines: 98.62, - functions: 98.72 + statements: 98.81, + branches: 96.71, + lines: 98.81, + functions: 98.32 } } }; diff --git a/packages/di/package.json b/packages/di/package.json index 2b416be6981..57d50f073de 100644 --- a/packages/di/package.json +++ b/packages/di/package.json @@ -1,41 +1,44 @@ { "name": "@tsed/di", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "DI module for Ts.ED Framework", "private": false, "source": "./src/index.ts", - "main": "./lib/cjs/index.js", - "module": "./lib/esm/index.js", + "main": "lib/cjs/index.js", + "module": "lib/esm/index.js", "typings": "./lib/types/index.d.ts", + "browser": "./lib/browser/di.umd.min.js", "exports": { "types": "./lib/types/index.d.ts", + "browser": "./lib/browser/di.umd.min.js", "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js", "default": "./lib/esm/index.js" }, "scripts": { - "build": "yarn barrels && yarn build:ts", - "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\"", + "build": "yarn barrels && yarn build:ts && yarn run build:browser", + "build:browser": "webpack", + "barrels": "yarn barrelsby --config .barrelsby.json", "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 && jest-coverage-thresholds-bumper", "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json", - "lint": "eslint '**/*.{ts,js}'", - "lint:fix": "eslint '**/*.{ts,js}' --fix" + "lint": "node_modules/.bin/eslint '**/*.{ts,js}'", + "lint:fix": "node_modules/.bin/eslint '**/*.{ts,js}' --fix" }, "dependencies": { "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/schema": "^7.30.3" + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/di/src/constants/constants.ts b/packages/di/src/common/constants/constants.ts similarity index 100% rename from packages/di/src/constants/constants.ts rename to packages/di/src/common/constants/constants.ts diff --git a/packages/di/src/decorators/__mock__/lazy.import.module.ts b/packages/di/src/common/decorators/__mock__/lazy.import.module.ts similarity index 100% rename from packages/di/src/decorators/__mock__/lazy.import.module.ts rename to packages/di/src/common/decorators/__mock__/lazy.import.module.ts diff --git a/packages/di/src/decorators/__mock__/lazy.module.ts b/packages/di/src/common/decorators/__mock__/lazy.module.ts similarity index 100% rename from packages/di/src/decorators/__mock__/lazy.module.ts rename to packages/di/src/common/decorators/__mock__/lazy.module.ts diff --git a/packages/di/src/decorators/__mock__/lazy.nodefault.module.ts b/packages/di/src/common/decorators/__mock__/lazy.nodefault.module.ts similarity index 100% rename from packages/di/src/decorators/__mock__/lazy.nodefault.module.ts rename to packages/di/src/common/decorators/__mock__/lazy.nodefault.module.ts diff --git a/packages/di/src/decorators/configuration.spec.ts b/packages/di/src/common/decorators/configuration.spec.ts similarity index 100% rename from packages/di/src/decorators/configuration.spec.ts rename to packages/di/src/common/decorators/configuration.spec.ts diff --git a/packages/di/src/decorators/configuration.ts b/packages/di/src/common/decorators/configuration.ts similarity index 94% rename from packages/di/src/decorators/configuration.ts rename to packages/di/src/common/decorators/configuration.ts index 1933732652c..2fea2c185bc 100644 --- a/packages/di/src/decorators/configuration.ts +++ b/packages/di/src/common/decorators/configuration.ts @@ -1,5 +1,5 @@ import {DecoratorParameters, decoratorTypeOf, DecoratorTypes, StoreSet} from "@tsed/core"; -import {Inject} from "../decorators/inject"; +import {Inject} from "./inject"; import {DIConfiguration} from "../services/DIConfiguration"; /** diff --git a/packages/di/src/decorators/constant.spec.ts b/packages/di/src/common/decorators/constant.spec.ts similarity index 100% rename from packages/di/src/decorators/constant.spec.ts rename to packages/di/src/common/decorators/constant.spec.ts diff --git a/packages/di/src/decorators/constant.ts b/packages/di/src/common/decorators/constant.ts similarity index 100% rename from packages/di/src/decorators/constant.ts rename to packages/di/src/common/decorators/constant.ts diff --git a/packages/di/src/decorators/controller.spec.ts b/packages/di/src/common/decorators/controller.spec.ts similarity index 100% rename from packages/di/src/decorators/controller.spec.ts rename to packages/di/src/common/decorators/controller.spec.ts diff --git a/packages/di/src/decorators/controller.ts b/packages/di/src/common/decorators/controller.ts similarity index 100% rename from packages/di/src/decorators/controller.ts rename to packages/di/src/common/decorators/controller.ts diff --git a/packages/di/src/decorators/inject.spec.ts b/packages/di/src/common/decorators/inject.spec.ts similarity index 100% rename from packages/di/src/decorators/inject.spec.ts rename to packages/di/src/common/decorators/inject.spec.ts diff --git a/packages/di/src/decorators/inject.ts b/packages/di/src/common/decorators/inject.ts similarity index 86% rename from packages/di/src/decorators/inject.ts rename to packages/di/src/common/decorators/inject.ts index ab93d35e854..54fc9f09f68 100644 --- a/packages/di/src/decorators/inject.ts +++ b/packages/di/src/common/decorators/inject.ts @@ -3,7 +3,6 @@ import {DI_PARAM_OPTIONS, INJECTABLE_PROP} from "../constants/constants"; import {InvalidPropertyTokenError} from "../errors/InvalidPropertyTokenError"; import type {InjectablePropertyOptions} from "../interfaces/InjectableProperties"; import {TokenProvider} from "../interfaces/TokenProvider"; -import {getContext} from "../utils/asyncHookContext"; export function injectProperty(target: any, propertyKey: string, options: Partial) { Store.from(target).merge(INJECTABLE_PROP, { @@ -104,27 +103,3 @@ export function Inject(token?: TokenProvider | (() => TokenProvider), onGet = (b } }; } - -/** - * Inject a context like PlatformContext or any BaseContext. - * - * ```typescript - * @Injectable() - * export class MyService { - * @InjectContext() - * ctx?: Context; - * } - * ``` - * - * @returns {Function} - * @decorator - */ -export function InjectContext(): PropertyDecorator { - return (target: any, propertyKey: string): any | void => { - injectProperty(target, propertyKey, { - resolver() { - return () => getContext(); - } - }); - }; -} diff --git a/packages/di/src/decorators/injectable.spec.ts b/packages/di/src/common/decorators/injectable.spec.ts similarity index 95% rename from packages/di/src/decorators/injectable.spec.ts rename to packages/di/src/common/decorators/injectable.spec.ts index af260e32492..f3654d0cb04 100644 --- a/packages/di/src/decorators/injectable.spec.ts +++ b/packages/di/src/common/decorators/injectable.spec.ts @@ -1,4 +1,4 @@ -import {Injectable} from "../decorators/injectable"; +import {Injectable} from "./injectable"; import {GlobalProviders} from "../registries/GlobalProviders"; import * as ProviderRegistry from "../registries/ProviderRegistry"; diff --git a/packages/di/src/decorators/injectable.ts b/packages/di/src/common/decorators/injectable.ts similarity index 100% rename from packages/di/src/decorators/injectable.ts rename to packages/di/src/common/decorators/injectable.ts diff --git a/packages/di/src/decorators/intercept.spec.ts b/packages/di/src/common/decorators/intercept.spec.ts similarity index 100% rename from packages/di/src/decorators/intercept.spec.ts rename to packages/di/src/common/decorators/intercept.spec.ts diff --git a/packages/di/src/decorators/intercept.ts b/packages/di/src/common/decorators/intercept.ts similarity index 100% rename from packages/di/src/decorators/intercept.ts rename to packages/di/src/common/decorators/intercept.ts diff --git a/packages/di/src/decorators/interceptor.ts b/packages/di/src/common/decorators/interceptor.ts similarity index 100% rename from packages/di/src/decorators/interceptor.ts rename to packages/di/src/common/decorators/interceptor.ts diff --git a/packages/di/src/decorators/lazyInject.spec.ts b/packages/di/src/common/decorators/lazyInject.spec.ts similarity index 100% rename from packages/di/src/decorators/lazyInject.spec.ts rename to packages/di/src/common/decorators/lazyInject.spec.ts diff --git a/packages/di/src/decorators/lazyInject.ts b/packages/di/src/common/decorators/lazyInject.ts similarity index 100% rename from packages/di/src/decorators/lazyInject.ts rename to packages/di/src/common/decorators/lazyInject.ts diff --git a/packages/di/src/decorators/module.ts b/packages/di/src/common/decorators/module.ts similarity index 100% rename from packages/di/src/decorators/module.ts rename to packages/di/src/common/decorators/module.ts diff --git a/packages/di/src/decorators/opts.ts b/packages/di/src/common/decorators/opts.ts similarity index 100% rename from packages/di/src/decorators/opts.ts rename to packages/di/src/common/decorators/opts.ts diff --git a/packages/di/src/decorators/overrideProvider.spec.ts b/packages/di/src/common/decorators/overrideProvider.spec.ts similarity index 100% rename from packages/di/src/decorators/overrideProvider.spec.ts rename to packages/di/src/common/decorators/overrideProvider.spec.ts diff --git a/packages/di/src/decorators/overrideProvider.ts b/packages/di/src/common/decorators/overrideProvider.ts similarity index 100% rename from packages/di/src/decorators/overrideProvider.ts rename to packages/di/src/common/decorators/overrideProvider.ts diff --git a/packages/di/src/decorators/scope.spec.ts b/packages/di/src/common/decorators/scope.spec.ts similarity index 100% rename from packages/di/src/decorators/scope.spec.ts rename to packages/di/src/common/decorators/scope.spec.ts diff --git a/packages/di/src/decorators/scope.ts b/packages/di/src/common/decorators/scope.ts similarity index 100% rename from packages/di/src/decorators/scope.ts rename to packages/di/src/common/decorators/scope.ts diff --git a/packages/di/src/decorators/service.ts b/packages/di/src/common/decorators/service.ts similarity index 100% rename from packages/di/src/decorators/service.ts rename to packages/di/src/common/decorators/service.ts diff --git a/packages/di/src/decorators/useOpts.spec.ts b/packages/di/src/common/decorators/useOpts.spec.ts similarity index 98% rename from packages/di/src/decorators/useOpts.spec.ts rename to packages/di/src/common/decorators/useOpts.spec.ts index 7056121f355..d6a491315be 100644 --- a/packages/di/src/decorators/useOpts.spec.ts +++ b/packages/di/src/common/decorators/useOpts.spec.ts @@ -1,6 +1,6 @@ import {descriptorOf} from "@tsed/core"; +import {DITest} from "../../node/index"; import {ProviderScope} from "../domain/ProviderScope"; -import {DITest} from "../services/DITest"; import {Inject} from "./inject"; import {Injectable} from "./injectable"; import {Opts} from "./opts"; diff --git a/packages/di/src/decorators/useOpts.ts b/packages/di/src/common/decorators/useOpts.ts similarity index 100% rename from packages/di/src/decorators/useOpts.ts rename to packages/di/src/common/decorators/useOpts.ts diff --git a/packages/di/src/decorators/value.spec.ts b/packages/di/src/common/decorators/value.spec.ts similarity index 100% rename from packages/di/src/decorators/value.spec.ts rename to packages/di/src/common/decorators/value.spec.ts diff --git a/packages/di/src/decorators/value.ts b/packages/di/src/common/decorators/value.ts similarity index 100% rename from packages/di/src/decorators/value.ts rename to packages/di/src/common/decorators/value.ts diff --git a/packages/di/src/domain/Container.spec.ts b/packages/di/src/common/domain/Container.spec.ts similarity index 100% rename from packages/di/src/domain/Container.spec.ts rename to packages/di/src/common/domain/Container.spec.ts diff --git a/packages/di/src/domain/Container.ts b/packages/di/src/common/domain/Container.ts similarity index 100% rename from packages/di/src/domain/Container.ts rename to packages/di/src/common/domain/Container.ts diff --git a/packages/di/src/domain/ControllerProvider.spec.ts b/packages/di/src/common/domain/ControllerProvider.spec.ts similarity index 100% rename from packages/di/src/domain/ControllerProvider.spec.ts rename to packages/di/src/common/domain/ControllerProvider.spec.ts diff --git a/packages/di/src/domain/ControllerProvider.ts b/packages/di/src/common/domain/ControllerProvider.ts similarity index 100% rename from packages/di/src/domain/ControllerProvider.ts rename to packages/di/src/common/domain/ControllerProvider.ts diff --git a/packages/di/src/domain/InjectablePropertyType.ts b/packages/di/src/common/domain/InjectablePropertyType.ts similarity index 100% rename from packages/di/src/domain/InjectablePropertyType.ts rename to packages/di/src/common/domain/InjectablePropertyType.ts diff --git a/packages/di/src/domain/LocalsContainer.spec.ts b/packages/di/src/common/domain/LocalsContainer.spec.ts similarity index 100% rename from packages/di/src/domain/LocalsContainer.spec.ts rename to packages/di/src/common/domain/LocalsContainer.spec.ts diff --git a/packages/di/src/domain/LocalsContainer.ts b/packages/di/src/common/domain/LocalsContainer.ts similarity index 100% rename from packages/di/src/domain/LocalsContainer.ts rename to packages/di/src/common/domain/LocalsContainer.ts diff --git a/packages/di/src/domain/Provider.spec.ts b/packages/di/src/common/domain/Provider.spec.ts similarity index 100% rename from packages/di/src/domain/Provider.spec.ts rename to packages/di/src/common/domain/Provider.spec.ts diff --git a/packages/di/src/domain/Provider.ts b/packages/di/src/common/domain/Provider.ts similarity index 100% rename from packages/di/src/domain/Provider.ts rename to packages/di/src/common/domain/Provider.ts diff --git a/packages/di/src/domain/ProviderScope.ts b/packages/di/src/common/domain/ProviderScope.ts similarity index 100% rename from packages/di/src/domain/ProviderScope.ts rename to packages/di/src/common/domain/ProviderScope.ts diff --git a/packages/di/src/domain/ProviderType.ts b/packages/di/src/common/domain/ProviderType.ts similarity index 100% rename from packages/di/src/domain/ProviderType.ts rename to packages/di/src/common/domain/ProviderType.ts diff --git a/packages/di/src/errors/InjectionError.spec.ts b/packages/di/src/common/errors/InjectionError.spec.ts similarity index 100% rename from packages/di/src/errors/InjectionError.spec.ts rename to packages/di/src/common/errors/InjectionError.spec.ts diff --git a/packages/di/src/errors/InjectionError.ts b/packages/di/src/common/errors/InjectionError.ts similarity index 100% rename from packages/di/src/errors/InjectionError.ts rename to packages/di/src/common/errors/InjectionError.ts diff --git a/packages/di/src/errors/InvalidPropertyTokenError.ts b/packages/di/src/common/errors/InvalidPropertyTokenError.ts similarity index 100% rename from packages/di/src/errors/InvalidPropertyTokenError.ts rename to packages/di/src/common/errors/InvalidPropertyTokenError.ts diff --git a/packages/di/src/errors/UndefinedTokenError.ts b/packages/di/src/common/errors/UndefinedTokenError.ts similarity index 100% rename from packages/di/src/errors/UndefinedTokenError.ts rename to packages/di/src/common/errors/UndefinedTokenError.ts diff --git a/packages/di/src/common/index.ts b/packages/di/src/common/index.ts new file mode 100644 index 00000000000..d692b68f060 --- /dev/null +++ b/packages/di/src/common/index.ts @@ -0,0 +1,54 @@ +/** + * @file Automatically generated by barrelsby. + */ + +export * from "./constants/constants"; +export * from "./decorators/configuration"; +export * from "./decorators/constant"; +export * from "./decorators/controller"; +export * from "./decorators/inject"; +export * from "./decorators/injectable"; +export * from "./decorators/intercept"; +export * from "./decorators/interceptor"; +export * from "./decorators/lazyInject"; +export * from "./decorators/module"; +export * from "./decorators/opts"; +export * from "./decorators/overrideProvider"; +export * from "./decorators/scope"; +export * from "./decorators/service"; +export * from "./decorators/useOpts"; +export * from "./decorators/value"; +export * from "./domain/Container"; +export * from "./domain/ControllerProvider"; +export * from "./domain/InjectablePropertyType"; +export * from "./domain/LocalsContainer"; +export * from "./domain/Provider"; +export * from "./domain/ProviderScope"; +export * from "./domain/ProviderType"; +export * from "./errors/InjectionError"; +export * from "./errors/InvalidPropertyTokenError"; +export * from "./errors/UndefinedTokenError"; +export * from "./interfaces/DIConfigurationOptions"; +export * from "./interfaces/DILogger"; +export * from "./interfaces/DILoggerOptions"; +export * from "./interfaces/DIResolver"; +export * from "./interfaces/InjectableProperties"; +export * from "./interfaces/InterceptorContext"; +export * from "./interfaces/InterceptorMethods"; +export * from "./interfaces/InvokeOptions"; +export * from "./interfaces/OnDestroy"; +export * from "./interfaces/OnInit"; +export * from "./interfaces/ProviderOpts"; +export * from "./interfaces/RegistrySettings"; +export * from "./interfaces/ResolvedInvokeOptions"; +export * from "./interfaces/TokenProvider"; +export * from "./interfaces/TokenRoute"; +export * from "./registries/GlobalProviders"; +export * from "./registries/ProviderRegistry"; +export * from "./services/DIConfiguration"; +export * from "./services/DILogger"; +export * from "./services/InjectorService"; +export * from "./utils/colors"; +export * from "./utils/createContainer"; +export * from "./utils/getConfiguration"; +export * from "./utils/resolveControllers"; diff --git a/packages/di/src/integration/async-factory.spec.ts b/packages/di/src/common/integration/async-factory.spec.ts similarity index 100% rename from packages/di/src/integration/async-factory.spec.ts rename to packages/di/src/common/integration/async-factory.spec.ts diff --git a/packages/di/src/integration/di.spec.ts b/packages/di/src/common/integration/di.spec.ts similarity index 100% rename from packages/di/src/integration/di.spec.ts rename to packages/di/src/common/integration/di.spec.ts diff --git a/packages/di/src/integration/imports.spec.ts b/packages/di/src/common/integration/imports.spec.ts similarity index 94% rename from packages/di/src/integration/imports.spec.ts rename to packages/di/src/common/integration/imports.spec.ts index 204e4b4eb01..53b206298e6 100644 --- a/packages/di/src/integration/imports.spec.ts +++ b/packages/di/src/common/integration/imports.spec.ts @@ -1,7 +1,7 @@ +import {DITest} from "../../node/index"; import {Inject} from "../decorators/inject"; import {Injectable} from "../decorators/injectable"; import {Module} from "../decorators/module"; -import {DITest} from "../services/DITest"; @Injectable() class MyService { diff --git a/packages/di/src/integration/interceptor.spec.ts b/packages/di/src/common/integration/interceptor.spec.ts similarity index 100% rename from packages/di/src/integration/interceptor.spec.ts rename to packages/di/src/common/integration/interceptor.spec.ts diff --git a/packages/di/src/integration/request.spec.ts b/packages/di/src/common/integration/request.spec.ts similarity index 100% rename from packages/di/src/integration/request.spec.ts rename to packages/di/src/common/integration/request.spec.ts diff --git a/packages/di/src/integration/resolvers.spec.ts b/packages/di/src/common/integration/resolvers.spec.ts similarity index 100% rename from packages/di/src/integration/resolvers.spec.ts rename to packages/di/src/common/integration/resolvers.spec.ts diff --git a/packages/di/src/integration/singleton.spec.ts b/packages/di/src/common/integration/singleton.spec.ts similarity index 100% rename from packages/di/src/integration/singleton.spec.ts rename to packages/di/src/common/integration/singleton.spec.ts diff --git a/packages/di/src/interfaces/DIConfigurationOptions.ts b/packages/di/src/common/interfaces/DIConfigurationOptions.ts similarity index 100% rename from packages/di/src/interfaces/DIConfigurationOptions.ts rename to packages/di/src/common/interfaces/DIConfigurationOptions.ts diff --git a/packages/di/src/interfaces/DILogger.ts b/packages/di/src/common/interfaces/DILogger.ts similarity index 100% rename from packages/di/src/interfaces/DILogger.ts rename to packages/di/src/common/interfaces/DILogger.ts diff --git a/packages/di/src/interfaces/DILoggerOptions.ts b/packages/di/src/common/interfaces/DILoggerOptions.ts similarity index 100% rename from packages/di/src/interfaces/DILoggerOptions.ts rename to packages/di/src/common/interfaces/DILoggerOptions.ts diff --git a/packages/di/src/interfaces/DIResolver.ts b/packages/di/src/common/interfaces/DIResolver.ts similarity index 100% rename from packages/di/src/interfaces/DIResolver.ts rename to packages/di/src/common/interfaces/DIResolver.ts diff --git a/packages/di/src/interfaces/InjectableProperties.ts b/packages/di/src/common/interfaces/InjectableProperties.ts similarity index 100% rename from packages/di/src/interfaces/InjectableProperties.ts rename to packages/di/src/common/interfaces/InjectableProperties.ts diff --git a/packages/di/src/interfaces/InterceptorContext.ts b/packages/di/src/common/interfaces/InterceptorContext.ts similarity index 100% rename from packages/di/src/interfaces/InterceptorContext.ts rename to packages/di/src/common/interfaces/InterceptorContext.ts diff --git a/packages/di/src/interfaces/InterceptorMethods.ts b/packages/di/src/common/interfaces/InterceptorMethods.ts similarity index 100% rename from packages/di/src/interfaces/InterceptorMethods.ts rename to packages/di/src/common/interfaces/InterceptorMethods.ts diff --git a/packages/di/src/interfaces/InvokeOptions.ts b/packages/di/src/common/interfaces/InvokeOptions.ts similarity index 100% rename from packages/di/src/interfaces/InvokeOptions.ts rename to packages/di/src/common/interfaces/InvokeOptions.ts diff --git a/packages/di/src/interfaces/OnDestroy.ts b/packages/di/src/common/interfaces/OnDestroy.ts similarity index 100% rename from packages/di/src/interfaces/OnDestroy.ts rename to packages/di/src/common/interfaces/OnDestroy.ts diff --git a/packages/di/src/interfaces/OnInit.ts b/packages/di/src/common/interfaces/OnInit.ts similarity index 100% rename from packages/di/src/interfaces/OnInit.ts rename to packages/di/src/common/interfaces/OnInit.ts diff --git a/packages/di/src/interfaces/ProviderOpts.ts b/packages/di/src/common/interfaces/ProviderOpts.ts similarity index 100% rename from packages/di/src/interfaces/ProviderOpts.ts rename to packages/di/src/common/interfaces/ProviderOpts.ts diff --git a/packages/di/src/interfaces/RegistrySettings.ts b/packages/di/src/common/interfaces/RegistrySettings.ts similarity index 100% rename from packages/di/src/interfaces/RegistrySettings.ts rename to packages/di/src/common/interfaces/RegistrySettings.ts diff --git a/packages/di/src/interfaces/ResolvedInvokeOptions.ts b/packages/di/src/common/interfaces/ResolvedInvokeOptions.ts similarity index 100% rename from packages/di/src/interfaces/ResolvedInvokeOptions.ts rename to packages/di/src/common/interfaces/ResolvedInvokeOptions.ts diff --git a/packages/di/src/interfaces/TokenProvider.ts b/packages/di/src/common/interfaces/TokenProvider.ts similarity index 100% rename from packages/di/src/interfaces/TokenProvider.ts rename to packages/di/src/common/interfaces/TokenProvider.ts diff --git a/packages/di/src/interfaces/TokenRoute.ts b/packages/di/src/common/interfaces/TokenRoute.ts similarity index 100% rename from packages/di/src/interfaces/TokenRoute.ts rename to packages/di/src/common/interfaces/TokenRoute.ts diff --git a/packages/di/src/registries/GlobalProviders.spec.ts b/packages/di/src/common/registries/GlobalProviders.spec.ts similarity index 100% rename from packages/di/src/registries/GlobalProviders.spec.ts rename to packages/di/src/common/registries/GlobalProviders.spec.ts diff --git a/packages/di/src/registries/GlobalProviders.ts b/packages/di/src/common/registries/GlobalProviders.ts similarity index 96% rename from packages/di/src/registries/GlobalProviders.ts rename to packages/di/src/common/registries/GlobalProviders.ts index b2a6a6aef63..32f19a111e6 100644 --- a/packages/di/src/registries/GlobalProviders.ts +++ b/packages/di/src/common/registries/GlobalProviders.ts @@ -108,13 +108,6 @@ export class GlobalProviderRegistry extends Map { createRegisterFn(type: string) { return (provider: any | ProviderOpts, instance?: any): void => { - // istanbul ignore next - if (!provider.provide) { - provider = { - provide: provider - }; - } - provider = Object.assign({instance}, provider, {type}); this.merge(provider.provide, provider); }; diff --git a/packages/di/src/registries/ProviderRegistry.spec.ts b/packages/di/src/common/registries/ProviderRegistry.spec.ts similarity index 100% rename from packages/di/src/registries/ProviderRegistry.spec.ts rename to packages/di/src/common/registries/ProviderRegistry.spec.ts diff --git a/packages/di/src/registries/ProviderRegistry.ts b/packages/di/src/common/registries/ProviderRegistry.ts similarity index 100% rename from packages/di/src/registries/ProviderRegistry.ts rename to packages/di/src/common/registries/ProviderRegistry.ts diff --git a/packages/di/src/services/DIConfiguration.spec.ts b/packages/di/src/common/services/DIConfiguration.spec.ts similarity index 66% rename from packages/di/src/services/DIConfiguration.spec.ts rename to packages/di/src/common/services/DIConfiguration.spec.ts index 7175d92cfa6..96c27ef3626 100644 --- a/packages/di/src/services/DIConfiguration.spec.ts +++ b/packages/di/src/common/services/DIConfiguration.spec.ts @@ -79,35 +79,11 @@ describe("DIConfiguration", () => { }); }); - describe("proxy", () => { - it("should set and get data", () => { + describe("rootDir()", () => { + it("should replace rootDir", () => { const configuration = new DIConfiguration(); - - configuration.set("test", "test"); - expect(configuration.get("test")).toEqual("test"); - expect("test" in configuration).toEqual(true); - expect(configuration.get("test")).toEqual("test"); - }); - - it("ownKeys", () => { - const configuration = new DIConfiguration(); - configuration.set("test", "test"); - expect(Reflect.ownKeys(configuration)).toEqual(["default", "map", "scopes", "resolvers", "imports", "routes", "logger", "test"]); - }); - - it("defineProperty", () => { - const configuration = new (class extends DIConfiguration {})(); - - expect(Reflect.defineProperty(configuration, "test", {})).toEqual(true); - expect(Reflect.deleteProperty(configuration, "test")).toEqual(false); - }); - - describe("resolve()", () => { - it("should replace rootDir", () => { - const configuration = new DIConfiguration(); - configuration.set("rootDir", "/root"); - expect(configuration.resolve("${rootDir}")).toEqual("/root"); - }); + configuration.set("rootDir", "/root"); + expect(configuration.resolve("${rootDir}")).toEqual("/root"); }); }); }); diff --git a/packages/di/src/services/DIConfiguration.ts b/packages/di/src/common/services/DIConfiguration.ts similarity index 93% rename from packages/di/src/services/DIConfiguration.ts rename to packages/di/src/common/services/DIConfiguration.ts index 2c6f1fb451d..01db425a969 100644 --- a/packages/di/src/services/DIConfiguration.ts +++ b/packages/di/src/common/services/DIConfiguration.ts @@ -1,9 +1,8 @@ -import {classOf, Env, getValue, proxyDelegation, setValue} from "@tsed/core"; +import {Env, getValue, proxyDelegation, setValue} from "@tsed/core"; import type {ProviderScope} from "../domain/ProviderScope"; import type {DILoggerOptions} from "../interfaces/DILoggerOptions"; import type {DIResolver} from "../interfaces/DIResolver"; -import {TokenProviderOpts} from "../interfaces/TokenProvider"; -import type {TokenProvider} from "../interfaces/TokenProvider"; +import type {TokenProvider, TokenProviderOpts} from "../interfaces/TokenProvider"; import type {TokenRoute} from "../interfaces/TokenRoute"; export class DIConfiguration { @@ -120,7 +119,7 @@ export class DIConfiguration { */ set(propertyKey: string | Partial, value?: any): this { if (typeof propertyKey === "string") { - if (propertyKey in this) { + if (Reflect.has(this, propertyKey)) { // @ts-ignore this[propertyKey] = value; } else { @@ -151,6 +150,15 @@ export class DIConfiguration { return this.getRaw(propertyKey, defaultValue); } + /** + * + * @param value + * @returns {any} + */ + resolve(value: any) { + return value.replace("${rootDir}", this.rootDir); + } + protected getRaw(propertyKey: string, defaultValue?: any): any { const value = getValue(this.map, propertyKey); @@ -160,13 +168,4 @@ export class DIConfiguration { return getValue(this.default, propertyKey, defaultValue); } - - /** - * - * @param value - * @returns {any} - */ - resolve(value: any) { - return value.replace("${rootDir}", this.rootDir); - } } diff --git a/packages/di/src/common/services/DILogger.spec.ts b/packages/di/src/common/services/DILogger.spec.ts new file mode 100644 index 00000000000..5cb53a6bfeb --- /dev/null +++ b/packages/di/src/common/services/DILogger.spec.ts @@ -0,0 +1,22 @@ +import {Container, Inject, Injectable, InjectorService, LOGGER} from "../../common/index"; + +describe("DILogger", () => { + it("should inject logger in another service", async () => { + @Injectable() + class MyService { + @Inject(LOGGER) + logger: LOGGER; + } + + const injector = new InjectorService(); + injector.logger = console; + + const container = new Container(); + container.add(MyService); + + await injector.load(container); + const logger = injector.get(MyService).logger; + + expect(logger).toEqual(injector.logger); + }); +}); diff --git a/packages/di/src/services/DILogger.ts b/packages/di/src/common/services/DILogger.ts similarity index 62% rename from packages/di/src/services/DILogger.ts rename to packages/di/src/common/services/DILogger.ts index 1980aa93b05..2331b747e5e 100644 --- a/packages/di/src/services/DILogger.ts +++ b/packages/di/src/common/services/DILogger.ts @@ -1,9 +1,12 @@ -import {Logger} from "@tsed/logger"; +import {DILogger} from "../interfaces/DILogger"; import {registerProvider} from "../registries/ProviderRegistry"; import {InjectorService} from "./InjectorService"; +export const LOGGER = Symbol.for("LOGGER"); +export type LOGGER = DILogger; + registerProvider({ - provide: Logger, + provide: LOGGER, deps: [InjectorService], useFactory(injector: InjectorService) { return injector.logger; diff --git a/packages/di/src/services/InjectorService.spec.ts b/packages/di/src/common/services/InjectorService.spec.ts similarity index 99% rename from packages/di/src/services/InjectorService.spec.ts rename to packages/di/src/common/services/InjectorService.spec.ts index 897d4f12b77..4707d384241 100644 --- a/packages/di/src/services/InjectorService.spec.ts +++ b/packages/di/src/common/services/InjectorService.spec.ts @@ -10,7 +10,7 @@ import {ProviderScope} from "../domain/ProviderScope"; import {ProviderType} from "../domain/ProviderType"; import {GlobalProviders} from "../registries/GlobalProviders"; import {registerProvider} from "../registries/ProviderRegistry"; -import {InjectorService} from "../services/InjectorService"; +import {InjectorService} from "./InjectorService"; class Test { @Inject() diff --git a/packages/di/src/services/InjectorService.ts b/packages/di/src/common/services/InjectorService.ts similarity index 100% rename from packages/di/src/services/InjectorService.ts rename to packages/di/src/common/services/InjectorService.ts diff --git a/packages/di/src/utils/__mock__/Test1.ts b/packages/di/src/common/utils/__mock__/Test1.ts similarity index 100% rename from packages/di/src/utils/__mock__/Test1.ts rename to packages/di/src/common/utils/__mock__/Test1.ts diff --git a/packages/di/src/utils/__mock__/Test2.ts b/packages/di/src/common/utils/__mock__/Test2.ts similarity index 100% rename from packages/di/src/utils/__mock__/Test2.ts rename to packages/di/src/common/utils/__mock__/Test2.ts diff --git a/packages/di/src/utils/__mock__/module1/Module1.ts b/packages/di/src/common/utils/__mock__/module1/Module1.ts similarity index 100% rename from packages/di/src/utils/__mock__/module1/Module1.ts rename to packages/di/src/common/utils/__mock__/module1/Module1.ts diff --git a/packages/di/src/utils/__mock__/module1/controllers/M1Ctrl1.ts b/packages/di/src/common/utils/__mock__/module1/controllers/M1Ctrl1.ts similarity index 100% rename from packages/di/src/utils/__mock__/module1/controllers/M1Ctrl1.ts rename to packages/di/src/common/utils/__mock__/module1/controllers/M1Ctrl1.ts diff --git a/packages/di/src/utils/__mock__/module1/services/M1Service.ts b/packages/di/src/common/utils/__mock__/module1/services/M1Service.ts similarity index 100% rename from packages/di/src/utils/__mock__/module1/services/M1Service.ts rename to packages/di/src/common/utils/__mock__/module1/services/M1Service.ts diff --git a/packages/di/src/utils/__mock__/module1/submodule/SubModule.ts b/packages/di/src/common/utils/__mock__/module1/submodule/SubModule.ts similarity index 100% rename from packages/di/src/utils/__mock__/module1/submodule/SubModule.ts rename to packages/di/src/common/utils/__mock__/module1/submodule/SubModule.ts diff --git a/packages/di/src/utils/__mock__/module1/submodule/SubService.ts b/packages/di/src/common/utils/__mock__/module1/submodule/SubService.ts similarity index 100% rename from packages/di/src/utils/__mock__/module1/submodule/SubService.ts rename to packages/di/src/common/utils/__mock__/module1/submodule/SubService.ts diff --git a/packages/di/src/utils/__mock__/module2/Module2.ts b/packages/di/src/common/utils/__mock__/module2/Module2.ts similarity index 100% rename from packages/di/src/utils/__mock__/module2/Module2.ts rename to packages/di/src/common/utils/__mock__/module2/Module2.ts diff --git a/packages/di/src/utils/__mock__/module2/controllers/M2Ctrl.ts b/packages/di/src/common/utils/__mock__/module2/controllers/M2Ctrl.ts similarity index 100% rename from packages/di/src/utils/__mock__/module2/controllers/M2Ctrl.ts rename to packages/di/src/common/utils/__mock__/module2/controllers/M2Ctrl.ts diff --git a/packages/di/src/utils/colors.spec.ts b/packages/di/src/common/utils/colors.spec.ts similarity index 100% rename from packages/di/src/utils/colors.spec.ts rename to packages/di/src/common/utils/colors.spec.ts diff --git a/packages/di/src/utils/colors.ts b/packages/di/src/common/utils/colors.ts similarity index 100% rename from packages/di/src/utils/colors.ts rename to packages/di/src/common/utils/colors.ts diff --git a/packages/di/src/utils/createContainer.spec.ts b/packages/di/src/common/utils/createContainer.spec.ts similarity index 100% rename from packages/di/src/utils/createContainer.spec.ts rename to packages/di/src/common/utils/createContainer.spec.ts diff --git a/packages/di/src/utils/createContainer.ts b/packages/di/src/common/utils/createContainer.ts similarity index 100% rename from packages/di/src/utils/createContainer.ts rename to packages/di/src/common/utils/createContainer.ts diff --git a/packages/di/src/utils/getConfiguration.spec.ts b/packages/di/src/common/utils/getConfiguration.spec.ts similarity index 100% rename from packages/di/src/utils/getConfiguration.spec.ts rename to packages/di/src/common/utils/getConfiguration.spec.ts diff --git a/packages/di/src/utils/getConfiguration.ts b/packages/di/src/common/utils/getConfiguration.ts similarity index 100% rename from packages/di/src/utils/getConfiguration.ts rename to packages/di/src/common/utils/getConfiguration.ts diff --git a/packages/di/src/utils/resolveControllers.spec.ts b/packages/di/src/common/utils/resolveControllers.spec.ts similarity index 100% rename from packages/di/src/utils/resolveControllers.spec.ts rename to packages/di/src/common/utils/resolveControllers.spec.ts diff --git a/packages/di/src/utils/resolveControllers.ts b/packages/di/src/common/utils/resolveControllers.ts similarity index 100% rename from packages/di/src/utils/resolveControllers.ts rename to packages/di/src/common/utils/resolveControllers.ts diff --git a/packages/di/src/index.ts b/packages/di/src/index.ts index df482d2ee68..4e2b5f5549b 100644 --- a/packages/di/src/index.ts +++ b/packages/di/src/index.ts @@ -1,63 +1,2 @@ -/** - * @file Automatically generated by barrelsby. - */ - -export * from "./constants/constants"; -export * from "./decorators/configuration"; -export * from "./decorators/constant"; -export * from "./decorators/controller"; -export * from "./decorators/inject"; -export * from "./decorators/injectable"; -export * from "./decorators/intercept"; -export * from "./decorators/interceptor"; -export * from "./decorators/lazyInject"; -export * from "./decorators/module"; -export * from "./decorators/opts"; -export * from "./decorators/overrideProvider"; -export * from "./decorators/scope"; -export * from "./decorators/service"; -export * from "./decorators/useOpts"; -export * from "./decorators/value"; -export * from "./domain/Container"; -export * from "./domain/ContextLogger"; -export * from "./domain/ControllerProvider"; -export * from "./domain/DIContext"; -export * from "./domain/InjectablePropertyType"; -export * from "./domain/LocalsContainer"; -export * from "./domain/Provider"; -export * from "./domain/ProviderScope"; -export * from "./domain/ProviderType"; -export * from "./errors/InjectionError"; -export * from "./errors/InvalidPropertyTokenError"; -export * from "./errors/UndefinedTokenError"; -export * from "./interfaces/AlterRunInContext"; -export * from "./interfaces/DIConfigurationOptions"; -export * from "./interfaces/DILogger"; -export * from "./interfaces/DILoggerOptions"; -export * from "./interfaces/DIResolver"; -export * from "./interfaces/InjectableProperties"; -export * from "./interfaces/InterceptorContext"; -export * from "./interfaces/InterceptorMethods"; -export * from "./interfaces/InvokeOptions"; -export * from "./interfaces/OnDestroy"; -export * from "./interfaces/OnInit"; -export * from "./interfaces/ProviderOpts"; -export * from "./interfaces/RegistrySettings"; -export * from "./interfaces/ResolvedInvokeOptions"; -export * from "./interfaces/TokenProvider"; -export * from "./interfaces/TokenRoute"; -export * from "./registries/GlobalProviders"; -export * from "./registries/ProviderRegistry"; -export * from "./services/DIConfiguration"; -export * from "./services/DILogger"; -export * from "./services/DITest"; -export * from "./services/InjectorService"; -export * from "./utils/asyncHookContext"; -export * from "./utils/attachLogger"; -export * from "./utils/colors"; -export * from "./utils/createContainer"; -export * from "./utils/getConfiguration"; -export * from "./utils/resolveControllers"; -export * from "./utils/setLoggerConfiguration"; -export * from "./utils/setLoggerFormat"; -export * from "./utils/setLoggerLevel"; +export * from "./common/index"; +export * from "./node/index"; diff --git a/packages/di/src/node/decorators/injectContext.ts b/packages/di/src/node/decorators/injectContext.ts new file mode 100644 index 00000000000..5118ceed067 --- /dev/null +++ b/packages/di/src/node/decorators/injectContext.ts @@ -0,0 +1,26 @@ +import {injectProperty} from "../../common/index"; +import {getContext} from "../utils/asyncHookContext"; + +/** + * Inject a context like PlatformContext or any BaseContext. + * + * ```typescript + * @Injectable() + * export class MyService { + * @InjectContext() + * ctx?: Context; + * } + * ``` + * + * @returns {Function} + * @decorator + */ +export function InjectContext(): PropertyDecorator { + return (target: any, propertyKey: string): any | void => { + injectProperty(target, propertyKey, { + resolver() { + return () => getContext(); + } + }); + }; +} diff --git a/packages/di/src/domain/ContextLogger.spec.ts b/packages/di/src/node/domain/ContextLogger.spec.ts similarity index 99% rename from packages/di/src/domain/ContextLogger.spec.ts rename to packages/di/src/node/domain/ContextLogger.spec.ts index 5aededd2461..e3a764f55e1 100644 --- a/packages/di/src/domain/ContextLogger.spec.ts +++ b/packages/di/src/node/domain/ContextLogger.spec.ts @@ -1,4 +1,4 @@ -import {InjectorService} from "../services/InjectorService"; +import {InjectorService} from "../../common/index"; import {ContextLogger} from "./ContextLogger"; function getIgnoreLogFixture(ignore: string[], url: string) { diff --git a/packages/di/src/domain/ContextLogger.ts b/packages/di/src/node/domain/ContextLogger.ts similarity index 98% rename from packages/di/src/domain/ContextLogger.ts rename to packages/di/src/node/domain/ContextLogger.ts index 706b722f3f1..b728d3fdba4 100644 --- a/packages/di/src/domain/ContextLogger.ts +++ b/packages/di/src/node/domain/ContextLogger.ts @@ -1,6 +1,6 @@ +import {DILogger} from "../../common/index"; import {Hooks} from "@tsed/core"; import {levels, LogLevel} from "@tsed/logger"; -import {DILogger} from "../interfaces/DILogger"; export interface ContextLoggerOptions extends Record { id: string; diff --git a/packages/di/src/domain/DIContext.spec.ts b/packages/di/src/node/domain/DIContext.spec.ts similarity index 100% rename from packages/di/src/domain/DIContext.spec.ts rename to packages/di/src/node/domain/DIContext.spec.ts diff --git a/packages/di/src/domain/DIContext.ts b/packages/di/src/node/domain/DIContext.ts similarity index 95% rename from packages/di/src/domain/DIContext.ts rename to packages/di/src/node/domain/DIContext.ts index 156e82eec57..749dcbe31da 100644 --- a/packages/di/src/domain/DIContext.ts +++ b/packages/di/src/node/domain/DIContext.ts @@ -1,7 +1,6 @@ -import {InjectorService} from "../services/InjectorService"; +import {InjectorService, LocalsContainer} from "../../common/index"; import {runInContext} from "../utils/asyncHookContext"; import {ContextLogger, ContextLoggerOptions} from "./ContextLogger"; -import {LocalsContainer} from "./LocalsContainer"; export interface DIContextOptions extends Omit { id: string; diff --git a/packages/di/src/node/index.ts b/packages/di/src/node/index.ts new file mode 100644 index 00000000000..4f7d753589c --- /dev/null +++ b/packages/di/src/node/index.ts @@ -0,0 +1,15 @@ +/** + * @file Automatically generated by barrelsby. + */ + +export * from "./decorators/injectContext"; +export * from "./domain/ContextLogger"; +export * from "./domain/DIContext"; +export * from "./interfaces/AlterRunInContext"; +export * from "./services/DILogger"; +export * from "./services/DITest"; +export * from "./utils/asyncHookContext"; +export * from "./utils/attachLogger"; +export * from "./utils/setLoggerConfiguration"; +export * from "./utils/setLoggerFormat"; +export * from "./utils/setLoggerLevel"; diff --git a/packages/di/src/integration/inject-context.spec.ts b/packages/di/src/node/integration/inject-context.spec.ts similarity index 85% rename from packages/di/src/integration/inject-context.spec.ts rename to packages/di/src/node/integration/inject-context.spec.ts index f768de71514..3b20e306d35 100644 --- a/packages/di/src/integration/inject-context.spec.ts +++ b/packages/di/src/node/integration/inject-context.spec.ts @@ -1,5 +1,5 @@ -import {InjectContext} from "../decorators/inject"; -import {Injectable} from "../decorators/injectable"; +import {Injectable} from "../../common/index"; +import {InjectContext} from "../decorators/injectContext"; import {DIContext} from "../domain/DIContext"; import {DITest} from "../services/DITest"; import {runInContext} from "../utils/asyncHookContext"; diff --git a/packages/di/src/interfaces/AlterRunInContext.ts b/packages/di/src/node/interfaces/AlterRunInContext.ts similarity index 100% rename from packages/di/src/interfaces/AlterRunInContext.ts rename to packages/di/src/node/interfaces/AlterRunInContext.ts diff --git a/packages/di/src/services/DILogger.spec.ts b/packages/di/src/node/services/DILogger.spec.ts similarity index 72% rename from packages/di/src/services/DILogger.spec.ts rename to packages/di/src/node/services/DILogger.spec.ts index 5bcba96bd04..67f91447717 100644 --- a/packages/di/src/services/DILogger.spec.ts +++ b/packages/di/src/node/services/DILogger.spec.ts @@ -1,8 +1,5 @@ import {Logger} from "@tsed/logger"; -import {Inject} from "../decorators/inject"; -import {Injectable} from "../decorators/injectable"; -import {Container} from "../domain/Container"; -import {InjectorService} from "./InjectorService"; +import {Container, Inject, Injectable, InjectorService} from "../../common/index"; describe("DILogger", () => { it("should inject logger in another service", async () => { diff --git a/packages/di/src/node/services/DILogger.ts b/packages/di/src/node/services/DILogger.ts new file mode 100644 index 00000000000..91140bd7f0b --- /dev/null +++ b/packages/di/src/node/services/DILogger.ts @@ -0,0 +1,10 @@ +import {Logger} from "@tsed/logger"; +import {InjectorService, registerProvider} from "../../common/index"; + +registerProvider({ + provide: Logger, + deps: [InjectorService], + useFactory(injector: InjectorService) { + return injector.logger; + } +}); diff --git a/packages/di/src/services/DITest.ts b/packages/di/src/node/services/DITest.ts similarity index 92% rename from packages/di/src/services/DITest.ts rename to packages/di/src/node/services/DITest.ts index 12d39626dc6..bfab5462cd3 100644 --- a/packages/di/src/services/DITest.ts +++ b/packages/di/src/node/services/DITest.ts @@ -1,12 +1,8 @@ import {Env, getValue, setValue} from "@tsed/core"; import {$log} from "@tsed/logger"; +import {createContainer, InjectorService, LocalsContainer, OnInit, TokenProvider, TokenProviderOpts} from "../../common/index"; import {DIContext} from "../domain/DIContext"; -import {LocalsContainer} from "../domain/LocalsContainer"; -import {OnInit} from "../interfaces/OnInit"; -import {TokenProviderOpts, TokenProvider} from "../interfaces/TokenProvider"; -import {createContainer} from "../utils/createContainer"; import {setLoggerConfiguration} from "../utils/setLoggerConfiguration"; -import {InjectorService} from "./InjectorService"; /** * Tool to run test with lightweight DI sandbox. diff --git a/packages/di/src/node/utils/__mock__/Test1.ts b/packages/di/src/node/utils/__mock__/Test1.ts new file mode 100644 index 00000000000..dd5c3e5fe98 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/Test1.ts @@ -0,0 +1,3 @@ +export const value1 = "value"; + +export class Test1 {} diff --git a/packages/di/src/node/utils/__mock__/Test2.ts b/packages/di/src/node/utils/__mock__/Test2.ts new file mode 100644 index 00000000000..84466960d59 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/Test2.ts @@ -0,0 +1,3 @@ +export const value2 = "value"; + +export class Test2 {} diff --git a/packages/di/src/node/utils/__mock__/module1/Module1.ts b/packages/di/src/node/utils/__mock__/module1/Module1.ts new file mode 100644 index 00000000000..013500e3a91 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module1/Module1.ts @@ -0,0 +1,11 @@ +import {SubModule} from "./submodule/SubModule"; +import {Module} from "../../../decorators/module"; +import {M1Ctrl1} from "./controllers/M1Ctrl1"; + +@Module({ + mount: { + "/m1": [M1Ctrl1] + }, + imports: [SubModule] +}) +export class Module1 {} diff --git a/packages/di/src/node/utils/__mock__/module1/controllers/M1Ctrl1.ts b/packages/di/src/node/utils/__mock__/module1/controllers/M1Ctrl1.ts new file mode 100644 index 00000000000..6f9e798a143 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module1/controllers/M1Ctrl1.ts @@ -0,0 +1,7 @@ +import {Controller} from "../../../../decorators/controller"; +import {M1Service} from "../services/M1Service"; + +@Controller("/m1") +export class M1Ctrl1 { + constructor(public service: M1Service) {} +} diff --git a/packages/di/src/node/utils/__mock__/module1/services/M1Service.ts b/packages/di/src/node/utils/__mock__/module1/services/M1Service.ts new file mode 100644 index 00000000000..8f6e37ed3fb --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module1/services/M1Service.ts @@ -0,0 +1,7 @@ +import {Injectable} from "../../../../decorators/injectable"; +import {SubService} from "../submodule/SubService"; + +@Injectable() +export class M1Service { + constructor(public subService: SubService) {} +} diff --git a/packages/di/src/node/utils/__mock__/module1/submodule/SubModule.ts b/packages/di/src/node/utils/__mock__/module1/submodule/SubModule.ts new file mode 100644 index 00000000000..ec0d9f93831 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module1/submodule/SubModule.ts @@ -0,0 +1,7 @@ +import {Module} from "../../../../decorators/module"; +import {SubService} from "./SubService"; + +@Module({ + imports: [SubService] +}) +export class SubModule {} diff --git a/packages/di/src/node/utils/__mock__/module1/submodule/SubService.ts b/packages/di/src/node/utils/__mock__/module1/submodule/SubService.ts new file mode 100644 index 00000000000..8425dc9e7f0 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module1/submodule/SubService.ts @@ -0,0 +1,4 @@ +import {Injectable} from "../../../../decorators/injectable"; + +@Injectable() +export class SubService {} diff --git a/packages/di/src/node/utils/__mock__/module2/Module2.ts b/packages/di/src/node/utils/__mock__/module2/Module2.ts new file mode 100644 index 00000000000..6b215dace44 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module2/Module2.ts @@ -0,0 +1,10 @@ +import {Module} from "../../../decorators/module"; +import {M2Ctrl} from "./controllers/M2Ctrl"; + +@Module({ + mount: { + "/mod2": [M2Ctrl] + }, + imports: [] +}) +export class Module2 {} diff --git a/packages/di/src/node/utils/__mock__/module2/controllers/M2Ctrl.ts b/packages/di/src/node/utils/__mock__/module2/controllers/M2Ctrl.ts new file mode 100644 index 00000000000..5b685d77ec5 --- /dev/null +++ b/packages/di/src/node/utils/__mock__/module2/controllers/M2Ctrl.ts @@ -0,0 +1,4 @@ +import {Controller} from "../../../../decorators/controller"; + +@Controller("/m2") +export class M2Ctrl {} diff --git a/packages/di/src/utils/asyncHookContext.spec.ts b/packages/di/src/node/utils/asyncHookContext.spec.ts similarity index 100% rename from packages/di/src/utils/asyncHookContext.spec.ts rename to packages/di/src/node/utils/asyncHookContext.spec.ts diff --git a/packages/di/src/utils/asyncHookContext.ts b/packages/di/src/node/utils/asyncHookContext.ts similarity index 94% rename from packages/di/src/utils/asyncHookContext.ts rename to packages/di/src/node/utils/asyncHookContext.ts index 9fa5c99e2cd..b67c37d8c55 100644 --- a/packages/di/src/utils/asyncHookContext.ts +++ b/packages/di/src/node/utils/asyncHookContext.ts @@ -1,6 +1,6 @@ import {AsyncLocalStorage, AsyncResource} from "async_hooks"; +import {InjectorService} from "../../common/index"; import type {DIContext} from "../domain/DIContext"; -import type {InjectorService} from "../services/InjectorService"; const storage: AsyncLocalStorage<{current: DIContext | undefined}> = new AsyncLocalStorage(); diff --git a/packages/di/src/utils/attachLogger.spec.ts b/packages/di/src/node/utils/attachLogger.spec.ts similarity index 84% rename from packages/di/src/utils/attachLogger.spec.ts rename to packages/di/src/node/utils/attachLogger.spec.ts index bb389c1daf1..f1c0b50917b 100644 --- a/packages/di/src/utils/attachLogger.spec.ts +++ b/packages/di/src/node/utils/attachLogger.spec.ts @@ -1,5 +1,5 @@ import {Logger} from "@tsed/logger"; -import {InjectorService} from "../services/InjectorService"; +import {InjectorService} from "../../common/index"; import {attachLogger} from "./attachLogger"; describe("attachLogger", () => { diff --git a/packages/di/src/node/utils/attachLogger.ts b/packages/di/src/node/utils/attachLogger.ts new file mode 100644 index 00000000000..f374b49d982 --- /dev/null +++ b/packages/di/src/node/utils/attachLogger.ts @@ -0,0 +1,7 @@ +import {DILogger, InjectorService} from "../../common/index"; +import {setLoggerConfiguration} from "./setLoggerConfiguration"; + +export function attachLogger(injector: InjectorService, $log: DILogger) { + injector.logger = $log; + setLoggerConfiguration(injector); +} diff --git a/packages/di/src/utils/setLoggerConfiguration.spec.ts b/packages/di/src/node/utils/setLoggerConfiguration.spec.ts similarity index 95% rename from packages/di/src/utils/setLoggerConfiguration.spec.ts rename to packages/di/src/node/utils/setLoggerConfiguration.spec.ts index 8d18ae09c71..2ca047fd64e 100644 --- a/packages/di/src/utils/setLoggerConfiguration.spec.ts +++ b/packages/di/src/node/utils/setLoggerConfiguration.spec.ts @@ -1,5 +1,5 @@ import {Logger} from "@tsed/logger"; -import {InjectorService} from "../services/InjectorService"; +import {InjectorService} from "../../common/index"; import {setLoggerConfiguration} from "./setLoggerConfiguration"; describe("setLoggerConfiguration", () => { diff --git a/packages/di/src/utils/setLoggerConfiguration.ts b/packages/di/src/node/utils/setLoggerConfiguration.ts similarity index 77% rename from packages/di/src/utils/setLoggerConfiguration.ts rename to packages/di/src/node/utils/setLoggerConfiguration.ts index 555b8d45d0c..08733d4db76 100644 --- a/packages/di/src/utils/setLoggerConfiguration.ts +++ b/packages/di/src/node/utils/setLoggerConfiguration.ts @@ -1,4 +1,4 @@ -import type {InjectorService} from "../services/InjectorService"; +import type {InjectorService} from "../../common/index"; import {setLoggerFormat} from "./setLoggerFormat"; import {setLoggerLevel} from "./setLoggerLevel"; diff --git a/packages/di/src/utils/setLoggerFormat.ts b/packages/di/src/node/utils/setLoggerFormat.ts similarity index 90% rename from packages/di/src/utils/setLoggerFormat.ts rename to packages/di/src/node/utils/setLoggerFormat.ts index 604bd0c13e2..be434ecfdd2 100644 --- a/packages/di/src/utils/setLoggerFormat.ts +++ b/packages/di/src/node/utils/setLoggerFormat.ts @@ -1,4 +1,4 @@ -import type {InjectorService} from "../services/InjectorService"; +import type {InjectorService} from "../../common/index"; /** * @ignore diff --git a/packages/di/src/utils/setLoggerLevel.ts b/packages/di/src/node/utils/setLoggerLevel.ts similarity index 75% rename from packages/di/src/utils/setLoggerLevel.ts rename to packages/di/src/node/utils/setLoggerLevel.ts index b9d7ebde3f3..e197c62b019 100644 --- a/packages/di/src/utils/setLoggerLevel.ts +++ b/packages/di/src/node/utils/setLoggerLevel.ts @@ -1,4 +1,4 @@ -import type {InjectorService} from "../services/InjectorService"; +import type {InjectorService} from "../../common/index"; /** * @ignore diff --git a/packages/di/src/utils/attachLogger.ts b/packages/di/src/utils/attachLogger.ts deleted file mode 100644 index e8da87551b9..00000000000 --- a/packages/di/src/utils/attachLogger.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type {Logger} from "@tsed/logger"; -import {InjectorService} from "../services/InjectorService"; -import {setLoggerConfiguration} from "./setLoggerConfiguration"; - -export function attachLogger(injector: InjectorService, $log: Logger) { - injector.logger = $log; - setLoggerConfiguration(injector); -} diff --git a/packages/di/tsconfig.esm.json b/packages/di/tsconfig.esm.json index d3ff57636c5..bfd3400c530 100644 --- a/packages/di/tsconfig.esm.json +++ b/packages/di/tsconfig.esm.json @@ -1,7 +1,7 @@ { "extends": "@tsed/typescript/tsconfig.node.json", "compilerOptions": { - "baseUrl": ".", + "baseUrl": "./", "module": "ES2020", "rootDir": "src", "outDir": "./lib/esm", @@ -26,6 +26,9 @@ "webpack.config.js" ], "references": [ + { + "path": "../core" + }, { "path": "../core" }, diff --git a/packages/di/tsconfig.json b/packages/di/tsconfig.json index ca187cdb4d5..cc188e5d1ed 100644 --- a/packages/di/tsconfig.json +++ b/packages/di/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@tsed/typescript/tsconfig.node.json", "compilerOptions": { - "baseUrl": ".", + "baseUrl": "./", "module": "commonjs", "rootDir": "src", "outDir": "./lib/cjs", @@ -26,6 +26,9 @@ "webpack.config.js" ], "references": [ + { + "path": "../core" + }, { "path": "../core" }, diff --git a/packages/di/webpack.config.js b/packages/di/webpack.config.js new file mode 100644 index 00000000000..d08a3b15cbd --- /dev/null +++ b/packages/di/webpack.config.js @@ -0,0 +1,7 @@ +module.exports = require("@tsed/webpack-config").create({ + root: __dirname, + name: "di", + entry: { + main: "./src/common/index.ts" + } +}); diff --git a/packages/engines/package.json b/packages/engines/package.json index a1c3b1dd08e..4846751eb33 100644 --- a/packages/engines/package.json +++ b/packages/engines/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/engines", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Template engines library. Provide an API to adding custom engines from decorators.", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -27,8 +27,8 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/fs-extra": "^9.0.13", "@types/semver": "^7.3.9", "arc-templates": "^0.5.3", diff --git a/packages/graphql/apollo/package.json b/packages/graphql/apollo/package.json index 1aebea80447..ccb4f5d0f77 100644 --- a/packages/graphql/apollo/package.json +++ b/packages/graphql/apollo/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/apollo", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Apollo package for Ts.ED framework", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -25,12 +25,12 @@ }, "private": false, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/typescript": "7.30.3", + "@tsed/typescript": "7.31.0-rc.1", "@types/graphql": "14.5.0", "apollo-datasource": "^3.2.0", "apollo-datasource-rest": "^3.3.0", @@ -42,9 +42,9 @@ "graphql": "15.7.2" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", "apollo-datasource": ">=3.0.0", "apollo-datasource-rest": ">=3.0.0", diff --git a/packages/graphql/typegraphql/package.json b/packages/graphql/typegraphql/package.json index f3bbbfff737..f91d51268d5 100644 --- a/packages/graphql/typegraphql/package.json +++ b/packages/graphql/typegraphql/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/typegraphql", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "TypeGraphQL package for Ts.ED framework, based on Apollo-server-core and Type-graphql", "private": false, "source": "./src/index.ts", @@ -24,14 +24,14 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/apollo": "7.30.3", + "@tsed/apollo": "7.31.0-rc.1", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/graphql": "^14.5.0", "class-validator": "~0.14.0", "eslint": "^8.12.0", diff --git a/packages/orm/adapters-redis/package.json b/packages/orm/adapters-redis/package.json index 45c42aa738f..726b01f8f8b 100644 --- a/packages/orm/adapters-redis/package.json +++ b/packages/orm/adapters-redis/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/adapters-redis", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Redis adapter for Ts.ED", "private": false, "source": "./src/index.ts", @@ -22,21 +22,21 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/adapters": "7.30.3", - "@tsed/ioredis": "7.30.3", + "@tsed/adapters": "7.31.0-rc.1", + "@tsed/ioredis": "7.31.0-rc.1", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/adapters": "^7.30.3", - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/adapters": "^7.31.0-rc.1", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "ioredis": ">=5.2.3", "ioredis-mock": ">=8.2.2", "uuid": "8.3.2" diff --git a/packages/orm/adapters/package.json b/packages/orm/adapters/package.json index 027ea143312..bc05dc43b25 100644 --- a/packages/orm/adapters/package.json +++ b/packages/orm/adapters/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/adapters", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Database adapters for Ts.ED", "private": false, "source": "./src/index.ts", @@ -32,24 +32,24 @@ "uuid": "8.3.2" }, "devDependencies": { - "@tsed/ajv": "7.30.3", - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/ajv": "7.31.0-rc.1", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/fs-extra": "9.0.13", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/ajv": "^7.30.3", - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/ajv": "^7.31.0-rc.1", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/ajv": { diff --git a/packages/orm/ioredis/package.json b/packages/orm/ioredis/package.json index 39c34cd9395..685c87b98ea 100644 --- a/packages/orm/ioredis/package.json +++ b/packages/orm/ioredis/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/ioredis", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "IO Redis connection for Ts.ED", "private": false, "source": "./src/index.ts", @@ -25,18 +25,18 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/ioredis-mock": "^5.6.0", "eslint": "^8.12.0", "ioredis": "5.2.3", "ioredis-mock": "8.2.2" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "ioredis": ">=5.2.3", "ioredis-mock": ">=8.2.2" } diff --git a/packages/orm/mikro-orm/package.json b/packages/orm/mikro-orm/package.json index bda472fc74b..2c23a87fc73 100644 --- a/packages/orm/mikro-orm/package.json +++ b/packages/orm/mikro-orm/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/mikro-orm", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "MikroORM package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -27,23 +27,23 @@ "devDependencies": { "@mikro-orm/core": "^5.2.2", "@mikro-orm/mongodb": "^5.2.2", - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", "@tsed/logger": ">=6.1.1", - "@tsed/schema": "7.30.3", - "@tsed/testing-mongoose": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/testing-mongoose": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "ts-mockito": "^2.6.1" }, "peerDependencies": { "@mikro-orm/core": ">=4.5.9", - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2" } } \ No newline at end of file diff --git a/packages/orm/mongoose/package.json b/packages/orm/mongoose/package.json index 52c9de67cb3..78ec484106b 100644 --- a/packages/orm/mongoose/package.json +++ b/packages/orm/mongoose/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/mongoose", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Mongoose package for Ts.ED framework", "private": false, "keywords": [ @@ -33,24 +33,24 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/ajv": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", + "@tsed/ajv": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "mongoose": "6.5.1" }, "peerDependencies": { - "@tsed/ajv": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/ajv": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/schema": "^7.30.3", + "@tsed/schema": "^7.31.0-rc.1", "mongoose": ">=6.0.0" } } \ No newline at end of file diff --git a/packages/orm/objection/package.json b/packages/orm/objection/package.json index 761d270cf37..888009f6626 100644 --- a/packages/orm/objection/package.json +++ b/packages/orm/objection/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/objection", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Objection.js package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -25,24 +25,24 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/ajv": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/ajv": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "knex": "^2.4.0", "objection": "^2.2.15", "sqlite3": "^5.0.2" }, "peerDependencies": { - "@tsed/ajv": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/ajv": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "knex": ">=0.94.0", "objection": ">=2.0.0" }, diff --git a/packages/orm/prisma/package.json b/packages/orm/prisma/package.json index dffff33b8e3..55496fefdda 100644 --- a/packages/orm/prisma/package.json +++ b/packages/orm/prisma/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/prisma", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Generate Ts.ED JsonSchema based on Prisma models", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -36,12 +36,12 @@ }, "devDependencies": { "@prisma/client": "^4.0.0", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/change-case": "^2.3.1", "@types/pluralize": "0.0.29", "eslint": "^8.12.0", @@ -49,10 +49,10 @@ }, "peerDependencies": { "@prisma/client": ">=4.0.0", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "keywords": [ "TypeScript", diff --git a/packages/orm/testing-mongoose/package.json b/packages/orm/testing-mongoose/package.json index ecdb294c353..4ba33cd420d 100644 --- a/packages/orm/testing-mongoose/package.json +++ b/packages/orm/testing-mongoose/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/testing-mongoose", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "A TypeScript Framework on top of Express", "private": false, "source": "./src/index.ts", @@ -25,17 +25,17 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/mongoose": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/mongoose": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/mongoose": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/mongoose": "^7.31.0-rc.1", "mongoose": "^6.1.7" } } \ No newline at end of file diff --git a/packages/orm/typeorm/package.json b/packages/orm/typeorm/package.json index 7ac82635374..a9706672fda 100644 --- a/packages/orm/typeorm/package.json +++ b/packages/orm/typeorm/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/typeorm", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "TypeORM package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -25,20 +25,20 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "typeorm": "^0.2.45" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "typeorm": "^0.2.26" } } \ No newline at end of file diff --git a/packages/perf/package.json b/packages/perf/package.json index 646dd8a5eca..98fe5c5e0c9 100644 --- a/packages/perf/package.json +++ b/packages/perf/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/perf", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Perf module tool", "private": false, "source": "./src/index.ts", @@ -20,13 +20,13 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/core": "7.30.3", + "@tsed/core": "7.31.0-rc.1", "chalk": "^4.1.0", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": {} diff --git a/packages/platform/common/package.json b/packages/platform/common/package.json index 904e362a38a..54664c27fbe 100644 --- a/packages/platform/common/package.json +++ b/packages/platform/common/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/common", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "A TypeScript Framework on top of Express", "private": false, "source": "./src/index.ts", @@ -68,29 +68,29 @@ } ], "dependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", "@tsed/logger": ">=6.2.2", "@tsed/logger-file": ">=6.2.2", - "@tsed/platform-exceptions": "7.30.3", - "@tsed/platform-log-middleware": "7.30.3", - "@tsed/platform-middlewares": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/platform-response-filter": "7.30.3", - "@tsed/platform-router": "7.30.3", - "@tsed/platform-views": "7.30.3", - "@tsed/schema": "7.30.3", + "@tsed/platform-exceptions": "7.31.0-rc.1", + "@tsed/platform-log-middleware": "7.31.0-rc.1", + "@tsed/platform-middlewares": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/platform-response-filter": "7.31.0-rc.1", + "@tsed/platform-router": "7.31.0-rc.1", + "@tsed/platform-views": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", "@types/json-schema": "7.0.11", "accepts": "^1.3.8", "tslib": "2.5.0", "uuid": "8.3.2" }, "devDependencies": { - "@tsed/components-scan": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/components-scan": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { diff --git a/packages/platform/platform-cache/package.json b/packages/platform/platform-cache/package.json index 0ed231877f9..fcc06a6a015 100644 --- a/packages/platform/platform-cache/package.json +++ b/packages/platform/platform-cache/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-cache", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Platform cache module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -27,20 +27,20 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/micromatch": "^4.0.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-exceptions/package.json b/packages/platform/platform-exceptions/package.json index d81abdc4423..84f0f316950 100644 --- a/packages/platform/platform-exceptions/package.json +++ b/packages/platform/platform-exceptions/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-exceptions", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Platform exceptions module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -25,19 +25,19 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-express/package.json b/packages/platform/platform-express/package.json index 3704de8d46c..3bfa17a0b06 100644 --- a/packages/platform/platform-express/package.json +++ b/packages/platform/platform-express/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-express", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "A TypeScript Framework on top of Express", "private": false, "source": "./src/index.ts", @@ -63,13 +63,13 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/platform-test-sdk": "7.30.3", - "@tsed/platform-views": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-test-sdk": "7.31.0-rc.1", + "@tsed/platform-views": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/body-parser": "1.19.2", "@types/compression": "1.7.2", "@types/cookie-parser": "1.4.2", @@ -86,14 +86,14 @@ "method-override": "3.0.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/openspec": "^7.30.3", - "@tsed/platform-views": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/openspec": "^7.31.0-rc.1", + "@tsed/platform-views": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "@types/multer": "^1.4.5", "body-parser": "^1.19.0", "multer": "^1.4.5-lts.1" diff --git a/packages/platform/platform-koa/package.json b/packages/platform/platform-koa/package.json index 44b8ac51cda..8f322bd0b7b 100644 --- a/packages/platform/platform-koa/package.json +++ b/packages/platform/platform-koa/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-koa", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Koa package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -58,12 +58,12 @@ }, "devDependencies": { "@koa/cors": "3.3.0", - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/platform-test-sdk": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-test-sdk": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/koa": "2.13.4", "@types/koa-bodyparser": "4.3.7", "@types/koa-compose": "3.2.5", @@ -89,13 +89,13 @@ "tslib": "2.5.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/openspec": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/openspec": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "koa": ">=2.13.0", "koa-bodyparser": ">=4.3.0", "koa-compress": ">=5.0.1", diff --git a/packages/platform/platform-log-middleware/package.json b/packages/platform/platform-log-middleware/package.json index 604df6af1e7..8a37fe311a6 100644 --- a/packages/platform/platform-log-middleware/package.json +++ b/packages/platform/platform-log-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-log-middleware", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Log request middleware module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -25,17 +25,17 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/platform-middlewares": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-middlewares": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/di": "^7.30.3", - "@tsed/platform-middlewares": "^7.30.3", - "@tsed/platform-params": "^7.30.3" + "@tsed/di": "^7.31.0-rc.1", + "@tsed/platform-middlewares": "^7.31.0-rc.1", + "@tsed/platform-params": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/di": { diff --git a/packages/platform/platform-middlewares/package.json b/packages/platform/platform-middlewares/package.json index f6204d5052f..1a5ff8d7dc7 100644 --- a/packages/platform/platform-middlewares/package.json +++ b/packages/platform/platform-middlewares/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-middlewares", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Middlewares module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -25,17 +25,17 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-params/package.json b/packages/platform/platform-params/package.json index 81846f98fed..d22aa748cce 100644 --- a/packages/platform/platform-params/package.json +++ b/packages/platform/platform-params/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-params", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Params module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -25,21 +25,21 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-response-filter/package.json b/packages/platform/platform-response-filter/package.json index 2cb30d19a9d..e912fe93bfa 100644 --- a/packages/platform/platform-response-filter/package.json +++ b/packages/platform/platform-response-filter/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-response-filter", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Platform response filter module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -25,21 +25,21 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-router/package.json b/packages/platform/platform-router/package.json index a4c7f0bc3fd..4e4a7fa8227 100644 --- a/packages/platform/platform-router/package.json +++ b/packages/platform/platform-router/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-router", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Router", "private": false, "source": "./src/index.ts", @@ -25,23 +25,23 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/platform-params": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/platform-params": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/platform/platform-serverless-http/package.json b/packages/platform/platform-serverless-http/package.json index 5590657886e..a4973762c50 100644 --- a/packages/platform/platform-serverless-http/package.json +++ b/packages/platform/platform-serverless-http/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-serverless-http", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Module to support Serverless HTTP function with Ts.ED", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -62,24 +62,24 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/platform-serverless-testing": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-serverless-testing": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "aws-lambda": "^1.0.7", "eslint": "^8.12.0", "serverless-http": "^2.7.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/openspec": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/openspec": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "aws-lambda": ">=1.0.7", "serverless-http": ">=2.0.0" }, diff --git a/packages/platform/platform-serverless-testing/package.json b/packages/platform/platform-serverless-testing/package.json index cc23fe7e579..5e78ffe6d18 100644 --- a/packages/platform/platform-serverless-testing/package.json +++ b/packages/platform/platform-serverless-testing/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-serverless-testing", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Module to test Serverless function with Ts.ED", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -57,12 +57,12 @@ "url": "git+https://github.com/tsedio/tsed.git" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "dependencies": { @@ -70,12 +70,12 @@ "tslib": "2.5.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/openspec": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/openspec": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" } } \ No newline at end of file diff --git a/packages/platform/platform-serverless/package.json b/packages/platform/platform-serverless/package.json index 9930b7035dc..c85a10fd75c 100644 --- a/packages/platform/platform-serverless/package.json +++ b/packages/platform/platform-serverless/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-serverless", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Platform serverless module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -22,21 +22,21 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/core": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/platform-exceptions": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/schema": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/platform-exceptions": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", "encodeurl": "^1.0.2", "mime": "^3.0.0", "tslib": "2.5.0", "uuid": "^8.3.2" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/platform-serverless-testing": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-serverless-testing": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/aws-lambda": "^8.10.83", "@types/encodeurl": "^1.0.0", "@types/mime": "^3.0.1", @@ -44,7 +44,7 @@ "find-my-way": "^7.0.0" }, "peerDependencies": { - "@tsed/di": "^7.30.3", + "@tsed/di": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2" }, "peerDependenciesMeta": { diff --git a/packages/platform/platform-test-sdk/package.json b/packages/platform/platform-test-sdk/package.json index 1b180c32bf9..b48943e3c66 100644 --- a/packages/platform/platform-test-sdk/package.json +++ b/packages/platform/platform-test-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-test-sdk", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Package to test platform adapter integration with Ts.ED", "private": false, "source": "./src/index.ts", @@ -28,25 +28,25 @@ "Adapter" ], "dependencies": { - "@tsed/ajv": "7.30.3", - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/json-mapper": "7.30.3", + "@tsed/ajv": "7.31.0-rc.1", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", "@tsed/logger": "6.2.2", - "@tsed/platform-cache": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/platform-router": "7.30.3", - "@tsed/platform-views": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/swagger": "7.30.3", + "@tsed/platform-cache": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/platform-router": "7.31.0-rc.1", + "@tsed/platform-views": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/swagger": "7.31.0-rc.1", "ajv": "^8.12.0", "axios": "^1.3.0", "read-pkg-up": "7.0.1" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": {} diff --git a/packages/platform/platform-views/package.json b/packages/platform/platform-views/package.json index ea9d4ace2d4..b8bd7261c07 100644 --- a/packages/platform/platform-views/package.json +++ b/packages/platform/platform-views/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/platform-views", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Views module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -22,27 +22,27 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/engines": "7.30.3", + "@tsed/engines": "7.31.0-rc.1", "ejs": "^3.1.5", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/engines": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/engines": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/ejs": "3.1.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/engines": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/engines": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/security/jwks/package.json b/packages/security/jwks/package.json index a10d47294b4..d1341c9541b 100644 --- a/packages/security/jwks/package.json +++ b/packages/security/jwks/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/jwks", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Utils to generate jwks pair keys", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -26,8 +26,8 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": {} diff --git a/packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json b/packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json index 993236e44e4..1c6fb6a54cc 100644 --- a/packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json +++ b/packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/oidc-provider-plugin-wildcard-redirect-uri", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "A plugin to support wildcard in the redirect uri whitelist", "private": false, "contributors": [ @@ -31,19 +31,19 @@ "wildcard": "2.0.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/oidc-provider": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/oidc-provider": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/uuid": "8.3.4", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/oidc-provider": "^7.30.3", + "@tsed/oidc-provider": "^7.31.0-rc.1", "oidc-provider": ">=8.0.0" }, "peerDependenciesMeta": { diff --git a/packages/security/oidc-provider/package.json b/packages/security/oidc-provider/package.json index 702c1d8707b..e6ea1c747ff 100644 --- a/packages/security/oidc-provider/package.json +++ b/packages/security/oidc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/oidc-provider", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "OIDC provider package for Ts.ED framework", "private": false, "contributors": [ @@ -34,7 +34,7 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/adapters": "7.30.3", + "@tsed/adapters": "7.31.0-rc.1", "express-urlrewrite": "^1.4.0", "jose2": "npm:jose@^2.0.4", "koa-mount": "^4.0.0", @@ -43,13 +43,13 @@ "uuid": "8.3.2" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/jwks": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/jwks": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/lowdb": "1.0.11", "@types/oidc-provider": "8.1.1", "@types/uuid": "8.3.4", @@ -58,12 +58,12 @@ "oidc-provider": "8.1.1" }, "peerDependencies": { - "@tsed/ajv": "^7.30.3", - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/ajv": "^7.31.0-rc.1", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "oidc-provider": ">=8.0.0" }, "peerDependenciesMeta": { diff --git a/packages/security/passport/package.json b/packages/security/passport/package.json index 1c936075937..dc478d7ef08 100644 --- a/packages/security/passport/package.json +++ b/packages/security/passport/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/passport", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Passport package for Ts.ED framework", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -26,12 +26,12 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/platform-router": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/platform-router": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/passport": "1.0.7", "@types/passport-http": "0.3.9", "@types/passport-local": "1.0.34", @@ -43,7 +43,7 @@ "passport-strategy": "1.0.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", "passport": ">=0.4.1" }, "peerDependenciesMeta": { diff --git a/packages/specs/ajv/package.json b/packages/specs/ajv/package.json index c07f38d0e3c..0b575c1290c 100644 --- a/packages/specs/ajv/package.json +++ b/packages/specs/ajv/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/ajv", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "AJV package for Ts.ED framework", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -26,20 +26,20 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "ajv": "8.11.0", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/exceptions": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "ajv": ">=8.9.0", "ajv-errors": ">=3.0.0" }, diff --git a/packages/specs/exceptions/package.json b/packages/specs/exceptions/package.json index 7f6150f694c..09f47a740f3 100644 --- a/packages/specs/exceptions/package.json +++ b/packages/specs/exceptions/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/exceptions", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "HTTP exceptions module for Ts.ED Framework and other pure Express application", "private": false, "source": "./src/index.ts", @@ -27,12 +27,12 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/statuses": "2.0.0", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1" } } \ No newline at end of file diff --git a/packages/specs/json-mapper/package.json b/packages/specs/json-mapper/package.json index deda06c5515..1a4df9c280f 100644 --- a/packages/specs/json-mapper/package.json +++ b/packages/specs/json-mapper/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/json-mapper", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Json mapper module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -41,15 +41,15 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/core": { diff --git a/packages/specs/openspec/package.json b/packages/specs/openspec/package.json index d86c4f084ee..4556018aa64 100644 --- a/packages/specs/openspec/package.json +++ b/packages/specs/openspec/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/openspec", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "OpenSpec2 and OpenSpec3 interfaces declarations for TypeScript application", "private": false, "source": "./src/index.ts", @@ -31,8 +31,8 @@ "JsonSchema" ], "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "dependencies": {}, diff --git a/packages/specs/schema/package.json b/packages/specs/schema/package.json index 9451ac25656..9e6d0fde510 100644 --- a/packages/specs/schema/package.json +++ b/packages/specs/schema/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/schema", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "JsonSchema module for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -36,7 +36,7 @@ "tsed" ], "dependencies": { - "@tsed/openspec": "7.30.3", + "@tsed/openspec": "7.31.0-rc.1", "change-case": "^4.1.2", "fs-extra": "^10.0.1", "json-schema": "0.4.0", @@ -46,10 +46,10 @@ }, "devDependencies": { "@apidevtools/swagger-parser": "10.0.3", - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/openspec": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/openspec": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/fs-extra": "9.0.13", "@types/json-schema": "7.0.11", "@types/picomatch": "2.3.0", @@ -58,8 +58,8 @@ "picomatch-browser": "https://github.com/silverwind/picomatch#ee6ebcc5570a8846d81610c11ebb92a9e199b145" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/openspec": "^7.30.3" + "@tsed/core": "^7.31.0-rc.1", + "@tsed/openspec": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/openspec": { diff --git a/packages/specs/swagger/package.json b/packages/specs/swagger/package.json index c02857d8a38..93b9972f728 100644 --- a/packages/specs/swagger/package.json +++ b/packages/specs/swagger/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/swagger", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Swagger package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -24,8 +24,8 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/normalize-path": "7.30.3", - "@tsed/openspec": "7.30.3", + "@tsed/normalize-path": "7.31.0-rc.1", + "@tsed/openspec": "7.31.0-rc.1", "filedirname": "^2.7.0", "fs-extra": "10.0.1", "micromatch": "4.0.5", @@ -33,19 +33,19 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/openspec": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/openspec": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/swagger-ui-dist": ">=3.30.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/common": "^7.30.3" + "@tsed/common": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@tsed/common": { diff --git a/packages/third-parties/agenda/package.json b/packages/third-parties/agenda/package.json index 9302dfc5079..0426ae95a20 100644 --- a/packages/third-parties/agenda/package.json +++ b/packages/third-parties/agenda/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/agenda", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Agenda package for Ts.ED framework", "source": "./src/index.ts", "main": "./lib/cjs/index.js", @@ -30,11 +30,11 @@ }, "private": false, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "agenda": "^4.1.3", "eslint": "^8.12.0" }, diff --git a/packages/third-parties/components-scan/package.json b/packages/third-parties/components-scan/package.json index a98ed2ee37e..4d86b93492e 100644 --- a/packages/third-parties/components-scan/package.json +++ b/packages/third-parties/components-scan/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/components-scan", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Components scan utilities for Ts.ED Framework", "private": false, "source": "./src/index.ts", @@ -22,15 +22,15 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/normalize-path": "7.30.3", + "@tsed/normalize-path": "7.31.0-rc.1", "globby": "11.0.3", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { diff --git a/packages/third-parties/event-emitter/package.json b/packages/third-parties/event-emitter/package.json index 0c3cc09fba9..54f2dbeff1f 100644 --- a/packages/third-parties/event-emitter/package.json +++ b/packages/third-parties/event-emitter/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/event-emitter", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "EventEmitter package for Ts.ED framework", "contributors": [ { @@ -11,14 +11,17 @@ "main": "./lib/cjs/index.js", "module": "./lib/esm/index.js", "typings": "./lib/types/index.d.ts", + "browser": "./lib/browser/event-emitter.umd.min.js", "exports": { "types": "./lib/types/index.d.ts", + "browser": "./lib/browser/event-emitter.umd.min.js", "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js", "default": "./lib/esm/index.js" }, "scripts": { - "build": "yarn barrels && yarn build:ts", + "build": "yarn barrels && yarn build:ts && yarn run build:browser", + "build:browser": "webpack", "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"", "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 && jest-coverage-thresholds-bumper", "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json", @@ -30,15 +33,15 @@ }, "private": false, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "eventemitter2": "^6.4.4" }, "peerDependencies": { "eventemitter2": "^6.4.4" } -} \ No newline at end of file +} diff --git a/packages/third-parties/event-emitter/src/EventEmitterModule.ts b/packages/third-parties/event-emitter/src/EventEmitterModule.ts index 70de2120bd4..9c2e63315b5 100644 --- a/packages/third-parties/event-emitter/src/EventEmitterModule.ts +++ b/packages/third-parties/event-emitter/src/EventEmitterModule.ts @@ -1,16 +1,12 @@ -import {Constant, Inject, InjectorService, Module, Provider} from "@tsed/di"; -import {Logger} from "@tsed/logger"; +import {Constant, Inject, InjectorService, LOGGER, Module, Provider} from "@tsed/di"; import {ListenerFn} from "eventemitter2"; import {EventEmitterStore} from "./interfaces/EventEmitterStore"; import {EventEmitterService} from "./services/EventEmitterFactory"; @Module() export class EventEmitterModule { - @Constant("eventEmitter.disableSummary", false) - private disableSummary: boolean; - - @Inject() - protected logger: Logger; + @Inject(LOGGER) + protected logger: LOGGER; @Inject() protected injector: InjectorService; @@ -18,6 +14,9 @@ export class EventEmitterModule { @Inject() protected eventEmitter: EventEmitterService; + @Constant("eventEmitter.disableSummary", false) + private disableSummary: boolean; + @Constant("eventEmitter.enabled", false) private loadEventEmitter: boolean; diff --git a/packages/third-parties/event-emitter/webpack.config.js b/packages/third-parties/event-emitter/webpack.config.js new file mode 100644 index 00000000000..f9021022a7a --- /dev/null +++ b/packages/third-parties/event-emitter/webpack.config.js @@ -0,0 +1,7 @@ +module.exports = require("@tsed/webpack-config").create({ + root: __dirname, + name: "event-emitter", + entry: { + main: "./src/index.ts" + } +}); diff --git a/packages/third-parties/formio-types/package.json b/packages/third-parties/formio-types/package.json index 9bf628eaa9b..262055d3a7a 100644 --- a/packages/third-parties/formio-types/package.json +++ b/packages/third-parties/formio-types/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/formio-types", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Formio types definition package for Ts.ED framework", "private": false, "keywords": [ @@ -36,8 +36,8 @@ "formiojs": ">=4.0.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" } } \ No newline at end of file diff --git a/packages/third-parties/formio/package.json b/packages/third-parties/formio/package.json index c61b38df2c8..02c0132fc4f 100644 --- a/packages/third-parties/formio/package.json +++ b/packages/third-parties/formio/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/formio", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Formio package for Ts.ED framework", "private": false, "keywords": [ @@ -31,17 +31,17 @@ "lint:fix": "eslint '**/*.{ts,js}' --fix" }, "dependencies": { - "@tsed/formio-types": "7.30.3", - "@tsed/normalize-path": "7.30.3", + "@tsed/formio-types": "7.31.0-rc.1", + "@tsed/normalize-path": "7.31.0-rc.1", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/mongoose": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/mongoose": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/async": "3.2.15", "eslint": "^8.12.0", "express": "^4.17.1", @@ -50,7 +50,7 @@ "mongoose": "^6.1.7" }, "peerDependencies": { - "@tsed/common": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", "express": "^4.17.1", "formio": "^2.0.0", "lodash": "^4.17.21", diff --git a/packages/third-parties/schema-formio/package.json b/packages/third-parties/schema-formio/package.json index 3cd78bfa731..70bb996bce6 100644 --- a/packages/third-parties/schema-formio/package.json +++ b/packages/third-parties/schema-formio/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/schema-formio", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Transform Ts.ED Schema & JsonSchema to a valid Formio schema", "private": false, "source": "./src/index.ts", @@ -38,22 +38,22 @@ "tsed" ], "dependencies": { - "@tsed/formio-types": "7.30.3", + "@tsed/formio-types": "7.31.0-rc.1", "change-case": "4.1.2", "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/openspec": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/openspec": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { - "@tsed/core": "^7.30.3", - "@tsed/openspec": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/openspec": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "formiojs": ">=4.0.0", "lodash": ">=4.0.0", "moment": ">=2.0.0" diff --git a/packages/third-parties/socketio-testing/package.json b/packages/third-parties/socketio-testing/package.json index b89492c5152..964fd42e911 100644 --- a/packages/third-parties/socketio-testing/package.json +++ b/packages/third-parties/socketio-testing/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/socketio-testing", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Socket.io testing package for Ts.ED framework", "private": false, "source": "./src/index.ts", @@ -24,17 +24,17 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "socket.io-client": "^4.1.2" }, "peerDependencies": { - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", "socket.io-client": "^4.0.1" } } \ No newline at end of file diff --git a/packages/third-parties/socketio/package.json b/packages/third-parties/socketio/package.json index 621f6ab1a38..1e3c2a24aea 100644 --- a/packages/third-parties/socketio/package.json +++ b/packages/third-parties/socketio/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/socketio", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Socket.io package for Ts.ED framework", "private": false, "keywords": [ @@ -33,27 +33,27 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/openspec": "7.30.3", - "@tsed/platform-middlewares": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/socketio-testing": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/openspec": "7.31.0-rc.1", + "@tsed/platform-middlewares": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/socketio-testing": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "express": "^4.17.1", "socket.io": "4.4.1", "socket.io-client": "^4.1.2" }, "peerDependencies": { - "@tsed/di": "^7.30.3", - "@tsed/json-mapper": "^7.30.3", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/json-mapper": "^7.31.0-rc.1", "@tsed/logger": ">=6.2.2", - "@tsed/platform-middlewares": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/platform-middlewares": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "socket.io": ">=4.0.0" }, "peerDependenciesMeta": { diff --git a/packages/third-parties/stripe/package.json b/packages/third-parties/stripe/package.json index 11365fe710b..66a3d6381af 100644 --- a/packages/third-parties/stripe/package.json +++ b/packages/third-parties/stripe/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/stripe", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Stripe package for Ts.ED framework", "private": false, "keywords": [ @@ -34,22 +34,22 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/platform-middlewares": "7.30.3", - "@tsed/platform-params": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/platform-middlewares": "7.31.0-rc.1", + "@tsed/platform-params": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "stripe": "^8.129.0" }, "peerDependencies": { - "@tsed/exceptions": "^7.30.3", - "@tsed/platform-middlewares": "^7.30.3", - "@tsed/platform-params": "^7.30.3", - "@tsed/schema": "^7.30.3", + "@tsed/exceptions": "^7.31.0-rc.1", + "@tsed/platform-middlewares": "^7.31.0-rc.1", + "@tsed/platform-params": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1", "@types/body-parser": "^1.19.0", "body-parser": "^1.19.0", "stripe": "^9.16.0" diff --git a/packages/third-parties/terminus/package.json b/packages/third-parties/terminus/package.json index 57f90760a64..e1839799b96 100644 --- a/packages/third-parties/terminus/package.json +++ b/packages/third-parties/terminus/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/terminus", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Adds graceful shutdown and Kubernetes readiness / liveness checks for any HTTP applications.", "author": "Emilien Leroy ", "private": false, @@ -28,20 +28,20 @@ }, "devDependencies": { "@godaddy/terminus": "^4.7.1", - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0" }, "peerDependencies": { "@godaddy/terminus": "^4.7.1", - "@tsed/common": "^7.30.3", - "@tsed/core": "^7.30.3", - "@tsed/di": "^7.30.3", - "@tsed/schema": "^7.30.3" + "@tsed/common": "^7.31.0-rc.1", + "@tsed/core": "^7.31.0-rc.1", + "@tsed/di": "^7.31.0-rc.1", + "@tsed/schema": "^7.31.0-rc.1" }, "peerDependenciesMeta": { "@godaddy/terminus": { diff --git a/packages/third-parties/vite-ssr-plugin/package.json b/packages/third-parties/vite-ssr-plugin/package.json index 95d1b94bdc7..caa61db79c8 100644 --- a/packages/third-parties/vite-ssr-plugin/package.json +++ b/packages/third-parties/vite-ssr-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/vite-ssr-plugin", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Vite SSR plugin package for Ts.ED framework", "private": false, "contributors": [ @@ -30,18 +30,18 @@ "sirv": ">=2.0.2" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/core": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/eslint": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/common": "7.31.0-rc.1", + "@tsed/core": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "eslint": "^8.12.0", "vite": "4.3.1", "vite-plugin-ssr": "0.4.114" }, "peerDependencies": { - "@tsed/common": "^7.30.3", + "@tsed/common": "^7.31.0-rc.1", "vite": ">=4", "vite-plugin-ssr": ">=0.4.114" }, diff --git a/packages/utils/normalize-path/package.json b/packages/utils/normalize-path/package.json index f2648253cc1..94d511106a5 100644 --- a/packages/utils/normalize-path/package.json +++ b/packages/utils/normalize-path/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/normalize-path", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Utils to normalize path", "private": false, "source": "./src/index.ts", @@ -26,8 +26,8 @@ "tslib": "2.5.0" }, "devDependencies": { - "@tsed/eslint": "7.30.3", - "@tsed/typescript": "7.30.3", + "@tsed/eslint": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1", "@types/normalize-path": "^3.0.0", "eslint": "^8.12.0" }, diff --git a/tools/eslint/package.json b/tools/eslint/package.json index f36e9945d1b..957a12102d9 100644 --- a/tools/eslint/package.json +++ b/tools/eslint/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/eslint", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Util to compile source", "private": true, "main": "index.js", diff --git a/tools/github-sponsors/package.json b/tools/github-sponsors/package.json index a0fae633a8f..0e91befbc7f 100644 --- a/tools/github-sponsors/package.json +++ b/tools/github-sponsors/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/github-sponsors", - "version": "7.30.3", + "version": "7.31.0-rc.1", "private": true, "scripts": { "sponsors": "node ./bin/github-sponsors.js" diff --git a/tools/integration/package.json b/tools/integration/package.json index de65f317b44..b368646748e 100644 --- a/tools/integration/package.json +++ b/tools/integration/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/integration", - "version": "7.30.3", + "version": "7.31.0-rc.1", "source": "src/index.ts", "main": "src/index.js", "private": true, @@ -9,16 +9,16 @@ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json" }, "devDependencies": { - "@tsed/common": "7.30.3", - "@tsed/di": "7.30.3", - "@tsed/exceptions": "7.30.3", - "@tsed/json-mapper": "7.30.3", - "@tsed/platform-exceptions": "7.30.3", - "@tsed/platform-express": "7.30.3", - "@tsed/platform-views": "7.30.3", - "@tsed/schema": "7.30.3", - "@tsed/swagger": "7.30.3", - "@tsed/typescript": "7.30.3" + "@tsed/common": "7.31.0-rc.1", + "@tsed/di": "7.31.0-rc.1", + "@tsed/exceptions": "7.31.0-rc.1", + "@tsed/json-mapper": "7.31.0-rc.1", + "@tsed/platform-exceptions": "7.31.0-rc.1", + "@tsed/platform-express": "7.31.0-rc.1", + "@tsed/platform-views": "7.31.0-rc.1", + "@tsed/schema": "7.31.0-rc.1", + "@tsed/swagger": "7.31.0-rc.1", + "@tsed/typescript": "7.31.0-rc.1" }, "dependencies": {}, "peerDependencies": {} diff --git a/tools/jest/package.json b/tools/jest/package.json index 0484131a3d3..82946fdd9d6 100644 --- a/tools/jest/package.json +++ b/tools/jest/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/jest-config", - "version": "7.30.3", + "version": "7.31.0-rc.1", "private": true, "main": "jest.config.js", "scripts": {}, diff --git a/tools/mocha/package.json b/tools/mocha/package.json index 0b1b692b487..533260516e9 100644 --- a/tools/mocha/package.json +++ b/tools/mocha/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/mocha-config", - "version": "7.30.3", + "version": "7.31.0-rc.1", "private": true, "main": "mocha.config.js", "scripts": {}, diff --git a/tools/typescript/package.json b/tools/typescript/package.json index 6118f8c57a4..225cd8137cc 100644 --- a/tools/typescript/package.json +++ b/tools/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/typescript", - "version": "7.30.3", + "version": "7.31.0-rc.1", "description": "Util to compile source", "private": true, "main": "index.js", diff --git a/tools/webpack/package.json b/tools/webpack/package.json index 73e21d7f88c..95755ef69e6 100644 --- a/tools/webpack/package.json +++ b/tools/webpack/package.json @@ -1,6 +1,6 @@ { "name": "@tsed/webpack-config", - "version": "7.30.3", + "version": "7.31.0-rc.1", "private": true, "main": "webpack.config.js", "scripts": {}, diff --git a/tools/webpack/webpack.config.js b/tools/webpack/webpack.config.js index 27d1bbf3d73..214f26c5dcf 100644 --- a/tools/webpack/webpack.config.js +++ b/tools/webpack/webpack.config.js @@ -1,11 +1,12 @@ -exports.create = ({root, name, externals = {}, resolve = {}}) => { +exports.create = ({root, name, entry, externals = {}, resolve = {}}) => { return { mode: "production", devtool: "source-map", stats: {warnings: false}, target: "web", entry: { - main: "./src/index.ts" + main: "./src/index.ts", + ...entry }, output: { path: `${root}/lib/browser/`,