From a10ebd5f3bc047811b925950b7d13481d3f1d7e6 Mon Sep 17 00:00:00 2001 From: Serhii Sol Date: Thu, 8 Apr 2021 19:48:46 +0300 Subject: [PATCH] chore: removed changelogs --- di/CHANGELOG.md | 14 -- di/package-lock.json | 428 ++++++++++++++++++++++++++++++++++++++ express/CHANGELOG.md | 121 ----------- express/package-lock.json | 2 +- socket/CHANGELOG.md | 129 ------------ 5 files changed, 429 insertions(+), 265 deletions(-) delete mode 100644 di/CHANGELOG.md create mode 100644 di/package-lock.json delete mode 100644 express/CHANGELOG.md delete mode 100644 socket/CHANGELOG.md diff --git a/di/CHANGELOG.md b/di/CHANGELOG.md deleted file mode 100644 index 1395a4a..0000000 --- a/di/CHANGELOG.md +++ /dev/null @@ -1,14 +0,0 @@ -# 1.0.3 -* Update `reflect-metadata` to 0.1.13 - -# 1.0.2 -* Fixed cyclic di and error - -# 1.0.1 -* added extra error messages - -# 1.0.0 -* New `@decorators/di` package -``` -npm install @decorators/di --save -``` diff --git a/di/package-lock.json b/di/package-lock.json new file mode 100644 index 0000000..31ed350 --- /dev/null +++ b/di/package-lock.json @@ -0,0 +1,428 @@ +{ + "name": "@decorators/di", + "version": "1.0.3", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/chai": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.4.tgz", + "integrity": "sha512-cvU0HomQ7/aGDQJZsbtJXqBQ7w4J4TqLB0Z/h8mKrpRjfeZEvTbygkfJEb7fWdmwpIeDeFmIVwAEqS0OYuUv3Q==", + "dev": true + }, + "@types/mocha": { + "version": "2.2.44", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.44.tgz", + "integrity": "sha512-k2tWTQU8G4+iSMvqKi0Q9IIsWAp/n8xzdZS4Q4YVIltApoMA00wFBFdlJnmoaK1/z7B0Cy0yPe6GgXteSmdUNw==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", + "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", + "dev": true + }, + "chai": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz", + "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", + "dev": true, + "requires": { + "assertion-error": "^1.0.1", + "check-error": "^1.0.1", + "deep-eql": "^3.0.0", + "get-func-name": "^2.0.0", + "pathval": "^1.0.0", + "type-detect": "^4.0.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "requires": { + "type-detect": "^4.0.0" + } + }, + "diff": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", + "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "growl": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", + "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", + "dev": true + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, + "homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dev": true, + "requires": { + "parse-passwd": "^1.0.0" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.0.1.tgz", + "integrity": "sha512-evDmhkoA+cBNiQQQdSKZa2b9+W2mpLoj50367lhy+Klnx9OV8XlCIhigUnn1gaTFLQCa0kdNhEGDr0hCXOQFDw==", + "dev": true, + "requires": { + "browser-stdout": "1.3.0", + "commander": "2.11.0", + "debug": "3.1.0", + "diff": "3.3.1", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.3", + "he": "1.1.1", + "mkdirp": "0.5.1", + "supports-color": "4.4.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true + }, + "reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "^2.0.0" + } + }, + "ts-node": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-3.3.0.tgz", + "integrity": "sha1-wTxqMCTjC+EYDdUwOPwgkonUv2k=", + "dev": true, + "requires": { + "arrify": "^1.0.0", + "chalk": "^2.0.0", + "diff": "^3.1.0", + "make-error": "^1.1.1", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.0", + "tsconfig": "^6.0.0", + "v8flags": "^3.0.0", + "yn": "^2.0.0" + }, + "dependencies": { + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + } + } + }, + "tsconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-6.0.0.tgz", + "integrity": "sha1-aw6DdgA9evGGT434+J3QBZ/80DI=", + "dev": true, + "requires": { + "strip-bom": "^3.0.0", + "strip-json-comments": "^2.0.0" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "typescript": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.5.3.tgz", + "integrity": "sha512-ptLSQs2S4QuS6/OD1eAKG+S5G8QQtrU5RT32JULdZQtM1L3WTi34Wsu48Yndzi8xsObRAB9RPt/KhA9wlpEF6w==", + "dev": true + }, + "v8flags": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz", + "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=", + "dev": true + } + } +} diff --git a/express/CHANGELOG.md b/express/CHANGELOG.md deleted file mode 100644 index 290a93b..0000000 --- a/express/CHANGELOG.md +++ /dev/null @@ -1,121 +0,0 @@ -# 2.3.0 -* Added support for `async` middleware -* `express` and `@decorators/di` as `peerDependencies` - -# 2.2.2 -* Fixed `getParam` to always return property of `param` when `name` is provided - -# 2.2.1 -* Router support for `attachControllers` helper function -* Global error middleware also intercepts errors in async method handlers -* Changed library structure - -# 2.2.0 -* `@Injectable` from `@decorators/di` is now optional for controller. -Note: make sure to use `@Injectable` if you need dependency injection in controller -* Fixed passing incorrect error object to next handler in case if `ERROR_MIDDLEWARE` wasn't registered - -# 2.1.0 -* Fixed definitions -* Fixed complition for VSCode, etc. - -# 2.0.0 -* Dependency injection with `@decorators/di`, closes #54; -* Express route middlewares as a class, closes #55; -* Functions as middleware are no longer supported, use classes instead -* Single middleware are no longer supported, use array instead (unified interface for all usages) -* Added `All`, `Patch` and `Head` route decorators -* Global error middleware, closes #56 -* Updated `express` version to `>=4.16.2` -* Removed deprecated methods and decorators -* big refactoring - -# 1.3.0 -* Moved express-related types to package interfaces -* `@Request(name?: string)` decorator accepts optional parameter name -* Controller DI - -# 1.2.0 -* Added controller-based middleware - `@Controller(baseUrl: string, [middleware]?)` -* moved route-based middleware to route definition decorator - `@Get(url: string, [middleware]?)` -* renamed `bootstrapControllers` to `attachControllers` -* `@Middleware` moved to deprecated, will be removed in 2.0.0 -* `bootstrapControllers` moved to deprecated, will be removed in 2.0.0 - -# 1.1.1 -* Added possibility to pass array of middleware funcs into `@Middleware` - -# 1.1.0 -* Automatic definitions generation -* removed helper functions - * `bootstrapExpress` - * `bootstrapController` - * `bootstrapControllersFromDirectory` - -# 1.0.0 -* Moved project to scoped packages -``` -npm install @decorators/express --save -``` - -# 0.2.4 -* Two new ways to register controller(s) - ```bootstrapController```, ```bootstrapControllers``` -* Added missing typings for ```bootstrapControllersFromDirectory``` - -# 0.2.2 -* Fixed typings and dev build configuration - -# 0.2.1 -* New express function `bootstrapControllersFromDirectory(app: Express, folder: string)` for reading folder with controllers - -# 0.2.0 -* moved project to `ES6` - -# 0.1.4 -* Fixed express decorators request method assignment - -# 0.1.2 -* @Next *express* decorator -* *express* route function usage without parameter decorators -``` -@Get('/') -homeAction(req, res, next) { - res.render('Home.twig'); -} -``` - -# 0.1.1 -* added trash files into `.npmignore` - -# 0.1.0 -* New imports: -``` -import { Controller } from 'node-decorators/express'; -``` - * Removed deprecated methods - * `decorateExpressApp` - * `App` - -# 0.0.8 -* ES6 support as target - -# 0.0.5 -### Features -* Base express decorators - * Class - * @Controller(baseUrl: string) - * Method - * @Get(url: string) - * @Post(url: string) - * @Put(url: string) - * @Delete(url: string) - * @Options(url: string) - * @Middleware(middleware: Function) - * Parameter - * @Request() - * @Response() - * @Params(name?: string) - * @Query(name?: string) - * @Body(name?: string) - * @Headers(name?: string) - * @Cookies(name?: string) diff --git a/express/package-lock.json b/express/package-lock.json index 3366c3e..8f9ec3c 100644 --- a/express/package-lock.json +++ b/express/package-lock.json @@ -1,6 +1,6 @@ { "name": "@decorators/express", - "version": "2.3.0", + "version": "2.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/socket/CHANGELOG.md b/socket/CHANGELOG.md deleted file mode 100644 index 472a051..0000000 --- a/socket/CHANGELOG.md +++ /dev/null @@ -1,129 +0,0 @@ -# Socket#3.2.0 -* Made global middleware optional -* Made dependencies as peerDependencies - -# Socket#3.1.0 -* Changed library structure -* Fixed interfaces -* Added new interface to implement for server middleware `ServerMiddleware`, controller `Middleware` interface remains the same -* Updated versions of dependencies, like `socket.io` and `@decorators/di` - -# Socket#3.0.2 -* Fix sorting parameters when applying events - -# Socket#3.0.1 -* Updated README - -# Socket#3.0.0 -* Dependency injection with `@decorators/di` -* `@ServerMiddleware` decorator was removed, use `IO_MIDDLEWARE` token to register custom server middleware -* `@Middleware` decorator was removed use controller-based middleware -* Middlewares as a class -* Functions as middleware are no longer supported, use classes instead (`Middleware` interface) -* Single middleware are no longer supported, use array instead (unified interface for all usages) -* legacy helper function `attachControllersToSocket` was removed -* Updated `socket.io` version to `>=2.0.4` -* Development: big refactoring -* Development: updated typescript version to `>=2.6.1` - -# Socket#2.0.1 -* Fixed availability of **@Socket** in `connection` event -* Updated typescript to latest -* Fixed types for latest typescript - -# Socket#2.0.0 -* Features - * Added wrap option for **@IO(WrapperClass?)** decorator, see **@Socket()** decorator for details -* Renamed - * **@Callback()** to **@Ack()** - * **@GlobalMiddleware()** for socket global middleware to **@Middleware()** - * Renamed **@Namespace()** to **@Controller(namespace: string, middleware?: Function | Function[])** -* Removed - * **@Middleware(middleware: Function | Function[])** - use Controller based middleware - * deprecated **bootstrapSocketIO(io: SocketIO.Server, Controllers)** - Attaches controllers to IO server - use **attachControllers()** instead - * deprecated **attachControllerToSocket(io: SocketIO.Server, socket: SocketIO.Socket, Controllers)** - Attaches controllers to Socket - use **attachControllersToSocket()** instead - -# Socket#1.4.0 -* Controller DI -```typescript -{ provide: UserController, deps: [UserService] } -``` -* Renamed methods **bootstrapSocketIO** and **attachControllerToSocket** (see README for details) - -# Socket#1.3.3 -* Added possibility to pass array of middleware funcs into: - * **@ServerMiddleware** - * **@GlobalMiddleware** - * **@Middleware** - -# Socket#1.3.2 -* Added wrap option for **@Socket(WrapperClass?)** decorator, now you can pass wrapper class in it, to get extended functionality over the socket, optional parameter, e.g.: -```typescript -class SocketWrapper { - constructor(private socket: SocketIO.Socket) {} -} -``` - -# Socket#1.3.1 -* Added callback function (noop) even if it doesn't exists, just prevent additional checks in controller - -# Socket#1.3.0 -* Renamed middleware names to - * **@ServerMiddleware** - * **@GlobalMiddleware** - * **@Middleware** -* Renamed decorators: - * **@Namespace** - * **@GlobalEvent** - * **@Connection** - * **@Disconnect** - * **@Event** -* Added event-based middleware, for socket events - -# Socket#1.2.2 -* Automatic definitions generation - -# Socket#1.2.1 -* added new parameters to middleware functions: - * **@Middleware((io: SocketIO.Server | SocketIO.Namespace, socket: SocketIO.Socket, next: Function) => {})** - registers global (io) middleware - * **@SocketMiddleware((io: SocketIO.Server | SocketIO.Namespace, socket: SocketIO.Socket, packet, next: Function) => {})** - registers socket middleware - -# Socket#1.2.0 -* Updated Socket.io version to **1.6.0** -* Removed **attachController** for the sake of **attachControllers** -* **bootstrapSocketIO** now accepts io server instance as first argument and array of controllers as second -* New **@Controller(namespace: string)** decorator, registers namespace for sockets -* **attachControllerToSocket(io: SocketIO.Server, socket: SocketIO.Socket, Controllers)** - Attaches controllers to Socket - -# Socket#1.1.2 -* Moved server configuration out of **@Connect** decorator to **bootstrapSocketIO** - ``` - bootstrapSocketIO(httpServerInstance || 3000) - ``` -* Removed **@Connect** decorator -* **attachControllers** attach array of controllers - -# Socket#1.1.1 -* new socket.io decorator - ##### Method - * **@OnDisconnect()** -* **SocketIOServer** interface added - * **attachController** will now return correct object (SocketIOServer, this) - -# Socket#1.1.0 -* New socket.io decorators - #### Functions - * **bootstrapSocketIO(rootController: Controller)** - ##### Class - * **@Connect(serverOrPort: number | string | HttpServer, opts?: any)** - * **@Middleware(fn: Function)** - ##### Method - * **@OnIO(event: string)** - * **@OnConnect()** - * **@OnConnection()** - * **@OnSocket(event: string)** - ##### Parameter - * **@IO()** - * **@Socket()** - * **@Args()** - * **@Callback()**