Compare commits

...

1300 Commits

Author SHA1 Message Date
Kamil Myśliwiec
c150deefbd chore(@nestjs) publish v7.6.8 release 2021-02-01 15:25:38 +01:00
Kamil Myśliwiec
68b5d2a8e2 chore(): update README 2021-02-01 15:23:44 +01:00
Kamil Mysliwiec
4d87dd6b1e Merge pull request #6287 from nestjs/renovate/imports-loader-2.x
chore(deps): update dependency imports-loader to v2
2021-02-01 14:27:23 +01:00
Kamil Myśliwiec
e0b825121b Merge branch 'jmcdo29-feat/microservice-deserialize-error' 2021-02-01 14:26:37 +01:00
Kamil Myśliwiec
dc8b1d5c72 refactor(microservices): rename is custom client options method 2021-02-01 14:23:37 +01:00
Renovate Bot
832b3bc90c chore(deps): update dependency imports-loader to v2 2021-02-01 13:20:14 +00:00
Kamil Myśliwiec
8180e5905c Merge branch 'feat/microservice-deserialize-error' of https://github.com/jmcdo29/nest into jmcdo29-feat/microservice-deserialize-error 2021-02-01 13:46:55 +01:00
Kamil Myśliwiec
2307373bfe Merge branch 'gabeodess-graphql-schema-first-resolve-field' 2021-02-01 13:44:50 +01:00
Kamil Myśliwiec
71255392c9 sample(12-graphql-schema-first): fix sample 2021-02-01 13:43:45 +01:00
Kamil Myśliwiec
07c8cdc80b Merge branch 'graphql-schema-first-resolve-field' of https://github.com/gabeodess/nest into gabeodess-graphql-schema-first-resolve-field 2021-02-01 13:18:56 +01:00
Kamil Mysliwiec
f9e5272e2b Merge pull request #6286 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.11.0
2021-02-01 13:14:06 +01:00
Renovate Bot
b842a7e817 fix(deps): update dependency point-of-view to v4.11.0 2021-02-01 12:12:15 +00:00
Kamil Mysliwiec
8df890a8ac Merge pull request #6245 from bonkboykz/fix-websockets-metadata-typings
fix(websockets): fix typings for gatewaymetadata origins
2021-02-01 13:10:34 +01:00
Kamil Mysliwiec
060befe22e Merge pull request #6257 from Tony133/chore/update-transform-options
chore(): update interface for transform options
2021-02-01 13:10:23 +01:00
Kamil Mysliwiec
06bddccb5c Merge pull request #6249 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.10.0
2021-02-01 13:08:39 +01:00
Kamil Mysliwiec
4f88c3d147 Merge pull request #6282 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.19.0
2021-02-01 10:00:30 +01:00
Renovate Bot
dd7c176df3 fix(deps): update dependency point-of-view to v4.10.0 2021-02-01 07:56:45 +00:00
Renovate Bot
c43fb62322 chore(deps): update dependency eslint to v7.19.0 2021-02-01 07:53:50 +00:00
Kamil Mysliwiec
8c4fb929b7 Merge pull request #6276 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.19.0
2021-02-01 08:38:52 +01:00
Kamil Mysliwiec
1130edc150 Merge pull request #6285 from nestjs/dependabot/npm_and_yarn/point-of-view-4.10.0
chore(deps-dev): bump point-of-view from 4.9.0 to 4.10.0
2021-02-01 08:38:34 +01:00
dependabot[bot]
6417c5477a chore(deps-dev): bump point-of-view from 4.9.0 to 4.10.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v4.9.0...v4.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-01 05:49:52 +00:00
Kamil Mysliwiec
149483a852 Update Readme.md 2021-01-30 12:41:17 +01:00
Kamil Mysliwiec
27d9202108 Update readme_jp.md 2021-01-30 12:33:13 +01:00
Kamil Mysliwiec
950e3697c7 Merge pull request #6275 from pochi-sato/master
docs(readme): Create Readme for "Japanese"!
2021-01-30 11:57:09 +01:00
Renovate Bot
df5a7c3a48 chore(deps): update dependency webpack to v5.19.0 2021-01-30 10:25:03 +00:00
Kamil Mysliwiec
25b7ad5805 Merge pull request #6273 from nestjs/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26.5.0
2021-01-30 11:23:19 +01:00
Takuto Sato
0f668075fb Create Readme for "Japanese"! 2021-01-30 00:45:31 +09:00
Renovate Bot
b74f80fb1c chore(deps): update dependency ts-jest to v26.5.0 2021-01-29 14:36:13 +00:00
Kamil Mysliwiec
a0d08f049c Merge pull request #6268 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.14
2021-01-29 13:47:55 +01:00
Renovate Bot
c88db600a0 fix(deps): update dependency mongoose to v5.11.14 2021-01-29 10:44:03 +00:00
Kamil Mysliwiec
e196f51608 Update Readme.md 2021-01-28 11:56:17 +01:00
Kamil Mysliwiec
f4c45f8d88 Update Readme.md 2021-01-28 11:54:50 +01:00
Tony133
4baea48cfa chore(): update interface for trasform options ref:6256 2021-01-27 15:36:18 +01:00
Kamil Mysliwiec
275e71f89a Merge pull request #6231 from nestjs/renovate/supertest-6.x
chore(deps): update dependency supertest to v6.1.3
2021-01-27 10:41:35 +01:00
Kamil Mysliwiec
4a1074a793 Merge pull request #6255 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.7
2021-01-27 10:33:15 +01:00
Kamil Mysliwiec
e9d1735688 Merge pull request #6250 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.5.0
2021-01-27 10:31:12 +01:00
Kamil Mysliwiec
3b93861706 Merge pull request #6251 from nestjs/dependabot/npm_and_yarn/point-of-view-4.9.0
chore(deps-dev): bump point-of-view from 4.8.0 to 4.9.0
2021-01-27 10:31:05 +01:00
Renovate Bot
6d1c02be01 fix(deps): update nest monorepo to v7.6.7 2021-01-27 09:23:22 +00:00
Kamil Myśliwiec
1e5f60ed17 chore(@nestjs) publish v7.6.7 release 2021-01-27 09:32:28 +01:00
Kamil Myśliwiec
6379162871 Merge branch 'master' of https://github.com/nestjs/nest 2021-01-27 09:06:37 +01:00
Kamil Myśliwiec
fddc980b1d fix(common): fallback to the default get timestamp fn (logger) 2021-01-27 09:06:28 +01:00
Renovate Bot
6027001b4e fix(deps): update dependency sequelize to v6.5.0 2021-01-27 07:37:18 +00:00
dependabot[bot]
0cd83570a2 chore(deps-dev): bump point-of-view from 4.8.0 to 4.9.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v4.8.0...v4.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-27 07:33:14 +00:00
Kamil Mysliwiec
48d91c9646 Merge pull request #6252 from nestjs/dependabot/npm_and_yarn/graphql-15.5.0
chore(deps-dev): bump graphql from 15.4.0 to 15.5.0
2021-01-27 08:30:44 +01:00
Kamil Mysliwiec
9b9b3564a4 Merge pull request #6247 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.18.0
2021-01-27 08:30:30 +01:00
dependabot[bot]
25526070a1 chore(deps-dev): bump graphql from 15.4.0 to 15.5.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.4.0 to 15.5.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.4.0...v15.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-27 05:26:26 +00:00
Renovate Bot
6df1712b0d chore(deps): update dependency webpack to v5.18.0 2021-01-26 20:59:38 +00:00
Renovate Bot
8aa0f75c8c chore(deps): update dependency supertest to v6.1.3 2021-01-26 10:43:58 +00:00
Kamil Mysliwiec
c0babd6cfd Merge pull request #6238 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.14.1
2021-01-26 11:29:45 +01:00
Kamil Mysliwiec
6448d17f43 Merge pull request #6239 from nestjs/renovate/socket.io-2.x
chore(deps): update dependency @types/socket.io to v2.1.13
2021-01-26 11:29:21 +01:00
Kamil Mysliwiec
6a9c9100f5 Merge pull request #6241 from nestjs/dependabot/npm_and_yarn/supertest-6.1.3
chore(deps-dev): bump supertest from 6.1.1 to 6.1.3
2021-01-26 11:29:13 +01:00
Renovate Bot
55c7051787 chore(deps): update typescript-eslint monorepo to v4.14.1 2021-01-26 09:44:24 +00:00
Renovate Bot
db6a555d29 chore(deps): update dependency @types/socket.io to v2.1.13 2021-01-26 09:16:01 +00:00
dependabot[bot]
7c722c3d0b chore(deps-dev): bump supertest from 6.1.1 to 6.1.3
Bumps [supertest](https://github.com/visionmedia/supertest) from 6.1.1 to 6.1.3.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v6.1.1...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-26 08:58:14 +00:00
Kamil Mysliwiec
e7011e3b4f Merge pull request #6244 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.6
2021-01-26 09:55:53 +01:00
Yesset Zhussupov
0fb8e1a025 fix(websockets): fix typings for gatewaymetadata origins 2021-01-26 14:04:12 +06:00
Renovate Bot
459458bbb4 fix(deps): update nest monorepo to v7.6.6 2021-01-26 07:54:06 +00:00
Kamil Myśliwiec
9e96e76e1a chore(@nestjs) publish v7.6.6 release 2021-01-26 08:37:47 +01:00
Kamil Myśliwiec
a63db1b8aa fix(common): check if error is a plain object (logger) 2021-01-26 08:29:35 +01:00
Kamil Myśliwiec
477b6d0d5c Merge branch 'Sikora00-6118' 2021-01-26 08:26:01 +01:00
Kamil Myśliwiec
90aa625bf8 fix(): fix relative imports 2021-01-26 08:25:46 +01:00
Kamil Myśliwiec
e8541185f0 Merge branch '6118' of https://github.com/Sikora00/nest into Sikora00-6118 2021-01-26 08:12:18 +01:00
Kamil Myśliwiec
c48e2bcfdb fix(common): check if get timestamp is present on logger 2021-01-26 08:10:03 +01:00
Kamil Mysliwiec
667df81eb5 Merge pull request #6243 from nestjs/dependabot/npm_and_yarn/types/socket.io-2.1.13
chore(deps-dev): bump @types/socket.io from 2.1.12 to 2.1.13
2021-01-26 08:07:45 +01:00
dependabot[bot]
fb5117c241 chore(deps-dev): bump @types/socket.io from 2.1.12 to 2.1.13
Bumps [@types/socket.io](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/socket.io) from 2.1.12 to 2.1.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/socket.io)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-26 05:28:18 +00:00
Maciej Sikorski
ec9727093d feat: allow to config cors async
Bump version of the fastify-cors.
Add CorsOptionsDelegate interface.
Add CorsOptionsDelegate as an acceptable type
for every enableCors usage.

Closes nestjs/nest#6118
2021-01-25 22:46:11 +01:00
Kamil Mysliwiec
d2e6616115 Merge pull request #6235 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.11.0
2021-01-25 13:02:16 +01:00
Renovate Bot
9f3614042f fix(deps): update dependency fastify to v3.11.0 2021-01-25 10:32:31 +00:00
Kamil Mysliwiec
2bc2c8adfa Merge pull request #6148 from nestjs/renovate/class-transformer-0.x
fix(deps): update dependency class-transformer to v0.3.2
2021-01-25 11:26:27 +01:00
Kamil Mysliwiec
e4c5d17df2 Merge pull request #6233 from nestjs/renovate/fastify-cors-5.x
fix(deps): update dependency fastify-cors to v5.2.0
2021-01-25 11:13:09 +01:00
Kamil Mysliwiec
bf420cd91d Merge pull request #6226 from nestjs/renovate/sinon-9.x
chore(deps): update dependency sinon to v9.2.4
2021-01-25 11:12:44 +01:00
Renovate Bot
5d48691713 fix(deps): update dependency class-transformer to v0.3.2 2021-01-25 09:08:37 +00:00
Kamil Myśliwiec
454d519c67 sample(21-serializer): fix transform decorator usage 2021-01-25 09:57:35 +01:00
Renovate Bot
60f256ecdf chore(deps): update dependency sinon to v9.2.4 2021-01-25 08:33:25 +00:00
Renovate Bot
df4c2eb318 fix(deps): update dependency fastify-cors to v5.2.0 2021-01-25 08:30:00 +00:00
Kamil Mysliwiec
843116eea9 Merge pull request #6124 from nestjs/renovate/class-validator-0.x
fix(deps): update dependency class-validator to v0.13.1
2021-01-25 09:26:37 +01:00
Kamil Mysliwiec
3af5404401 Merge pull request #6224 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.8
2021-01-25 09:25:55 +01:00
Kamil Mysliwiec
9a6610cb07 Merge pull request #6202 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.22
2021-01-25 09:25:44 +01:00
Kamil Mysliwiec
a76a6e4a30 Merge pull request #6230 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.9.8
chore(deps-dev): bump @nestjs/graphql from 7.9.7 to 7.9.8
2021-01-25 09:21:16 +01:00
Renovate Bot
d063c4772d fix(deps): update dependency @nestjs/graphql to v7.9.8 2021-01-25 08:20:24 +00:00
Renovate Bot
64d78a9c80 chore(deps): update dependency @types/node to v14.14.22 2021-01-25 07:59:35 +00:00
Kamil Mysliwiec
efe4884c27 Merge pull request #6188 from nestjs/renovate/eslint-config-prettier-7.x
chore(deps): update dependency eslint-config-prettier to v7.2.0
2021-01-25 08:48:17 +01:00
Kamil Mysliwiec
5ebd3353b1 Merge pull request #6222 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.2.7
2021-01-25 08:47:58 +01:00
Kamil Mysliwiec
5d2fa36556 Merge pull request #6223 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.17.0
2021-01-25 08:47:51 +01:00
Kamil Mysliwiec
1440ccaa4b Merge pull request #6225 from nestjs/renovate/nestjs-schedule-0.x
fix(deps): update dependency @nestjs/schedule to v0.4.2
2021-01-25 08:47:41 +01:00
Kamil Mysliwiec
42262df197 Merge pull request #6229 from nestjs/dependabot/npm_and_yarn/class-validator-0.13.1
chore(deps): bump class-validator from 0.12.2 to 0.13.1
2021-01-25 08:47:29 +01:00
dependabot[bot]
6f119c843c chore(deps-dev): bump @nestjs/graphql from 7.9.7 to 7.9.8
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.9.7 to 7.9.8.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.9.7...7.9.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 05:38:54 +00:00
dependabot[bot]
cb0564d77a chore(deps): bump class-validator from 0.12.2 to 0.13.1
Bumps [class-validator](https://github.com/typestack/class-validator) from 0.12.2 to 0.13.1.
- [Release notes](https://github.com/typestack/class-validator/releases)
- [Changelog](https://github.com/typestack/class-validator/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/typestack/class-validator/compare/v0.12.2...v0.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 05:36:01 +00:00
Renovate Bot
d28c25618d fix(deps): update dependency class-validator to v0.13.1 2021-01-22 15:21:18 +00:00
Renovate Bot
4a57915f5a fix(deps): update dependency @nestjs/schedule to v0.4.2 2021-01-22 14:58:33 +00:00
Renovate Bot
3188b801bd chore(deps): update dependency webpack to v5.17.0 2021-01-22 14:54:06 +00:00
Renovate Bot
b7e46f45d4 chore(deps): update dependency eslint-config-prettier to v7.2.0 2021-01-22 14:53:19 +00:00
Renovate Bot
993e5f4a91 chore(deps): update dependency @nestjs/schematics to v7.2.7 2021-01-22 14:27:35 +00:00
Kamil Myśliwiec
bc394eabb2 sample(07-sequelize): fix sample 2021-01-22 15:13:00 +01:00
Kamil Mysliwiec
0b874e7dfc Merge pull request #6220 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.7
2021-01-22 13:07:39 +01:00
Renovate Bot
a65fcd1472 fix(deps): update dependency @nestjs/graphql to v7.9.7 2021-01-22 10:55:03 +00:00
Kamil Mysliwiec
159cdce1f1 Merge pull request #6214 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.6
2021-01-22 09:51:17 +01:00
Kamil Mysliwiec
b298b8bc92 Merge pull request #6215 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.12
2021-01-22 09:49:39 +01:00
Renovate Bot
53226211f7 fix(deps): update dependency @nestjs/graphql to v7.9.6 2021-01-22 08:42:36 +00:00
Kamil Mysliwiec
d4bb87c5eb Merge pull request #6208 from nestjs/renovate/grpc-proto-loader-0.x
fix(deps): update dependency @grpc/proto-loader to v0.5.6
2021-01-22 09:39:39 +01:00
Kamil Mysliwiec
fa4642f70f Merge pull request #6218 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.9.6
chore(deps-dev): bump @nestjs/graphql from 7.9.5 to 7.9.6
2021-01-22 09:39:12 +01:00
dependabot[bot]
c4c1b7c6a5 chore(deps-dev): bump @nestjs/graphql from 7.9.5 to 7.9.6
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.9.5 to 7.9.6.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.9.5...7.9.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-22 05:25:16 +00:00
Renovate Bot
2be4c4cd70 fix(deps): update dependency @nestjs/swagger to v4.7.12 2021-01-21 14:26:02 +00:00
Renovate Bot
76289893d7 fix(deps): update dependency @grpc/proto-loader to v0.5.6 2021-01-21 14:07:44 +00:00
Kamil Mysliwiec
b3e654e84d Merge pull request #6209 from nestjs/dependabot/npm_and_yarn/types/cache-manager-3.4.0
chore(deps-dev): bump @types/cache-manager from 2.10.3 to 3.4.0
2021-01-21 10:05:56 +01:00
Kamil Mysliwiec
668d781b6c Merge pull request #6206 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.13
2021-01-21 10:05:48 +01:00
Kamil Mysliwiec
fb45437621 Merge pull request #6211 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.13
chore(deps-dev): bump mongoose from 5.11.12 to 5.11.13
2021-01-21 09:23:15 +01:00
dependabot[bot]
0c7bf92086 chore(deps-dev): bump @types/cache-manager from 2.10.3 to 3.4.0
Bumps [@types/cache-manager](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cache-manager) from 2.10.3 to 3.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cache-manager)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-21 08:15:13 +00:00
dependabot[bot]
091d09fde2 chore(deps-dev): bump mongoose from 5.11.12 to 5.11.13
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.12 to 5.11.13.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.12...5.11.13)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-21 08:14:29 +00:00
Kamil Mysliwiec
653f0a4281 Merge pull request #6210 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.5.6
chore(deps-dev): bump @grpc/proto-loader from 0.5.5 to 0.5.6
2021-01-21 09:09:52 +01:00
dependabot[bot]
48d899d025 chore(deps-dev): bump @grpc/proto-loader from 0.5.5 to 0.5.6
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits/@grpc/proto-loader@0.5.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-21 08:08:22 +00:00
Renovate Bot
81f3161f7c fix(deps): update dependency mongoose to v5.11.13 2021-01-21 08:06:47 +00:00
Kamil Mysliwiec
0f29446c65 Merge pull request #6194 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-7.2.0
chore(deps-dev): bump eslint-config-prettier from 7.1.0 to 7.2.0
2021-01-21 09:01:06 +01:00
Kamil Mysliwiec
1b31a744a8 Merge pull request #6199 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.16.0
2021-01-20 11:02:36 +01:00
Renovate Bot
0fe31b9bc8 chore(deps): update dependency webpack to v5.16.0 2021-01-20 07:31:32 +00:00
dependabot[bot]
5da5a4ad58 chore(deps-dev): bump eslint-config-prettier from 7.1.0 to 7.2.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.1.0...v7.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-20 07:07:48 +00:00
Kamil Mysliwiec
2abb9b2154 Merge pull request #6203 from nestjs/dependabot/npm_and_yarn/types/node-14.14.22
chore(deps-dev): bump @types/node from 14.14.21 to 14.14.22
2021-01-20 08:03:38 +01:00
Kamil Mysliwiec
43f053ab21 Merge pull request #6196 from nestjs/renovate/webpack-cli-4.x
chore(deps): update dependency webpack-cli to v4.4.0
2021-01-20 08:03:04 +01:00
Kamil Mysliwiec
a74725d585 Merge pull request #6192 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.14.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.13.0 to 4.14.0
2021-01-20 08:00:38 +01:00
Kamil Mysliwiec
51f5de8333 Merge pull request #6186 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.14.0
2021-01-20 07:59:58 +01:00
Kamil Mysliwiec
0c8b004bf9 Merge pull request #6204 from nestjs/dependabot/npm_and_yarn/core-js-3.8.3
chore(deps-dev): bump core-js from 3.8.2 to 3.8.3
2021-01-20 07:59:24 +01:00
dependabot[bot]
3ce92c7883 chore(deps-dev): bump core-js from 3.8.2 to 3.8.3
Bumps [core-js](https://github.com/zloirock/core-js) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.8.2...v3.8.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-20 05:17:17 +00:00
dependabot[bot]
3bbde4c26c chore(deps-dev): bump @types/node from 14.14.21 to 14.14.22
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.21 to 14.14.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-20 05:14:40 +00:00
Renovate Bot
a48107ef92 chore(deps): update dependency webpack-cli to v4.4.0 2021-01-19 13:29:00 +00:00
Renovate Bot
b7990aa5b1 chore(deps): update typescript-eslint monorepo to v4.14.0 2021-01-19 08:35:09 +00:00
dependabot[bot]
07737aa371 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-19 08:08:17 +00:00
Kamil Mysliwiec
ca7b79532f Merge pull request #6163 from nestjs/dependabot/npm_and_yarn/class-transformer-0.3.2
chore(deps): bump class-transformer from 0.3.1 to 0.3.2
2021-01-19 09:05:26 +01:00
Kamil Mysliwiec
ad6ce62f0e Merge pull request #6187 from nestjs/renovate/bull-3.x
chore(deps): update dependency @types/bull to v3.15.0
2021-01-19 09:04:07 +01:00
Kamil Mysliwiec
4c814a2d85 Merge pull request #6190 from nestjs/renovate/docker-mysql-5.x
chore(deps): update mysql docker tag to v5.7.33
2021-01-19 09:04:00 +01:00
Kamil Mysliwiec
1dbb8ff3db Merge pull request #6189 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.4.0
2021-01-19 09:03:49 +01:00
Kamil Mysliwiec
c6780a3a91 Merge pull request #6193 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.14.0
chore(deps-dev): bump @typescript-eslint/parser from 4.13.0 to 4.14.0
2021-01-19 09:03:30 +01:00
dependabot[bot]
1945f8d24a chore(deps-dev): bump @typescript-eslint/parser from 4.13.0 to 4.14.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-19 05:24:49 +00:00
Renovate Bot
ccd4fdae58 chore(deps): update mysql docker tag to v5.7.33 2021-01-19 00:01:32 +00:00
Renovate Bot
817d9f45e0 fix(deps): update dependency sequelize to v6.4.0 2021-01-18 20:51:31 +00:00
Renovate Bot
9362db8042 chore(deps): update dependency @types/bull to v3.15.0 2021-01-18 20:37:09 +00:00
dependabot[bot]
2fb5f4dd16 chore(deps): bump class-transformer from 0.3.1 to 0.3.2
Bumps [class-transformer](https://github.com/typestack/class-transformer) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/typestack/class-transformer/releases)
- [Changelog](https://github.com/typestack/class-transformer/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/typestack/class-transformer/compare/v0.3.1...v0.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-18 08:52:25 +00:00
Kamil Mysliwiec
a400be366b Merge pull request #6176 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.18.0
2021-01-18 09:20:54 +01:00
Renovate Bot
7267409d91 chore(deps): update dependency eslint to v7.18.0 2021-01-17 11:51:47 +00:00
Kamil Mysliwiec
fa494041c8 Merge pull request #6167 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.10.1
2021-01-17 12:31:14 +01:00
Kamil Mysliwiec
af4f041d6a Merge pull request #6168 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.11
2021-01-17 12:23:18 +01:00
Kamil Mysliwiec
562b2bb175 Merge pull request #6170 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.5
2021-01-17 12:23:10 +01:00
Kamil Mysliwiec
36c2a35614 Merge pull request #6171 from nestjs/renovate/supertest-6.x
chore(deps): update dependency supertest to v6.1.1
2021-01-17 12:23:02 +01:00
Kamil Mysliwiec
fb4cc36c75 Merge pull request #6173 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.15.0
2021-01-17 12:22:57 +01:00
Kamil Mysliwiec
7386204da6 Merge pull request #6177 from nestjs/renovate/husky-4.x
chore(deps): update dependency husky to v4.3.8
2021-01-17 12:22:41 +01:00
Renovate Bot
d99370bb1d chore(deps): update dependency husky to v4.3.8 2021-01-16 00:53:14 +00:00
Renovate Bot
90fcd3599e chore(deps): update dependency supertest to v6.1.1 2021-01-15 19:20:48 +00:00
Renovate Bot
e3a66d1902 chore(deps): update dependency webpack to v5.15.0 2021-01-15 17:28:52 +00:00
Renovate Bot
71cab143e6 fix(deps): update dependency @nestjs/graphql to v7.9.5 2021-01-15 15:03:53 +00:00
Renovate Bot
3357fe0349 fix(deps): update dependency @nestjs/swagger to v4.7.11 2021-01-15 13:30:55 +00:00
Kamil Mysliwiec
be0cdfe7e6 Merge pull request #6165 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.4.1
2021-01-15 13:10:11 +01:00
Renovate Bot
c9c92b47de fix(deps): update dependency fastify to v3.10.1 2021-01-15 12:09:31 +00:00
Kamil Mysliwiec
6fb25e93e2 Merge pull request #6155 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.19.2
2021-01-15 13:06:04 +01:00
Kamil Mysliwiec
6957b52afe Merge pull request #6156 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.21
2021-01-15 13:05:54 +01:00
Kamil Mysliwiec
5b7eae83e0 Merge pull request #6166 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.10.0
2021-01-15 13:05:33 +01:00
Renovate Bot
52546cc62e fix(deps): update dependency fastify to v3.10.0 2021-01-15 10:36:34 +00:00
Renovate Bot
d43c4d7510 fix(deps): update dependency fast-json-stringify to v2.4.1 2021-01-15 10:01:20 +00:00
Kamil Mysliwiec
b4c24cc17e Merge pull request #6157 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.12
2021-01-15 09:12:01 +01:00
Renovate Bot
119190ad75 fix(deps): update dependency mongoose to v5.11.12 2021-01-14 22:32:03 +00:00
Renovate Bot
3361cfd236 chore(deps): update dependency @types/node to v14.14.21 2021-01-14 22:28:52 +00:00
Renovate Bot
0cf4409869 fix(deps): update apollo graphql packages to v2.19.2 2021-01-14 17:24:06 +00:00
Kamil Mysliwiec
5028393d57 Merge pull request #6154 from nestjs/renovate/fastify-static-3.x
fix(deps): update dependency fastify-static to v3.4.0
2021-01-14 16:07:35 +01:00
Renovate Bot
05b771a9c2 fix(deps): update dependency fastify-static to v3.4.0 2021-01-14 14:09:48 +00:00
Kamil Mysliwiec
d972d9ad8f Merge pull request #6150 from nestjs/renovate/nestjs-mongoose-7.x
fix(deps): update dependency @nestjs/mongoose to v7.2.2
2021-01-14 11:03:51 +01:00
Renovate Bot
668968faa9 fix(deps): update dependency @nestjs/mongoose to v7.2.2 2021-01-14 09:38:03 +00:00
Kamil Mysliwiec
d588b8bc68 Merge pull request #6147 from nestjs/dependabot/npm_and_yarn/engine.io-client-4.1.0
chore(deps-dev): bump engine.io-client from 4.0.6 to 4.1.0
2021-01-14 09:07:28 +01:00
Kamil Mysliwiec
1a0922a58b Merge pull request #6145 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.14.0
2021-01-14 08:38:14 +01:00
dependabot[bot]
cd04a8d58a chore(deps-dev): bump engine.io-client from 4.0.6 to 4.1.0
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 4.0.6 to 4.1.0.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/4.0.6...4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-14 05:23:02 +00:00
Renovate Bot
ff935dac06 chore(deps): update dependency webpack to v5.14.0 2021-01-14 00:36:43 +00:00
Kamil Myśliwiec
ba2f5ae63a chore(): update LICENSE file 2021-01-13 13:25:04 +01:00
Kamil Mysliwiec
0d67f823d5 Merge pull request #6071 from nvdnkpr/master
feat(testing): adds builder method for optional custom logger
2021-01-13 12:48:56 +01:00
Kamil Mysliwiec
f001a9ab83 Merge pull request #5994 from sztadii/chore/linter-fix
chore: Run linter without --fix on CI
2021-01-13 11:48:21 +01:00
Kamil Myśliwiec
8bc4e92d21 Merge branch 'nean-update-class-validator' 2021-01-13 11:45:10 +01:00
Kamil Myśliwiec
d2d951870c docs(common): fix jsdoc comment 2021-01-13 11:44:55 +01:00
Kamil Myśliwiec
29e158ac66 Merge branch 'update-class-validator' of https://github.com/nean/nest into nean-update-class-validator 2021-01-13 11:35:50 +01:00
Kamil Mysliwiec
29192b38e4 Merge pull request #6062 from Tony133/chore/microservice-nats-options
chore(microservice): updated nats options
2021-01-13 11:30:58 +01:00
Kamil Mysliwiec
e6e11b9cf1 Update packages/testing/testing-module.builder.ts 2021-01-13 11:30:44 +01:00
Kamil Mysliwiec
38974dc290 Merge pull request #6082 from WonderPanda/feat/types-for-microservices-custom-strategy
fix(microservices): custom strategy typings
2021-01-13 11:30:12 +01:00
Kamil Mysliwiec
8b86d836c3 Merge pull request #6126 from nestjs/renovate/express-4.x
chore(deps): update dependency @types/express to v4.17.11
2021-01-13 10:55:33 +01:00
Renovate Bot
967206ca5d chore(deps): update dependency @types/express to v4.17.11 2021-01-13 09:00:21 +00:00
Kamil Mysliwiec
ca830a8519 Merge pull request #6139 from nestjs/dependabot/npm_and_yarn/types/express-4.17.11
chore(deps-dev): bump @types/express from 4.17.9 to 4.17.11
2021-01-13 09:48:12 +01:00
dependabot[bot]
ce28bee865 chore(deps-dev): bump @types/express from 4.17.9 to 4.17.11
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.9 to 4.17.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-13 05:25:37 +00:00
Kamil Mysliwiec
9e20b0a858 Merge pull request #6135 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.2.30
2021-01-12 17:00:16 +01:00
Renovate Bot
b60691737f fix(deps): update dependency typeorm to v0.2.30 2021-01-12 13:38:50 +00:00
Kamil Mysliwiec
41415b5b91 Merge pull request #6127 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.13.0
2021-01-12 11:56:31 +01:00
Kamil Mysliwiec
65d2fac038 Merge pull request #6132 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.10
2021-01-12 11:56:21 +01:00
Renovate Bot
fe0b7bc95b fix(deps): update dependency @nestjs/swagger to v4.7.10 2021-01-12 10:27:10 +00:00
Renovate Bot
b876a5542c chore(deps): update dependency webpack to v5.13.0 2021-01-12 10:26:33 +00:00
Neranjen
b14c7de30b fix(common): update class-validator interfaces 2021-01-12 15:41:06 +05:30
Kamil Mysliwiec
439512a748 Merge pull request #6125 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.13.0
2021-01-12 09:07:23 +01:00
Renovate Bot
fa0024e581 chore(deps): update typescript-eslint monorepo to v4.13.0 2021-01-11 19:52:27 +00:00
Kamil Mysliwiec
854522eb88 Merge pull request #6099 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.3.1
2021-01-11 08:47:17 +01:00
Kamil Mysliwiec
3f67e9a0f2 Merge pull request #6102 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.8.0
2021-01-11 08:47:11 +01:00
Kamil Mysliwiec
b5a92dd1be Merge pull request #6103 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io to v2.4.1
2021-01-11 08:47:04 +01:00
Kamil Mysliwiec
9c15dc692d Merge pull request #6111 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.12.3
2021-01-11 08:46:48 +01:00
Kamil Mysliwiec
7efeba63c6 Merge pull request #6113 from nestjs/renovate/gulp-4.x
chore(deps): update dependency @types/gulp to v4.0.8
2021-01-11 08:46:25 +01:00
Kamil Mysliwiec
1db29b3632 Merge pull request #6114 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.11
2021-01-11 08:46:08 +01:00
Renovate Bot
32d06a2bea chore(deps): update dependency webpack to v5.12.3 2021-01-10 19:47:02 +00:00
Renovate Bot
a04d19b339 fix(deps): update dependency point-of-view to v4.8.0 2021-01-09 07:42:39 +00:00
Renovate Bot
27e1748ae9 fix(deps): update dependency fast-json-stringify to v2.3.1 2021-01-09 07:39:28 +00:00
Renovate Bot
025fb6bae9 fix(deps): update dependency mongoose to v5.11.11 2021-01-08 18:27:21 +00:00
Renovate Bot
d7fafd59ab chore(deps): update dependency @types/gulp to v4.0.8 2021-01-08 17:22:48 +00:00
Renovate Bot
54514b636b fix(deps): update dependency socket.io to v2.4.1 2021-01-07 12:13:06 +00:00
Kamil Mysliwiec
b0de6b20c7 Merge pull request #6070 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.10
2021-01-07 13:05:38 +01:00
Kamil Mysliwiec
d13fad341a Merge pull request #6101 from nestjs/renovate/nestjs-mongoose-7.x
fix(deps): update dependency @nestjs/mongoose to v7.2.1
2021-01-07 13:05:03 +01:00
Kamil Mysliwiec
ad955270cf Merge pull request #6091 from nestjs/renovate/nodemon-2.x
chore(deps): update dependency nodemon to v2.0.7
2021-01-07 11:53:59 +01:00
Kamil Mysliwiec
7f300dc640 Merge pull request #6098 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.20
2021-01-07 11:53:51 +01:00
Kamil Mysliwiec
06b220fd92 Merge pull request #6039 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.12.0
2021-01-07 11:50:04 +01:00
Renovate Bot
d823d9bf75 fix(deps): update dependency @nestjs/mongoose to v7.2.1 2021-01-07 10:13:53 +00:00
Renovate Bot
a58db3a89d chore(deps): update dependency nodemon to v2.0.7 2021-01-07 10:10:03 +00:00
Kamil Mysliwiec
3b8e4172e7 Merge pull request #6095 from nestjs/dependabot/npm_and_yarn/sinon-9.2.3
chore(deps-dev): bump sinon from 9.2.2 to 9.2.3
2021-01-07 11:08:08 +01:00
Kamil Mysliwiec
6cd9b7e6d4 Merge pull request #6097 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.7
chore(deps-dev): bump nodemon from 2.0.6 to 2.0.7
2021-01-07 11:07:56 +01:00
Renovate Bot
989582529b fix(deps): update dependency mongoose to v5.11.10 2021-01-07 09:34:40 +00:00
Renovate Bot
5210db3050 chore(deps): update dependency @types/jest to v26.0.20 2021-01-07 09:30:09 +00:00
Kamil Mysliwiec
ae76f46e3c Merge pull request #6083 from nestjs/renovate/fastify-static-3.x
fix(deps): update dependency fastify-static to v3.3.1
2021-01-07 10:25:53 +01:00
Renovate Bot
9c102342d9 chore(deps): update typescript-eslint monorepo to v4.12.0 2021-01-07 09:17:47 +00:00
dependabot[bot]
7e79847c61 chore(deps-dev): bump nodemon from 2.0.6 to 2.0.7
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.6...v2.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07 08:58:25 +00:00
dependabot[bot]
da4fc69e2b chore(deps-dev): bump sinon from 9.2.2 to 9.2.3
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.2 to 9.2.3.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v9.2.2...v9.2.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07 08:58:23 +00:00
Kamil Mysliwiec
25b6e501f8 Merge pull request #6078 from nestjs/dependabot/npm_and_yarn/engine.io-client-4.0.6
chore(deps-dev): bump engine.io-client from 4.0.5 to 4.0.6
2021-01-07 09:56:01 +01:00
Kamil Mysliwiec
1f4f8222b1 Merge pull request #6014 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.20
2021-01-07 09:30:25 +01:00
Renovate Bot
a85cd23088 fix(deps): update dependency fastify-static to v3.3.1 2021-01-07 08:19:04 +00:00
dependabot[bot]
b0cc4a2ec5 chore(deps-dev): bump engine.io-client from 4.0.5 to 4.0.6
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/4.0.5...4.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07 07:52:34 +00:00
Kamil Mysliwiec
e235bcfcd5 Merge pull request #6079 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.12.0
chore(deps-dev): bump @typescript-eslint/parser from 4.11.1 to 4.12.0
2021-01-07 08:50:34 +01:00
Kamil Mysliwiec
4841d48e93 Merge pull request #6084 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.14
2021-01-07 08:50:25 +01:00
Kamil Mysliwiec
dac636f0c1 Merge pull request #6086 from nestjs/dependabot/npm_and_yarn/fastify-static-3.3.1
chore(deps-dev): bump fastify-static from 3.3.0 to 3.3.1
2021-01-07 08:50:15 +01:00
Kamil Mysliwiec
dfefa63697 Merge pull request #6089 from nestjs/dependabot/npm_and_yarn/tslib-2.1.0
chore(deps): bump tslib from 2.0.3 to 2.1.0
2021-01-07 08:50:03 +01:00
Kamil Mysliwiec
30e90b7a3a Merge pull request #6096 from nestjs/dependabot/npm_and_yarn/husky-4.3.7
chore(deps-dev): bump husky from 4.3.6 to 4.3.7
2021-01-07 08:49:50 +01:00
dependabot[bot]
045983d7aa chore(deps-dev): bump husky from 4.3.6 to 4.3.7
Bumps [husky](https://github.com/typicode/husky) from 4.3.6 to 4.3.7.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v4.3.6...v4.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07 05:26:50 +00:00
dependabot[bot]
660be0ed86 chore(deps): bump tslib from 2.0.3 to 2.1.0
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.0.3 to 2.1.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.0.3...2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 05:18:56 +00:00
dependabot[bot]
c523845855 chore(deps-dev): bump fastify-static from 3.3.0 to 3.3.1
Bumps [fastify-static](https://github.com/fastify/fastify-static) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v3.3.0...v3.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 05:08:48 +00:00
Renovate Bot
d560888761 chore(deps): update dependency ts-loader to v8.0.14 2021-01-05 19:47:51 +00:00
Jesse Carter
fdd678c013 fix(microservices): custom strategy typings 2021-01-05 08:05:02 -05:00
Renovate Bot
4950c53586 chore(deps): update dependency @types/node to v14.14.20 2021-01-05 09:25:28 +00:00
dependabot[bot]
57ebb8e04e chore(deps-dev): bump @typescript-eslint/parser from 4.11.1 to 4.12.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.11.1 to 4.12.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.12.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 07:56:56 +00:00
Kamil Mysliwiec
e77b185828 Merge pull request #6048 from nestjs/renovate/ws-7.x
fix(deps): update dependency ws to v7.4.2
2021-01-05 08:50:13 +01:00
Kamil Mysliwiec
bc74ef28a3 Merge pull request #6074 from nestjs/renovate/socket.io-packages
fix(deps): update socket.io packages to v2.4.0
2021-01-05 08:48:14 +01:00
Kamil Mysliwiec
9e6667f9e8 Merge pull request #6076 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.10
chore(deps-dev): bump mongoose from 5.11.9 to 5.11.10
2021-01-05 08:47:58 +01:00
Kamil Mysliwiec
d74ae63e83 Merge pull request #6077 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.12.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.11.1 to 4.12.0
2021-01-05 08:47:51 +01:00
Kamil Mysliwiec
a4c475ddc2 Merge pull request #6080 from nestjs/dependabot/npm_and_yarn/types/node-14.14.20
chore(deps-dev): bump @types/node from 14.14.17 to 14.14.20
2021-01-05 08:45:36 +01:00
dependabot[bot]
aa4c8608ed chore(deps-dev): bump @types/node from 14.14.17 to 14.14.20
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.17 to 14.14.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 05:23:28 +00:00
dependabot[bot]
13b366878e chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.11.1 to 4.12.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.12.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 05:17:26 +00:00
dependabot[bot]
c6bf80f76c chore(deps-dev): bump mongoose from 5.11.9 to 5.11.10
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.9 to 5.11.10.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.9...5.11.10)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 05:15:33 +00:00
Renovate Bot
3080f75534 fix(deps): update socket.io packages to v2.4.0 2021-01-05 00:18:38 +00:00
Navid Nikpour
766218aad1 feat(testing): Changes Logger to LoggerService
to require the same interface that the underlying Logger class is expecting
2021-01-05 00:14:52 +01:00
Navid Nikpour
d6b2266615 feat(testing): adds builder method for optional custom logger
Adds a method that enables to set a new custom logger (extended from the Logger class) for testing. If this method is not used (therefore the logger gets never set) it falls back to the already existing TestingLogger of the testing module.
2021-01-04 22:53:13 +01:00
Renovate Bot
344f6a6efc fix(deps): update dependency ws to v7.4.2 2021-01-04 09:06:55 +00:00
Kamil Mysliwiec
9421dae875 Merge pull request #6040 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.9
2021-01-04 09:40:20 +01:00
Kamil Mysliwiec
27dafd8292 Merge pull request #6044 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.4
2021-01-04 09:40:09 +01:00
Kamil Mysliwiec
5150334252 Merge pull request #6068 from nestjs/dependabot/npm_and_yarn/core-js-3.8.2
chore(deps-dev): bump core-js from 3.8.1 to 3.8.2
2021-01-04 09:39:34 +01:00
dependabot[bot]
6f9ae1c871 chore(deps-dev): bump core-js from 3.8.1 to 3.8.2
Bumps [core-js](https://github.com/zloirock/core-js) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.8.1...v3.8.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-04 05:36:19 +00:00
Renovate Bot
65c6c443a6 fix(deps): update dependency @nestjs/graphql to v7.9.4 2021-01-03 10:23:38 +00:00
Kamil Mysliwiec
732d378c62 Merge pull request #6058 from nestjs/renovate/webpack-cli-4.x
chore(deps): update dependency webpack-cli to v4.3.1
2021-01-03 10:57:46 +01:00
Kamil Mysliwiec
55033eb6b4 Merge pull request #6052 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.9.4
chore(deps-dev): bump @nestjs/graphql from 7.9.2 to 7.9.4
2021-01-03 10:57:40 +01:00
Kamil Mysliwiec
5f103779b4 Merge pull request #6055 from nestjs/dependabot/npm_and_yarn/types/node-14.14.17
chore(deps-dev): bump @types/node from 14.14.16 to 14.14.17
2021-01-03 10:57:28 +01:00
Kamil Mysliwiec
2753474871 Merge pull request #6056 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.13
2021-01-03 10:56:41 +01:00
Kamil Mysliwiec
aeec26c25a Merge pull request #6063 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.17.0
2021-01-03 10:56:19 +01:00
Renovate Bot
55d7542cb1 chore(deps): update dependency eslint to v7.17.0 2021-01-02 03:41:39 +00:00
Tony133
987faa5f2e chore(microservice): added key for extra values 2021-01-01 22:52:17 +01:00
Tony133
c5aa2c7b01 chore(microservice): updated nats options ref:6054 2021-01-01 19:15:44 +01:00
Renovate Bot
73059b574f chore(deps): update dependency webpack-cli to v4.3.1 2020-12-31 18:49:22 +00:00
Renovate Bot
98c9674b26 chore(deps): update dependency ts-loader to v8.0.13 2020-12-31 07:04:05 +00:00
dependabot[bot]
a1c76b4a7e chore(deps-dev): bump @types/node from 14.14.16 to 14.14.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.16 to 14.14.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-31 05:06:15 +00:00
Renovate Bot
eabc87063e fix(deps): update dependency mongoose to v5.11.9 2020-12-30 10:12:34 +00:00
Kamil Mysliwiec
562cd3d6ee Merge pull request #6043 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.11.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.11.0 to 4.11.1
2020-12-30 10:56:39 +01:00
Kamil Mysliwiec
4b35074d5c Merge pull request #6049 from nestjs/dependabot/npm_and_yarn/ws-7.4.2
chore(deps): bump ws from 7.4.1 to 7.4.2
2020-12-30 10:56:27 +01:00
dependabot[bot]
287b8a4371 chore(deps-dev): bump @nestjs/graphql from 7.9.2 to 7.9.4
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.9.2 to 7.9.4.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.9.2...7.9.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-30 09:42:30 +00:00
dependabot[bot]
b627789e7e chore(deps): bump ws from 7.4.1 to 7.4.2
Bumps [ws](https://github.com/websockets/ws) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.1...7.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-30 09:42:20 +00:00
Kamil Mysliwiec
c313e14add Merge pull request #6051 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.5
2020-12-30 10:39:55 +01:00
Renovate Bot
a0a2aeba77 fix(deps): update nest monorepo to v7.6.5 2020-12-30 09:27:43 +00:00
Kamil Myśliwiec
70724f4aed chore(@nestjs) publish v7.6.5 release 2020-12-30 09:50:54 +01:00
Kamil Myśliwiec
fcccd4ccad Merge branch 'master' of https://github.com/nestjs/nest 2020-12-30 09:48:03 +01:00
Kamil Myśliwiec
a45039ae45 fix(core): use dynamic metadata to generate a hash (context) 2020-12-30 09:47:56 +01:00
dependabot[bot]
a2c6cb3ef9 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-29 09:26:15 +00:00
Kamil Mysliwiec
7b411cb57d Merge pull request #6036 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.9
2020-12-29 10:23:02 +01:00
Kamil Mysliwiec
b75802cadc Merge pull request #6038 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.11.1
2020-12-29 10:22:51 +01:00
Kamil Mysliwiec
65663d3328 Merge pull request #6041 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.9
chore(deps-dev): bump mongoose from 5.11.8 to 5.11.9
2020-12-29 10:22:18 +01:00
Kamil Mysliwiec
93d7962d10 Merge pull request #6042 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.11.1
chore(deps-dev): bump @typescript-eslint/parser from 4.11.0 to 4.11.1
2020-12-29 10:22:11 +01:00
dependabot[bot]
e27b236dbe chore(deps-dev): bump @typescript-eslint/parser from 4.11.0 to 4.11.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-29 05:27:37 +00:00
dependabot[bot]
62afe6729c chore(deps-dev): bump mongoose from 5.11.8 to 5.11.9
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.8 to 5.11.9.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.8...5.11.9)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-29 05:25:53 +00:00
Renovate Bot
6551398a9b chore(deps): update dependency webpack to v5.11.1 2020-12-28 19:28:41 +00:00
Renovate Bot
40dbd07fc8 fix(deps): update dependency @nestjs/swagger to v4.7.9 2020-12-28 12:14:11 +00:00
Kamil Mysliwiec
be1a75c57f Merge pull request #6025 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.5.17
2020-12-28 13:12:11 +01:00
Renovate Bot
d1e6666eeb chore(deps): update dependency @types/amqplib to v0.5.17 2020-12-28 11:33:35 +00:00
Kamil Mysliwiec
4daefbf020 Merge pull request #6004 from nestjs/renovate/docker-confluentinc-cp-kafka-5.x
chore(deps): update confluentinc/cp-kafka docker tag to v5.5.3
2020-12-28 12:30:44 +01:00
Kamil Mysliwiec
a919dd237b Merge pull request #6034 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.9.2
2020-12-28 12:30:33 +01:00
Kamil Mysliwiec
c59e955901 Merge pull request #6033 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.2.6
2020-12-28 12:30:17 +01:00
Renovate Bot
9a2a8b80bf fix(deps): update dependency @nestjs/graphql to v7.9.2 2020-12-28 11:09:15 +00:00
Renovate Bot
a880fc886e chore(deps): update dependency @nestjs/schematics to v7.2.6 2020-12-28 11:04:54 +00:00
Renovate Bot
8cdfa23815 chore(deps): update confluentinc/cp-kafka docker tag to v5.5.3 2020-12-28 08:40:54 +00:00
Kamil Mysliwiec
3cfa0c74d2 Merge pull request #6021 from nestjs/renovate/webpack-cli-4.x
chore(deps): update dependency webpack-cli to v4.3.0
2020-12-28 09:36:51 +01:00
Kamil Mysliwiec
b4938d8721 Merge pull request #6029 from nestjs/dependabot/npm_and_yarn/types/amqplib-0.5.17
chore(deps-dev): bump @types/amqplib from 0.5.16 to 0.5.17
2020-12-28 09:36:38 +01:00
Kamil Mysliwiec
7ef921aca1 Merge pull request #6011 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/plugin-proposal-decorators to v7.12.12
2020-12-28 09:34:43 +01:00
Kamil Mysliwiec
acd2d26d53 Merge pull request #6015 from nestjs/dependabot/npm_and_yarn/types/node-14.14.16
chore(deps-dev): bump @types/node from 14.14.14 to 14.14.16
2020-12-28 09:34:38 +01:00
Kamil Mysliwiec
37c5d16db3 Merge pull request #6016 from nestjs/dependabot/npm_and_yarn/types/sinon-9.0.10
chore(deps-dev): bump @types/sinon from 9.0.9 to 9.0.10
2020-12-28 09:34:32 +01:00
Kamil Mysliwiec
7c93e55ccb Merge pull request #6030 from nestjs/dependabot/npm_and_yarn/object-hash-2.1.1
chore(deps): bump object-hash from 2.0.3 to 2.1.1
2020-12-28 09:34:01 +01:00
dependabot[bot]
54186a429f chore(deps): bump object-hash from 2.0.3 to 2.1.1
Bumps [object-hash](https://github.com/puleos/object-hash) from 2.0.3 to 2.1.1.
- [Release notes](https://github.com/puleos/object-hash/releases)
- [Commits](https://github.com/puleos/object-hash/compare/v2.0.3...v2.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-28 05:37:41 +00:00
dependabot[bot]
0321d77dcd chore(deps-dev): bump @types/amqplib from 0.5.16 to 0.5.17
Bumps [@types/amqplib](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/amqplib) from 0.5.16 to 0.5.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/amqplib)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-28 05:36:18 +00:00
Renovate Bot
66a1430a85 chore(deps): update dependency webpack-cli to v4.3.0 2020-12-25 18:33:03 +00:00
dependabot[bot]
861a53c3d3 chore(deps-dev): bump @types/sinon from 9.0.9 to 9.0.10
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 9.0.9 to 9.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-24 05:24:00 +00:00
dependabot[bot]
15213d93c3 chore(deps-dev): bump @types/node from 14.14.14 to 14.14.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.14 to 14.14.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-24 05:21:39 +00:00
Renovate Bot
7aedd0cc88 chore(deps): update dependency @babel/plugin-proposal-decorators to v7.12.12 2020-12-23 14:09:09 +00:00
Kamil Mysliwiec
bfc7bea887 Merge pull request #6002 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/node-notifier-8.0.1
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 in /sample/13-mongo-typeorm
2020-12-23 09:02:10 +01:00
Kamil Mysliwiec
428605e63a Merge pull request #6005 from nestjs/renovate/docker-confluentinc-cp-zookeeper-5.x
chore(deps): update confluentinc/cp-zookeeper docker tag to v5.5.3
2020-12-23 09:01:42 +01:00
Kamil Mysliwiec
61022bea9c Merge pull request #6006 from nestjs/renovate/swagger-ui-express-4.x
fix(deps): update dependency swagger-ui-express to v4.1.6
2020-12-23 09:01:32 +01:00
Kamil Mysliwiec
e0df855423 Merge pull request #6007 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.19.1
2020-12-23 09:00:57 +01:00
Renovate Bot
9a806d6851 fix(deps): update apollo graphql packages to v2.19.1 2020-12-22 23:13:18 +00:00
Renovate Bot
28cb30743b fix(deps): update dependency swagger-ui-express to v4.1.6 2020-12-22 20:25:54 +00:00
Renovate Bot
85dcd8a2fe chore(deps): update confluentinc/cp-zookeeper docker tag to v5.5.3 2020-12-22 19:49:35 +00:00
dependabot[bot]
97b9836a58 chore(deps): bump node-notifier in /sample/13-mongo-typeorm
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-22 13:54:50 +00:00
Kamil Mysliwiec
bfdc8f4025 Merge pull request #6001 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/node-notifier-8.0.1
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 in /sample/01-cats-app
2020-12-22 11:08:26 +01:00
dependabot[bot]
f1bc0b709d chore(deps): bump node-notifier in /sample/01-cats-app
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-22 08:02:18 +00:00
Kamil Mysliwiec
9304c56847 Merge pull request #5996 from nestjs/renovate/axios-0.x
fix(deps): update dependency axios to v0.21.1
2020-12-22 08:37:21 +01:00
Kamil Mysliwiec
ca487ce995 Merge pull request #5992 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.11.0
2020-12-22 08:31:11 +01:00
Renovate Bot
4603979d67 fix(deps): update dependency axios to v0.21.1 2020-12-22 04:30:40 +00:00
Renovate Bot
658e26b274 chore(deps): update typescript-eslint monorepo to v4.11.0 2020-12-21 19:19:24 +00:00
Krystian Sztadhaus
86051702b8 chore: Run linter without --fix on CI 2020-12-21 22:26:44 +04:00
Kamil Mysliwiec
c061debf1a Merge pull request #5991 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.4
2020-12-21 15:10:23 +01:00
Renovate Bot
9be7fc5277 fix(deps): update nest monorepo to v7.6.4 2020-12-21 12:41:20 +00:00
Kamil Myśliwiec
1957d75db7 chore(@nestjs) publish v7.6.4 release 2020-12-21 13:15:57 +01:00
Kamil Mysliwiec
82a57093ba Merge pull request #5982 from Tony133/chore/update-serializer-interceptor
chore(serializer): changed visibility indicator
2020-12-21 12:52:42 +01:00
Kamil Mysliwiec
ad657f9aa5 Merge pull request #5989 from maximeag/patch-1
fix(microservices): fix kafka config field typo
2020-12-21 12:49:39 +01:00
Kamil Myśliwiec
0b7ca5f6f3 Merge branch 'Hwan-seok-apply-stderr-log' 2020-12-21 12:49:21 +01:00
Kamil Myśliwiec
fdcb89d0d0 refactor(common): minor tweaks 2020-12-21 12:49:09 +01:00
Kamil Myśliwiec
01d0271b9c Merge branch 'apply-stderr-log' of https://github.com/Hwan-seok/nest into Hwan-seok-apply-stderr-log 2020-12-21 12:48:07 +01:00
Kamil Mysliwiec
5f24eebf25 Merge pull request #5984 from nestjs/renovate/eslint-config-prettier-7.x
chore(deps): update dependency eslint-config-prettier to v7.1.0
2020-12-21 11:21:17 +01:00
Renovate Bot
2e33120949 chore(deps): update dependency eslint-config-prettier to v7.1.0 2020-12-21 10:01:04 +00:00
Maxime
0ff0c86631 fix(microservices): fix kafka config field typo 2020-12-21 10:44:16 +01:00
Kamil Mysliwiec
a55b27745f Merge pull request #5983 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.16.0
2020-12-21 09:15:40 +01:00
Renovate Bot
fcb9cec9c8 chore(deps): update dependency eslint to v7.16.0 2020-12-21 08:08:44 +00:00
Kamil Mysliwiec
3b6a8ba1de Merge pull request #5988 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-7.1.0
chore(deps-dev): bump eslint-config-prettier from 7.0.0 to 7.1.0
2020-12-21 08:21:10 +01:00
dependabot[bot]
d1d08ac2ef chore(deps-dev): bump eslint-config-prettier from 7.0.0 to 7.1.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.0.0...v7.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 05:40:10 +00:00
Hwan-seok
c7a4128631 feat(common): change error log to use stderr 2020-12-21 10:08:04 +09:00
Tony133
e8d6e312bb chore(serializer): changed visibility indicator 2020-12-18 17:56:44 +01:00
Kamil Mysliwiec
2525e9406d Merge pull request #5966 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.8
2020-12-18 08:59:43 +01:00
Kamil Mysliwiec
b7e916c8de Merge pull request #5970 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.11.0
2020-12-18 08:59:36 +01:00
Kamil Mysliwiec
d456c73f85 Merge pull request #5973 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.3.0
2020-12-18 08:58:50 +01:00
Renovate Bot
2ec37298e0 fix(deps): update dependency fast-json-stringify to v2.3.0 2020-12-17 18:09:15 +00:00
Renovate Bot
e8e2cc2f38 chore(deps): update dependency webpack to v5.11.0 2020-12-17 16:18:33 +00:00
Renovate Bot
b86d25ddf8 fix(deps): update dependency @nestjs/swagger to v4.7.8 2020-12-17 13:57:19 +00:00
Kamil Mysliwiec
3a700e2d19 Merge pull request #5965 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.3
2020-12-17 13:14:18 +01:00
Renovate Bot
95ef3a778c fix(deps): update nest monorepo to v7.6.3 2020-12-17 11:55:37 +00:00
Kamil Myśliwiec
bcd4ea93b1 chore(@nestjs) publish v7.6.3 release 2020-12-17 12:29:07 +01:00
Kamil Myśliwiec
0cc464519f Merge branch 'master' of https://github.com/nestjs/nest 2020-12-17 12:23:26 +01:00
Kamil Myśliwiec
bacef33be1 fix(core): properly serialise symbols in dynamic modules #5964 2020-12-17 12:23:17 +01:00
Kamil Mysliwiec
c624c170dd Merge pull request #5915 from nestjs/fix/5701-await-kafka-response
fix(microservices): await respond callback, fix kafka (missing second-to-last item)
2020-12-17 12:19:56 +01:00
Kamil Mysliwiec
d9c4162bb2 Merge pull request #5929 from nestjs/renovate/typescript-4.x
chore(deps): update dependency typescript to v4.1.3
2020-12-17 12:19:45 +01:00
Kamil Mysliwiec
fc557353be Merge pull request #5963 from nestjs/renovate/light-my-request-4.x
fix(deps): update dependency light-my-request to v4.4.1
2020-12-17 12:02:06 +01:00
Renovate Bot
6c800fd2e3 fix(deps): update dependency light-my-request to v4.4.1 2020-12-17 10:28:33 +00:00
Kamil Mysliwiec
cee29d9406 Merge pull request #5962 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.6.2
2020-12-17 09:37:17 +01:00
Renovate Bot
7d7cf01813 fix(deps): update nest monorepo to v7.6.2 2020-12-17 08:11:17 +00:00
Kamil Myśliwiec
a05ff8b6b0 chore(@nestjs) publish v7.6.2 release 2020-12-17 08:45:38 +01:00
Kamil Myśliwiec
b63cd49f83 Merge branch 'master' of https://github.com/nestjs/nest 2020-12-17 08:44:33 +01:00
Kamil Myśliwiec
be6c85c88d fix(common): fix undefined get timestamp method (logger) 2020-12-17 08:44:11 +01:00
Kamil Mysliwiec
93acb0af17 Merge pull request #5955 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.9.2
2020-12-16 14:35:46 +01:00
Renovate Bot
a80547e4a6 chore(deps): update dependency typescript to v4.1.3 2020-12-16 13:33:33 +00:00
Renovate Bot
16246feddd fix(deps): update dependency fastify to v3.9.2 2020-12-16 13:09:59 +00:00
Kamil Mysliwiec
1a43fd05e8 Merge pull request #5932 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.14
2020-12-16 14:04:19 +01:00
Kamil Mysliwiec
24ce1dd6de Merge pull request #5954 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.7
2020-12-16 11:47:48 +01:00
Renovate Bot
51a2e48a4a fix(deps): update dependency @nestjs/swagger to v4.7.7 2020-12-16 10:16:01 +00:00
Renovate Bot
a3f32a342d chore(deps): update dependency @types/node to v14.14.14 2020-12-16 07:54:01 +00:00
Kamil Mysliwiec
9f96855a46 Merge pull request #5949 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.10.3
2020-12-16 08:34:46 +01:00
Kamil Mysliwiec
e2e2a8f746 Merge pull request #5934 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.8
2020-12-16 08:34:10 +01:00
Kamil Mysliwiec
094fc36115 Merge pull request #5938 from nestjs/dependabot/npm_and_yarn/typescript-4.1.3
chore(deps-dev): bump typescript from 4.1.2 to 4.1.3
2020-12-16 08:34:02 +01:00
Kamil Mysliwiec
854bf58910 Merge pull request #5951 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/preset-env to v7.12.11
2020-12-16 08:33:52 +01:00
Kamil Mysliwiec
5cba807a98 Merge pull request #5953 from nestjs/dependabot/npm_and_yarn/types/node-14.14.14
chore(deps-dev): bump @types/node from 14.14.13 to 14.14.14
2020-12-16 08:33:45 +01:00
dependabot[bot]
8df77f8f45 chore(deps-dev): bump @types/node from 14.14.13 to 14.14.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.13 to 14.14.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-16 05:27:26 +00:00
Renovate Bot
a796bfabea chore(deps): update dependency @babel/preset-env to v7.12.11 2020-12-16 00:09:19 +00:00
Renovate Bot
f6f6f917ad chore(deps): update dependency webpack to v5.10.3 2020-12-15 20:16:52 +00:00
Renovate Bot
f5770bf13b fix(deps): update dependency mongoose to v5.11.8 2020-12-15 10:02:46 +00:00
dependabot[bot]
1a4530e669 chore(deps-dev): bump typescript from 4.1.2 to 4.1.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-15 08:06:10 +00:00
Kamil Mysliwiec
2b1529923e Merge pull request #5930 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.10.1
2020-12-15 09:04:08 +01:00
Kamil Mysliwiec
69e229774c Merge pull request #5947 from nestjs/dependabot/npm_and_yarn/clang-format-1.5.0
chore(deps-dev): bump clang-format from 1.4.0 to 1.5.0
2020-12-15 09:03:54 +01:00
Kamil Mysliwiec
82eb97401b Merge pull request #5948 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.8
chore(deps-dev): bump mongoose from 5.11.7 to 5.11.8
2020-12-15 09:03:47 +01:00
Kamil Mysliwiec
5134ccd933 Merge pull request #5944 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.10.0
2020-12-15 09:03:26 +01:00
dependabot[bot]
e23970d748 chore(deps-dev): bump mongoose from 5.11.7 to 5.11.8
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.7 to 5.11.8.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.7...5.11.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-15 05:38:57 +00:00
dependabot[bot]
3102db3aa0 chore(deps-dev): bump clang-format from 1.4.0 to 1.5.0
Bumps [clang-format](https://github.com/angular/clang-format) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/angular/clang-format/releases)
- [Commits](https://github.com/angular/clang-format/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-15 05:34:54 +00:00
Renovate Bot
452ffb4125 chore(deps): update typescript-eslint monorepo to v4.10.0 2020-12-14 18:24:07 +00:00
Renovate Bot
5a33605808 chore(deps): update dependency webpack to v5.10.1 2020-12-14 12:06:18 +00:00
Kamil Mysliwiec
51a5de1287 Merge pull request #5939 from nestjs/dependabot/npm_and_yarn/types/node-14.14.13
chore(deps-dev): bump @types/node from 14.14.12 to 14.14.13
2020-12-14 12:51:21 +01:00
Kamil Mysliwiec
a64116b2bf Merge pull request #5936 from nestjs/dependabot/npm_and_yarn/husky-4.3.6
chore(deps-dev): bump husky from 4.3.5 to 4.3.6
2020-12-14 12:28:55 +01:00
Kamil Mysliwiec
1426d4c860 Merge pull request #5940 from nestjs/dependabot/npm_and_yarn/sinon-9.2.2
chore(deps-dev): bump sinon from 9.2.1 to 9.2.2
2020-12-14 12:28:49 +01:00
dependabot[bot]
24113d9de9 chore(deps-dev): bump @types/node from 14.14.12 to 14.14.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.12 to 14.14.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-14 10:52:35 +00:00
Kamil Mysliwiec
33e2c65892 Merge pull request #5941 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.7.6
2020-12-14 11:50:19 +01:00
Kamil Mysliwiec
c21a1526ad Merge pull request #5937 from nestjs/dependabot/npm_and_yarn/types/mongoose-5.10.3
chore(deps-dev): bump @types/mongoose from 5.10.2 to 5.10.3
2020-12-14 11:50:03 +01:00
dependabot[bot]
f1d1ab8a03 chore(deps-dev): bump husky from 4.3.5 to 4.3.6
Bumps [husky](https://github.com/typicode/husky) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v4.3.5...v4.3.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-14 10:26:14 +00:00
dependabot[bot]
0d902753c9 chore(deps-dev): bump @types/mongoose from 5.10.2 to 5.10.3
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mongoose) from 5.10.2 to 5.10.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mongoose)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-14 10:26:12 +00:00
dependabot[bot]
ef172c3e21 chore(deps-dev): bump sinon from 9.2.1 to 9.2.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/commits/v9.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-14 10:26:05 +00:00
Renovate Bot
ae6f24b9fe fix(deps): update dependency @nestjs/swagger to v4.7.6 2020-12-14 10:25:41 +00:00
Kamil Myśliwiec
8db37bdbbe Merge branch 'master' of https://github.com/nestjs/nest 2020-12-11 13:33:15 +01:00
Kamil Myśliwiec
0b21ccb216 test(core): fix injector unit tests 2020-12-11 13:33:02 +01:00
Kamil Mysliwiec
a02be476fc Merge pull request #5926 from nestjs/renovate/nestjs-bull-0.x
fix(deps): update dependency @nestjs/bull to v0.3.1
2020-12-11 13:22:20 +01:00
Renovate Bot
b2e964a611 fix(deps): update dependency @nestjs/bull to v0.3.1 2020-12-11 12:13:36 +00:00
Kamil Mysliwiec
594ea3a734 Merge pull request #5914 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.12
2020-12-11 13:11:35 +01:00
Kamil Myśliwiec
bcc3fd3881 fix(core): fix injection of transient providers to middleware #5427 2020-12-11 12:24:51 +01:00
Renovate Bot
0dd86eb730 chore(deps): update dependency @types/node to v14.14.12 2020-12-11 11:10:21 +00:00
Kamil Myśliwiec
3dbf5f81f2 refactor(core): a few tweaks to the injector class 2020-12-11 11:39:42 +01:00
Kamil Mysliwiec
495de37512 Merge pull request #5918 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.19
2020-12-11 11:32:10 +01:00
Kamil Myśliwiec
9628c2dd76 Merge branch 'master' into fix/5701-await-kafka-response 2020-12-11 11:19:37 +01:00
Kamil Myśliwiec
85e50eb8e7 test(microservices): mock send method to return a promise (kafka client) 2020-12-11 11:19:24 +01:00
Kamil Myśliwiec
44f039820d Merge branch 'master' into fix/5701-await-kafka-response 2020-12-11 11:03:44 +01:00
Kamil Myśliwiec
b0e37bb746 Merge branch 'master' of https://github.com/nestjs/nest 2020-12-11 11:03:31 +01:00
Kamil Myśliwiec
9d0c96e953 fix(microservices): catch async errors when trying to send a message (kafka) 2020-12-11 11:03:19 +01:00
Renovate Bot
a3366e11a5 chore(deps): update dependency @types/jest to v26.0.19 2020-12-11 09:28:20 +00:00
Kamil Mysliwiec
e06be8fb30 Merge pull request #5891 from nestjs/renovate/kafkajs-1.x
chore(deps): update dependency kafkajs to v1.15.0
2020-12-11 09:40:56 +01:00
Kamil Mysliwiec
5da76830fe Merge pull request #5898 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.9.1
chore(deps-dev): bump @typescript-eslint/parser from 4.9.0 to 4.9.1
2020-12-11 09:40:46 +01:00
Kamil Mysliwiec
8409a18420 Merge pull request #5913 from nestjs/renovate/nest-monorepo
chore(deps): update nest monorepo
2020-12-11 09:40:25 +01:00
Kamil Mysliwiec
413ca1990e Merge pull request #5923 from nestjs/dependabot/npm_and_yarn/types/cors-2.8.9
chore(deps-dev): bump @types/cors from 2.8.8 to 2.8.9
2020-12-11 09:28:21 +01:00
Kamil Mysliwiec
b10c3cb30e Merge pull request #5924 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.12
2020-12-11 09:28:08 +01:00
Renovate Bot
61ee778554 chore(deps): update nest monorepo 2020-12-11 08:21:56 +00:00
Kamil Mysliwiec
ceb7ff8628 Merge pull request #5921 from nestjs/dependabot/npm_and_yarn/types/node-14.14.12
chore(deps-dev): bump @types/node from 14.14.11 to 14.14.12
2020-12-11 09:07:48 +01:00
dependabot[bot]
192ae54de0 chore(deps-dev): bump @typescript-eslint/parser from 4.9.0 to 4.9.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.9.1/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 07:59:28 +00:00
Kamil Mysliwiec
66a1231a0c Merge pull request #5919 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.7
2020-12-11 08:56:43 +01:00
Renovate Bot
09f5af366a chore(deps): update dependency ts-loader to v8.0.12 2020-12-11 06:33:46 +00:00
dependabot[bot]
d8d71b0c15 chore(deps-dev): bump @types/cors from 2.8.8 to 2.8.9
Bumps [@types/cors](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cors) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cors)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 05:17:01 +00:00
dependabot[bot]
a8186d8160 chore(deps-dev): bump @types/node from 14.14.11 to 14.14.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.11 to 14.14.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 05:12:30 +00:00
Renovate Bot
8d3f139286 fix(deps): update dependency mongoose to v5.11.7 2020-12-11 00:42:31 +00:00
Kamil Myśliwiec
bbf091c77c chore(@nestjs) publish v7.6.1 release 2020-12-10 12:34:14 +01:00
Kamil Myśliwiec
192d22f5e0 fix(common): add validate path alias for add leading slash fn (regression) 2020-12-10 12:33:04 +01:00
Renovate Bot
2ec1281b17 chore(deps): update dependency kafkajs to v1.15.0 2020-12-10 10:39:32 +00:00
Kamil Myśliwiec
b8a9772d51 test(microservices): fix server kafka unit tests 2020-12-10 11:30:58 +01:00
Kamil Myśliwiec
021c32380b fix(microservices): await respond callback, return promise to await (kafka) #5701 2020-12-10 10:53:49 +01:00
Kamil Mysliwiec
72cd8ff732 Merge pull request #5906 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.11.6
2020-12-10 10:29:05 +01:00
Renovate Bot
fdb93219ad fix(deps): update dependency mongoose to v5.11.6 2020-12-10 09:18:40 +00:00
Kamil Myśliwiec
a9451b64fc chore(@nestjs) publish v7.6.0 release 2020-12-10 10:10:11 +01:00
Kamil Mysliwiec
d36c938548 Merge pull request #5908 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.12.10
2020-12-10 09:47:57 +01:00
Kamil Mysliwiec
63048baf99 Merge pull request #5910 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.6
chore(deps-dev): bump mongoose from 5.11.5 to 5.11.6
2020-12-10 09:47:49 +01:00
Kamil Mysliwiec
a52001dfb9 Merge pull request #5911 from nestjs/dependabot/npm_and_yarn/fastify-cors-5.1.0
chore(deps): bump fastify-cors from 5.0.0 to 5.1.0
2020-12-10 09:47:37 +01:00
dependabot[bot]
bb38257d13 chore(deps): bump fastify-cors from 5.0.0 to 5.1.0
Bumps [fastify-cors](https://github.com/fastify/fastify-cors) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v5.0.0...v5.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 05:30:47 +00:00
dependabot[bot]
703afcb1ba chore(deps-dev): bump mongoose from 5.11.5 to 5.11.6
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.5 to 5.11.6.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.5...5.11.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 05:27:59 +00:00
Renovate Bot
80f5a9ce48 chore(deps): update babel monorepo to v7.12.10 2020-12-09 22:51:30 +00:00
Kamil Myśliwiec
5a23bc1749 Merge branch 'andreialecu-andreialecu-patch-1' 2020-12-09 14:37:40 +01:00
Kamil Myśliwiec
bb6b643645 fix(): temporarily revert #5790 (breaking changes) 2020-12-09 14:37:26 +01:00
Kamil Myśliwiec
710b385a32 chore(): merge master 2020-12-09 14:11:38 +01:00
Kamil Mysliwiec
e78f364ef4 Merge pull request #5890 from nestjs/renovate/engine.io-client-4.x
chore(deps): update dependency engine.io-client to v4.0.5
2020-12-09 14:01:19 +01:00
Kamil Mysliwiec
23ce8d03e4 Merge pull request #5892 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.11
2020-12-09 14:01:06 +01:00
Kamil Myśliwiec
4c4d8039b8 Merge branch 'master' of https://github.com/nestjs/nest 2020-12-09 13:56:00 +01:00
Kamil Myśliwiec
016c6b554b fix(microservices): remove duplicated imports 2020-12-09 13:55:48 +01:00
Renovate Bot
3f5aad635b chore(deps): update dependency engine.io-client to v4.0.5 2020-12-09 08:21:00 +00:00
Renovate Bot
1c500b4bfc chore(deps): update dependency @types/node to v14.14.11 2020-12-09 08:08:06 +00:00
Kamil Mysliwiec
cad68b6d46 Merge pull request #5894 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.18
2020-12-09 08:43:37 +01:00
Kamil Mysliwiec
a22abe53b5 Merge pull request #5886 from nestjs/renovate/pin-dependencies
fix(deps): pin dependencies
2020-12-09 08:34:20 +01:00
Kamil Mysliwiec
65afede473 Merge pull request #5896 from nestjs/dependabot/npm_and_yarn/types/mocha-8.2.0
chore(deps-dev): bump @types/mocha from 8.0.4 to 8.2.0
2020-12-09 08:33:33 +01:00
Kamil Mysliwiec
171b53c3fb Merge pull request #5897 from nestjs/dependabot/npm_and_yarn/types/node-14.14.11
chore(deps-dev): bump @types/node from 14.14.10 to 14.14.11
2020-12-09 08:33:26 +01:00
Kamil Mysliwiec
8875d431b4 Merge pull request #5900 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-7.2.0
chore(deps-dev): bump @nestjs/mongoose from 7.1.2 to 7.2.0
2020-12-09 08:33:02 +01:00
Kamil Mysliwiec
0d078a0188 Merge pull request #5901 from nestjs/dependabot/npm_and_yarn/uuid-8.3.2
chore(deps): bump uuid from 8.3.1 to 8.3.2
2020-12-09 08:32:54 +01:00
dependabot[bot]
4dd0a1344e chore(deps): bump uuid from 8.3.1 to 8.3.2
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.3.1 to 8.3.2.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-09 05:44:32 +00:00
dependabot[bot]
585ead7f24 chore(deps-dev): bump @nestjs/mongoose from 7.1.2 to 7.2.0
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 7.1.2 to 7.2.0.
- [Release notes](https://github.com/nestjs/mongoose/releases)
- [Changelog](https://github.com/nestjs/mongoose/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/mongoose/compare/7.1.2...7.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-09 05:40:49 +00:00
dependabot[bot]
be64b51796 chore(deps-dev): bump @types/node from 14.14.10 to 14.14.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.10 to 14.14.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-09 05:32:12 +00:00
dependabot[bot]
55a2efd883 chore(deps-dev): bump @types/mocha from 8.0.4 to 8.2.0
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 8.0.4 to 8.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-09 05:28:58 +00:00
Renovate Bot
338be4c8d0 chore(deps): update dependency @types/jest to v26.0.18 2020-12-08 21:14:22 +00:00
Christian Allred
b0afb1a63a Merge branch 'master' into master 2020-12-08 13:50:14 -07:00
Christian Allred
59cd40dd56 Revert "fixing option settings in integration tests"
This reverts commit bd988169348670994f2eb3666d78a9a9a1ebfc57.
2020-12-08 13:47:18 -07:00
Christian Allred
685c685bd7 fixing option settings in integration tests 2020-12-08 13:47:13 -07:00
Christian Allred
be2384c4c7 small update 2020-12-08 13:47:02 -07:00
Christian Allred
e7ef9d9c70 Update to Queue Options for rmqlib 2020-12-08 13:47:02 -07:00
Christian Allred
fc5b440da2 updated the typings for rmq socket options to match the interface provided by connection manager 2020-12-08 13:47:02 -07:00
Christian Allred
998d3de9e6 made a dumb copy paste error here. 2020-12-08 13:47:01 -07:00
Christian Allred
e766276922 removing comment 2020-12-08 13:47:01 -07:00
Christian Allred
2abb426d99 added a link for reference 2020-12-08 13:47:01 -07:00
Christian Allred
4fc147f6e0 https://github.com/nestjs/nest/issues/5788 2020-12-08 13:47:01 -07:00
Renovate Bot
63337763a2 fix(deps): pin dependencies 2020-12-08 16:32:49 +00:00
Kamil Myśliwiec
ab6960da62 Merge branch 'master' of https://github.com/nestjs/nest 2020-12-08 17:21:20 +01:00
Kamil Myśliwiec
a0ded7ad68 test(e2e): fix e2e tests 2020-12-08 17:21:13 +01:00
Kamil Mysliwiec
15aca2bfef Merge pull request #5885 from nestjs/chore/update-sample-deps
chore(): update samples dependencies
2020-12-08 14:55:43 +01:00
Kamil Myśliwiec
9df5146082 sample(): downgrade socket.io-redis dep 2020-12-08 14:07:19 +01:00
Kamil Myśliwiec
c79685c88b Merge branch 'master' into chore/update-sample-deps 2020-12-08 14:05:31 +01:00
Kamil Myśliwiec
9c8cf3978a test(): fix promise type arguments (void) 2020-12-08 14:02:25 +01:00
Kamil Myśliwiec
8c9ee77fb8 Merge branch 'mkaufmaner-2984-kafka-reply-partitions' 2020-12-08 13:34:25 +01:00
Kamil Myśliwiec
fb3db3f6bf chore(): minor tweaks, align to the rest of the codebase 2020-12-08 13:34:10 +01:00
Kamil Myśliwiec
8c503d3193 chore(): update typescript to the latest version 2020-12-08 13:27:51 +01:00
Kamil Myśliwiec
b65f1be3f2 Merge branch 'vinayak25-master' 2020-12-08 13:07:20 +01:00
Kamil Myśliwiec
9a64742f61 refactor(core): inline logger condition 2020-12-08 13:07:01 +01:00
Kamil Myśliwiec
1e32627d17 scripts(): only generate package lock (update samples script) 2020-12-08 13:01:48 +01:00
Kamil Myśliwiec
e4243d55c2 Merge branch 'master' of https://github.com/vinayak25/nest into vinayak25-master 2020-12-08 12:59:36 +01:00
Kamil Myśliwiec
684c5f4af7 Merge branch 'master' of https://github.com/nestjs/nest 2020-12-08 12:34:56 +01:00
Kamil Myśliwiec
51e3559995 fix(): fix sse stream unit test 2020-12-08 12:34:51 +01:00
Kamil Myśliwiec
beb8fe36fc chore(): update samples dependencies 2020-12-08 12:31:55 +01:00
Kamil Mysliwiec
2a4dcc1964 Merge pull request #5863 from coder-freestyle/fix-specify-property-name-for-validate-nested
feat(common): specify parent property for validation of nested objects
2020-12-08 11:38:25 +01:00
Kamil Myśliwiec
e7150ba5a9 Merge branch 'miZyind-controller-path-alias' 2020-12-08 11:35:29 +01:00
Kamil Myśliwiec
1b366ce38f style(): auto-organise import statements 2020-12-08 11:35:04 +01:00
Kamil Myśliwiec
dac16e65c7 Merge branch 'master' of https://github.com/nestjs/nest; branch 'controller-path-alias' of https://github.com/miZyind/nest into miZyind-controller-path-alias 2020-12-08 11:33:57 +01:00
Kamil Mysliwiec
51e6b81bc8 Merge pull request #5681 from xuzaixian/feature/log-timestemp
feat: timestemp inside LoggerSerivce can be overridden
2020-12-08 11:17:04 +01:00
Kamil Mysliwiec
57b1425848 Merge pull request #5851 from nvdnkpr/patch-1
refactor(common): Make LoggerService's instance property and getInstance() method protected to allow sub-classes access to it
2020-12-08 10:55:58 +01:00
Kamil Mysliwiec
b14c78e4f1 Merge pull request #5801 from poulad/master
fix(microservices): handle rmq queue deletion
2020-12-08 10:46:35 +01:00
Kamil Myśliwiec
9ee12da212 Merge branch 'msrumon-app-locals' 2020-12-08 10:44:37 +01:00
Kamil Myśliwiec
2a456eff23 docs(common): add missing dot 2020-12-08 10:44:29 +01:00
Kamil Myśliwiec
c687fe98a4 Merge branch 'app-locals' of https://github.com/msrumon/nest into msrumon-app-locals 2020-12-08 10:44:06 +01:00
Kamil Mysliwiec
46e2339fb2 Merge pull request #5854 from ahiho/iisnode
fix: iisnode uses pipe name instead of port number
2020-12-08 10:42:30 +01:00
Kamil Myśliwiec
41d46c0c07 fix(core): add no-transform to cache-control header (sse) #5762 2020-12-08 10:33:48 +01:00
Kamil Mysliwiec
d97799cd30 Merge pull request #5813 from poulad/issue_5812
feat(microservices): log event name w/o handler
2020-12-08 10:02:10 +01:00
Kamil Mysliwiec
3f16a9c759 Merge pull request #5802 from jmcdo29/fix/get-url-in-callback
fix(application): makes get-url work in callback
2020-12-08 10:01:21 +01:00
Kamil Mysliwiec
a042eee0db Merge pull request #5775 from nestjs/fix/async-dynamic-module-imports-5774
fix(core): await dynamic module imports #5774
2020-12-08 09:58:32 +01:00
Kamil Mysliwiec
fabee8c985 Merge pull request #5860 from getspooky/common-status
feat(packages/common/enums): Add EARLYHINTS status code
2020-12-08 09:57:48 +01:00
Kamil Mysliwiec
dd0126d37e Merge pull request #5878 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.5
chore(deps-dev): bump mongoose from 5.11.4 to 5.11.5
2020-12-08 09:55:13 +01:00
Kamil Mysliwiec
df3fdbd2b2 Merge pull request #5881 from nestjs/dependabot/npm_and_yarn/ts-node-9.1.1
chore(deps-dev): bump ts-node from 9.1.0 to 9.1.1
2020-12-08 09:55:00 +01:00
Kamil Mysliwiec
33e13467b0 Merge pull request #5872 from nestjs/dependabot/npm_and_yarn/eslint-7.15.0
chore(deps-dev): bump eslint from 7.14.0 to 7.15.0
2020-12-08 09:54:45 +01:00
Kamil Mysliwiec
ce48da086d Merge pull request #5877 from nestjs/dependabot/npm_and_yarn/types/socket.io-2.1.12
chore(deps-dev): bump @types/socket.io from 2.1.11 to 2.1.12
2020-12-08 09:54:38 +01:00
Kamil Mysliwiec
3b4b6ba6d4 Merge pull request #5880 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.9.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.9.0 to 4.9.1
2020-12-08 09:54:31 +01:00
Kamil Mysliwiec
a371ce43aa Merge pull request #5882 from nestjs/dependabot/npm_and_yarn/husky-4.3.5
chore(deps-dev): bump husky from 4.3.0 to 4.3.5
2020-12-08 09:54:12 +01:00
dependabot[bot]
e2a2c5de23 chore(deps-dev): bump husky from 4.3.0 to 4.3.5
Bumps [husky](https://github.com/typicode/husky) from 4.3.0 to 4.3.5.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v4.3.0...v4.3.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-08 05:46:00 +00:00
dependabot[bot]
e5447c3211 chore(deps-dev): bump ts-node from 9.1.0 to 9.1.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.1.0...v9.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-08 05:42:20 +00:00
dependabot[bot]
32be557506 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.9.1/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-08 05:38:55 +00:00
dependabot[bot]
d433cd6869 chore(deps-dev): bump mongoose from 5.11.4 to 5.11.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.4 to 5.11.5.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.4...5.11.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-08 05:31:15 +00:00
dependabot[bot]
59b9af9ad8 chore(deps-dev): bump @types/socket.io from 2.1.11 to 2.1.12
Bumps [@types/socket.io](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/socket.io) from 2.1.11 to 2.1.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/socket.io)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-08 05:27:36 +00:00
dependabot[bot]
92e477950f chore(deps-dev): bump eslint from 7.14.0 to 7.15.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.14.0 to 7.15.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.14.0...v7.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 08:35:04 +00:00
Kamil Mysliwiec
3333676e8a Merge pull request #5869 from nestjs/dependabot/npm_and_yarn/core-js-3.8.1
chore(deps-dev): bump core-js from 3.8.0 to 3.8.1
2020-12-07 09:22:43 +01:00
Kamil Mysliwiec
51917ce535 Merge pull request #5871 from nestjs/dependabot/npm_and_yarn/lint-staged-10.5.3
chore(deps-dev): bump lint-staged from 10.5.2 to 10.5.3
2020-12-07 09:22:34 +01:00
Kamil Mysliwiec
d8be7989fd Merge pull request #5873 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.4
chore(deps-dev): bump mongoose from 5.11.3 to 5.11.4
2020-12-07 09:22:13 +01:00
Kamil Mysliwiec
a0d0d8965e Merge pull request #5874 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-7.0.0
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0
2020-12-07 09:22:00 +01:00
Kamil Mysliwiec
00fc0564ab Merge pull request #5870 from nestjs/dependabot/npm_and_yarn/ws-7.4.1
chore(deps): bump ws from 7.4.0 to 7.4.1
2020-12-07 09:21:39 +01:00
dependabot[bot]
fc9bc68ff4 chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 05:52:48 +00:00
dependabot[bot]
2be97be12d chore(deps-dev): bump mongoose from 5.11.3 to 5.11.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.3 to 5.11.4.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.3...5.11.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 05:50:55 +00:00
dependabot[bot]
873bd374bc chore(deps-dev): bump lint-staged from 10.5.2 to 10.5.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.2 to 10.5.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.5.2...v10.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 05:46:59 +00:00
dependabot[bot]
0cee898087 chore(deps): bump ws from 7.4.0 to 7.4.1
Bumps [ws](https://github.com/websockets/ws) from 7.4.0 to 7.4.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.0...7.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 05:44:39 +00:00
dependabot[bot]
e04803e9fa chore(deps-dev): bump core-js from 3.8.0 to 3.8.1
Bumps [core-js](https://github.com/zloirock/core-js) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.8.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 05:42:38 +00:00
Karan Gupta
a0a3fb96cf feat(common): specify parent property for validation of nested objects
Passed the complete path of the parent property as an argument. Earlier, the information regarding the parent was getting lost due to flattening of array in case of validation of nested objects.

Closes #5380
2020-12-05 16:13:45 +05:30
Kamil Mysliwiec
3044e1555f Merge pull request #5856 from nestjs/dependabot/npm_and_yarn/types/mongoose-5.10.2
chore(deps-dev): bump @types/mongoose from 5.10.1 to 5.10.2
2020-12-04 09:19:39 +01:00
Kamil Mysliwiec
7c806d6e4d Merge pull request #5857 from nestjs/dependabot/npm_and_yarn/ts-node-9.1.0
chore(deps-dev): bump ts-node from 9.0.0 to 9.1.0
2020-12-04 09:19:26 +01:00
Kamil Mysliwiec
b6d6d2fc3f Merge pull request #5858 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.3
chore(deps-dev): bump mongoose from 5.11.2 to 5.11.3
2020-12-04 09:19:08 +01:00
yasser
ed0588d707 feat(packages/common/enums): Add EARLYHINTS status code 2020-12-04 09:18:49 +01:00
dependabot[bot]
9b3c628a05 chore(deps-dev): bump mongoose from 5.11.2 to 5.11.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.2 to 5.11.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.2...5.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-04 05:31:44 +00:00
dependabot[bot]
7636b04f2f chore(deps-dev): bump ts-node from 9.0.0 to 9.1.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.0.0...v9.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-04 05:29:38 +00:00
dependabot[bot]
62eb22e507 chore(deps-dev): bump @types/mongoose from 5.10.1 to 5.10.2
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mongoose) from 5.10.1 to 5.10.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mongoose)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-04 05:27:16 +00:00
Thanh Vu
4fd7e16444 fix: iisnode uses pipe name instead of port number 2020-12-04 01:56:16 +07:00
Navid Nikpour
ee53291960 Update logger.service.ts
Change private static `instance` property to protected to be able to access it from sub-classes
2020-12-03 10:40:39 +01:00
Navid Nikpour
5a1c58eaf1 Update logger.service.ts
Make getInstance() protected so derived classes get access to the overriden logger instance
2020-12-03 10:31:05 +01:00
Kamil Mysliwiec
0618737c69 Merge pull request #5850 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.2
chore(deps-dev): bump mongoose from 5.11.1 to 5.11.2
2020-12-03 09:15:27 +01:00
Kamil Mysliwiec
b5bcc04298 Merge pull request #5849 from nestjs/dependabot/npm_and_yarn/fastify-3.9.1
chore(deps): bump fastify from 3.8.0 to 3.9.1
2020-12-03 09:14:18 +01:00
dependabot[bot]
eb7cd4757f chore(deps-dev): bump mongoose from 5.11.1 to 5.11.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.1 to 5.11.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.1...5.11.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-03 05:30:43 +00:00
dependabot[bot]
e6fb4fe526 chore(deps): bump fastify from 3.8.0 to 3.9.1
Bumps [fastify](https://github.com/fastify/fastify) from 3.8.0 to 3.9.1.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.8.0...v3.9.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-03 05:26:44 +00:00
Kamil Mysliwiec
d47e811246 Merge pull request #5846 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.1
chore(deps-dev): bump mongoose from 5.11.0 to 5.11.1
2020-12-02 08:18:41 +01:00
dependabot[bot]
6012b0180a chore(deps-dev): bump mongoose from 5.11.0 to 5.11.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.0...5.11.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-02 05:28:54 +00:00
Kamil Mysliwiec
95292d72c8 Merge pull request #5843 from Tony133/docs/update-sample-contribute
docs(contribuiting):update sample for fix
2020-12-01 11:15:34 +01:00
Tony133
fa953c2693 docs(contribuiting):update sample for fix 2020-12-01 11:10:59 +01:00
Kamil Mysliwiec
2f5e402614 Merge pull request #5837 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.9.0
chore(deps-dev): bump @typescript-eslint/parser from 4.8.2 to 4.9.0
2020-12-01 11:05:14 +01:00
dependabot[bot]
b218d93856 chore(deps-dev): bump @typescript-eslint/parser from 4.8.2 to 4.9.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.8.2 to 4.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.9.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-01 07:34:30 +00:00
Kamil Mysliwiec
134ffce1c9 Merge pull request #5838 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.9.1
chore(deps-dev): bump @nestjs/graphql from 7.9.0 to 7.9.1
2020-12-01 08:32:32 +01:00
Kamil Mysliwiec
f9ce94941c Merge pull request #5839 from nestjs/dependabot/npm_and_yarn/fastify-multipart-3.3.1
chore(deps-dev): bump fastify-multipart from 3.3.0 to 3.3.1
2020-12-01 08:32:24 +01:00
Kamil Mysliwiec
4e5c128a18 Merge pull request #5840 from nestjs/dependabot/npm_and_yarn/mongoose-5.11.0
chore(deps-dev): bump mongoose from 5.10.18 to 5.11.0
2020-12-01 08:32:17 +01:00
Kamil Mysliwiec
b98fbd6272 Merge pull request #5841 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.9.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.8.2 to 4.9.0
2020-12-01 08:32:10 +01:00
dependabot[bot]
7ee8b71add chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.8.2 to 4.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.9.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-01 05:48:13 +00:00
dependabot[bot]
3e44af2842 chore(deps-dev): bump mongoose from 5.10.18 to 5.11.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.10.18 to 5.11.0.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.10.18...5.11.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-01 05:45:51 +00:00
dependabot[bot]
1bbba82333 chore(deps-dev): bump fastify-multipart from 3.3.0 to 3.3.1
Bumps [fastify-multipart](https://github.com/fastify/fastify-multipart) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v3.3.0...v3.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-01 05:43:44 +00:00
dependabot[bot]
7875091c86 chore(deps-dev): bump @nestjs/graphql from 7.9.0 to 7.9.1
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.9.0 to 7.9.1.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.9.0...7.9.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-01 05:41:24 +00:00
Rumon
3d33283e6b feat(core): expose app.locals to express adapter 2020-11-30 23:33:15 +06:00
Kamil Mysliwiec
c69c24e63c Merge pull request #5823 from nestjs/dependabot/npm_and_yarn/prettier-2.2.1
chore(deps-dev): bump prettier from 2.2.0 to 2.2.1
2020-11-30 12:06:35 +01:00
miZyind
bead1f4a57 feat(core): add support to controller path alias and refactor shard util 2020-11-30 18:00:15 +07:00
Vinayak Sarawagi
7ef474e74e REVERT isNil in applyLogger method 2020-11-30 14:07:13 +05:30
Vinayak Sarawagi
8dc4967721 FIX options.logger bug 2020-11-30 14:02:05 +05:30
dependabot[bot]
3e616f9e84 chore(deps-dev): bump prettier from 2.2.0 to 2.2.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.0...2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 08:12:36 +00:00
Kamil Mysliwiec
f90af4911d Merge pull request #5819 from kaznovac/jsdoc-fixes
refactor: jsdoc fixes for INestApplication, INestMicroservice, MiddlewareConsumer and MiddlewareConfigProxy
2020-11-30 08:52:44 +01:00
Kamil Mysliwiec
3a97eecb60 Merge pull request #5820 from kaznovac/microservice-listen-void
fix(microservices): listen method is void return type
2020-11-30 08:46:26 +01:00
Kamil Mysliwiec
48690903d2 Update packages/microservices/nest-microservice.ts 2020-11-30 08:46:16 +01:00
Kamil Mysliwiec
50fe8c7285 Merge pull request #5803 from nestjs/dependabot/npm_and_yarn/types/mongoose-5.10.1
chore(deps-dev): bump @types/mongoose from 5.7.36 to 5.10.1
2020-11-30 08:41:33 +01:00
Kamil Mysliwiec
f22283d9b2 Merge pull request #5824 from nestjs/dependabot/npm_and_yarn/mongoose-5.10.18
chore(deps-dev): bump mongoose from 5.10.16 to 5.10.18
2020-11-30 08:41:23 +01:00
Kamil Mysliwiec
6d108aee4f Merge pull request #5825 from nestjs/dependabot/npm_and_yarn/point-of-view-4.7.0
chore(deps-dev): bump point-of-view from 4.6.0 to 4.7.0
2020-11-30 08:41:17 +01:00
Kamil Mysliwiec
e8db6d3ddd Merge pull request #5826 from nestjs/dependabot/npm_and_yarn/ts-morph-9.1.0
chore(deps-dev): bump ts-morph from 9.0.0 to 9.1.0
2020-11-30 08:41:11 +01:00
Kamil Mysliwiec
2c1dc05966 Merge pull request #5827 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.9.0
chore(deps-dev): bump @nestjs/graphql from 7.8.2 to 7.9.0
2020-11-30 08:41:00 +01:00
dependabot[bot]
087dffff53 chore(deps-dev): bump @nestjs/graphql from 7.8.2 to 7.9.0
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.8.2 to 7.9.0.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.8.2...7.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 05:45:42 +00:00
dependabot[bot]
ab40602f55 chore(deps-dev): bump ts-morph from 9.0.0 to 9.1.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/9.0.0...9.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 05:42:10 +00:00
dependabot[bot]
41db26a2cf chore(deps-dev): bump point-of-view from 4.6.0 to 4.7.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v4.6.0...v4.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 05:40:24 +00:00
dependabot[bot]
33a9e23a1f chore(deps-dev): bump mongoose from 5.10.16 to 5.10.18
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.10.16 to 5.10.18.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.10.16...5.10.18)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 05:37:02 +00:00
Marko Kaznovac
5bb0cdb583 fix(microservices): listen method is void return type 2020-11-29 00:23:34 +01:00
Marko Kaznovac
c734974484 refactor: jsdoc fixes for INestApplication, INestMicroservice, MiddlewareConsumer and MiddlewareConfigProxy 2020-11-29 00:17:04 +01:00
Vinayak Sarawagi
419167ad0f fix #5816 2020-11-28 20:17:13 +05:30
Poulad Ashrafpour
514101187e Update packages/microservices/server/server.ts
Co-authored-by: Jay McDoniel <jmcdo29@gmail.com>
2020-11-28 07:44:14 -05:00
Kamil Mysliwiec
5aeb40bdc7 Merge pull request #5814 from poulad/update-contrib
docs(core): edit contribution guide
2020-11-28 12:17:31 +01:00
Poulad
d5ad6f3cfc docs(core): edit contribution guide 2020-11-27 20:09:22 -05:00
Poulad
3651f3e1b3 feat(microservices): log event name w/o handler
A descriptive error message tells user exactly what event pattern is missing a handler.
2020-11-27 19:56:46 -05:00
dependabot[bot]
8e72722037 chore(deps-dev): bump @types/mongoose from 5.7.36 to 5.10.1
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mongoose) from 5.7.36 to 5.10.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mongoose)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 09:18:36 +00:00
Kamil Mysliwiec
543432cce9 Merge pull request #5793 from nestjs/dependabot/npm_and_yarn/mongoose-5.10.16
chore(deps-dev): bump mongoose from 5.10.15 to 5.10.16
2020-11-27 10:15:10 +01:00
Kamil Mysliwiec
730f3c684e Merge pull request #5804 from nestjs/dependabot/npm_and_yarn/types/ws-7.4.0
chore(deps-dev): bump @types/ws from 7.2.9 to 7.4.0
2020-11-27 10:14:48 +01:00
Kamil Mysliwiec
68225e5db7 Merge pull request #5805 from nestjs/dependabot/npm_and_yarn/types/node-14.14.10
chore(deps-dev): bump @types/node from 14.14.9 to 14.14.10
2020-11-27 10:14:42 +01:00
Kamil Mysliwiec
4f6d6a6b74 Merge pull request #5806 from nestjs/dependabot/npm_and_yarn/core-js-3.8.0
chore(deps-dev): bump core-js from 3.7.0 to 3.8.0
2020-11-27 10:14:35 +01:00
Kamil Mysliwiec
afaf81d659 Merge pull request #5807 from nestjs/dependabot/npm_and_yarn/graphql-tools-7.0.2
chore(deps-dev): bump graphql-tools from 7.0.1 to 7.0.2
2020-11-27 10:14:27 +01:00
dependabot[bot]
cbc15b843e chore(deps-dev): bump graphql-tools from 7.0.1 to 7.0.2
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Commits](https://github.com/ardatan/graphql-tools/compare/graphql-tools@7.0.1...graphql-tools@7.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 05:34:11 +00:00
dependabot[bot]
9b30109f18 chore(deps-dev): bump core-js from 3.7.0 to 3.8.0
Bumps [core-js](https://github.com/zloirock/core-js) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.7.0...v3.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 05:32:24 +00:00
dependabot[bot]
fabfa3b7c2 chore(deps-dev): bump @types/node from 14.14.9 to 14.14.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.9 to 14.14.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 05:30:20 +00:00
dependabot[bot]
7df03aab45 chore(deps-dev): bump @types/ws from 7.2.9 to 7.4.0
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 7.2.9 to 7.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 05:28:01 +00:00
Jay McDoniel
f36cb0c729 fix(application): makes get-url work in callback
`app.getUrl()` was throwing an error when `this.isListening`
was set to false. The value was set _after_ `this.httpServer.listen`
was called, now it is set _before_ to ensure that the `app.getUrl()`
can be called in the callback of `listen`. A regression test has
been added for this, and all tests related to the change are passing.

fix: #5798
2020-11-26 14:18:39 -08:00
Poulad
34d1c45d9a fix(microservices): handle rmq queue deletion
A null message is passed to callback when RabbitMQ queue is deleted. See #5683
2020-11-26 17:00:27 -05:00
dependabot[bot]
be6adb406c chore(deps-dev): bump mongoose from 5.10.15 to 5.10.16
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.10.15 to 5.10.16.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.10.15...5.10.16)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 13:38:29 +00:00
Kamil Mysliwiec
7c070f3bf3 Merge pull request #5791 from nestjs/dependabot/npm_and_yarn/types/sinon-9.0.9
chore(deps-dev): bump @types/sinon from 9.0.8 to 9.0.9
2020-11-26 14:34:51 +01:00
Kamil Mysliwiec
49bf3529f8 Merge pull request #5792 from nestjs/dependabot/npm_and_yarn/nestjs/typeorm-7.1.5
chore(deps-dev): bump @nestjs/typeorm from 7.1.4 to 7.1.5
2020-11-26 14:34:34 +01:00
Kamil Mysliwiec
fbacade010 Merge pull request #5795 from nestjs/dependabot/npm_and_yarn/types/express-4.17.9
chore(deps-dev): bump @types/express from 4.17.8 to 4.17.9
2020-11-26 14:34:22 +01:00
Kamil Mysliwiec
23616f92e5 Merge pull request #5796 from nestjs/dependabot/npm_and_yarn/mqtt-4.2.6
chore(deps-dev): bump mqtt from 4.2.1 to 4.2.6
2020-11-26 14:34:15 +01:00
Kamil Mysliwiec
57d7412f7d Merge pull request #5799 from yangfan44777/patch-1
style: typo
2020-11-26 14:30:06 +01:00
yangfan44777
02dc0d2951 Update instance-wrapper.spec.ts 2020-11-26 18:56:24 +08:00
dependabot[bot]
6864364fb7 chore(deps-dev): bump mqtt from 4.2.1 to 4.2.6
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 4.2.1 to 4.2.6.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v4.2.1...v4.2.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 05:58:08 +00:00
dependabot[bot]
36f081c693 chore(deps-dev): bump @types/express from 4.17.8 to 4.17.9
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.8 to 4.17.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 05:43:40 +00:00
dependabot[bot]
3184b21a79 chore(deps-dev): bump @nestjs/typeorm from 7.1.4 to 7.1.5
Bumps [@nestjs/typeorm](https://github.com/nestjs/typeorm) from 7.1.4 to 7.1.5.
- [Release notes](https://github.com/nestjs/typeorm/releases)
- [Changelog](https://github.com/nestjs/typeorm/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/typeorm/compare/7.1.4...7.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 05:34:55 +00:00
dependabot[bot]
41693874a1 chore(deps-dev): bump @types/sinon from 9.0.8 to 9.0.9
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 9.0.8 to 9.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 05:31:20 +00:00
Kamil Mysliwiec
0c12373320 Merge pull request #5779 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/core to v7.12.9
2020-11-25 09:02:46 +01:00
Kamil Mysliwiec
a0f68acbb3 Merge pull request #5781 from nestjs/dependabot/npm_and_yarn/gulp-sourcemaps-3.0.0
chore(deps-dev): bump gulp-sourcemaps from 2.6.5 to 3.0.0
2020-11-25 09:02:28 +01:00
Kamil Mysliwiec
baa413b2e5 Merge pull request #5782 from nestjs/dependabot/npm_and_yarn/light-my-request-4.3.0
chore(deps): bump light-my-request from 4.2.1 to 4.3.0
2020-11-25 09:01:56 +01:00
Kamil Mysliwiec
44c2dc1c36 Merge pull request #5783 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-7.1.2
chore(deps-dev): bump @nestjs/mongoose from 7.0.2 to 7.1.2
2020-11-25 09:01:34 +01:00
Kamil Mysliwiec
106ef742dd Merge pull request #5784 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.8.2
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 4.5.0 to 4.8.2
2020-11-25 09:01:27 +01:00
Kamil Mysliwiec
72920a39a9 Merge pull request #5785 from nestjs/dependabot/npm_and_yarn/fastify-static-3.3.0
chore(deps-dev): bump fastify-static from 3.2.1 to 3.3.0
2020-11-25 09:01:19 +01:00
dependabot[bot]
fa4ffb7022 chore(deps-dev): bump fastify-static from 3.2.1 to 3.3.0
Bumps [fastify-static](https://github.com/fastify/fastify-static) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v3.2.1...v3.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 05:23:38 +00:00
dependabot[bot]
d5c39ce1fc chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.5.0 to 4.8.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.8.2/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 05:20:55 +00:00
dependabot[bot]
2108a01898 chore(deps-dev): bump @nestjs/mongoose from 7.0.2 to 7.1.2
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 7.0.2 to 7.1.2.
- [Release notes](https://github.com/nestjs/mongoose/releases)
- [Changelog](https://github.com/nestjs/mongoose/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/mongoose/compare/7.0.2...7.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 05:16:47 +00:00
dependabot[bot]
eccefad9ba chore(deps): bump light-my-request from 4.2.1 to 4.3.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v4.2.1...v4.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 05:13:08 +00:00
dependabot[bot]
f52f859577 chore(deps-dev): bump gulp-sourcemaps from 2.6.5 to 3.0.0
Bumps [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) from 2.6.5 to 3.0.0.
- [Release notes](https://github.com/gulp-sourcemaps/gulp-sourcemaps/releases)
- [Commits](https://github.com/gulp-sourcemaps/gulp-sourcemaps/compare/v2.6.5...v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 05:10:00 +00:00
Renovate Bot
68617d6237 chore(deps): update dependency @babel/core to v7.12.9 2020-11-24 21:59:03 +00:00
Kamil Myśliwiec
cf2fbb9a3b fix(common): respect NO_COLOR env variable 2020-11-24 10:49:35 +01:00
Kamil Myśliwiec
8a7b1325fb fix(core): await dynamic module imports #5774 2020-11-24 09:43:01 +01:00
Kamil Mysliwiec
b6837fa462 Merge pull request #5764 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.12.8
2020-11-24 08:34:23 +01:00
Kamil Mysliwiec
49fc64809e Merge pull request #5766 from nestjs/dependabot/npm_and_yarn/types/reflect-metadata-0.1.0
chore(deps-dev): bump @types/reflect-metadata from 0.0.5 to 0.1.0
2020-11-24 08:34:07 +01:00
Kamil Mysliwiec
9f70e430fa Merge pull request #5769 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-4.8.2
chore(deps-dev): bump @typescript-eslint/parser from 4.5.0 to 4.8.2
2020-11-24 08:33:59 +01:00
Kamil Mysliwiec
073a998711 Merge pull request #5771 from nestjs/dependabot/npm_and_yarn/lint-staged-10.5.2
chore(deps-dev): bump lint-staged from 10.5.1 to 10.5.2
2020-11-24 08:33:51 +01:00
Kamil Mysliwiec
66ddc35f3b Merge pull request #5772 from nestjs/dependabot/npm_and_yarn/types/mocha-8.0.4
chore(deps-dev): bump @types/mocha from 8.0.3 to 8.0.4
2020-11-24 08:33:45 +01:00
Kamil Mysliwiec
405851b5f7 Merge pull request #5773 from nestjs/dependabot/npm_and_yarn/typeorm-0.2.29
chore(deps-dev): bump typeorm from 0.2.28 to 0.2.29
2020-11-24 08:33:34 +01:00
dependabot[bot]
69d08f8ae0 chore(deps-dev): bump typeorm from 0.2.28 to 0.2.29
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.2.28 to 0.2.29.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.2.28...0.2.29)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 05:55:22 +00:00
dependabot[bot]
64043196ee chore(deps-dev): bump @types/mocha from 8.0.3 to 8.0.4
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 8.0.3 to 8.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 05:53:01 +00:00
dependabot[bot]
0c4abea0d3 chore(deps-dev): bump lint-staged from 10.5.1 to 10.5.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.1 to 10.5.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.5.1...v10.5.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 05:50:46 +00:00
dependabot[bot]
89b421dc9d chore(deps-dev): bump @typescript-eslint/parser from 4.5.0 to 4.8.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.5.0 to 4.8.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.8.2/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 05:46:03 +00:00
dependabot[bot]
7c632d3059 chore(deps-dev): bump @types/reflect-metadata from 0.0.5 to 0.1.0
Bumps [@types/reflect-metadata](https://github.com/rbuckton/ReflectDecorators) from 0.0.5 to 0.1.0.
- [Release notes](https://github.com/rbuckton/ReflectDecorators/releases)
- [Changelog](https://github.com/rbuckton/reflect-metadata/blob/master/tsconfig-release.json)
- [Commits](https://github.com/rbuckton/ReflectDecorators/commits/v0.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 05:37:19 +00:00
Renovate Bot
d284ce295c chore(deps): update babel monorepo to v7.12.8 2020-11-23 23:01:14 +00:00
Kamil Mysliwiec
fcae42d9f5 Merge pull request #5744 from nestjs/dependabot/npm_and_yarn/graphql-tools-7.0.1
chore(deps-dev): bump graphql-tools from 6.2.4 to 7.0.1
2020-11-23 11:11:43 +01:00
Kamil Mysliwiec
c824870843 Merge pull request #5742 from nestjs/dependabot/npm_and_yarn/supertest-6.0.1
chore(deps-dev): bump supertest from 5.0.0 to 6.0.1
2020-11-23 11:11:28 +01:00
Kamil Mysliwiec
fe7b878946 Merge pull request #5753 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-7.8.2
chore(deps-dev): bump @nestjs/graphql from 7.7.0 to 7.8.2
2020-11-23 11:11:17 +01:00
Kamil Myśliwiec
c39f1c7970 chore(@nestjs) publish v7.5.5 release 2020-11-23 09:52:34 +01:00
Kamil Mysliwiec
35c0a7f326 Merge pull request #5719 from BerniWittmann/master
feat(common): await for exception factory in validation pipe
2020-11-23 09:49:51 +01:00
Kamil Mysliwiec
178b6062a6 Merge pull request #5723 from zub0r/master
Added missing options to for NATS client to use jwt
2020-11-23 09:49:40 +01:00
dependabot[bot]
65c611ed94 chore(deps-dev): bump graphql-tools from 6.2.4 to 7.0.1
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools) from 6.2.4 to 7.0.1.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Commits](https://github.com/ardatan/graphql-tools/compare/graphql-tools@6.2.4...graphql-tools@7.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 08:16:37 +00:00
dependabot[bot]
781bce0439 chore(deps-dev): bump @nestjs/graphql from 7.7.0 to 7.8.2
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 7.7.0 to 7.8.2.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Changelog](https://github.com/nestjs/graphql/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/graphql/compare/7.7.0...7.8.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 08:13:08 +00:00
dependabot[bot]
9a83e04f1b chore(deps-dev): bump supertest from 5.0.0 to 6.0.1
Bumps [supertest](https://github.com/visionmedia/supertest) from 5.0.0 to 6.0.1.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v5.0.0...v6.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 08:12:51 +00:00
Kamil Mysliwiec
91ab18b895 Merge pull request #5752 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.12.7
2020-11-23 08:29:29 +01:00
Kamil Mysliwiec
2e45cbf779 Merge pull request #5755 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-2.2.10
chore(deps): bump fast-json-stringify from 2.2.9 to 2.2.10
2020-11-23 08:28:56 +01:00
Kamil Mysliwiec
3614db5eb9 Merge pull request #5756 from nestjs/dependabot/npm_and_yarn/graphql-15.4.0
chore(deps-dev): bump graphql from 15.3.0 to 15.4.0
2020-11-23 08:28:49 +01:00
Kamil Mysliwiec
3a1c4eab9e Merge pull request #5757 from nestjs/dependabot/npm_and_yarn/eslint-7.14.0
chore(deps-dev): bump eslint from 7.10.0 to 7.14.0
2020-11-23 08:25:03 +01:00
Kamil Mysliwiec
3632357078 Merge pull request #5759 from nestjs/dependabot/npm_and_yarn/fastify-cors-5.0.0
chore(deps): bump fastify-cors from 4.1.0 to 5.0.0
2020-11-23 08:24:53 +01:00
Kamil Mysliwiec
90999592b3 Merge pull request #5760 from nestjs/dependabot/npm_and_yarn/ts-morph-9.0.0
chore(deps-dev): bump ts-morph from 8.1.2 to 9.0.0
2020-11-23 08:24:46 +01:00
dependabot[bot]
b56a71c549 chore(deps-dev): bump ts-morph from 8.1.2 to 9.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 8.1.2 to 9.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/8.1.2...9.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 05:57:21 +00:00
dependabot[bot]
ec960a6262 chore(deps): bump fastify-cors from 4.1.0 to 5.0.0
Bumps [fastify-cors](https://github.com/fastify/fastify-cors) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v4.1.0...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 05:55:22 +00:00
dependabot[bot]
56e9d963d9 chore(deps-dev): bump eslint from 7.10.0 to 7.14.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.10.0...v7.14.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 05:50:17 +00:00
dependabot[bot]
72ad857cb3 chore(deps-dev): bump graphql from 15.3.0 to 15.4.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.3.0 to 15.4.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.3.0...v15.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 05:47:53 +00:00
dependabot[bot]
143d213b2a chore(deps): bump fast-json-stringify from 2.2.9 to 2.2.10
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v2.2.9...v2.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-23 05:44:47 +00:00
Renovate Bot
2ecf431195 chore(deps): update babel monorepo to v7.12.7 2020-11-22 19:34:45 +00:00
Kamil Mysliwiec
404f3f125f Merge pull request #5740 from nestjs/dependabot/npm_and_yarn/prettier-2.2.0
chore(deps-dev): bump prettier from 2.1.2 to 2.2.0
2020-11-22 20:28:19 +01:00
Kamil Mysliwiec
a40aeaa1ac Merge pull request #5741 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-6.15.0
chore(deps-dev): bump eslint-config-prettier from 6.11.0 to 6.15.0
2020-11-22 20:28:11 +01:00
Kamil Mysliwiec
06e256a45e Merge pull request #5743 from nestjs/dependabot/npm_and_yarn/fastify-3.8.0
chore(deps): bump fastify from 3.7.0 to 3.8.0
2020-11-22 20:28:01 +01:00
Kamil Mysliwiec
9c58e8a838 Merge pull request #5745 from nestjs/dependabot/npm_and_yarn/types/node-14.14.9
chore(deps-dev): bump @types/node from 10.17.3 to 14.14.9
2020-11-22 20:27:44 +01:00
Kamil Mysliwiec
0627dec2aa Merge pull request #5746 from nestjs/dependabot/npm_and_yarn/nuxtjs/opencollective-0.3.2
chore(deps): bump @nuxtjs/opencollective from 0.2.2 to 0.3.2
2020-11-22 20:27:26 +01:00
Michael Kaufman
35add88251 feat(microservices): Tests for Kafka reply partitioner 2020-11-21 21:24:55 -05:00
Michael Kaufman
0f80068198 feat(microservices): Increase timeout for kafka tests 2020-11-21 20:33:37 -05:00
Michael Kaufman
32b19c7c37 feat(microservices): Uses kafkajs package for tests 2020-11-21 15:13:26 -05:00
Michael Kaufman
827f1e7f77 feat(microservices): Waits for kafka server to close 2020-11-21 14:46:39 -05:00
Michael Kaufman
404a916129 feat(microservices): Fixes dependencies 2020-11-21 14:38:49 -05:00
Michael Kaufman
1e1a52eb20 feat(microservices): Updates package lock 2020-11-21 14:29:46 -05:00
Michael Kaufman
c67b58f527 feat(microservices): Begins updating the reply partitioner test 2020-11-21 14:26:53 -05:00
Michael Kaufman
4763fb9552 feat(microservices): Removes unused exception and updates tests 2020-11-21 14:07:23 -05:00
Michael Kaufman
68ad994f2d feat(microservices): Updates external kafka interface 2020-11-21 13:40:17 -05:00
Michael Kaufman
0f15e35f2b feat(microservices): Removes redundant kafka external interface 2020-11-21 13:32:40 -05:00
Michael Kaufman
25ca219254 feat(microservices): Completed tests for concurrency 2020-11-21 12:50:25 -05:00
dependabot[bot]
27d1e7a202 chore(deps): bump @nuxtjs/opencollective from 0.2.2 to 0.3.2
Bumps [@nuxtjs/opencollective](https://github.com/nuxt-contrib/opencollective) from 0.2.2 to 0.3.2.
- [Release notes](https://github.com/nuxt-contrib/opencollective/releases)
- [Changelog](https://github.com/nuxt-contrib/opencollective/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nuxt-contrib/opencollective/compare/v0.2.2...v0.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:20:52 +00:00
dependabot[bot]
a77b1155d1 chore(deps-dev): bump @types/node from 10.17.3 to 14.14.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 10.17.3 to 14.14.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:19:52 +00:00
dependabot[bot]
0b4682259e chore(deps-dev): bump prettier from 2.1.2 to 2.2.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:19:26 +00:00
dependabot[bot]
9acee58108 chore(deps-dev): bump eslint-config-prettier from 6.11.0 to 6.15.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.11.0 to 6.15.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.11.0...v6.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:19:13 +00:00
dependabot[bot]
61e2ed9e18 chore(deps): bump fastify from 3.7.0 to 3.8.0
Bumps [fastify](https://github.com/fastify/fastify) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.7.0...v3.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:18:21 +00:00
Kamil Mysliwiec
3f57df3301 Merge pull request #5739 from nestjs/dependabot/npm_and_yarn/engine.io-client-4.0.4
chore(deps-dev): bump engine.io-client from 4.0.1 to 4.0.4
2020-11-20 17:16:44 +01:00
Kamil Mysliwiec
bc52688fde Merge pull request #5724 from nestjs/dependabot/npm_and_yarn/lodash-4.17.15
chore(deps): [security] bump lodash from 4.17.11 to 4.17.15
2020-11-20 17:15:25 +01:00
Kamil Mysliwiec
e5471817ed Merge pull request #5731 from nestjs/dependabot/npm_and_yarn/handlebars-4.7.6
chore(deps): [security] bump handlebars from 4.5.3 to 4.7.6
2020-11-20 17:15:11 +01:00
Kamil Mysliwiec
f68634f09e Merge pull request #5732 from nestjs/dependabot/npm_and_yarn/find-my-way-3.0.5
chore(deps): [security] bump find-my-way from 3.0.4 to 3.0.5
2020-11-20 17:14:39 +01:00
dependabot[bot]
29f197f7bf chore(deps-dev): bump engine.io-client from 4.0.1 to 4.0.4
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 4.0.1 to 4.0.4.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/4.0.1...4.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:14:22 +00:00
Kamil Mysliwiec
a0720c1cc3 Merge pull request #5737 from nestjs/dependabot/npm_and_yarn/grpc-1.24.4
chore(deps-dev): bump grpc from 1.24.3 to 1.24.4
2020-11-20 17:14:20 +01:00
Kamil Mysliwiec
d94a6e8b40 Merge pull request #5733 from nestjs/dependabot/npm_and_yarn/https-proxy-agent-2.2.4
chore(deps): [security] bump https-proxy-agent from 2.2.2 to 2.2.4
2020-11-20 17:14:14 +01:00
Kamil Mysliwiec
cd950eebe1 Merge pull request #5738 from nestjs/dependabot/npm_and_yarn/middie-5.2.0
chore(deps): bump middie from 5.1.0 to 5.2.0
2020-11-20 17:14:09 +01:00
dependabot[bot]
486e11d59b chore(deps): bump middie from 5.1.0 to 5.2.0
Bumps [middie](https://github.com/fastify/middleman) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/fastify/middleman/releases)
- [Commits](https://github.com/fastify/middleman/compare/v5.1.0...v5.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:13:38 +00:00
dependabot[bot]
c59e20f9b5 chore(deps-dev): bump grpc from 1.24.3 to 1.24.4
Bumps [grpc](https://github.com/grpc/grpc-node) from 1.24.3 to 1.24.4.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/grpc@1.24.3...grpc@1.24.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-20 16:12:30 +00:00
Kamil Mysliwiec
711232f878 Merge pull request #5726 from nestjs/dependabot/npm_and_yarn/mongoose-5.10.15
chore(deps-dev): bump mongoose from 5.10.10 to 5.10.15
2020-11-20 17:10:50 +01:00
Kamil Mysliwiec
d24c3ca435 Merge pull request #5727 from nestjs/dependabot/npm_and_yarn/acorn-5.7.4
chore(deps): [security] bump acorn from 5.7.3 to 5.7.4
2020-11-20 17:10:32 +01:00
Kamil Mysliwiec
1b16efab37 Merge pull request #5728 from nestjs/dependabot/npm_and_yarn/ws-7.4.0
chore(deps): bump ws from 7.3.1 to 7.4.0
2020-11-20 17:10:25 +01:00
Kamil Mysliwiec
278c5e0121 Merge pull request #5735 from nestjs/dependabot/npm_and_yarn/object-path-0.11.5
chore(deps): [security] bump object-path from 0.11.4 to 0.11.5
2020-11-20 17:10:09 +01:00
Kamil Mysliwiec
d496fe8cde Merge pull request #5734 from nestjs/dependabot/npm_and_yarn/mixin-deep-1.3.2
chore(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2
2020-11-20 17:10:01 +01:00
Kamil Mysliwiec
ac9d7ec15e Merge pull request #5736 from nestjs/dependabot/add-v2-config-file
Create Dependabot config file
2020-11-20 17:09:49 +01:00
dependabot-preview[bot]
8ee2ff6f98 Create Dependabot config file 2020-11-20 14:13:05 +00:00
dependabot-preview[bot]
d69222cca7 chore(deps): [security] bump object-path from 0.11.4 to 0.11.5
Bumps [object-path](https://github.com/mariocasciaro/object-path) from 0.11.4 to 0.11.5. **This update includes a security fix.**
- [Release notes](https://github.com/mariocasciaro/object-path/releases)
- [Commits](https://github.com/mariocasciaro/object-path/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:22:01 +00:00
dependabot-preview[bot]
a1dce7deb7 chore(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. **This update includes a security fix.**
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:21:08 +00:00
dependabot-preview[bot]
42aecea37d chore(deps): [security] bump https-proxy-agent from 2.2.2 to 2.2.4
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.2 to 2.2.4. **This update includes security fixes.**
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.2...2.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:18:02 +00:00
dependabot-preview[bot]
5837cc7780 chore(deps): [security] bump find-my-way from 3.0.4 to 3.0.5
Bumps [find-my-way](https://github.com/delvedor/find-my-way) from 3.0.4 to 3.0.5. **This update includes a security fix.**
- [Release notes](https://github.com/delvedor/find-my-way/releases)
- [Commits](https://github.com/delvedor/find-my-way/compare/v3.0.4...v3.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:14:04 +00:00
dependabot-preview[bot]
a29efd7b8e chore(deps): [security] bump handlebars from 4.5.3 to 4.7.6
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.3 to 4.7.6. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.3...v4.7.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:10:38 +00:00
dependabot-preview[bot]
94a7675b9e chore(deps): bump ws from 7.3.1 to 7.4.0
Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.3.1...7.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:08:20 +00:00
dependabot-preview[bot]
b12b410935 chore(deps): [security] bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. **This update includes security fixes.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:07:55 +00:00
dependabot-preview[bot]
c79b45ae84 chore(deps-dev): bump mongoose from 5.10.10 to 5.10.15
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.10.10 to 5.10.15.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.10.10...5.10.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:07:27 +00:00
dependabot-preview[bot]
7a303edc5f chore(deps): [security] bump lodash from 4.17.11 to 4.17.15
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 12:06:16 +00:00
Martin H
74659e966c Added missing options to for NATS jwt 2020-11-20 10:04:56 +01:00
Bernhard Wittmann
4f782b9881 feat(common): await for exception factory in validation pipe
allow the usage of asychronouse code in exception factory

fixes #5718
2020-11-19 17:14:40 +01:00
Kamil Myśliwiec
eaeef51003 sample(): fix sse example 2020-11-18 14:28:17 +01:00
Kamil Myśliwiec
604ee86064 chore(@nestjs) publish v7.5.4 release 2020-11-18 14:10:31 +01:00
Kamil Mysliwiec
01dc358aad Merge pull request #5708 from gangajogur/issue-5586
fix(core): add abstract option to resolve method
2020-11-18 14:05:50 +01:00
Kamil Mysliwiec
7f912d7f12 Merge pull request #5712 from mimopo/master
fix: Ack never called when no data sent
2020-11-18 14:05:33 +01:00
Kamil Myśliwiec
55d7b0e890 feat(): add response passthrough configuration property 2020-11-18 14:04:31 +01:00
Miguel Montes
840cef45a4 test: gateway-ack when no data provided on event
Add test to ensure that ack is called even if no data provided on event.
https://github.com/nestjs/nest/issues/5711
2020-11-18 00:14:21 +01:00
Miguel Montes Porras
6bf4b0b24d fix: Ack never called when no data sent
Ack method is never called when no data sent to the event.
https://github.com/nestjs/nest/issues/5711
2020-11-17 21:27:17 +01:00
Jay McDoniel
525ef91307 feat(microservice): adds tests for custom client proxy 2020-11-17 08:59:45 -08:00
Jay McDoniel
7dad2e479b feat(microservice): allow for custom serialization of data nad error 2020-11-17 07:01:43 -08:00
Jay McDoniel
530274e2c8 feat(microservice): allow for custom ClientProxy implementation 2020-11-17 07:01:42 -08:00
gangajogur
ad179935f4 fix(core): Add abstract option to resolvePerContext method 2020-11-17 22:02:13 +10:00
Kamil Myśliwiec
8009337e23 chore(@nestjs) publish v7.5.3 release 2020-11-17 12:53:53 +01:00
Kamil Myśliwiec
1ab0f1be33 feat(platform-fastify): add is parser registered getter 2020-11-17 12:51:58 +01:00
Kamil Mysliwiec
3818dec622 Create renovate.json 2020-11-17 12:44:58 +01:00
gangajogur
4f694e213c fix(core): add abstract option to resolve method 2020-11-17 21:40:58 +10:00
Kamil Mysliwiec
f2ca8070e0 Delete renovate.json 2020-11-17 11:53:12 +01:00
Kamil Mysliwiec
a52524ed13 Merge pull request #5687 from robertohuertasm/fix/httpexception
refactor(common): change names of createBody arguments
2020-11-17 08:46:13 +01:00
Roberto Huertas
d429a068b4 refactor(common): change names of createBody arguments
This PR just changes the names of some of the `createBody` method parameters to be consistent with
the names of the parameters used by some of the `HttpException` subclasses.
2020-11-16 20:47:33 +01:00
Kamil Mysliwiec
ae23cc095d Update renovate.json 2020-11-16 09:46:34 +01:00
Kamil Mysliwiec
920255c19f Merge pull request #5703 from nestjs/renovate/configure
Configure Renovate
2020-11-16 09:45:53 +01:00
Renovate Bot
995260afa4 Add renovate.json 2020-11-16 08:12:47 +00:00
Kamil Mysliwiec
bd1488e65d Delete renovate.json 2020-11-16 09:10:19 +01:00
Kamil Myśliwiec
cfd6a659c7 sample(06-mongoose): add cat document type 2020-11-13 15:17:17 +01:00
Kamil Myśliwiec
1b93414117 sample(28-sse): remove controller unit test 2020-11-13 13:48:09 +01:00
Kamil Myśliwiec
0dd7745058 chore(): update readme 2020-11-13 13:14:43 +01:00
Kamil Myśliwiec
281e6cb4f1 chore(@nestjs) publish v7.5.2 release 2020-11-13 13:14:08 +01:00
Kamil Myśliwiec
2adbd1cd7c fix(core): fix see for fastify platform 2020-11-13 13:12:29 +01:00
Kamil Myśliwiec
78cda5f1b4 sample(): rename 28-file-upload to 29-file-upload 2020-11-13 12:14:16 +01:00
Kamil Mysliwiec
d4bec3be0c Merge pull request #5648 from nestjs/renovate/sinon-9.x
chore(deps): update dependency sinon to v9.2.1
2020-11-13 12:08:21 +01:00
Kamil Myśliwiec
66f8247dcb chore(): resolve conflicts 2020-11-13 12:07:22 +01:00
Kamil Mysliwiec
23359de57b Merge pull request #5646 from nestjs/renovate/mocha-8.x
chore(deps): update dependency mocha to v8.2.1
2020-11-13 12:06:40 +01:00
Kamil Myśliwiec
7953a5b0d0 chore(): resolve conflicts 2020-11-13 12:06:09 +01:00
Kamil Mysliwiec
03802d15a7 Merge pull request #5645 from nestjs/renovate/lint-staged-10.x
chore(deps): update dependency lint-staged to v10.5.1
2020-11-13 11:59:26 +01:00
Kamil Myśliwiec
d15ea7db3d chore(): resolve conflicts 2020-11-13 11:59:09 +01:00
Kamil Mysliwiec
12d657a949 Merge pull request #5643 from nestjs/renovate/fastify-multipart-3.x
chore(deps): update dependency fastify-multipart to v3.3.0
2020-11-13 11:58:25 +01:00
Kamil Myśliwiec
9212e78fa3 chore(): resolve conflicts 2020-11-13 11:58:07 +01:00
Kamil Mysliwiec
4fbdd2ccac Merge pull request #5405 from nestjs/renovate/engine.io-client-4.x
chore(deps): update dependency engine.io-client to v4
2020-11-13 11:57:18 +01:00
Kamil Myśliwiec
a7e45bdcca chore(): resolve conflicts 2020-11-13 11:57:02 +01:00
Kamil Mysliwiec
b0311b89ee Merge pull request #5657 from nestjs/renovate/axios-0.x
fix(deps): update dependency axios to v0.21.0
2020-11-13 11:55:47 +01:00
Kamil Myśliwiec
a53c20b42f chore(): resolve conflicts 2020-11-13 11:54:57 +01:00
Kamil Mysliwiec
e7e2a1e46d Update renovate.json 2020-11-13 09:25:16 +01:00
Kamil Mysliwiec
98f046c222 Update Readme.md 2020-11-13 09:09:17 +01:00
Kamil Myśliwiec
765ecd3ebb Merge branch 'master' of https://github.com/nestjs/nest 2020-11-12 13:53:16 +01:00
Kamil Myśliwiec
008c6f9f1f sample(26-queues): show bull module for root usage 2020-11-12 13:53:04 +01:00
Kamil Mysliwiec
aad5748f27 Update Readme.md 2020-11-12 11:34:19 +01:00
xuzaixian
47f662bdf8 feat(common): move gettimestamp function to class logger 2020-11-11 11:07:29 +08:00
xuzaixian
e3a1fc2c92 feat(common): use internal function as fallback 2020-11-10 18:42:52 +08:00
xuzaixian
d59a06a42a feat(common): timestamp inside log service can be overridden 2020-11-10 17:22:45 +08:00
Kamil Mysliwiec
95f450d10b Merge pull request #5678 from nestjs/renovate/node-14.x
chore(deps): update dependency @types/node to v14.14.7
2020-11-10 08:54:29 +01:00
Renovate Bot
c060bc9196 chore(deps): update dependency @types/node to v14.14.7 2020-11-09 20:02:26 +00:00
xuzaixian
c0195a0614 feat(common): timestamp inside log service can be override 2020-11-09 19:59:49 +08:00
Hyuni
1417eeb0a6 Merge pull request #2 from nestjs/master
sync from main repo
2020-11-09 19:41:52 +08:00
Kamil Mysliwiec
9d4fc32c57 Merge pull request #5674 from nestjs/renovate/core-js-3.x
chore(deps): update dependency core-js to v3.7.0
2020-11-06 18:13:27 +01:00
Renovate Bot
7ea7ac8ab5 chore(deps): update dependency core-js to v3.7.0 2020-11-06 15:52:12 +00:00
Kamil Mysliwiec
6f37544ff4 Merge pull request #5670 from almarro1/fix-shutdown-hook-error
fix: verify err variable is defined in catch block
2020-11-05 21:58:28 +01:00
Kamil Mysliwiec
1221c3052e Merge pull request #5672 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.5.16
2020-11-05 21:55:07 +01:00
Renovate Bot
52e677a60a chore(deps): update dependency @types/amqplib to v0.5.16 2020-11-05 19:01:21 +00:00
Kamil Mysliwiec
0993b92545 Update renovate.json 2020-11-05 15:23:17 +01:00
Alvaro
9c79e0ee59 fix: verify err variable is defined in catch block 2020-11-05 12:34:47 +01:00
Kamil Mysliwiec
b090c96ec6 Update renovate.json 2020-11-05 09:07:25 +01:00
Kamil Mysliwiec
99c5f3a405 Merge pull request #5665 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.2.1
2020-11-05 09:06:59 +01:00
Kamil Myśliwiec
c819b91e08 fix(sample): fix webpack sample 2020-11-05 09:04:59 +01:00
Kamil Myśliwiec
fd9ed91a41 Merge branch 'master' of https://github.com/nestjs/nest 2020-11-05 08:45:50 +01:00
Kamil Mysliwiec
539c94369a Merge pull request #5663 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo
2020-11-05 08:43:37 +01:00
Kamil Mysliwiec
a9b2576c85 Merge pull request #5668 from nestjs/renovate/conventional-changelog-3.x
chore(deps): update dependency conventional-changelog to v3.1.24
2020-11-05 08:43:21 +01:00
Renovate Bot
80def1bdcb chore(deps): update dependency conventional-changelog to v3.1.24 2020-11-05 02:50:44 +00:00
Michael Kaufman
5e21c9e51e feat(microservices): Only stores min partition 2020-11-04 09:40:33 -05:00
Renovate Bot
82bced50fb chore(deps): update babel monorepo 2020-11-04 12:09:26 +00:00
Renovate Bot
d2defa5431 chore(deps): update dependency @nestjs/schematics to v7.2.1 2020-11-04 11:30:13 +00:00
Kamil Mysliwiec
8e216b2b25 Merge pull request #5545 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.5.15
2020-11-04 09:48:10 +01:00
Kamil Mysliwiec
fad05c81b0 Merge pull request #5662 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.1.3
2020-11-04 09:47:28 +01:00
Michael Kaufman
b0a0623cf8 feat(microservices): Fixes assigner algo and uses min partition 2020-11-03 16:57:43 -05:00
Michael Kaufman
9449d612aa feat(microservices): Removes assignment store injects client 2020-11-03 09:12:36 -05:00
Renovate Bot
74e0f26d19 chore(deps): update dependency @nestjs/schematics to v7.1.3 2020-11-03 13:17:52 +00:00
Renovate Bot
13d5cd8c53 chore(deps): update dependency @types/amqplib to v0.5.15 2020-11-03 09:00:06 +00:00
Kamil Mysliwiec
7a9fd4f473 Merge pull request #5641 from nestjs/renovate/multer-1.x
chore(deps): update dependency @types/multer to v1.4.4
2020-11-03 08:56:47 +01:00
Kamil Mysliwiec
dcaffac240 Merge pull request #5644 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.6.2
2020-11-03 08:56:27 +01:00
Kamil Mysliwiec
3eeb3b899b Merge pull request #5649 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.3.2
2020-11-03 08:55:59 +01:00
Kamil Mysliwiec
535c4a7acf Merge pull request #5650 from nestjs/renovate/docker-mysql-5.x
chore(deps): update mysql docker tag to v5.7.32
2020-11-03 08:55:53 +01:00
Kamil Mysliwiec
7cb50cbcfd Merge pull request #5656 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.19.0
2020-11-03 08:55:37 +01:00
Kamil Mysliwiec
b00df2d884 Merge pull request #5658 from nestjs/renovate/bull-3.x
fix(deps): update dependency bull to v3.18.1
2020-11-03 08:55:21 +01:00
Renovate Bot
2255d9a1b9 fix(deps): update dependency bull to v3.18.1 2020-11-03 01:53:37 +00:00
Renovate Bot
ca96f9110b fix(deps): update dependency axios to v0.21.0 2020-11-03 00:32:21 +00:00
Renovate Bot
d7875e3051 fix(deps): update apollo graphql packages to v2.19.0 2020-11-03 00:03:55 +00:00
Renovate Bot
fa07630098 chore(deps): update dependency mocha to v8.2.1 2020-11-02 23:54:02 +00:00
Michael Kaufman
15473e4251 feat(microservices): Fixes changes to kafka client 2020-11-02 18:49:55 -05:00
Michael Kaufman
1a46de0af3 feat(microservices): Fixes changes to KafkaClient 2020-11-02 18:19:45 -05:00
Michael Kaufman
453e4afd3e feat(microservices): Remove changes that were accidentally included 2020-11-02 18:16:59 -05:00
Michael Kaufman
ffd602ffd5 Merge remote-tracking branch 'Nest/master' into 2984-kafka-reply-partitions 2020-11-02 18:14:55 -05:00
Michael Kaufman
badae7b4e7 feat(microservices): Implement Kafka Nestjs reply partition assigner 2020-11-02 17:55:49 -05:00
Renovate Bot
351694cf8c chore(deps): update mysql docker tag to v5.7.32 2020-11-02 19:54:47 +00:00
Renovate Bot
034d6d69e7 chore(deps): update dependency webpack to v5.3.2 2020-11-02 19:54:35 +00:00
Renovate Bot
96e7064fcd chore(deps): update dependency sinon to v9.2.1 2020-11-02 18:21:07 +00:00
Renovate Bot
292aa33c44 chore(deps): update dependency lint-staged to v10.5.1 2020-11-02 17:55:23 +00:00
Renovate Bot
77fbc5a511 chore(deps): update dependency jest to v26.6.2 2020-11-02 16:39:25 +00:00
Renovate Bot
f60fc95066 chore(deps): update dependency engine.io-client to v4 2020-11-02 15:59:46 +00:00
Renovate Bot
3e07d44287 chore(deps): update dependency fastify-multipart to v3.3.0 2020-11-02 15:56:04 +00:00
gabeodessru
d24d0381a2 sample(12): removed unused module method 2020-11-02 08:45:30 -06:00
Kamil Myśliwiec
df360d9365 chore(@nestjs) publish v7.5.1 release 2020-11-02 14:15:35 +01:00
Kamil Myśliwiec
be4e50f144 fix(platform-fastify): fix register method signature types 2020-11-02 14:04:18 +01:00
Kamil Myśliwiec
6f5ef692fa ci(): temporarily switch to npm i instead of ci to fix the build 2020-11-02 13:12:18 +01:00
Kamil Myśliwiec
054c6e9817 chore(@nestjs) publish v7.5.0 release 2020-11-02 12:48:13 +01:00
Kamil Myśliwiec
a166b08441 ci(): remove prefer offline flag from samples build script 2020-11-02 12:04:49 +01:00
Kamil Myśliwiec
2d732c8b0c ci(): add no-optional flag to samples install script 2020-11-02 11:54:31 +01:00
Kamil Myśliwiec
a08deb63cd fix(platform-fastify): fix typing issues 2020-11-02 11:32:19 +01:00
Renovate Bot
d2984ca3bf chore(deps): update dependency @types/multer to v1.4.4 2020-11-02 10:18:27 +00:00
Kamil Myśliwiec
8e4e9b7edd Merge branch 'master' of https://github.com/nestjs/nest 2020-11-02 11:09:37 +01:00
Kamil Myśliwiec
df3f906b80 Merge branch 'renovate/fastify-3.x' 2020-11-02 11:09:31 +01:00
Kamil Myśliwiec
24b32e3930 refactor(): run format script (prettier) 2020-11-02 11:09:11 +01:00
Kamil Myśliwiec
4565a9fd99 fix(platform-fastify): fix inject and use method usage 2020-11-02 11:09:01 +01:00
Kamil Myśliwiec
03f500d867 chore(): resolve merge conflicts 2020-11-02 10:59:39 +01:00
Kamil Mysliwiec
739878bd35 Merge pull request #5627 from smhmayboudi/5599-fix-kafkaserver-constructor
fix(microservice): Fix KafkaServer constructor
2020-11-02 10:57:58 +01:00
Kamil Myśliwiec
009d99908b Merge branch 'smhmayboudi-5603-feat-kafkaclient-kafkaserver-naming-conventions' 2020-11-02 10:57:36 +01:00
Kamil Myśliwiec
81550648b3 Merge branch 'master' of https://github.com/nestjs/nest; branch '5603-feat-kafkaclient-kafkaserver-naming-conventions' of https://github.com/smhmayboudi/nest into smhmayboudi-5603-feat-kafkaclient-kafkaserver-naming-conventions 2020-11-02 10:57:00 +01:00
Kamil Myśliwiec
5128867bba Merge branch 'smhmayboudi-5629-feat-KafkaConfig-brokers' 2020-11-02 10:51:50 +01:00
Kamil Myśliwiec
b8c6373258 chore(): resolve merge conflicts 2020-11-02 10:51:36 +01:00
Kamil Mysliwiec
bef63a7c74 Merge pull request #5524 from jmcdo29/feat/file-upload-sample
test(file-upload): creates an example and test for file uploading
2020-11-02 10:48:24 +01:00
Kamil Mysliwiec
e0cb9e05ec Merge pull request #5523 from jmcdo29/feat/jwt-unit-tests
test(jwt-sample): adds tests to the jwt to show e2e flow works
2020-11-02 10:47:26 +01:00
Kamil Mysliwiec
eb80c5878e Update sample/19-auth-jwt/e2e/app/app.e2e-spec.ts 2020-11-02 10:47:13 +01:00
Kamil Myśliwiec
8a03dc6947 Merge branch 'mehdi-sh-hm-conditional-cache-ttl-feature' 2020-11-02 10:46:09 +01:00
Kamil Myśliwiec
e656b17039 refactor(common): remove unnecessary type arg from ttl factory 2020-11-02 10:45:55 +01:00
Kamil Myśliwiec
3ba9b2761c chore(): resolve merge conflicts 2020-11-02 10:43:47 +01:00
Kamil Myśliwiec
7782b27e1a Merge branch 'OpportunityLiu-patch-1' 2020-11-02 10:40:31 +01:00
Kamil Myśliwiec
2344e72418 fix(core): when serializing dynamic module metadata, hash stringified arrow funcs 2020-11-02 10:40:20 +01:00
Kamil Myśliwiec
2f1e4701f6 Merge branch 'patch-1' of https://github.com/OpportunityLiu/nest into OpportunityLiu-patch-1 2020-11-02 10:33:33 +01:00
Kamil Mysliwiec
01345a75ed Merge pull request #5628 from squareloop1/fix/add-missing-chaining-api
fix(platform-fastify): adds missing chaining API types for LightMyRequest inject()
2020-11-02 10:09:18 +01:00
Kamil Mysliwiec
873599b7e5 Merge pull request #5295 from Nosfistis/bugfix/unit-test-pattern
fix(test): stricten unit test file pattern
2020-11-02 10:03:50 +01:00
Kamil Mysliwiec
0ec42bd482 Merge pull request #5609 from capaio/rmq-url-acceptable-types
feature(microservices): update acceptable types in RabbitMq urls
2020-11-02 09:58:56 +01:00
Kamil Mysliwiec
62352ac7e2 Merge pull request #5638 from smhmayboudi/5637-feat-improve-KafkaHeaders
feat(microservices): Improve KafkaHeaders
2020-11-02 09:57:42 +01:00
Kamil Mysliwiec
b4b7e3abe3 Merge pull request #5624 from nestjs/renovate/ws-7.x
chore(deps): update dependency @types/ws to v7.2.9
2020-11-02 09:53:13 +01:00
Michael Kaufman
a85cb0fe4b feat(microservices): Kafka controller await client consumers connect 2020-10-31 17:39:00 -04:00
Hossein Mayboudi
8d9153402e feat(microservices): Improve KafkaHeaders
Issue  Number: #5637
2020-10-30 22:05:44 +03:30
Hossein Mayboudi
0af826e2d4 feat(microservices): Add BrokersFunction to KafkaConfig brokers property
Issue Number: #5629
2020-10-30 19:36:53 +03:30
Jay McDoniel
9d071cfcd0 fix: add types to upload sample 2020-10-30 09:02:24 -07:00
Renovate Bot
8da9342363 chore(deps): update dependency @types/ws to v7.2.9 2020-10-30 15:24:02 +00:00
Kamil Myśliwiec
304b1c81ac Merge branch 'soyuka-feat/eventsource' 2020-10-30 14:57:25 +01:00
Kamil Myśliwiec
945d608df2 sample(): update sse sample 2020-10-30 14:57:13 +01:00
Kamil Myśliwiec
320b599503 test(core): fix router execution context tests 2020-10-30 14:54:58 +01:00
Kamil Myśliwiec
9ba45d6efb fix(core): fix invalid is object import 2020-10-30 14:50:58 +01:00
Kamil Myśliwiec
511625c35e refactor(core): align code changes to the rest of the codebase 2020-10-30 14:49:07 +01:00
Kamil Myśliwiec
e22a3e7c53 Merge branch 'mikicho-Michael/fix-expectedType-override' 2020-10-30 14:10:42 +01:00
Kamil Myśliwiec
e8b2761278 refactor(common): move expected type check (validation pipe) to the top 2020-10-30 14:10:29 +01:00
Kamil Myśliwiec
88cf4c1926 Merge branch 'Michael/fix-expectedType-override' of https://github.com/mikicho/nest into mikicho-Michael/fix-expectedType-override 2020-10-30 14:05:53 +01:00
Kamil Mysliwiec
0d7b13ec53 Merge pull request #5143 from AlexDaSoul/grpc-send-metadata
feat(microservices): Add grpc metadata to server responce
2020-10-30 14:05:35 +01:00
Kamil Myśliwiec
1c32066b80 chore(): bump axios to 0.21.0 2020-10-30 13:01:24 +01:00
Kamil Mysliwiec
5e3c88a2a6 Merge pull request #5630 from nestjs/feat/remove-cli-color
feat(common): remove cli-color dependency
2020-10-30 12:12:42 +01:00
Patrick Münd
b63e279212 fix(platform-fastify): Remove redundant type assertion 2020-10-30 10:09:04 +01:00
Kamil Myśliwiec
b8a52cccaf feat(common): remove cli-color dependency 2020-10-30 10:04:20 +01:00
ccappai
1655e963a5 change type order 2020-10-30 09:39:42 +01:00
Hossein Mayboudi
1ff912e693 feat(microservice): Add clientIdPostfix to KafkaConfig
Issue Number: #5603
2020-10-30 12:04:08 +03:30
Patrick Münd
764859e93a fix(platform-fastify): adds missing chaining API types for LightMyRequest inject() 2020-10-30 09:28:30 +01:00
ccappai
f96470b4ec run format script 2020-10-30 09:16:48 +01:00
Kamil Mysliwiec
ad27807e12 Update packages/microservices/client/client-rmq.ts 2020-10-30 09:05:14 +01:00
Kamil Mysliwiec
5b3c664c8c Update packages/microservices/interfaces/microservice-configuration.interface.ts 2020-10-30 09:04:51 +01:00
Kamil Mysliwiec
5fc57bd3f2 Update packages/microservices/server/server-rmq.ts 2020-10-30 09:04:37 +01:00
Hossein Mayboudi
5b8d765903 fix(microservice): Fix KafkaServer constructor
Issue Number: #5599
2020-10-30 11:20:05 +03:30
Michael Solomon
e40a83fbe5 fix 2020-10-29 21:03:18 +02:00
Michael Solomon
c7b6eba2f1 fix 2020-10-29 20:03:00 +02:00
Andrei Alecu
cc9a912d0a fix(): add optional dependencies to package.json 2020-10-29 16:07:24 +02:00
Jay McDoniel
fca4aceb8b fix: address pr comments 2020-10-29 07:01:26 -07:00
Kamil Mysliwiec
da13cca8cd Merge pull request #5625 from nestjs/princechauhan1992-added-abort-on-error-in-nestapplication-context-options
Princechauhan1992 added abort on error in nestapplication context options
2020-10-29 14:30:24 +01:00
Kamil Mysliwiec
c34d08dbfe Merge pull request #5327 from princechauhan1992/added-abort-on-error-in-nestapplication-context-options
feat(core): Add abortOnError option in NestApplicationContextOptions
2020-10-29 14:22:33 +01:00
Kamil Myśliwiec
437955f68d refactor(): move rethrow to a dedicated file, run format 2020-10-29 14:21:32 +01:00
Kamil Myśliwiec
6bb6eba781 Merge branch 'added-abort-on-error-in-nestapplication-context-options' of https://github.com/princechauhan1992/nest into princechauhan1992-added-abort-on-error-in-nestapplication-context-options 2020-10-29 14:01:42 +01:00
Kamil Mysliwiec
e270c6ada2 Update packages/common/interfaces/nest-application-context-options.interface.ts 2020-10-29 14:00:51 +01:00
Kamil Mysliwiec
68a0abacbf Update packages/common/interfaces/nest-application-context-options.interface.ts 2020-10-29 14:00:32 +01:00
Kamil Mysliwiec
b36ef52219 Merge pull request #5422 from willsoto/fix/kafka-microservice
fix(microservice/kafka): properly await disconnect promises
2020-10-29 13:55:22 +01:00
Kamil Mysliwiec
a13eb17fd9 Merge pull request #5570 from nestjs/renovate/nodemon-2.x
chore(deps): update dependency nodemon to v2.0.6
2020-10-29 13:54:12 +01:00
Kamil Mysliwiec
255da6b8b0 Merge branch 'master' into renovate/nodemon-2.x 2020-10-29 13:54:05 +01:00
Kamil Mysliwiec
1cfc5ce5c1 Merge pull request #5485 from kiwikern/logger-log-level-types
fix(core): allow setting log level after app creation
2020-10-29 13:53:09 +01:00
Kamil Mysliwiec
f9930ca1cf Merge pull request #5443 from mkaufmaner/5442-update-kafka-interface
feat(microservices): Updates Kafka options interface
2020-10-29 13:52:33 +01:00
Kamil Mysliwiec
0f3bbeca73 Merge pull request #5494 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.5.0
2020-10-29 13:51:20 +01:00
Kamil Mysliwiec
7bf900abe4 Merge pull request #5498 from kkoomen/feature/validation-pipe
feat(validation pipe): use protected methods instead of private
2020-10-29 13:51:07 +01:00
Kamil Mysliwiec
ed62048d0f Merge pull request #5530 from borovik96/issue-4874
bugfix(microservices/nats): check replyTo channel existence
2020-10-29 13:50:32 +01:00
Kamil Mysliwiec
8caf6d7853 Update packages/microservices/server/server-nats.ts 2020-10-29 13:49:46 +01:00
Kamil Mysliwiec
f0cd1cec49 Merge pull request #5547 from jmcdo29/feat/validation-pipe-protected-methods
feat(common): gives validation pipe protected package loads
2020-10-29 13:46:28 +01:00
Kamil Mysliwiec
1f7cf0bcfb Merge pull request #5571 from bcldvd/feature/misdirected-exceptions
feat(common-exceptions): Add Misdirected exception and status code enum
2020-10-29 13:46:00 +01:00
Kamil Mysliwiec
486cdb5cf7 Merge pull request #5597 from itsa-sh/persistent-messages
feature(microservices): Add persistent property to RmqOptions
2020-10-29 13:45:39 +01:00
Kamil Mysliwiec
3156f74a9b Merge pull request #5623 from nestjs/fix/async-middleware-order
fix(core): fix request scoped middleware execution order #5612
2020-10-29 13:45:13 +01:00
Kamil Mysliwiec
858179d13b Merge pull request #5622 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.15
2020-10-29 13:38:16 +01:00
Kamil Myśliwiec
001eff418c fix(core): fix request scoped middleware execution order #5612 2020-10-29 12:56:49 +01:00
Kamil Mysliwiec
82203beb64 Merge pull request #5620 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo
2020-10-29 12:53:14 +01:00
Kamil Mysliwiec
5e827738d3 Merge pull request #5621 from nestjs/renovate/chai-4.x
chore(deps): update dependency @types/chai to v4.2.14
2020-10-29 12:43:42 +01:00
Renovate Bot
aaa60acfc0 chore(deps): update dependency @types/jest to v26.0.15 2020-10-29 10:47:16 +00:00
Renovate Bot
6645715f38 chore(deps): update dependency @types/chai to v4.2.14 2020-10-29 09:53:21 +00:00
Renovate Bot
9cab885939 chore(deps): update babel monorepo 2020-10-29 09:44:16 +00:00
Kamil Mysliwiec
a3446a5134 Merge pull request #5565 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.7
2020-10-29 10:34:41 +01:00
ccappai
f51b8f820b feature(microservices): update acceptable types in RabbitMq options 2020-10-29 10:28:24 +01:00
Kamil Mysliwiec
53f44f5062 Merge pull request #5549 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.2.9
2020-10-29 10:03:09 +01:00
Kamil Mysliwiec
275fb49285 Merge pull request #5550 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.10
2020-10-29 10:03:02 +01:00
Kamil Mysliwiec
02e5ace296 Merge pull request #5556 from nestjs/renovate/cors-2.x
chore(deps): update dependency @types/cors to v2.8.8
2020-10-29 10:02:17 +01:00
Kamil Mysliwiec
504aeadd26 Merge pull request #5562 from nestjs/renovate/ts-morph-8.x
chore(deps): update dependency ts-morph to v8.1.2
2020-10-29 10:01:46 +01:00
Kamil Mysliwiec
59a5f550c5 Merge pull request #5546 from nestjs/renovate/bull-3.x
chore(deps): update dependency @types/bull to v3.14.4
2020-10-29 10:00:49 +01:00
Kamil Mysliwiec
579e2d416f Merge pull request #5567 from nestjs/renovate/redis-2.x
chore(deps): update dependency @types/redis to v2.8.28
2020-10-29 10:00:34 +01:00
Kamil Mysliwiec
784746dcaf Merge pull request #5559 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5
2020-10-29 10:00:15 +01:00
Kamil Mysliwiec
e5d29c4c6f Merge pull request #5534 from nestjs/renovate/light-my-request-4.x
fix(deps): update dependency light-my-request to v4.2.1
2020-10-29 10:00:10 +01:00
Kamil Mysliwiec
d53c3adf99 Merge pull request #5535 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.6.1
2020-10-29 09:59:56 +01:00
Kamil Mysliwiec
c2373e13e5 Merge pull request #5537 from nestjs/renovate/tslib-2.x
fix(deps): update dependency tslib to v2.0.3
2020-10-29 09:59:42 +01:00
Kamil Mysliwiec
fbe19eaa25 Merge pull request #5540 from nestjs/renovate/imports-loader-1.x
chore(deps): update dependency imports-loader to v1.2.0
2020-10-29 09:59:25 +01:00
Kamil Mysliwiec
b2ff5fd6bc Merge pull request #5538 from nestjs/renovate/sinon-9.x
chore(deps): update dependency sinon to v9.2.0
2020-10-29 09:59:08 +01:00
Hyuni
47f4e2ec10 Merge pull request #1 from nestjs/master
sync from nest
2020-10-28 16:48:04 +08:00
Kamil Mysliwiec
d33f4a6bc7 Merge pull request #5583 from kaznovac/patch-4
refactor(microservices): typo deffered -> deferred
2020-10-27 12:33:13 +01:00
Kamil Mysliwiec
ee585b3e88 Merge pull request #5581 from glenwinters/use-guards-test-wording
test: fix guard decorator test names
2020-10-27 12:32:07 +01:00
Kamil Mysliwiec
727f3134de Merge pull request #5580 from kaznovac/patch-3
test(microservices): fix typo Deffered -> Deferred
2020-10-27 12:31:28 +01:00
ccappai
b8c479ebe5 feature(microservices): update acceptable types in RabbitMq urls 2020-10-26 11:38:20 +01:00
Michael Solomon
dbcc366227 fix(common): expectedType get overriden by metatype 2020-10-25 18:55:59 +02:00
Renovate Bot
cf81ae7bc9 chore(deps): update dependency ts-loader to v8.0.7 2020-10-24 12:03:08 +00:00
Renovate Bot
1a9f1c9ee4 fix(deps): update dependency mongoose to v5.10.10 2020-10-23 18:21:21 +00:00
Renovate Bot
8c5904a7e6 chore(deps): update dependency jest to v26.6.1 2020-10-23 10:00:30 +00:00
Ashley Meadows
491d1934ad chore(microservices): Add persistent property to RmqOptions
Adding the persistent property to RmqOptions so messages do not get lost should the RabbitMQ broker restart.
2020-10-22 21:25:11 +01:00
Renovate Bot
227087bb5a chore(deps): update dependency webpack to v5 2020-10-22 17:13:42 +00:00
Renovate Bot
3778752392 fix(deps): update dependency light-my-request to v4.2.1 2020-10-20 08:43:42 +00:00
Renovate Bot
ed99cc664e chore(deps): update dependency nodemon to v2.0.6 2020-10-19 18:53:55 +00:00
Renovate Bot
6de9092a84 chore(deps): update typescript-eslint monorepo to v4.5.0 2020-10-19 18:05:17 +00:00
Renovate Bot
ca0a6abd18 fix(deps): update dependency fastify to v3.7.0 2020-10-19 16:47:47 +00:00
Marko Kaznovac
d0aef45690 refactor(microservices): typo deffered -> deferred 2020-10-19 10:57:32 +02:00
Glen Winters
3ba857f28c test: fix guard decorator test names 2020-10-19 00:34:14 -05:00
Marko Kaznovac
53fe9a2afe test(microservices): fix typo Deffered -> Deferred
fix typo in test
2020-10-18 18:48:52 +02:00
Renovate Bot
9a0b096a6b fix(deps): update dependency fast-json-stringify to v2.2.9 2020-10-14 15:59:19 +00:00
David
33d41bd2c4 feat(common-exceptions): Add Misdirected exception and status code enum 2020-10-14 17:10:05 +02:00
Renovate Bot
b2d08d6295 chore(deps): update dependency @types/redis to v2.8.28 2020-10-13 14:57:53 +00:00
soyuka
7850c9ab70 fix(sse): Drain stream as recommended 2020-10-13 11:45:55 +02:00
soyuka
e0e1febf5f test(sse): Test sse 2020-10-13 11:45:54 +02:00
soyuka
98c3c9859a feat(sse): Implement Server-Sent Events
See discussion in #4826
2020-10-13 11:43:30 +02:00
Renovate Bot
93d29c7847 chore(deps): update dependency ts-morph to v8.1.2 2020-10-12 14:32:04 +00:00
Renovate Bot
d89554a842 chore(deps): update dependency @types/cors to v2.8.8 2020-10-12 01:16:49 +00:00
Renovate Bot
ae5ddbc400 fix(deps): update dependency tslib to v2.0.3 2020-10-10 00:12:44 +00:00
Jay McDoniel
4355bcac0c feat(common): gives validation pipe protected package loads
By having the `loadPackage` for `class-validator` and
`class-transformer` under `protected` methods, other devs can now
decide if they want to use different validation packages, like
`class-validator-multi-lang` but by default will still use the standard
`class-validator` and `class-transformer`.

fix #5542
2020-10-08 22:09:13 -07:00
Renovate Bot
3bb12041e0 chore(deps): update dependency @types/bull to v3.14.4 2020-10-08 20:33:12 +00:00
Renovate Bot
544c2997c5 chore(deps): update dependency imports-loader to v1.2.0 2020-10-07 14:19:19 +00:00
Renovate Bot
a633f27bf3 chore(deps): update dependency sinon to v9.2.0 2020-10-06 19:19:48 +00:00
Kamil Mysliwiec
513080d8f7 Merge pull request #5529 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.5.0
2020-10-06 08:55:37 +02:00
Kamil Mysliwiec
948226eba7 Merge pull request #5531 from nestjs/renovate/chai-4.x
chore(deps): update dependency @types/chai to v4.2.13
2020-10-06 08:55:30 +02:00
Kamil Mysliwiec
f497e574cf Merge pull request #5533 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.8
2020-10-06 08:55:00 +02:00
Kamil Mysliwiec
ce8039a2e1 Merge pull request #5532 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.18.2
2020-10-06 08:52:34 +02:00
Renovate Bot
f41e5f4588 fix(deps): update dependency mongoose to v5.10.8 2020-10-05 21:52:00 +00:00
Renovate Bot
87b6513ded fix(deps): update apollo graphql packages to v2.18.2 2020-10-05 19:23:13 +00:00
Vladimir Borovik
4d7c2651dc fix(microservices/nats): Check replyTo channel existence 2020-10-05 20:36:49 +03:00
Renovate Bot
3d25c24cb9 chore(deps): update dependency @types/chai to v4.2.13 2020-10-05 16:06:09 +00:00
Renovate Bot
76ad06bced chore(deps): update dependency jest to v26.5.0 2020-10-05 11:40:44 +00:00
Kamil Mysliwiec
a7a427def7 Merge pull request #5473 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.18.1
2020-10-05 11:45:56 +02:00
Kamil Mysliwiec
38512b5db0 Merge pull request #5504 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.2.28
2020-10-05 11:30:13 +02:00
Kamil Mysliwiec
25bde97900 Merge pull request #5503 from nestjs/renovate/sinon-9.x
chore(deps): update dependency sinon to v9.1.0
2020-10-05 11:21:55 +02:00
Kamil Mysliwiec
0055eb97cf Merge pull request #5495 from nestjs/renovate/ws-7.x
chore(deps): update dependency @types/ws to v7.2.7
2020-10-05 10:56:00 +02:00
Kamil Mysliwiec
99be2f16b7 Merge pull request #5500 from nestjs/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26.4.1
2020-10-05 10:55:35 +02:00
Kamil Mysliwiec
667c742e72 Merge pull request #5506 from nestjs/renovate/bull-3.x
chore(deps): update dependency @types/bull to v3.14.3
2020-10-05 10:55:15 +02:00
Kamil Mysliwiec
f4be8d034b Merge pull request #5509 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.5.1
2020-10-05 10:55:03 +02:00
Kamil Mysliwiec
e562440988 Merge pull request #5508 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.2.4
2020-10-05 10:54:53 +02:00
Kamil Mysliwiec
a3896e433e Merge pull request #5512 from nestjs/renovate/docker-confluentinc-cp-zookeeper-5.x
chore(deps): update confluentinc/cp-zookeeper docker tag to v5.5.2
2020-10-05 10:54:22 +02:00
Kamil Mysliwiec
62bccbbe86 Merge pull request #5510 from nestjs/renovate/socket.io-packages
chore(deps): update dependency socket.io-client to v2.3.1
2020-10-05 10:54:15 +02:00
Kamil Mysliwiec
04a4f7aa96 Merge pull request #5511 from nestjs/renovate/docker-confluentinc-cp-kafka-5.x
chore(deps): update confluentinc/cp-kafka docker tag to v5.5.2
2020-10-05 10:54:08 +02:00
Kamil Mysliwiec
ba807c9a19 Merge pull request #5515 from mvegter/docs/typo
fix(docs): corrected spelling mistake in JSDoc
2020-10-05 10:53:59 +02:00
Kamil Mysliwiec
59996b9703 Merge pull request #5518 from nestjs/renovate/light-my-request-4.x
fix(deps): update dependency light-my-request to v4.1.0
2020-10-05 10:53:40 +02:00
Kamil Mysliwiec
12e5af85ad Merge pull request #5527 from nestjs/renovate/fastify-static-3.x
fix(deps): update dependency fastify-static to v3.2.1
2020-10-05 10:53:04 +02:00
Kamil Mysliwiec
9316e5a168 Merge pull request #5528 from nestjs/renovate/uuid-8.x
fix(deps): update dependency uuid to v8.3.1
2020-10-05 10:52:51 +02:00
Renovate Bot
d80deb2caf fix(deps): update dependency uuid to v8.3.1 2020-10-05 01:26:15 +00:00
Renovate Bot
a70632ebe1 fix(deps): update dependency fastify-static to v3.2.1 2020-10-05 01:24:16 +00:00
Renovate Bot
5a2893b845 chore(deps): update dependency sinon to v9.1.0 2020-10-04 22:02:26 +00:00
Renovate Bot
8719277226 fix(deps): update dependency fastify to v3.5.1 2020-10-04 11:25:12 +00:00
Jay McDoniel
854b1db006 test(file-upload): creates an example and test for file uploading 2020-10-03 14:21:43 -07:00
Jay McDoniel
6266e1995a fix(sample): fix testing failurefrom chai import 2020-10-03 12:05:00 -07:00
Jay McDoniel
5a8909bfdb test(jwt-sample): adds tests to the jwt to show e2e flow works 2020-10-03 11:34:36 -07:00
Renovate Bot
fbd354fb86 fix(deps): update dependency light-my-request to v4.1.0 2020-10-01 21:50:16 +00:00
Martijn Vegter
4bc2b46d1e fix(docs): corrected spelling mistake in JSDoc 2020-10-01 09:33:16 +02:00
Renovate Bot
4685e985d7 chore(deps): update confluentinc/cp-zookeeper docker tag to v5.5.2 2020-09-30 19:56:39 +00:00
Renovate Bot
a6a5e58fae chore(deps): update confluentinc/cp-kafka docker tag to v5.5.2 2020-09-30 19:56:26 +00:00
Renovate Bot
e63ea9d91c chore(deps): update dependency socket.io-client to v2.3.1 2020-09-30 16:40:40 +00:00
Renovate Bot
37ce272fcb fix(deps): update dependency typeorm to v0.2.28 2020-09-30 14:33:36 +00:00
Renovate Bot
91f8207718 fix(deps): update dependency graphql-tools to v6.2.4 2020-09-30 07:42:48 +00:00
Renovate Bot
5d6c74a02d chore(deps): update dependency @types/bull to v3.14.3 2020-09-30 03:12:29 +00:00
Renovate Bot
f6bffc445d chore(deps): update dependency ts-jest to v26.4.1 2020-09-29 11:03:13 +00:00
Kamil Mysliwiec
1450eb490a Merge pull request #5496 from nestjs/renovate/gulp-4.x
chore(deps): update dependency @types/gulp to v4.0.7
2020-09-29 08:26:16 +02:00
Renovate Bot
d5b75ad102 chore(deps): update dependency @types/gulp to v4.0.7 2020-09-29 02:52:33 +00:00
Kim 金可明
e2a157725c feat(validation pipe): use protected methods instead of private 2020-09-29 10:47:45 +08:00
Renovate Bot
f8dfcf788a chore(deps): update dependency @types/ws to v7.2.7 2020-09-28 23:03:34 +00:00
Kamil Mysliwiec
ab9d3ef6fb Merge pull request #5489 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.10.0
2020-09-28 09:07:04 +02:00
Kamil Mysliwiec
3dd487030f Merge pull request #5488 from nestjs/renovate/sinon-9.x
chore(deps): update dependency @types/sinon to v9.0.6
2020-09-28 09:06:32 +02:00
Kamil Mysliwiec
80a43751fa Merge pull request #5476 from nestjs/renovate/supertest-5.x
chore(deps): update dependency supertest to v5
2020-09-28 09:02:53 +02:00
Kamil Mysliwiec
4493bf07da Merge pull request #5474 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.7
2020-09-28 09:02:39 +02:00
Kamil Mysliwiec
376fff2a60 Merge pull request #5471 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.6.0
2020-09-28 09:02:22 +02:00
Kamil Mysliwiec
42f8c6aee1 Merge pull request #5490 from nestjs/renovate/eslint-plugin-import-2.x
chore(deps): update dependency eslint-plugin-import to v2.22.1
2020-09-28 09:02:04 +02:00
Renovate Bot
668a02726a chore(deps): update dependency eslint-plugin-import to v2.22.1 2020-09-28 02:19:01 +00:00
Renovate Bot
20dcade8f2 chore(deps): update dependency eslint to v7.10.0 2020-09-28 00:46:49 +00:00
Renovate Bot
74bec8ebb0 chore(deps): update dependency @types/sinon to v9.0.6 2020-09-28 00:20:49 +00:00
Kim Kern
69ada75280 fix(core): allow setting log level after app creation
So far, they types only allowed to set the log level within the application options, and not when calling app.useLogger(), although internally, they call the same method.
closes @nestjs/nest#5484
2020-09-27 20:27:06 +02:00
Renovate Bot
2253c19243 chore(deps): update dependency supertest to v5 2020-09-25 14:02:20 +00:00
Renovate Bot
c39d4ca4dd fix(deps): update dependency mongoose to v5.10.7 2020-09-24 21:33:02 +00:00
Renovate Bot
e3743e4d54 fix(deps): update apollo graphql packages to v2.18.1 2020-09-24 19:22:39 +00:00
Renovate Bot
fdca922ef3 fix(deps): update dependency point-of-view to v4.6.0 2020-09-24 16:05:23 +00:00
Will
4f96edfaa7 fix(microservice/kafka): properly await disconnect promises
`producer.disconnect()` and `consumer.disconnect()` are promises.
Since they weren't being `await`ed properly, you would have Kafka code that
would attempt to execute after teardown. By waiting for the promises, those errors
go away.

Official documentation: https://kafka.js.org/docs/getting-started

Closes #4830
2020-09-24 08:11:24 -04:00
Kamil Mysliwiec
09fbc83108 Merge pull request #5468 from nestjs/renovate/nestjs-schedule-0.x
fix(deps): update dependency @nestjs/schedule to v0.4.1
2020-09-23 14:46:01 +02:00
Renovate Bot
f60f8d39e5 fix(deps): update dependency @nestjs/schedule to v0.4.1 2020-09-23 12:13:34 +00:00
Kamil Mysliwiec
ac070b80f9 Merge pull request #5463 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.18.0
2020-09-22 09:37:31 +02:00
Kamil Mysliwiec
965667a771 Merge pull request #5461 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.2.0
2020-09-22 08:19:19 +02:00
Kamil Mysliwiec
04b0659ab1 Merge pull request #5456 from nestjs/renovate/nestjs-bull-0.x
fix(deps): update dependency @nestjs/bull to v0.2.2
2020-09-22 08:15:51 +02:00
Kamil Mysliwiec
1fb3efd979 Merge pull request #5458 from nestjs/renovate/nestjs-graphql-7.x
fix(deps): update dependency @nestjs/graphql to v7.7.0
2020-09-22 08:14:46 +02:00
Kamil Mysliwiec
bca5c43502 Merge pull request #5459 from nestjs/renovate/mysql2-2.x
fix(deps): update dependency mysql2 to v2.2.5
2020-09-22 08:14:37 +02:00
Renovate Bot
9d20096d71 fix(deps): update apollo graphql packages to v2.18.0 2020-09-22 05:36:41 +00:00
Renovate Bot
70b17a1c73 chore(deps): update typescript-eslint monorepo to v4.2.0 2020-09-21 17:50:23 +00:00
Renovate Bot
4a8a066b65 fix(deps): update dependency mysql2 to v2.2.5 2020-09-21 12:32:54 +00:00
Kamil Myśliwiec
e8cf9fc248 sample(): update swagger and graphql code first samples 2020-09-21 13:30:50 +02:00
Renovate Bot
5c8809cd88 fix(deps): update dependency @nestjs/graphql to v7.7.0 2020-09-21 11:28:58 +00:00
Renovate Bot
0d5c766684 fix(deps): update dependency @nestjs/bull to v0.2.2 2020-09-21 10:46:43 +00:00
Kamil Mysliwiec
2879dc689b Merge pull request #5420 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.1.1
2020-09-21 12:33:46 +02:00
Kamil Mysliwiec
b3d5249ded Merge pull request #5450 from nestjs/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26.4.0
2020-09-21 12:30:05 +02:00
Kamil Mysliwiec
b8a0a3066e Merge pull request #5446 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.6
2020-09-21 12:29:55 +02:00
Kamil Mysliwiec
32e5aa4d5a Merge pull request #5432 from nestjs/renovate/lint-staged-10.x
chore(deps): update dependency lint-staged to v10.4.0
2020-09-21 12:29:45 +02:00
Renovate Bot
f315f05a2a chore(deps): update dependency ts-jest to v26.4.0 2020-09-21 10:09:14 +00:00
Renovate Bot
7a130b07e5 chore(deps): update dependency lint-staged to v10.4.0 2020-09-21 08:37:51 +00:00
Renovate Bot
20f0106efa fix(deps): update dependency mongoose to v5.10.6 2020-09-21 08:32:22 +00:00
Kamil Mysliwiec
cdae4b3aae Merge pull request #5441 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.2.7
2020-09-21 10:08:00 +02:00
Kamil Mysliwiec
e3aac1d546 Merge pull request #5445 from nestjs/renovate/typescript-4.x
chore(deps): update dependency typescript to v4.0.3
2020-09-21 10:07:37 +02:00
Kamil Mysliwiec
cc374e705f Merge pull request #5451 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.4
2020-09-21 10:07:21 +02:00
Kamil Mysliwiec
2fb28d077e Merge pull request #5452 from nestjs/renovate/ts-morph-8.x
chore(deps): update dependency ts-morph to v8.1.1
2020-09-21 10:07:16 +02:00
Kamil Mysliwiec
e90bebfb84 Merge pull request #5453 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.2.3
2020-09-21 10:07:10 +02:00
Kamil Mysliwiec
457b8488ca Merge pull request #5454 from nestjs/renovate/mysql2-2.x
fix(deps): update dependency mysql2 to v2.2.3
2020-09-21 10:06:47 +02:00
Renovate Bot
c20c232ac2 fix(deps): update dependency mysql2 to v2.2.3 2020-09-21 04:07:21 +00:00
Renovate Bot
3191168116 fix(deps): update dependency graphql-tools to v6.2.3 2020-09-21 03:21:30 +00:00
Renovate Bot
b26ea7c349 chore(deps): update dependency ts-morph to v8.1.1 2020-09-21 03:18:09 +00:00
Renovate Bot
3f7a40fdd9 chore(deps): update dependency ts-loader to v8.0.4 2020-09-21 02:07:07 +00:00
Renovate Bot
f1092a9a12 chore(deps): update dependency typescript to v4.0.3 2020-09-18 20:41:06 +00:00
Michael Kaufman
c77e7412f3 feat(microservices): Updates Kafka options interface 2020-09-18 10:04:05 -04:00
Renovate Bot
4725935f23 fix(deps): update dependency fast-json-stringify to v2.2.7 2020-09-18 09:29:45 +00:00
Kamil Mysliwiec
3c86401c45 Merge pull request #5437 from nestjs/renovate/webpack-4.x
chore(deps): update dependency webpack to v4.44.2
2020-09-18 09:08:39 +02:00
Kamil Mysliwiec
cde348cac2 Merge pull request #5434 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.14
2020-09-18 09:08:28 +02:00
Kamil Mysliwiec
511dca61e7 Merge pull request #5438 from nestjs/renovate/mysql2-2.x
fix(deps): update dependency mysql2 to v2.2.1
2020-09-18 09:08:06 +02:00
Renovate Bot
0c6906f964 fix(deps): update dependency mysql2 to v2.2.1 2020-09-18 06:19:20 +00:00
Renovate Bot
6f9afed3d1 chore(deps): update dependency webpack to v4.44.2 2020-09-18 00:03:22 +00:00
Renovate Bot
cf8eb91bdb chore(deps): update dependency @types/jest to v26.0.14 2020-09-16 16:18:38 +00:00
Kamil Mysliwiec
95c48f8ef3 Merge pull request #5418 from nestjs/renovate/nestjs-typeorm-7.x
fix(deps): update dependency @nestjs/typeorm to v7.1.4
2020-09-16 08:16:29 +02:00
Kamil Mysliwiec
81959f2499 Merge pull request #5419 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.4.1
2020-09-16 08:16:22 +02:00
Kamil Mysliwiec
e309ee7b43 Merge pull request #5424 from nestjs/renovate/wrk-1.x
chore(deps): update dependency wrk to v1.2.1
2020-09-16 08:16:15 +02:00
Kamil Mysliwiec
8fb1286592 Merge pull request #5429 from nestjs/renovate/prettier-2.x
chore(deps): update dependency prettier to v2.1.2
2020-09-16 08:12:17 +02:00
Renovate Bot
299a4efc55 chore(deps): update dependency prettier to v2.1.2 2020-09-16 01:45:52 +00:00
Renovate Bot
314e9a845d chore(deps): update dependency wrk to v1.2.1 2020-09-14 23:53:22 +00:00
Renovate Bot
23c1dd03a8 chore(deps): update typescript-eslint monorepo to v4.1.1 2020-09-14 17:30:11 +00:00
Renovate Bot
ed41c10f03 fix(deps): update dependency fastify to v3.4.1 2020-09-14 13:18:14 +00:00
Renovate Bot
2fb521b4b3 fix(deps): update dependency @nestjs/typeorm to v7.1.4 2020-09-14 07:11:06 +00:00
Kamil Mysliwiec
77a9980469 Merge pull request #5400 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.5.1
2020-09-14 08:40:38 +02:00
Kamil Mysliwiec
4690c088b2 Merge pull request #5406 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/node-fetch-2.6.1
chore(deps): bump node-fetch from 2.6.0 to 2.6.1 in /sample/01-cats-app
2020-09-14 08:40:31 +02:00
Kamil Mysliwiec
850f262734 Merge pull request #5408 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.5
2020-09-14 08:40:25 +02:00
Kamil Mysliwiec
42866dd675 Merge pull request #5411 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/node-fetch-2.6.1
chore(deps): bump node-fetch from 2.6.0 to 2.6.1 in /sample/13-mongo-typeorm
2020-09-14 08:40:17 +02:00
Kamil Mysliwiec
87cac7319d Merge pull request #5414 from nestjs/renovate/amqp-connection-manager-3.x
chore(deps): update dependency amqp-connection-manager to v3.2.1
2020-09-14 08:40:10 +02:00
Kamil Mysliwiec
f0f9227a6d Merge pull request #5416 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.2.2
2020-09-14 08:40:02 +02:00
Kamil Mysliwiec
f8ada756f1 Merge pull request #5415 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.9.0
2020-09-14 08:39:53 +02:00
Kamil Mysliwiec
9b083b524c Merge pull request #5417 from nestjs/renovate/major-commitlint-monorepo
chore(deps): update commitlint monorepo to v11 (major)
2020-09-14 08:21:33 +02:00
Renovate Bot
67eb94aab2 chore(deps): update commitlint monorepo to v11 2020-09-14 03:00:31 +00:00
Renovate Bot
8580144282 fix(deps): update dependency graphql-tools to v6.2.2 2020-09-14 01:28:06 +00:00
Renovate Bot
5c39256280 chore(deps): update dependency eslint to v7.9.0 2020-09-14 01:00:35 +00:00
Renovate Bot
f91ac064a4 chore(deps): update dependency amqp-connection-manager to v3.2.1 2020-09-14 00:38:01 +00:00
dependabot[bot]
e426cfa441 chore(deps): bump node-fetch in /sample/13-mongo-typeorm
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 16:40:49 +00:00
Renovate Bot
65e4227806 fix(deps): update dependency mongoose to v5.10.5 2020-09-11 17:36:46 +00:00
Renovate Bot
84dd134d03 fix(deps): update dependency point-of-view to v4.5.1 2020-09-11 06:54:20 +00:00
dependabot[bot]
64403b7105 chore(deps): bump node-fetch from 2.6.0 to 2.6.1 in /sample/01-cats-app
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-11 06:51:09 +00:00
Kamil Mysliwiec
6870e70621 Merge pull request #5404 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.6.2
2020-09-11 08:49:07 +02:00
Kamil Mysliwiec
9ee34cad2c Merge pull request #5403 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.2.6
2020-09-11 08:48:59 +02:00
Kamil Mysliwiec
d0cc307ce2 Merge pull request #5401 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.2.26
2020-09-11 08:48:53 +02:00
Kamil Mysliwiec
d42ff22cd6 Merge pull request #5399 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.4
2020-09-11 08:48:31 +02:00
Kamil Mysliwiec
61069bf6c0 Merge pull request #5373 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io-redis to v5.4.0
2020-09-11 08:48:21 +02:00
Renovate Bot
343dbea98f fix(deps): update dependency mongodb to v3.6.2 2020-09-10 18:43:50 +00:00
Renovate Bot
34af4a6d3d fix(deps): update dependency fast-json-stringify to v2.2.6 2020-09-10 14:27:09 +00:00
Renovate Bot
736e956fe1 fix(deps): update dependency typeorm to v0.2.26 2020-09-10 07:39:16 +00:00
Renovate Bot
8a93acaf4a fix(deps): update dependency mongoose to v5.10.4 2020-09-09 16:05:51 +00:00
Kamil Mysliwiec
4139b3c980 Merge pull request #5397 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.1.2
2020-09-08 10:29:05 +02:00
Renovate Bot
d7f9d35349 chore(deps): update dependency @nestjs/schematics to v7.1.2 2020-09-08 08:05:22 +00:00
Kamil Mysliwiec
6a6de086c8 Merge pull request #5395 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4.1.0
2020-09-08 08:46:14 +02:00
Renovate Bot
5b5c6273ce chore(deps): update typescript-eslint monorepo to v4.1.0 2020-09-07 18:51:34 +00:00
Kamil Mysliwiec
89dc0f19ff Merge pull request #5364 from nestjs/renovate/nestjs-typeorm-7.x
fix(deps): update dependency @nestjs/typeorm to v7.1.3
2020-09-07 14:16:05 +02:00
Kamil Mysliwiec
becf40be9a Merge pull request #5360 from nestjs/renovate/major-typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v4 (major)
2020-09-07 14:15:43 +02:00
Kamil Mysliwiec
c46511cc9a Merge pull request #5367 from nestjs/renovate/express-4.x
chore(deps): update dependency @types/express to v4.17.8
2020-09-07 13:55:54 +02:00
Kamil Mysliwiec
e143096f3c Merge pull request #5365 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.2.1
2020-09-07 13:54:47 +02:00
Kamil Mysliwiec
449953710e Merge pull request #5393 from nestjs/renovate/husky-4.x
chore(deps): update dependency husky to v4.3.0
2020-09-07 13:54:34 +02:00
Kamil Mysliwiec
85c6be1a40 Merge pull request #5374 from kkoomen/feature/ignore-buffer-metatype
Ignore Buffer metatypes in validation pipe
2020-09-07 13:07:10 +02:00
Renovate Bot
8ec5417360 chore(deps): update typescript-eslint monorepo to v4 2020-09-07 10:52:58 +00:00
Renovate Bot
110e60f355 fix(deps): update dependency socket.io-redis to v5.4.0 2020-09-07 10:30:27 +00:00
Renovate Bot
5b886fec7e fix(deps): update dependency graphql-tools to v6.2.1 2020-09-07 10:29:26 +00:00
Renovate Bot
90834dc096 fix(deps): update dependency @nestjs/typeorm to v7.1.3 2020-09-07 10:26:30 +00:00
Renovate Bot
fd693927cd chore(deps): update dependency husky to v4.3.0 2020-09-07 10:23:10 +00:00
Renovate Bot
a94317cc46 chore(deps): update dependency @types/express to v4.17.8 2020-09-07 09:38:37 +00:00
Kamil Mysliwiec
d9adc356e4 Merge pull request #5361 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo
2020-09-07 10:56:58 +02:00
Kamil Mysliwiec
9248c40f93 Merge pull request #5362 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.13
2020-09-07 10:56:51 +02:00
Kamil Mysliwiec
f8d7433fe4 Merge pull request #5363 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.8.1
2020-09-07 10:56:45 +02:00
Kamil Mysliwiec
0eb10c2c88 Merge pull request #5368 from nestjs/renovate/cache-manager-3.x
chore(deps): update dependency cache-manager to v3.4.0
2020-09-07 10:56:16 +02:00
Kamil Mysliwiec
d36459fff8 Merge pull request #5369 from nestjs/renovate/redis-2.x
chore(deps): update dependency @types/redis to v2.8.27
2020-09-07 10:56:08 +02:00
Kamil Mysliwiec
acc29ea385 Merge pull request #5370 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.5.0
2020-09-07 10:56:01 +02:00
Kamil Mysliwiec
b7e4afe34e Merge pull request #5376 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.6.1
2020-09-07 10:55:47 +02:00
Kamil Mysliwiec
8c008105c0 Merge pull request #5378 from nestjs/renovate/lint-staged-10.x
chore(deps): update dependency lint-staged to v10.3.0
2020-09-07 10:55:40 +02:00
Kamil Mysliwiec
46fcfd9b64 Merge pull request #5381 from nestjs/renovate/fastify-multipart-3.x
chore(deps): update dependency fastify-multipart to v3.2.0
2020-09-07 10:55:33 +02:00
Kamil Mysliwiec
5e0e0ba22a Merge pull request #5382 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/bl-2.2.1
chore(deps): bump bl from 2.2.0 to 2.2.1 in /sample/13-mongo-typeorm
2020-09-07 10:55:25 +02:00
Kamil Mysliwiec
0ac74d383f Merge pull request #5383 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.3
2020-09-07 10:55:20 +02:00
Kamil Mysliwiec
9200ed6c81 Merge pull request #5390 from nestjs/renovate/fast-json-stringify-2.x
fix(deps): update dependency fast-json-stringify to v2.2.4
2020-09-07 10:55:13 +02:00
Kamil Mysliwiec
9e022ad77b Merge pull request #5391 from nestjs/renovate/rxjs-6.x
fix(deps): update dependency rxjs to v6.6.3
2020-09-07 10:55:07 +02:00
Kamil Mysliwiec
ae45b6a079 Merge pull request #5387 from gelito/patch-1
Update server-rmq.ts
2020-09-07 10:46:46 +02:00
Kamil Mysliwiec
6951502d25 Merge pull request #5389 from nestjs/renovate/rxjs-compat-6.x
chore(deps): update dependency rxjs-compat to v6.6.3
2020-09-07 09:34:25 +02:00
Renovate Bot
dcaba8e2e9 fix(deps): update dependency rxjs to v6.6.3 2020-09-07 02:22:51 +00:00
Renovate Bot
3e024bb9cb fix(deps): update dependency fast-json-stringify to v2.2.4 2020-09-07 00:48:49 +00:00
Renovate Bot
8d7cb60894 chore(deps): update dependency rxjs-compat to v6.6.3 2020-09-07 00:46:34 +00:00
Ángel Luis Quesada Nieto
cfe419f370 Update server-rmq.ts
Changed the private for protected in order to be able to extend and modify the ServerRMQ
2020-09-06 18:05:21 +02:00
Renovate Bot
bbd7ac9219 fix(deps): update dependency mongoose to v5.10.3 2020-09-03 20:16:56 +00:00
dependabot[bot]
8d9f868a91 chore(deps): bump bl from 2.2.0 to 2.2.1 in /sample/13-mongo-typeorm
Bumps [bl](https://github.com/rvagg/bl) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](https://github.com/rvagg/bl/compare/v2.2.0...v2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-03 19:28:11 +00:00
Renovate Bot
4e314b4352 chore(deps): update dependency fastify-multipart to v3.2.0 2020-09-03 18:40:17 +00:00
Renovate Bot
fdef13f3de chore(deps): update babel monorepo 2020-09-03 16:13:47 +00:00
Renovate Bot
f0cbf063e8 chore(deps): update dependency lint-staged to v10.3.0 2020-09-03 08:21:44 +00:00
Renovate Bot
7e93cf759f chore(deps): update dependency @types/jest to v26.0.13 2020-09-02 16:21:37 +00:00
Renovate Bot
968374e0c9 fix(deps): update dependency mongodb to v3.6.1 2020-09-02 13:13:29 +00:00
Kim 金可明
534bb5bc50 feat(validation.pipe): ignore buffer metatypes 2020-09-02 16:28:23 +08:00
Renovate Bot
2b96efd5fb chore(deps): update dependency eslint to v7.8.1 2020-09-01 21:27:42 +00:00
Renovate Bot
6895ae42c1 fix(deps): update dependency point-of-view to v4.5.0 2020-09-01 18:13:34 +00:00
Renovate Bot
4c6d145853 chore(deps): update dependency @types/redis to v2.8.27 2020-09-01 16:30:32 +00:00
Renovate Bot
645b474c49 chore(deps): update dependency cache-manager to v3.4.0 2020-09-01 16:17:01 +00:00
mehdi-sh-hm
1c38a2dd2d feat(common): add support for conditional cache ttl 2020-09-01 04:25:52 -04:00
Kamil Mysliwiec
9af0887613 Merge pull request #5359 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.4.4
2020-08-31 13:32:30 +02:00
Renovate Bot
0472533d39 fix(deps): update nest monorepo to v7.4.4 2020-08-31 11:07:39 +00:00
Kamil Myśliwiec
9c468e3eb4 chore(@nestjs) publish v7.4.4 release 2020-08-31 12:42:41 +02:00
Kamil Myśliwiec
ba61c790e6 Merge branch 'master' of https://github.com/nestjs/nest 2020-08-31 11:53:10 +02:00
Kamil Myśliwiec
ce606e768d fix(platform-fastify): fix exception filter issue (reply ctor) 2020-08-31 11:53:03 +02:00
Kamil Mysliwiec
4d1c1279ae Merge pull request #5349 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.2
2020-08-31 10:03:36 +02:00
Renovate Bot
1f8a953f31 fix(deps): update dependency mongoose to v5.10.2 2020-08-31 07:11:39 +00:00
Kamil Mysliwiec
2d9d912c61 Merge pull request #5357 from nestjs/renovate/confluentinc-cp-kafka-5.x
chore(deps): update confluentinc/cp-kafka docker tag to v5.5.1
2020-08-31 09:03:16 +02:00
Kamil Mysliwiec
0eacce32ea Merge pull request #5351 from nestjs/renovate/mocha-8.x
chore(deps): update dependency mocha to v8.1.3
2020-08-31 09:01:47 +02:00
Kamil Mysliwiec
97efd2b9f7 Merge pull request #5350 from nestjs/renovate/fastify-multipart-3.x
chore(deps): update dependency fastify-multipart to v3.1.0
2020-08-31 09:01:34 +02:00
Kamil Mysliwiec
7eee395044 Merge pull request #5346 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.4.3
2020-08-31 09:01:22 +02:00
Renovate Bot
23008d5b5c chore(deps): update confluentinc/cp-kafka docker tag to v5.5.1 2020-08-31 06:48:24 +00:00
Renovate Bot
eab0cccd4b chore(deps): update dependency mocha to v8.1.3 2020-08-28 21:06:09 +00:00
Renovate Bot
9a2f1e9492 chore(deps): update dependency fastify-multipart to v3.1.0 2020-08-28 15:54:10 +00:00
Kamil Mysliwiec
9bc184cd23 Merge pull request #5348 from nestjs/fix/missing-await-5347
fix(core): add missing await when dynamic modules metadata is stored
2020-08-28 15:19:38 +02:00
Kamil Myśliwiec
4257f04550 fix(core): add missing await when dynamic modules metadata is stored 2020-08-28 15:03:55 +02:00
Renovate Bot
76bf2030d3 fix(deps): update nest monorepo to v7.4.3 2020-08-28 08:54:40 +00:00
Kamil Myśliwiec
e70196b8c2 chore(): update README files 2020-08-28 10:30:06 +02:00
Kamil Myśliwiec
b0094dfb69 chore(@nestjs) publish v7.4.3 release 2020-08-28 10:29:15 +02:00
Kamil Mysliwiec
9fbd535e90 Merge pull request #5343 from nestjs/renovate/fastify-formbody-5.x
fix(deps): update dependency fastify-formbody to v5
2020-08-28 10:28:14 +02:00
Renovate Bot
5a6de920a2 fix(deps): update dependency fastify-formbody to v5 2020-08-28 06:24:32 +00:00
Kamil Mysliwiec
11890547bb Merge pull request #5338 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.1
2020-08-28 08:21:25 +02:00
Kamil Mysliwiec
ac413cd045 Merge pull request #5344 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages to v2.17.0
2020-08-28 08:21:05 +02:00
Renovate Bot
869446a65e fix(deps): update apollo graphql packages to v2.17.0 2020-08-27 18:49:34 +00:00
Renovate Bot
917b09ba52 fix(deps): update dependency mongoose to v5.10.1 2020-08-26 19:33:51 +00:00
Kamil Myśliwiec
9c86cb4086 Merge branch 'master' of https://github.com/nestjs/nest 2020-08-26 15:11:50 +02:00
Kamil Myśliwiec
351e810d69 feat(platform-fastify): use require for dependencies instead of load package util 2020-08-26 15:11:40 +02:00
Kamil Mysliwiec
509c380962 Merge pull request #5333 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.1.0
2020-08-26 14:44:19 +02:00
Kamil Mysliwiec
6a51e73746 Merge pull request #5331 from nestjs/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26.3.0
2020-08-26 14:44:06 +02:00
Kamil Mysliwiec
163b410144 Merge pull request #5334 from nestjs/renovate/fastify-multipart-3.x
chore(deps): update dependency fastify-multipart to v3
2020-08-26 14:43:50 +02:00
Renovate Bot
a555fdab0c chore(deps): update dependency fastify-multipart to v3 2020-08-26 10:34:55 +00:00
Renovate Bot
65a7c3c29c fix(deps): update dependency graphql-tools to v6.1.0 2020-08-26 10:33:05 +00:00
Renovate Bot
48926107d4 chore(deps): update dependency ts-jest to v26.3.0 2020-08-26 07:31:24 +00:00
Kamil Mysliwiec
7ee2b34ae8 Merge pull request #5324 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v3.10.1
2020-08-26 09:21:34 +02:00
Kamil Mysliwiec
17a9ba9486 Merge pull request #5326 from nestjs/renovate/lint-staged-10.x
chore(deps): update dependency lint-staged to v10.2.13
2020-08-26 09:20:41 +02:00
Kamil Mysliwiec
cd33e4bcba Merge pull request #5328 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.3.0
2020-08-26 09:19:46 +02:00
Kamil Mysliwiec
725f5c0b9b Merge pull request #5329 from nestjs/renovate/mocha-8.x
chore(deps): update dependency mocha to v8.1.2
2020-08-26 09:19:35 +02:00
Kamil Mysliwiec
8b7472ac6d Merge pull request #5330 from nestjs/renovate/prettier-2.x
chore(deps): update dependency prettier to v2.1.1
2020-08-26 09:19:17 +02:00
Kamil Mysliwiec
11e0f33052 Update Readme.md 2020-08-26 09:18:18 +02:00
Renovate Bot
24463c9daa chore(deps): update dependency prettier to v2.1.1 2020-08-26 07:07:23 +00:00
Renovate Bot
f30061c03c chore(deps): update dependency mocha to v8.1.2 2020-08-25 19:48:32 +00:00
Renovate Bot
69e05d288f chore(deps): update dependency lint-staged to v10.2.13 2020-08-25 15:53:18 +00:00
Renovate Bot
2bd3382a72 fix(deps): update dependency fastify to v3.3.0 2020-08-25 14:06:32 +00:00
Prince
253f8cc565 Merge branch 'added-abort-on-error-in-nestapplication-context-options' of https://github.com/princechauhan1992/nest into added-abort-on-error-in-nestapplication-context-options 2020-08-25 18:01:04 +05:30
Prince
8b9a1b7425 feat(core): Add abortOnError option in NestApplicationContextOptions 2020-08-25 17:57:21 +05:30
Prince
ddb3a62cac feat(core): Add abortOnError option in NestApplicationContextOptions 2020-08-25 16:45:35 +05:30
Renovate Bot
84a1ed1e7a chore(deps): update typescript-eslint monorepo to v3.10.1 2020-08-25 10:43:47 +00:00
Kamil Mysliwiec
24aaf88052 Merge pull request #5319 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v3.10.0
2020-08-25 09:15:10 +02:00
Kamil Mysliwiec
c03390094c Merge pull request #5321 from nestjs/renovate/mqtt-4.x
chore(deps): update dependency mqtt to v4.2.1
2020-08-25 09:15:03 +02:00
Kamil Mysliwiec
4cdddfcad4 Merge pull request #5322 from nestjs/renovate/ts-morph-8.x
chore(deps): update dependency ts-morph to v8.1.0
2020-08-25 09:14:52 +02:00
Renovate Bot
b003c3fc6a chore(deps): update dependency ts-morph to v8.1.0 2020-08-25 01:51:55 +00:00
Renovate Bot
b0e7f26698 chore(deps): update dependency mqtt to v4.2.1 2020-08-24 21:07:44 +00:00
Renovate Bot
5c4a84a294 chore(deps): update typescript-eslint monorepo to v3.10.0 2020-08-24 19:01:12 +00:00
Kamil Mysliwiec
5e933bd00d Merge pull request #5317 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.3
2020-08-24 14:25:51 +02:00
Kamil Mysliwiec
87be70393c Merge pull request #5318 from nestjs/renovate/prettier-2.x
chore(deps): update dependency prettier to v2.1.0
2020-08-24 14:21:16 +02:00
Renovate Bot
2b84ed43c6 chore(deps): update dependency prettier to v2.1.0 2020-08-24 12:04:05 +00:00
Renovate Bot
4bb4831166 chore(deps): update dependency ts-loader to v8.0.3 2020-08-24 10:21:35 +00:00
Kamil Mysliwiec
6769e66c20 Merge pull request #5315 from nestjs/renovate/nestjs-typeorm-7.x
fix(deps): update dependency @nestjs/typeorm to v7.1.1
2020-08-24 12:00:43 +02:00
Kamil Mysliwiec
258c90af5b Merge pull request #5316 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.4.0
2020-08-24 12:00:07 +02:00
Kamil Mysliwiec
e3983ccc12 Merge pull request #5300 from nestjs/renovate/ts-morph-8.x
chore(deps): update dependency ts-morph to v8
2020-08-24 11:47:14 +02:00
Kamil Mysliwiec
dc60e13f00 Merge pull request #5310 from nestjs/renovate/nest-monorepo
chore(deps): update dependency @nestjs/cli to v7.5.1
2020-08-24 11:46:35 +02:00
Renovate Bot
4344e3a7f6 chore(deps): update dependency ts-morph to v8 2020-08-24 09:13:33 +00:00
Renovate Bot
8bb1d94f65 fix(deps): update dependency point-of-view to v4.4.0 2020-08-24 09:11:29 +00:00
Renovate Bot
bf2446759e fix(deps): update dependency @nestjs/typeorm to v7.1.1 2020-08-24 09:08:37 +00:00
Renovate Bot
6fafaf7241 chore(deps): update dependency @nestjs/cli to v7.5.1 2020-08-24 09:04:48 +00:00
Kamil Mysliwiec
5d340d743e Merge pull request #5296 from nestjs/renovate/nestjs-swagger-4.x
fix(deps): update dependency @nestjs/swagger to v4.6.0
2020-08-24 09:10:59 +02:00
Kamil Mysliwiec
b5d4b2b7c2 Merge pull request #5298 from nestjs/renovate/typescript-4.x
chore(deps): update dependency typescript to v4
2020-08-24 09:10:47 +02:00
Kamil Mysliwiec
973788db8a Merge pull request #5299 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/core to v7.11.4
2020-08-24 09:10:38 +02:00
Kamil Mysliwiec
d3e2c6f487 Merge pull request #5301 from nestjs/renovate/axios-0.x
fix(deps): update dependency axios to v0.20.0
2020-08-24 09:10:26 +02:00
Kamil Mysliwiec
8cb59a6a49 Merge pull request #5303 from nestjs/renovate/redis-2.x
chore(deps): update dependency @types/redis to v2.8.26
2020-08-24 09:10:18 +02:00
Kamil Mysliwiec
e8226fa13a Merge pull request #5304 from nestjs/renovate/ts-node-9.x
chore(deps): update dependency ts-node to v9
2020-08-24 09:10:12 +02:00
Kamil Mysliwiec
7d1fd33563 Merge pull request #5305 from nestjs/renovate/sinon-9.x
chore(deps): update dependency @types/sinon to v9.0.5
2020-08-24 09:10:03 +02:00
Kamil Mysliwiec
0690dd8bf0 Merge pull request #5312 from nestjs/renovate/bull-3.x
chore(deps): update dependency @types/bull to v3.14.2
2020-08-24 09:09:49 +02:00
Kamil Mysliwiec
5220531702 Merge pull request #5311 from nestjs/renovate/nestjs-schematics-7.x
chore(deps): update dependency @nestjs/schematics to v7.1.1
2020-08-24 09:09:42 +02:00
Kamil Mysliwiec
89a3cbafa0 Merge pull request #5313 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.4.2
2020-08-24 09:09:24 +02:00
Renovate Bot
a0591f9eab chore(deps): update dependency jest to v26.4.2 2020-08-24 03:19:25 +00:00
Renovate Bot
3f05bf472d chore(deps): update dependency @types/bull to v3.14.2 2020-08-24 01:22:04 +00:00
Renovate Bot
0669f371ae chore(deps): update dependency @nestjs/schematics to v7.1.1 2020-08-24 01:20:19 +00:00
Renovate Bot
b2f2852fdf chore(deps): update dependency @types/sinon to v9.0.5 2020-08-21 18:58:43 +00:00
Renovate Bot
d468e05d40 chore(deps): update dependency ts-node to v9 2020-08-21 18:32:24 +00:00
Renovate Bot
1296dffeb9 chore(deps): update dependency @types/redis to v2.8.26 2020-08-21 16:38:42 +00:00
Kamil Mysliwiec
6e2638291e Merge pull request #5302 from nestjs/renovate/nestjs-sequelize-0.x
fix(deps): update dependency @nestjs/sequelize to v0.1.1
2020-08-21 10:50:01 +02:00
Renovate Bot
b9f7234ed7 fix(deps): update dependency @nestjs/sequelize to v0.1.1 2020-08-21 08:38:23 +00:00
Renovate Bot
b2d1d46446 fix(deps): update dependency axios to v0.20.0 2020-08-21 03:30:37 +00:00
Renovate Bot
7dc62436dc chore(deps): update dependency @babel/core to v7.11.4 2020-08-20 19:05:44 +00:00
Renovate Bot
2434dc299b chore(deps): update dependency typescript to v4 2020-08-20 17:08:44 +00:00
Renovate Bot
0732ecca0b fix(deps): update dependency @nestjs/swagger to v4.6.0 2020-08-20 11:07:39 +00:00
Kamil Mysliwiec
ed8cd61cca Merge pull request #5275 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.7.0
2020-08-20 11:36:05 +02:00
Kamil Mysliwiec
cf042c08ad Merge pull request #5294 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.4.1
2020-08-20 11:35:46 +02:00
Renovate Bot
84c934361d chore(deps): update dependency jest to v26.4.1 2020-08-20 09:19:03 +00:00
Mike Drakoulelis
35d997c17b fix: stricten unit test file pattern
The unit test file pattern strictly follows the .spec.ts file suffix. This rules out .e2e-spec.ts files from unit tests.

Closes #5293
2020-08-20 12:11:03 +03:00
Renovate Bot
b7b1075c25 chore(deps): update dependency eslint to v7.7.0 2020-08-19 12:41:44 +00:00
Kamil Mysliwiec
18af5289e0 Merge pull request #5269 from nestjs/renovate/bull-3.x
fix(deps): update dependency bull to v3.18.0
2020-08-19 11:58:53 +02:00
Kamil Mysliwiec
f1b6c864a1 Merge pull request #5270 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.10.0
2020-08-19 11:58:45 +02:00
Kamil Mysliwiec
f680471a48 Merge pull request #5276 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.10
2020-08-19 11:58:21 +02:00
Kamil Mysliwiec
97d9ccb0d5 Merge pull request #5280 from nestjs/renovate/commitlint-monorepo
chore(deps): update commitlint monorepo to v9.1.2
2020-08-19 11:58:09 +02:00
Kamil Mysliwiec
29fb923608 Merge pull request #5282 from nestjs/renovate/subscriptions-transport-ws-0.x
chore(deps): update dependency subscriptions-transport-ws to v0.9.18
2020-08-19 11:58:02 +02:00
Kamil Mysliwiec
dfb8eeeaf1 Merge pull request #5284 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.2.1
2020-08-19 11:57:55 +02:00
Kamil Mysliwiec
d11fdc4ad7 Merge pull request #5285 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v3.9.1
2020-08-19 11:57:47 +02:00
Kamil Mysliwiec
87679c3394 Merge pull request #5286 from nestjs/renovate/mocha-8.x
chore(deps): update dependency @types/mocha to v8.0.3
2020-08-19 11:57:35 +02:00
Renovate Bot
621984b555 chore(deps): update dependency @types/mocha to v8.0.3 2020-08-17 20:16:30 +00:00
Renovate Bot
22969a7089 chore(deps): update typescript-eslint monorepo to v3.9.1 2020-08-17 17:53:49 +00:00
Renovate Bot
c827e1ee17 fix(deps): update dependency fastify to v3.2.1 2020-08-17 16:31:51 +00:00
Renovate Bot
563aa9b290 chore(deps): update dependency subscriptions-transport-ws to v0.9.18 2020-08-17 11:51:58 +00:00
Renovate Bot
b9d7a6e98a chore(deps): update commitlint monorepo to v9.1.2 2020-08-17 00:18:10 +00:00
Renovate Bot
9bafe7ee3e fix(deps): update dependency bull to v3.18.0 2020-08-16 19:16:52 +00:00
Renovate Bot
e587f53503 chore(deps): update dependency @types/jest to v26.0.10 2020-08-15 00:00:42 +00:00
Renovate Bot
a1dc03f067 fix(deps): update dependency mongoose to v5.10.0 2020-08-14 16:49:46 +00:00
Kamil Mysliwiec
a361df48c4 Merge pull request #5268 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/minimist-1.2.5
chore(deps): bump minimist from 1.2.0 to 1.2.5 in /sample/01-cats-app
2020-08-13 14:55:27 +02:00
dependabot[bot]
8ea697bdc1 chore(deps): bump minimist from 1.2.0 to 1.2.5 in /sample/01-cats-app
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-13 11:20:32 +00:00
Kamil Mysliwiec
b0f817c1a5 Merge pull request #5246 from nestjs/renovate/sinon-9.x
chore(deps): update dependency sinon to v9.0.3
2020-08-13 13:17:27 +02:00
Kamil Mysliwiec
5aeebd3218 Merge pull request #5247 from nestjs/renovate/light-my-request-4.x
fix(deps): update dependency light-my-request to v4.0.2
2020-08-13 13:17:21 +02:00
Kamil Mysliwiec
1979db4e32 Merge pull request #5259 from nestjs/renovate/conventional-changelog-3.x
chore(deps): update dependency conventional-changelog to v3.1.23
2020-08-13 13:17:15 +02:00
Kamil Mysliwiec
a9e7ad8812 Merge pull request #5262 from nestjs/renovate/mqtt-4.x
chore(deps): update dependency mqtt to v4.2.0
2020-08-13 13:17:08 +02:00
Kamil Mysliwiec
dac26b5003 Merge pull request #5265 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.4.0
2020-08-13 13:17:03 +02:00
Kamil Mysliwiec
317273e5c5 Merge pull request #5266 from nestjs/renovate/graphql-query-complexity-0.x
fix(deps): update dependency graphql-query-complexity to v0.7.0
2020-08-13 13:16:53 +02:00
Renovate Bot
27314f2efc fix(deps): update dependency graphql-query-complexity to v0.7.0 2020-08-12 23:22:55 +00:00
Renovate Bot
4486abe26b chore(deps): update dependency jest to v26.4.0 2020-08-12 21:40:35 +00:00
Renovate Bot
540d8bb40f chore(deps): update dependency mqtt to v4.2.0 2020-08-12 17:52:21 +00:00
Renovate Bot
8d4429949c chore(deps): update dependency conventional-changelog to v3.1.23 2020-08-12 13:07:15 +00:00
Renovate Bot
7c16462059 fix(deps): update dependency light-my-request to v4.0.2 2020-08-12 12:36:58 +00:00
Renovate Bot
f509871249 chore(deps): update dependency sinon to v9.0.3 2020-08-12 12:35:03 +00:00
Kamil Mysliwiec
e5e23e19e6 Merge pull request #5248 from nestjs/renovate/socket.io-2.x
chore(deps): update dependency @types/socket.io to v2.1.11
2020-08-12 14:31:49 +02:00
Kamil Mysliwiec
8962c5931c Merge pull request #5250 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.0.18
2020-08-12 14:31:42 +02:00
Kamil Mysliwiec
1433910a85 Merge pull request #5251 from nestjs/renovate/ts-morph-7.x
chore(deps): update dependency ts-morph to v7.3.0
2020-08-12 14:31:35 +02:00
Kamil Mysliwiec
46c71fda41 Merge pull request #5254 from nestjs/renovate/mocha-8.x
chore(deps): update dependency @types/mocha to v8.0.2
2020-08-12 14:31:27 +02:00
Kamil Mysliwiec
f4487c5fd1 Merge pull request #5261 from nestjs/renovate/bull-3.x
fix(deps): update dependency bull to v3.17.0
2020-08-12 14:31:18 +02:00
Renovate Bot
d199c9c895 fix(deps): update dependency bull to v3.17.0 2020-08-12 12:16:30 +00:00
Renovate Bot
06cd72a847 chore(deps): update dependency @types/mocha to v8.0.2 2020-08-11 19:26:45 +00:00
Renovate Bot
3333469cdb chore(deps): update dependency ts-morph to v7.3.0 2020-08-11 15:52:49 +00:00
Renovate Bot
a0b5e243ae fix(deps): update dependency graphql-tools to v6.0.18 2020-08-11 13:31:40 +00:00
Kamil Mysliwiec
da321fcb51 Merge pull request #5249 from nestjs/renovate/ts-jest-26.x
chore(deps): update dependency ts-jest to v26.2.0
2020-08-11 13:28:11 +02:00
Renovate Bot
cea43d323a chore(deps): update dependency ts-jest to v26.2.0 2020-08-11 11:07:26 +00:00
Renovate Bot
a830d47e77 chore(deps): update dependency @types/socket.io to v2.1.11 2020-08-11 09:58:54 +00:00
Kamil Mysliwiec
e0aa10012e Merge pull request #5239 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v3.9.0
2020-08-11 08:52:29 +02:00
Kamil Mysliwiec
8551406dd0 Merge pull request #5242 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.0.17
2020-08-11 08:52:15 +02:00
Renovate Bot
06e1b433e8 fix(deps): update dependency graphql-tools to v6.0.17 2020-08-10 21:54:34 +00:00
Renovate Bot
d553fb1a82 chore(deps): update typescript-eslint monorepo to v3.9.0 2020-08-10 17:39:12 +00:00
Kamil Mysliwiec
bbcb7ae6cd Merge pull request #5238 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.3.0
2020-08-10 14:52:19 +02:00
Renovate Bot
18039adc5a chore(deps): update dependency jest to v26.3.0 2020-08-10 12:36:23 +00:00
Kamil Mysliwiec
b4dd52be45 Merge pull request #5236 from nestjs/renovate/ts-morph-7.x
chore(deps): update dependency ts-morph to v7.2.0
2020-08-10 08:31:56 +02:00
Renovate Bot
53db786a3b chore(deps): update dependency ts-morph to v7.2.0 2020-08-10 00:05:11 +00:00
Kamil Mysliwiec
3d10c328c5 Merge pull request #5233 from nestjs/renovate/nats-1.x
chore(deps): update dependency nats to v1.4.12
2020-08-09 11:23:57 +02:00
Kamil Mysliwiec
546fca4eda Merge pull request #5232 from AdamHavlicek/patch-2
Update invalid-kafka-client-topic-partition.exception.ts
2020-08-09 11:23:10 +02:00
Kamil Mysliwiec
ca589d6ad1 Merge pull request #5231 from nestjs/renovate/concurrently-5.x
chore(deps): update dependency concurrently to v5.3.0
2020-08-09 11:19:08 +02:00
Kamil Mysliwiec
f74b55e629 Merge pull request #5230 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.9.28
2020-08-09 11:13:21 +02:00
Renovate Bot
0edff9bab7 fix(deps): update dependency mongoose to v5.9.28 2020-08-07 20:42:57 +00:00
Renovate Bot
8025ddbeb8 chore(deps): update dependency nats to v1.4.12 2020-08-07 18:13:23 +00:00
AdamHavlicek
f0ca20aaba Update invalid-kafka-client-topic-partition.exception.ts
typo
2020-08-07 16:04:40 +02:00
Renovate Bot
631e0da3a6 chore(deps): update dependency concurrently to v5.3.0 2020-08-07 13:59:14 +00:00
Kamil Mysliwiec
6e0581d31d Merge pull request #5228 from nestjs/renovate/tslib-2.x
fix(deps): update dependency tslib to v2.0.1
2020-08-07 08:42:56 +02:00
Renovate Bot
be562b90a0 fix(deps): update dependency tslib to v2.0.1 2020-08-06 22:43:54 +00:00
Kamil Mysliwiec
dda30809dd Merge pull request #5222 from nestjs/renovate/fastify-3.x
fix(deps): update dependency fastify to v3.2.0
2020-08-06 22:11:48 +02:00
Renovate Bot
d4790bea22 fix(deps): update dependency fastify to v3.2.0 2020-08-06 12:57:24 +00:00
Kamil Mysliwiec
c044b388f3 Merge pull request #5217 from nestjs/renovate/mongoose-5.x
chore(deps): update dependency @types/mongoose to v5.7.35
2020-08-06 10:07:46 +02:00
Kamil Mysliwiec
4b2d0b8cc7 Merge pull request #5212 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/runtime to v7.11.2
2020-08-06 09:57:03 +02:00
Renovate Bot
b27287fda7 chore(deps): update dependency @types/mongoose to v5.7.35 2020-08-06 07:25:25 +00:00
Renovate Bot
2d8e56f646 chore(deps): update dependency @babel/runtime to v7.11.2 2020-08-06 06:45:39 +00:00
Kamil Mysliwiec
57cf2ac7bf Merge pull request #5216 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.9
2020-08-06 08:43:52 +02:00
Kamil Mysliwiec
34cdf675d7 Merge pull request #5209 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v6.0.16
2020-08-06 08:43:42 +02:00
Kamil Mysliwiec
84a6af1542 Merge pull request #5213 from nestjs/renovate/point-of-view-4.x
fix(deps): update dependency point-of-view to v4.3.0
2020-08-06 08:43:29 +02:00
Renovate Bot
3edc0efa97 chore(deps): update dependency @types/jest to v26.0.9 2020-08-06 00:25:38 +00:00
Renovate Bot
40061ea60a fix(deps): update dependency point-of-view to v4.3.0 2020-08-05 16:00:42 +00:00
Renovate Bot
e52e48da18 fix(deps): update dependency graphql-tools to v6.0.16 2020-08-05 09:04:21 +00:00
Kamil Mysliwiec
60bcd23d67 Merge pull request #5204 from nestjs/renovate/mocha-8.x
chore(deps): update dependency mocha to v8.1.1
2020-08-05 08:56:52 +02:00
Kamil Mysliwiec
0d834c6f1d Merge pull request #5207 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.11.1
2020-08-05 08:56:19 +02:00
Renovate Bot
1d1ab44545 chore(deps): update babel monorepo to v7.11.1 2020-08-04 22:16:45 +00:00
Renovate Bot
f8a01d6a28 chore(deps): update dependency mocha to v8.1.1 2020-08-04 19:33:35 +00:00
Kamil Mysliwiec
9fb0204f75 Merge pull request #5196 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v3.8.0
2020-08-04 09:10:49 +02:00
Renovate Bot
6e4ebd8b68 chore(deps): update typescript-eslint monorepo to v3.8.0 2020-08-03 17:44:16 +00:00
Kamil Mysliwiec
c82b871689 Merge pull request #5170 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v7.4.2
2020-08-03 10:37:08 +02:00
Renovate Bot
00f74fc9d4 fix(deps): update nest monorepo to v7.4.2 2020-08-03 08:28:50 +00:00
Kamil Mysliwiec
6c884011a0 Merge pull request #5175 from nestjs/renovate/mocha-8.x
chore(deps): update dependency mocha to v8.1.0
2020-08-03 10:05:54 +02:00
Kamil Mysliwiec
28a56a6987 Merge pull request #5176 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.11.0
2020-08-03 10:01:31 +02:00
Renovate Bot
b7a618dae9 chore(deps): update dependency mocha to v8.1.0 2020-08-03 07:24:31 +00:00
Renovate Bot
ab2c8f5271 chore(deps): update babel monorepo to v7.11.0 2020-08-03 07:22:23 +00:00
Kamil Mysliwiec
f2b7d2ba62 Merge pull request #5174 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.6.0
2020-08-03 09:16:28 +02:00
Kamil Mysliwiec
8b2401cc4b Merge pull request #5188 from nestjs/renovate/eslint-7.x
chore(deps): update dependency eslint to v7.6.0
2020-08-03 09:16:12 +02:00
Kamil Mysliwiec
4464d62e8b Merge pull request #5179 from nestjs/renovate/rxjs-compat-6.x
chore(deps): update dependency rxjs-compat to v6.6.2
2020-08-03 09:15:55 +02:00
Kamil Mysliwiec
1ae1f8a5ed Merge pull request #5180 from nestjs/renovate/rxjs-6.x
fix(deps): update dependency rxjs to v6.6.2
2020-08-03 09:15:48 +02:00
Kamil Mysliwiec
e1c9409207 Merge pull request #5182 from nestjs/renovate/jest-26.x
chore(deps): update dependency @types/jest to v26.0.8
2020-08-03 09:15:39 +02:00
Kamil Mysliwiec
4b8f6770be Merge pull request #5184 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v26.2.2
2020-08-03 09:15:32 +02:00
Kamil Mysliwiec
cd2a162bfb Merge pull request #5185 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.9.27
2020-08-03 09:15:24 +02:00
Kamil Mysliwiec
39702b4dde Merge pull request #5187 from nestjs/renovate/cors-2.x
chore(deps): update dependency @types/cors to v2.8.7
2020-08-03 09:15:17 +02:00
Kamil Mysliwiec
9a9a555571 Merge pull request #5192 from nestjs/renovate/ts-loader-8.x
chore(deps): update dependency ts-loader to v8.0.2
2020-08-03 09:15:05 +02:00
Renovate Bot
cdee982963 chore(deps): update dependency ts-loader to v8.0.2 2020-08-03 02:35:16 +00:00
Opportunity
f85e1fa74e fix(core): fix #5140
Use .toString() as functions' representation.
2020-08-01 17:49:17 +08:00
Renovate Bot
145d1fefaf chore(deps): update dependency eslint to v7.6.0 2020-08-01 00:08:26 +00:00
Renovate Bot
86e147c857 chore(deps): update dependency @types/cors to v2.8.7 2020-07-31 20:48:33 +00:00
Renovate Bot
7316280d12 fix(deps): update dependency mongoose to v5.9.27 2020-07-31 15:52:48 +00:00
Renovate Bot
2bfeba4ed9 chore(deps): update dependency jest to v26.2.2 2020-07-31 11:47:59 +00:00
Renovate Bot
8931d58064 chore(deps): update dependency @types/jest to v26.0.8 2020-07-31 05:20:41 +00:00
Renovate Bot
ac751c630d fix(deps): update dependency rxjs to v6.6.2 2020-07-31 02:43:11 +00:00
Renovate Bot
db0b2026f2 chore(deps): update dependency rxjs-compat to v6.6.2 2020-07-31 01:31:45 +00:00
Renovate Bot
eb0025da5d fix(deps): update dependency mongodb to v3.6.0 2020-07-30 18:18:36 +00:00
alex
4ae1750235 feat(microservices): fix "RpcParamtype.GRPC_CALL" enum name 2020-07-29 13:46:17 +03:00
alex
cdbe127d5b feat(microservices): fix "RpcParamtype.GRPC_CALL" enum name 2020-07-29 13:44:24 +03:00
alex
bc38c70e31 feat(microservices): Add grpc metadata to server responce
example of usage:

import { Metadata } from 'grpc';

@GrpcMethod('Service', 'Method')
public method(request: any, metadata: Metadata, call: any): any {
   // 1. nothing to do with request that is empty in this case
   // 2. may something with metadata from client if needed
   // 3. send metadata with responce........
   const srvMetadata = new Metadata();

   srvMetadata.add('Set-Cookie', 'yummy_cookie=choco');

   call.sendMetadata(srvMetadata);

   return 'Hello World!!!';
}
2020-07-29 12:06:42 +03:00
alex
162f1a8e2d Merge branch 'master' into grpc-send-metadata 2020-07-29 11:14:02 +03:00
alex
b766c7451d feat(microservices): Add grpc metadata to server responce
example of usage:

import { Metadata } from 'grpc';

@GrpcMethod('Service', 'Method')
public method(request: any, metadata: Metadata, sendMetadata: any): any {
   // 1. nothing to do with request that is empty in this case
   // 2. may something with metadata from client if needed
   // 3. send metadata with responce........
   const srvMetadata = new Metadata();

   srvMetadata.add('Set-Cookie', 'yummy_cookie=choco');

   sendMetadata(srvMetadata);

   return 'Hello World!!!';
}
2020-07-24 10:58:44 +03:00
gabeodessru
85dcf72508 sample(12): move owner tooling to its own service 2020-06-28 08:59:35 -05:00
gabeodessru
f4df4d9a9e sample(12): Example of how to use @ResolveField 2020-05-23 16:12:38 -05:00
284 changed files with 418556 additions and 193721 deletions

7
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

View File

@@ -237,7 +237,7 @@ Samples: (even more [samples](https://github.com/nestjs/nest/commits/master))
```
docs(changelog): update change log to beta.5
bugfix(core): need to depend on latest rxjs and zone.js
fix(core): need to depend on latest rxjs and zone.js
```
### Revert
@@ -249,14 +249,16 @@ If the commit reverts a previous commit, it should begin with `revert:`, followe
Must be one of the following:
- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- **chore**: Updating tasks etc; no production code change
- **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- **docs**: Documentation only changes
- **feature**: A new feature
- **feat**: A new feature
- **fix**: A bug fix
- **perf**: A code change that improves performance
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- **test**: Adding missing tests or correcting existing tests
- **sample**: A change to the samples
### Scope

View File

@@ -1,6 +1,6 @@
(The MIT License)
Copyright (c) 2017-2020 Kamil Mysliwiec <https://kamilmysliwiec.com>
Copyright (c) 2017-2021 Kamil Mysliwiec <https://kamilmysliwiec.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@@ -56,17 +56,23 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="180" valign="middle" /></a></td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td></tr></table>
#### Silver Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="170" valign="middle" /></a> </td><td>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td></tr></table>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
<a href="http://www.meetdandy.com" target="_blank"><img src="https://nestjs.com/img/dandy-wide-logo.png" width="150" valign="middle" /></td></tr></table>
#### Sponsors
@@ -84,12 +90,16 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://clay.global/" target="_blank"><img src="https://nestjs.com/img/clay-logo.svg" width="75" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://firesticktricks.com" target="_blank"><img src="https://nestjs.com/img/firesticktricks-logo.png" width="120" valign="middle" /></a></td></tr><tr><td align="center" valign="middle">
<a href="https://www.codeguesser.co.uk" target="_blank"><img src="https://nestjs.com/img/codeguesser-logo.svg" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://tekhattan.com" target="_blank"><img src="https://nestjs.com/img/tekhattan-logo.png" width="110" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://f-a.nz/" target="_blank"><img src="https://nestjs.com/img/franz.svg" width="80" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://sparkfabrik.com/" target="_blank"><img src="https://nestjs.com/img/sparkfabrik-logo.png" width="120" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://www.thebigphonestore.co.uk/" target="_blank"><img src="https://nestjs.com/img/the-big-phone-store-logo.png" width="65" valign="middle" /></a></td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr>
<tr><td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td>
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td></tr><tr><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://pickwriters.com/top-10-translation-services" target="_blank"><img src="https://nestjs.com/img/pickwriters-logo.png" width="40" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://thewordpoint.com/services/localization" target="_blank"><img src="https://nestjs.com/img/thewordpoint-logo.png" width="40" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://streamat.se/" target="_blank"><img src="https://nestjs.com/img/streamat-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://filmen.nu/" target="_blank"><img src="https://nestjs.com/img/filmen-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://meercode.io/" target="_blank"><img src="https://nestjs.com/img/meercode-logo.png" width="60" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thestandarddaily.com/" target="_blank"><img src="https://nestjs.com/img/the-standard-daily-logo.png" width="180" valign="middle" /></a></td>
</tr></table>
## Backers

View File

@@ -0,0 +1,177 @@
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('Express Cors', () => {
let app: NestFastifyApplication;
const configs = [
{
origin: 'example.com',
methods: 'GET',
credentials: true,
exposedHeaders: ['foo', 'bar'],
allowedHeaders: ['baz', 'woo'],
maxAge: 123,
},
{
origin: 'sample.com',
methods: 'GET',
credentials: true,
exposedHeaders: ['zoo', 'bar'],
allowedHeaders: ['baz', 'foo'],
maxAge: 321,
},
];
describe('Dynamic config', () => {
describe('enableCors', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
let requestId = 0;
const configDelegation = function (req, cb) {
const config = configs[requestId];
requestId++;
cb(null, config);
};
app.enableCors(configDelegation);
await app.init();
});
it(`Should add cors headers based on the first config`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
it(`Should add cors headers based on the second config`, async () => {
return request(app.getHttpServer())
.options('/')
.expect('access-control-allow-origin', 'sample.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'zoo,bar')
.expect('access-control-allow-methods', 'GET')
.expect('access-control-allow-headers', 'baz,foo')
.expect('access-control-max-age', '321')
.expect('content-length', '0');
});
after(async () => {
await app.close();
});
});
describe('Application Options', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
let requestId = 0;
const configDelegation = function (req, cb) {
const config = configs[requestId];
requestId++;
cb(null, config);
};
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configDelegation,
});
await app.init();
});
it(`Should add cors headers based on the first config`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
it(`Should add cors headers based on the second config`, async () => {
return request(app.getHttpServer())
.options('/')
.expect('access-control-allow-origin', 'sample.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'zoo,bar')
.expect('access-control-allow-methods', 'GET')
.expect('access-control-allow-headers', 'baz,foo')
.expect('access-control-max-age', '321')
.expect('content-length', '0');
});
after(async () => {
await app.close();
});
});
});
describe('Static config', () => {
describe('enableCors', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app.enableCors(configs[0]);
await app.init();
});
it(`CORS headers`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
});
after(async () => {
await app.close();
});
describe('Application Options', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configs[0],
});
await app.init();
});
it(`CORS headers`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
after(async () => {
await app.close();
});
});
});
});

View File

@@ -0,0 +1,177 @@
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('Fastify Cors', () => {
let app: NestFastifyApplication;
const configs = [
{
origin: 'example.com',
methods: 'GET',
credentials: true,
exposedHeaders: ['foo', 'bar'],
allowedHeaders: ['baz', 'woo'],
maxAge: 123,
},
{
origin: 'sample.com',
methods: 'GET',
credentials: true,
exposedHeaders: ['zoo', 'bar'],
allowedHeaders: ['baz', 'foo'],
maxAge: 321,
},
];
describe('Dynamic config', () => {
describe('enableCors', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
let requestId = 0;
const configDelegation = function (req, cb) {
const config = configs[requestId];
requestId++;
cb(null, config);
};
app.enableCors(configDelegation);
await app.init();
});
it(`Should add cors headers based on the first config`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
it(`Should add cors headers based on the second config`, async () => {
return request(app.getHttpServer())
.options('/')
.expect('access-control-allow-origin', 'sample.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'zoo,bar')
.expect('access-control-allow-methods', 'GET')
.expect('access-control-allow-headers', 'baz,foo')
.expect('access-control-max-age', '321')
.expect('content-length', '0');
});
after(async () => {
await app.close();
});
});
describe('Application Options', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
let requestId = 0;
const configDelegation = function (req, cb) {
const config = configs[requestId];
requestId++;
cb(null, config);
};
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configDelegation,
});
await app.init();
});
it(`Should add cors headers based on the first config`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
it(`Should add cors headers based on the second config`, async () => {
return request(app.getHttpServer())
.options('/')
.expect('access-control-allow-origin', 'sample.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'zoo,bar')
.expect('access-control-allow-methods', 'GET')
.expect('access-control-allow-headers', 'baz,foo')
.expect('access-control-max-age', '321')
.expect('content-length', '0');
});
after(async () => {
await app.close();
});
});
});
describe('Static config', () => {
describe('enableCors', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app.enableCors(configs[0]);
await app.init();
});
it(`CORS headers`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
});
after(async () => {
await app.close();
});
describe('Application Options', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configs[0],
});
await app.init();
});
it(`CORS headers`, async () => {
return request(app.getHttpServer())
.get('/')
.expect('access-control-allow-origin', 'example.com')
.expect('vary', 'Origin')
.expect('access-control-allow-credentials', 'true')
.expect('access-control-expose-headers', 'foo,bar')
.expect('content-length', '0');
});
});
after(async () => {
await app.close();
});
});
});

View File

@@ -0,0 +1,9 @@
import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
getGlobals() {
return '';
}
}

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
@Module({
controllers: [AppController],
})
export class AppModule {}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules",
]
}

View File

@@ -23,7 +23,7 @@ services:
- "9001:9001"
restart: always
mysql:
image: mysql:5.7.31
image: mysql:5.7.33
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
@@ -48,7 +48,7 @@ services:
zookeeper:
container_name: test-zookeeper
hostname: zookeeper
image: confluentinc/cp-zookeeper:5.3.2
image: confluentinc/cp-zookeeper:5.5.3
ports:
- "2181:2181"
environment:
@@ -57,7 +57,7 @@ services:
kafka:
container_name: test-kafka
hostname: kafka
image: confluentinc/cp-kafka:5.3.2
image: confluentinc/cp-kafka:5.5.3
depends_on:
- zookeeper
ports:
@@ -70,3 +70,4 @@ services:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_DELETE_TOPIC_ENABLE: 'true'

View File

@@ -63,6 +63,14 @@ describe('Hello world (fastify adapter)', () => {
});
});
it(`/GET inject with LightMyRequest chaining API`, () => {
return app
.inject()
.get('/hello')
.end()
.then(({ payload }) => expect(payload).to.be.eql('Hello world!'));
});
afterEach(async () => {
await app.close();
});

View File

@@ -26,7 +26,7 @@ class TestInjectable
class AppModule {}
async function bootstrap() {
const app = await NestFactory.create(AppModule, { logger: true });
const app = await NestFactory.create(AppModule, { logger: false });
if (SIGNAL_TO_LISTEN && SIGNAL_TO_LISTEN !== 'NONE') {
app.enableShutdownHooks([SIGNAL_TO_LISTEN]);

View File

@@ -0,0 +1,291 @@
import { INestApplication, Logger } from '@nestjs/common';
import { Transport } from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import { Admin, ITopicMetadata, Kafka } from 'kafkajs';
import * as request from 'supertest';
import * as util from 'util';
import { KafkaConcurrentController } from '../src/kafka-concurrent/kafka-concurrent.controller';
import { KafkaConcurrentMessagesController } from '../src/kafka-concurrent/kafka-concurrent.messages.controller';
describe('Kafka concurrent', function () {
const numbersOfServers = 3;
const requestTopic = 'math.sum.sync.number.wait';
const responseTopic = 'math.sum.sync.number.wait.reply';
let admin: Admin;
const servers: any[] = [];
const apps: INestApplication[] = [];
const logger = new Logger('concurrent-kafka.spec.ts');
// set timeout to be longer (especially for the after hook)
this.timeout(30000);
const startServer = async () => {
const module = await Test.createTestingModule({
controllers: [
KafkaConcurrentController,
KafkaConcurrentMessagesController,
],
}).compile();
// use our own logger for a little
// Logger.overrideLogger(new Logger());
const app = module.createNestApplication();
const server = app.getHttpAdapter().getInstance();
app.connectMicroservice({
transport: Transport.KAFKA,
options: {
client: {
brokers: ['localhost:9092'],
},
run: {
partitionsConsumedConcurrently: numbersOfServers,
},
},
});
// enable these for clean shutdown
app.enableShutdownHooks();
// push to the collection
servers.push(server);
apps.push(app);
// await the start
await app.startAllMicroservicesAsync();
await app.init();
};
it(`Create kafka topics/partitions`, async () => {
const kafka = new Kafka({
clientId: 'concurrent-test-admin',
brokers: ['localhost:9092'],
});
admin = kafka.admin();
await admin.connect();
let topicMetadata: {
topics: ITopicMetadata[];
};
try {
topicMetadata = await admin.fetchTopicMetadata({
topics: [requestTopic, responseTopic],
});
} catch (e) {
// create with number of servers
try {
await admin.createTopics({
topics: [
{
topic: requestTopic,
numPartitions: numbersOfServers,
replicationFactor: 1,
},
{
topic: responseTopic,
numPartitions: numbersOfServers,
replicationFactor: 1,
},
],
});
} catch (e) {
logger.error(util.format('Create topics error: %o', e));
}
}
if (topicMetadata && topicMetadata.topics.length > 0) {
// we have topics, how many partitions do they have?
for (const topic of topicMetadata.topics) {
if (topic.partitions.length < numbersOfServers) {
try {
await admin.createPartitions({
topicPartitions: [
{
topic: topic.name,
count: numbersOfServers,
},
],
});
} catch (e) {
logger.error(util.format('Create partitions error: %o', e));
}
}
}
}
// create with number of servers
try {
await admin.createTopics({
topics: [
{
topic: requestTopic,
numPartitions: numbersOfServers,
replicationFactor: 1,
},
{
topic: responseTopic,
numPartitions: numbersOfServers,
replicationFactor: 1,
},
],
});
} catch (e) {
logger.error(util.format('Create topics error: %o', e));
}
// disconnect
await admin.disconnect();
});
it(`Start Kafka apps`, async () => {
// start all at once
await Promise.all(
Array(numbersOfServers)
.fill(1)
.map(async (v, i) => {
// return startServer();
// wait in intervals so the consumers start in order
return new Promise<void>(resolve => {
setTimeout(async () => {
await startServer();
return resolve();
}, 1000 * i);
});
}),
);
}).timeout(30000);
it(`Concurrent messages without forcing a rebalance.`, async () => {
// wait a second before notifying the servers to respond
setTimeout(async () => {
// notify the other servers that it is time to respond
await Promise.all(
servers.map(async server => {
// send to all servers since indexes don't necessarily align with server consumers
return request(server).post('/go').send();
}),
);
}, 1000);
await Promise.all(
servers.map(async (server, index) => {
// send requests
const payload = {
key: index,
numbers: [1, index],
};
const result = (1 + index).toString();
return request(server)
.post('/mathSumSyncNumberWait')
.send(payload)
.expect(200)
.expect(200, result);
}),
);
});
it(`Close kafka client consumer while waiting for message pattern response.`, async () => {
await Promise.all(
servers.map(async (server, index) => {
// shut off and delete the leader
if (index === 0) {
return new Promise<void>(resolve => {
// wait a second before closing so the producers can send the message to the server consumers
setTimeout(async () => {
// get the controller
const controller = apps[index].get(KafkaConcurrentController);
// close the controller clients
await controller.client.close();
// notify the other servers that we have stopped
await Promise.all(
servers.map(async server => {
// send to all servers since indexes don't necessarily align with server consumers
return request(server).post('/go').send();
}),
);
return resolve();
}, 1000);
});
}
// send requests
const payload = {
key: index,
numbers: [1, index],
};
const result = (1 + index).toString();
return request(server)
.post('/mathSumSyncNumberWait')
.send(payload)
.expect(200)
.expect(200, result);
}),
);
});
it(`Start kafka client consumer while waiting for message pattern response.`, async () => {
await Promise.all(
servers.map(async (server, index) => {
// shut off and delete the leader
if (index === 0) {
return new Promise<void>(resolve => {
// wait a second before closing so the producers can send the message to the server consumers
setTimeout(async () => {
// get the controller
const controller = apps[index].get(KafkaConcurrentController);
// connect the controller client
await controller.client.connect();
// notify the servers that we have started
await Promise.all(
servers.map(async server => {
// send to all servers since indexes don't necessarily align with server consumers
return request(server).post('/go').send();
}),
);
return resolve();
}, 1000);
});
}
// send requests
const payload = {
key: index,
numbers: [1, index],
};
const result = (1 + index).toString();
return request(server)
.post('/mathSumSyncNumberWait')
.send(payload)
.expect(200)
.expect(200, result);
}),
);
});
after(`Stopping Kafka app`, async () => {
// close all concurrently
return Promise.all(
apps.map(async app => {
return app.close();
}),
);
});
});

View File

@@ -113,6 +113,11 @@ describe('Advanced GRPC transport', () => {
it('GRPC Sending and receiving Stream from RX handler', async () => {
const callHandler = client.sync();
// Get Set-Cookie from Metadata
callHandler.on('metadata', (metadata: GRPC.Metadata) => {
expect(metadata.get('Set-Cookie')[0]).to.eq('test_cookie=abcd');
});
callHandler.on('data', (msg: number) => {
// Do deep comparison (to.eql)
expect(msg).to.eql({

View File

@@ -9,10 +9,13 @@ import { UserEntity } from '../src/kafka/entities/user.entity';
import { KafkaController } from '../src/kafka/kafka.controller';
import { KafkaMessagesController } from '../src/kafka/kafka.messages.controller';
describe('Kafka transport', () => {
describe('Kafka transport', function () {
let server;
let app: INestApplication;
// set timeout to be longer (especially for the after hook)
this.timeout(30000);
it(`Start Kafka app`, async () => {
const module = await Test.createTestingModule({
controllers: [KafkaController, KafkaMessagesController],
@@ -29,6 +32,7 @@ describe('Kafka transport', () => {
},
},
});
app.enableShutdownHooks();
await app.startAllMicroservicesAsync();
await app.init();
}).timeout(30000);

View File

@@ -105,6 +105,22 @@ describe('RPC transport', () => {
});
});
it('/POST (custom client)', () => {
return request(server)
.post('/error?client=custom')
.send({})
.expect(200)
.expect('true');
});
it('/POST (standard client)', () => {
return request(server)
.post('/error?client=standard')
.send({})
.expect(200)
.expect('false');
});
afterEach(async () => {
await app.close();
});

View File

@@ -12,15 +12,17 @@ import {
EventPattern,
MessagePattern,
Transport,
RpcException,
} from '@nestjs/microservices';
import { from, Observable, of } from 'rxjs';
import { scan } from 'rxjs/operators';
import { from, Observable, of, throwError } from 'rxjs';
import { catchError, scan } from 'rxjs/operators';
@Controller()
export class AppController {
constructor(
@Inject('USE_CLASS_CLIENT') private useClassClient: ClientProxy,
@Inject('USE_FACTORY_CLIENT') private useFactoryClient: ClientProxy,
@Inject('CUSTOM_PROXY_CLIENT') private customClient: ClientProxy,
) {}
static IS_NOTIFIED = false;
@@ -75,6 +77,17 @@ export class AppController {
.reduce(async (a, b) => (await a) && b);
}
@Post('error')
@HttpCode(200)
serializeError(@Query('client') query: 'custom' | 'standard' = 'standard', @Body() body: Record<string, any>): Observable<boolean> {
const client = query === 'custom' ? this.customClient : this.client;
return client.send({ cmd: 'err' }, {}).pipe(
catchError((err) => {
return of(err instanceof RpcException);
})
)
}
@MessagePattern({ cmd: 'sum' })
sum(data: number[]): number {
return (data || []).reduce((a, b) => a + b);
@@ -95,6 +108,11 @@ export class AppController {
return from(data);
}
@MessagePattern({ cmd: 'err' })
throwAnError() {
return throwError(new Error('err'));
}
@Post('notify')
async sendNotification(): Promise<any> {
return this.client.emit<number>('notification', true);

View File

@@ -5,8 +5,16 @@ import {
Transport,
ClientsModuleOptionsFactory,
ClientOptions,
ClientTCP,
RpcException,
} from '@nestjs/microservices';
class ErrorHandlingProxy extends ClientTCP {
serializeError(err) {
return new RpcException(err);
}
}
@Injectable()
class ConfigService {
private readonly config = {
@@ -51,7 +59,14 @@ class ClientOptionService implements ClientsModuleOptionsFactory {
name: 'USE_CLASS_CLIENT',
useClass: ClientOptionService,
inject: [ConfigService],
},
}, {
imports: [ConfigModule],
inject: [ConfigService],
name: 'CUSTOM_PROXY_CLIENT',
useFactory: (config: ConfigService) => ({
customClass: ErrorHandlingProxy
})
}
]),
],
controllers: [AppController],

View File

@@ -9,6 +9,7 @@ import {
} from '@nestjs/microservices';
import { join } from 'path';
import { Observable, of, ReplaySubject, Subject } from 'rxjs';
import { Metadata } from 'grpc';
@Controller()
export class AdvancedGrpcController {
@@ -84,7 +85,16 @@ export class AdvancedGrpcController {
* @param messages
*/
@GrpcStreamMethod('orders.OrderService')
async sync(messages: Observable<any>): Promise<any> {
async sync(
messages: Observable<any>,
metadata: Metadata,
call: any,
): Promise<any> {
// Set Set-Cookie from Metadata
const srvMetadata = new Metadata();
srvMetadata.add('Set-Cookie', 'test_cookie=abcd');
call.sendMetadata(srvMetadata);
const s = new Subject();
const o = s.asObservable();
messages.subscribe(msg => {

View File

@@ -0,0 +1,4 @@
export class SumDto {
key: string;
numbers: number[];
}

View File

@@ -0,0 +1,70 @@
import {
Body,
Controller,
HttpCode,
OnModuleDestroy,
OnModuleInit,
Post,
} from '@nestjs/common';
import { Logger } from '@nestjs/common/services/logger.service';
import { Client, ClientKafka, Transport } from '@nestjs/microservices';
import { PartitionerArgs } from 'kafkajs';
import { Observable } from 'rxjs';
import { SumDto } from './dto/sum.dto';
/**
* The following function explicity sends messages to the key representing the partition.
*/
const explicitPartitioner = () => {
return ({ message }: PartitionerArgs) => {
return parseFloat(message.headers.toPartition.toString());
};
};
@Controller()
export class KafkaConcurrentController
implements OnModuleInit, OnModuleDestroy {
protected readonly logger = new Logger(KafkaConcurrentController.name);
@Client({
transport: Transport.KAFKA,
options: {
client: {
brokers: ['localhost:9092'],
},
run: {
partitionsConsumedConcurrently: 3,
},
producer: {
createPartitioner: explicitPartitioner,
},
},
})
public readonly client: ClientKafka;
async onModuleInit() {
const requestPatterns = ['math.sum.sync.number.wait'];
requestPatterns.forEach(pattern => {
this.client.subscribeToResponseOf(pattern);
});
await this.client.connect();
}
async onModuleDestroy() {
await this.client.close();
}
@Post('mathSumSyncNumberWait')
@HttpCode(200)
public mathSumSyncNumberWait(@Body() data: SumDto): Observable<string> {
return this.client.send('math.sum.sync.number.wait', {
headers: {
toPartition: data.key.toString(),
},
key: data.key.toString(),
value: data.numbers,
});
}
}

View File

@@ -0,0 +1,37 @@
import { Controller, HttpCode, Post } from '@nestjs/common';
import { MessagePattern } from '@nestjs/microservices';
import { BehaviorSubject, Observable } from 'rxjs';
import { first, map, skipWhile } from 'rxjs/operators';
@Controller()
export class KafkaConcurrentMessagesController {
public waiting = new BehaviorSubject<boolean>(false);
@Post('go')
@HttpCode(200)
async go() {
// no longer waiting
this.waiting.next(false);
return;
}
@MessagePattern('math.sum.sync.number.wait')
public mathSumSyncNumberWait(data: any): Observable<number> {
// start waiting
this.waiting.next(true);
// find sum
const sum = data.value[0] + data.value[1];
return this.waiting.asObservable().pipe(
skipWhile(isWaiting => {
return isWaiting;
}),
map(() => {
return sum;
}),
first(),
);
}
}

View File

@@ -1,4 +1,11 @@
import { Body, Controller, HttpCode, OnModuleInit, Post } from '@nestjs/common';
import {
Body,
Controller,
HttpCode,
OnModuleInit,
Post,
OnModuleDestroy,
} from '@nestjs/common';
import { Logger } from '@nestjs/common/services/logger.service';
import { Client, ClientKafka, Transport } from '@nestjs/microservices';
import { Observable } from 'rxjs';
@@ -6,7 +13,7 @@ import { BusinessDto } from './dtos/business.dto';
import { UserDto } from './dtos/user.dto';
@Controller()
export class KafkaController implements OnModuleInit {
export class KafkaController implements OnModuleInit, OnModuleDestroy {
protected readonly logger = new Logger(KafkaController.name);
static IS_NOTIFIED = false;
static MATH_SUM = 0;
@@ -21,7 +28,7 @@ export class KafkaController implements OnModuleInit {
})
private readonly client: ClientKafka;
onModuleInit() {
async onModuleInit() {
const requestPatterns = [
'math.sum.sync.kafka.message',
'math.sum.sync.without.key',
@@ -36,6 +43,12 @@ export class KafkaController implements OnModuleInit {
requestPatterns.forEach(pattern => {
this.client.subscribeToResponseOf(pattern);
});
await this.client.connect();
}
async onModuleDestroy() {
await this.client.close();
}
// sync send kafka message

View File

@@ -0,0 +1,38 @@
import { NestExpressApplication } from '@nestjs/platform-express';
import { Test, TestingModule } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('App-level globals (Express Application)', () => {
let moduleFixture: TestingModule;
let app: NestExpressApplication;
beforeEach(async () => {
moduleFixture = await Test.createTestingModule({
imports: [AppModule],
}).compile();
});
beforeEach(() => {
app = moduleFixture.createNestApplication<NestExpressApplication>();
});
it('should get "title" from "app.locals"', async () => {
app.setLocal('title', 'My Website');
await app.init();
const response = await request(app.getHttpServer()).get('/').expect(200);
expect(response.body.title).to.equal('My Website');
});
it('should get "email" from "app.locals"', async () => {
app.setLocal('email', 'admin@example.com');
await app.listen(4444);
const response = await request(app.getHttpServer()).get('/').expect(200);
expect(response.body.email).to.equal('admin@example.com');
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -0,0 +1,10 @@
import { Controller, Get, Req } from '@nestjs/common';
import { Request } from 'express';
@Controller()
export class AppController {
@Get()
getGlobals(@Req() req: Request) {
return req.app.locals;
}
}

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
@Module({
controllers: [AppController],
})
export class AppModule {}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules"
]
}

View File

@@ -37,6 +37,13 @@ describe('Get URL (Express Application)', () => {
expect(await app.getUrl()).to.be.eql(`http://127.0.0.1:${port}`);
await app.close();
});
it('should return 127.0.0.1 even in a callback', () => {
const app = testModule.createNestApplication(new ExpressAdapter(express()));
return app.listen(port, async () => {
expect(await app.getUrl()).to.be.eql(`http://127.0.0.1:${port}`);
await app.close();
});
});
it('should throw an error for calling getUrl before listen', async () => {
const app = testModule.createNestApplication(new ExpressAdapter(express()));
try {

View File

@@ -30,6 +30,13 @@ describe('Get URL (Fastify Application)', () => {
expect(await app.getUrl()).to.be.eql(`http://127.0.0.1:${port}`);
await app.close();
});
it('should return 127.0.0.1 even in a callback', () => {
const app = testModule.createNestApplication(new FastifyAdapter());
return app.listen(port, async () => {
expect(await app.getUrl()).to.be.eql(`http://127.0.0.1:${port}`);
await app.close();
});
});
it('should throw an error for calling getUrl before listen', async () => {
const app = testModule.createNestApplication(new FastifyAdapter());
try {

View File

@@ -20,7 +20,7 @@ describe('ErrorGateway', () => {
ws.emit('push', {
test: 'test',
});
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('exception', data => {
expect(data).to.be.eql({
status: 'error',

View File

@@ -20,7 +20,7 @@ describe('WebSocketGateway (ack)', () => {
await app.listenAsync(3000);
ws = io.connect('http://localhost:8080');
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.emit('push', { test: 'test' }, data => {
expect(data).to.be.eql('pong');
resolve();
@@ -28,5 +28,18 @@ describe('WebSocketGateway (ack)', () => {
);
});
it(`should handle message with ack & without data (http)`, async () => {
app = await createNestApp(AckGateway);
await app.listenAsync(3000);
ws = io.connect('http://localhost:8080');
await new Promise<void>(resolve =>
ws.emit('push', data => {
expect(data).to.be.eql('pong');
resolve();
}),
);
});
afterEach(() => app.close());
});

View File

@@ -25,7 +25,7 @@ describe('WebSocketGateway', () => {
ws.emit('push', {
test: 'test',
});
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('pop', data => {
expect(data.test).to.be.eql('test');
resolve();
@@ -41,7 +41,7 @@ describe('WebSocketGateway', () => {
ws.emit('push', {
test: 'test',
});
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('pop', data => {
expect(data.test).to.be.eql('test');
resolve();
@@ -58,7 +58,7 @@ describe('WebSocketGateway', () => {
ws.emit('push', {
test: 'test',
});
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('pop', data => {
expect(data.test).to.be.eql('test');
resolve();

View File

@@ -34,7 +34,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
},
}),
);
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
resolve();
@@ -57,7 +57,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
},
}),
);
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
resolve();
@@ -77,7 +77,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
ws = new WebSocket('ws://localhost:8080');
ws2 = new WebSocket('ws://localhost:8090');
await new Promise(resolve =>
await new Promise<void>(resolve =>
ws.on('open', () => {
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
@@ -94,7 +94,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
}),
);
await new Promise(resolve => {
await new Promise<void>(resolve => {
ws2.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
resolve();

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "7.4.2"
"version": "7.6.8"
}

8859
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "7.4.0",
"version": "7.5.3",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -29,9 +29,10 @@
"test:docker:up": "docker-compose -f integration/docker-compose.yml up -d",
"test:docker:down": "docker-compose -f integration/docker-compose.yml down",
"lint": "concurrently 'npm run lint:packages' 'npm run lint:integration' 'npm run lint:spec'",
"lint:integration": "eslint 'integration/*/{,!(node_modules)/**/}/*.ts' -c '.eslintrc.spec.js' --fix",
"lint:packages": "eslint 'packages/**/**.ts' --fix --ignore-pattern 'packages/**/*.spec.ts'",
"lint:spec": "eslint 'packages/**/**.spec.ts' -c '.eslintrc.spec.js' --fix",
"lint:fix": "concurrently 'npm run lint:packages -- --fix' 'npm run lint:integration -- --fix' 'npm run lint:spec -- --fix'",
"lint:integration": "eslint 'integration/*/{,!(node_modules)/**/}/*.ts' -c '.eslintrc.spec.js'",
"lint:packages": "eslint 'packages/**/**.ts' --ignore-pattern 'packages/**/*.spec.ts'",
"lint:spec": "eslint 'packages/**/**.spec.ts' -c '.eslintrc.spec.js'",
"prerelease": "gulp copy-misc && gulp build --dist node_modules/@nestjs",
"publish": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --force-publish --access public --exact -m \"chore(@nestjs) publish %s release\"",
"publish:beta": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --npm-tag=beta --access public -m \"chore(@nestjs) publish %s release\"",
@@ -51,119 +52,120 @@
]
},
"dependencies": {
"@nuxtjs/opencollective": "0.2.2",
"axios": "0.19.2",
"class-transformer": "0.3.1",
"class-validator": "0.12.2",
"@nuxtjs/opencollective": "0.3.2",
"axios": "0.21.1",
"class-transformer": "0.3.2",
"class-validator": "0.13.1",
"cli-color": "2.0.0",
"cors": "2.8.5",
"express": "4.17.1",
"fast-json-stringify": "2.2.3",
"fast-json-stringify": "2.4.1",
"fast-safe-stringify": "2.0.7",
"iterare": "1.2.1",
"object-hash": "2.0.3",
"object-hash": "2.1.1",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "6.6.0",
"socket.io": "2.3.0",
"uuid": "8.3.0",
"tslib": "2.0.0"
"rxjs": "6.6.3",
"socket.io": "2.4.1",
"tslib": "2.1.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@codechecks/client": "0.1.10",
"@commitlint/cli": "9.1.1",
"@commitlint/config-angular": "9.1.1",
"@grpc/proto-loader": "0.5.5",
"@nestjs/graphql": "7.6.0",
"@nestjs/mongoose": "7.0.2",
"@nestjs/typeorm": "7.1.0",
"@types/amqplib": "0.5.13",
"@commitlint/cli": "11.0.0",
"@commitlint/config-angular": "11.0.0",
"@grpc/proto-loader": "0.5.6",
"@nestjs/graphql": "7.9.8",
"@nestjs/mongoose": "7.2.2",
"@nestjs/typeorm": "7.1.5",
"@types/amqplib": "0.5.17",
"@types/bytes": "3.1.0",
"@types/cache-manager": "2.10.3",
"@types/chai": "4.2.12",
"@types/cache-manager": "3.4.0",
"@types/chai": "4.2.14",
"@types/chai-as-promised": "7.1.3",
"@types/cors": "2.8.6",
"@types/express": "4.17.7",
"@types/gulp": "4.0.6",
"@types/mocha": "8.0.0",
"@types/mongoose": "5.7.34",
"@types/node": "10.17.3",
"@types/redis": "2.8.25",
"@types/reflect-metadata": "0.0.5",
"@types/sinon": "9.0.4",
"@types/socket.io": "2.1.10",
"@types/ws": "7.2.6",
"@typescript-eslint/eslint-plugin": "3.7.1",
"@typescript-eslint/parser": "3.7.1",
"amqp-connection-manager": "3.2.0",
"@types/cors": "2.8.9",
"@types/express": "4.17.11",
"@types/gulp": "4.0.8",
"@types/mocha": "8.2.0",
"@types/mongoose": "5.10.3",
"@types/node": "14.14.22",
"@types/redis": "2.8.28",
"@types/reflect-metadata": "0.1.0",
"@types/sinon": "9.0.10",
"@types/socket.io": "2.1.13",
"@types/ws": "7.4.0",
"@typescript-eslint/eslint-plugin": "4.14.1",
"@typescript-eslint/parser": "4.14.1",
"amqp-connection-manager": "3.2.1",
"amqplib": "0.6.0",
"apollo-server-express": "2.16.1",
"apollo-server-express": "2.19.2",
"artillery": "1.6.1",
"awesome-typescript-loader": "5.2.1",
"body-parser": "1.19.0",
"bytes": "3.1.0",
"cache-manager": "3.3.0",
"cache-manager": "3.4.0",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"clang-format": "1.4.0",
"clang-format": "1.5.0",
"commitlint-circle": "1.0.0",
"concurrently": "5.2.0",
"conventional-changelog": "3.1.21",
"core-js": "3.6.5",
"concurrently": "5.3.0",
"conventional-changelog": "3.1.24",
"core-js": "3.8.3",
"coveralls": "3.1.0",
"delete-empty": "3.0.0",
"engine.io-client": "3.4.3",
"eslint": "7.5.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.22.0",
"engine.io-client": "4.1.0",
"eslint": "7.19.0",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-import": "2.22.1",
"eventsource": "1.0.7",
"fancy-log": "1.3.3",
"fastify": "3.1.1",
"fastify-cors": "4.1.0",
"fastify-formbody": "4.0.3",
"fastify-multipart": "2.0.3",
"fastify-static": "3.2.0",
"graphql": "15.3.0",
"graphql-tools": "6.0.15",
"grpc": "1.24.3",
"fastify": "3.11.0",
"fastify-cors": "5.2.0",
"fastify-formbody": "5.0.0",
"fastify-multipart": "3.3.1",
"fastify-static": "3.4.0",
"graphql": "15.5.0",
"graphql-tools": "7.0.2",
"grpc": "1.24.4",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
"gulp-clean": "0.4.0",
"gulp-sourcemaps": "2.6.5",
"gulp-sourcemaps": "3.0.0",
"gulp-typescript": "5.0.1",
"gulp-watch": "5.0.1",
"husky": "4.2.5",
"imports-loader": "1.1.0",
"husky": "4.3.8",
"imports-loader": "2.0.0",
"json-loader": "0.5.7",
"kafkajs": "1.12.0",
"kafkajs": "1.15.0",
"lerna": "2.11.0",
"light-my-request": "4.0.1",
"lint-staged": "10.2.11",
"light-my-request": "4.4.1",
"lint-staged": "10.5.3",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"middie": "5.1.0",
"mocha": "8.0.1",
"mongoose": "5.9.26",
"mqtt": "4.1.0",
"middie": "5.2.0",
"mocha": "8.2.1",
"mongoose": "5.11.14",
"mqtt": "4.2.6",
"multer": "1.4.2",
"mysql": "2.18.1",
"nats": "1.4.9",
"nodemon": "2.0.4",
"nats": "1.4.12",
"nodemon": "2.0.7",
"nyc": "15.1.0",
"point-of-view": "4.2.0",
"prettier": "2.0.5",
"point-of-view": "4.11.0",
"prettier": "2.2.1",
"redis": "3.0.2",
"rxjs-compat": "6.6.0",
"sinon": "9.0.2",
"rxjs-compat": "6.6.3",
"sinon": "9.2.4",
"sinon-chai": "3.5.0",
"socket.io-client": "2.3.0",
"subscriptions-transport-ws": "0.9.17",
"supertest": "4.0.2",
"ts-morph": "7.1.3",
"ts-node": "8.10.2",
"typeorm": "0.2.25",
"typescript": "3.9.7",
"wrk": "1.2.0",
"ws": "7.3.1"
"socket.io-client": "2.4.0",
"subscriptions-transport-ws": "0.9.18",
"supertest": "6.1.3",
"ts-morph": "9.1.0",
"ts-node": "9.1.1",
"typeorm": "0.2.30",
"typescript": "4.1.3",
"wrk": "1.2.1",
"ws": "7.4.2"
},
"engines": {
"node": ">= 10.13.0"

View File

@@ -56,17 +56,23 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="180" valign="middle" /></a></td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td></tr></table>
#### Silver Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="170" valign="middle" /></a> </td><td>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td></tr></table>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
<a href="http://www.meetdandy.com" target="_blank"><img src="https://nestjs.com/img/dandy-wide-logo.png" width="150" valign="middle" /></td></tr></table>
#### Sponsors
@@ -84,12 +90,16 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://clay.global/" target="_blank"><img src="https://nestjs.com/img/clay-logo.svg" width="75" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://firesticktricks.com" target="_blank"><img src="https://nestjs.com/img/firesticktricks-logo.png" width="120" valign="middle" /></a></td></tr><tr><td align="center" valign="middle">
<a href="https://www.codeguesser.co.uk" target="_blank"><img src="https://nestjs.com/img/codeguesser-logo.svg" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://tekhattan.com" target="_blank"><img src="https://nestjs.com/img/tekhattan-logo.png" width="110" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://f-a.nz/" target="_blank"><img src="https://nestjs.com/img/franz.svg" width="80" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://sparkfabrik.com/" target="_blank"><img src="https://nestjs.com/img/sparkfabrik-logo.png" width="120" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://www.thebigphonestore.co.uk/" target="_blank"><img src="https://nestjs.com/img/the-big-phone-store-logo.png" width="65" valign="middle" /></a></td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr>
<tr><td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td>
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td></tr><tr><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://pickwriters.com/top-10-translation-services" target="_blank"><img src="https://nestjs.com/img/pickwriters-logo.png" width="40" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://thewordpoint.com/services/localization" target="_blank"><img src="https://nestjs.com/img/thewordpoint-logo.png" width="40" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://streamat.se/" target="_blank"><img src="https://nestjs.com/img/streamat-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://filmen.nu/" target="_blank"><img src="https://nestjs.com/img/filmen-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://meercode.io/" target="_blank"><img src="https://nestjs.com/img/meercode-logo.png" width="60" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thestandarddaily.com/" target="_blank"><img src="https://nestjs.com/img/the-standard-daily-logo.png" width="180" valign="middle" /></a></td>
</tr></table>
## Backers

View File

@@ -1,4 +1,5 @@
import { SetMetadata } from '../../decorators';
import { ExecutionContext } from '../../interfaces/features/execution-context.interface';
import { CACHE_TTL_METADATA } from '../cache.constants';
/**
@@ -12,4 +13,6 @@ import { CACHE_TTL_METADATA } from '../cache.constants';
*
* @publicApi
*/
export const CacheTTL = (ttl: number) => SetMetadata(CACHE_TTL_METADATA, ttl);
type CacheTTLFactory = (ctx: ExecutionContext) => Promise<number> | number;
export const CacheTTL = (ttl: number | CacheTTLFactory) =>
SetMetadata(CACHE_TTL_METADATA, ttl);

View File

@@ -1,4 +1,4 @@
export { CACHE_MANAGER } from './cache.constants';
export * from './cache.constants';
export * from './cache.module';
export * from './decorators';
export * from './interceptors';

View File

@@ -7,7 +7,7 @@ import {
HttpServer,
NestInterceptor,
} from '../../interfaces';
import { isNil } from '../../utils/shared.utils';
import { isFunction, isNil } from '../../utils/shared.utils';
import {
CACHE_KEY_METADATA,
CACHE_MANAGER,
@@ -37,7 +37,7 @@ export class CacheInterceptor implements NestInterceptor {
next: CallHandler,
): Promise<Observable<any>> {
const key = this.trackBy(context);
const ttl =
const ttlValueOrFactory =
this.reflector.get(CACHE_TTL_METADATA, context.getHandler()) || null;
if (!key) {
@@ -48,7 +48,9 @@ export class CacheInterceptor implements NestInterceptor {
if (!isNil(value)) {
return of(value);
}
const ttl = isFunction(ttlValueOrFactory)
? await ttlValueOrFactory(context)
: ttlValueOrFactory;
return next.handle().pipe(
tap(response => {
const args = isNil(ttl) ? [key, response] : [key, response, { ttl }];

View File

@@ -26,3 +26,5 @@ export const HTTP_CODE_METADATA = '__httpCode__';
export const MODULE_PATH = '__module_path__';
export const HEADERS_METADATA = '__headers__';
export const REDIRECT_METADATA = '__redirect__';
export const RESPONSE_PASSTHROUGH_METADATA = '__responsePassthrough__';
export const SSE_METADATA = '__sse__';

View File

@@ -3,8 +3,8 @@ import {
PATH_METADATA,
SCOPE_OPTIONS_METADATA,
} from '../../constants';
import { isString, isUndefined } from '../../utils/shared.utils';
import { ScopeOptions } from '../../interfaces/scope-options.interface';
import { isString, isUndefined } from '../../utils/shared.utils';
/**
* Interface defining options that can be passed to `@Controller()` decorator
@@ -18,7 +18,7 @@ export interface ControllerOptions extends ScopeOptions {
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*/
path?: string;
path?: string | string[];
/**
* Specifies an optional HTTP Request host filter. When configured, methods
@@ -65,7 +65,7 @@ export function Controller(): ClassDecorator;
* It defines a class that provides a context for one or more message or event
* handlers.
*
* @param {string} prefix string that defines a `route path prefix`. The prefix
* @param {string, Array} prefix string that defines a `route path prefix`. The prefix
* is pre-pended to the path specified in any request decorator in the class.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
@@ -74,7 +74,7 @@ export function Controller(): ClassDecorator;
*
* @publicApi
*/
export function Controller(prefix: string): ClassDecorator;
export function Controller(prefix: string | string[]): ClassDecorator;
/**
* Decorator that marks a class as a Nest controller that can receive inbound
@@ -137,12 +137,13 @@ export function Controller(options: ControllerOptions): ClassDecorator;
* @publicApi
*/
export function Controller(
prefixOrOptions?: string | ControllerOptions,
prefixOrOptions?: string | string[] | ControllerOptions,
): ClassDecorator {
const defaultPath = '/';
const [path, host, scopeOptions] = isUndefined(prefixOrOptions)
? [defaultPath, undefined, undefined]
: isString(prefixOrOptions)
: isString(prefixOrOptions) || Array.isArray(prefixOrOptions)
? [prefixOrOptions, undefined, undefined]
: [
prefixOrOptions.path || defaultPath,

View File

@@ -5,3 +5,4 @@ export * from './create-route-param-metadata.decorator';
export * from './render.decorator';
export * from './header.decorator';
export * from './redirect.decorator';
export * from './sse.decorator';

View File

@@ -1,9 +1,26 @@
import { ROUTE_ARGS_METADATA } from '../../constants';
import {
RESPONSE_PASSTHROUGH_METADATA,
ROUTE_ARGS_METADATA,
} from '../../constants';
import { RouteParamtypes } from '../../enums/route-paramtypes.enum';
import { PipeTransform } from '../../index';
import { Type } from '../../interfaces';
import { isNil, isString } from '../../utils/shared.utils';
/**
* The `@Response()`/`@Res` parameter decorator options.
*/
export interface ResponseDecoratorOptions {
/**
* Determines whether the response will be sent manually within the route handler,
* with the use of native response handling methods exposed by the platform-specific response object,
* or if it should passthrough Nest response processing pipeline.
*
* @default false
*/
passthrough: boolean;
}
export type ParamData = object | string | number;
export interface RouteParamMetadata {
index: number;
@@ -85,21 +102,35 @@ export const Request: () => ParameterDecorator = createRouteParamDecorator(
*
* Example: `logout(@Response() res)`
*
* @see [Request object](https://docs.nestjs.com/controllers#request-object)
*
* @publicApi
*/
export const Response: () => ParameterDecorator = createRouteParamDecorator(
RouteParamtypes.RESPONSE,
);
export const Response: (
options?: ResponseDecoratorOptions,
) => ParameterDecorator = (options?: ResponseDecoratorOptions) => (
target,
key,
index,
) => {
if (options?.passthrough) {
Reflect.defineMetadata(
RESPONSE_PASSTHROUGH_METADATA,
options?.passthrough,
target.constructor,
key,
);
}
return createRouteParamDecorator(RouteParamtypes.RESPONSE)()(
target,
key,
index,
);
};
/**
* Route handler parameter decorator. Extracts reference to the `Next` function
* from the underlying platform and populates the decorated
* parameter with the value of `Next`.
*
* @see [Request object](https://docs.nestjs.com/controllers#request-object)
*
* @publicApi
*/
export const Next: () => ParameterDecorator = createRouteParamDecorator(

View File

@@ -0,0 +1,26 @@
import { METHOD_METADATA, PATH_METADATA, SSE_METADATA } from '../../constants';
import { RequestMethod } from '../../enums/request-method.enum';
/**
* Declares this route as a Server-Sent-Events endpoint
*
* @publicApi
*/
export function Sse(path?: string): MethodDecorator {
return (
target: object,
key: string | symbol,
descriptor: TypedPropertyDescriptor<any>,
) => {
path = path && path.length ? path : '/';
Reflect.defineMetadata(PATH_METADATA, path, descriptor.value);
Reflect.defineMetadata(
METHOD_METADATA,
RequestMethod.GET,
descriptor.value,
);
Reflect.defineMetadata(SSE_METADATA, true, descriptor.value);
return descriptor;
};
}

View File

@@ -2,6 +2,7 @@ export enum HttpStatus {
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
EARLYHINTS = 103,
OK = 200,
CREATED = 201,
ACCEPTED = 202,
@@ -35,6 +36,7 @@ export enum HttpStatus {
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
EXPECTATION_FAILED = 417,
I_AM_A_TEAPOT = 418,
MISDIRECTED = 421,
UNPROCESSABLE_ENTITY = 422,
FAILED_DEPENDENCY = 424,
TOO_MANY_REQUESTS = 429,

View File

@@ -2,7 +2,7 @@ import { HttpStatus } from '../enums/http-status.enum';
import { HttpException } from './http.exception';
/**
* Defines an HTTP exception for *Gatway Timeout* type errors.
* Defines an HTTP exception for *Gateway Timeout* type errors.
*
* @see [Base Exceptions](https://docs.nestjs.com/exception-filters#base-exceptions)
*

View File

@@ -67,14 +67,14 @@ export class HttpException extends Error {
public static createBody(
objectOrError: object | string,
message?: string,
description?: string,
statusCode?: number,
) {
if (!objectOrError) {
return { statusCode, message };
return { statusCode, message: description };
}
return isObject(objectOrError) && !Array.isArray(objectOrError)
? objectOrError
: { statusCode, message: objectOrError, error: message };
: { statusCode, message: objectOrError, error: description };
}
}

View File

@@ -19,3 +19,4 @@ export * from './service-unavailable.exception';
export * from './gateway-timeout.exception';
export * from './im-a-teapot.exception';
export * from './precondition-failed.exception';
export * from './misdirected.exception';

View File

@@ -0,0 +1,49 @@
import { HttpStatus } from '../enums/http-status.enum';
import { HttpException } from './http.exception';
/**
* Defines an HTTP exception for *Misdirected* type errors.
*
* @see [Base Exceptions](https://docs.nestjs.com/exception-filters#base-exceptions)
*
* @publicApi
*/
export class MisdirectedException extends HttpException {
/**
* Instantiate a `MisdirectedException` Exception.
*
* @example
* `throw new MisdirectedException()`
*
* @usageNotes
* The HTTP response status code will be 421.
* - The `objectOrError` argument defines the JSON response body or the message string.
* - The `description` argument contains a short description of the HTTP error.
*
* By default, the JSON response body contains two properties:
* - `statusCode`: this will be the value 421.
* - `message`: the string `'Bad Gateway'` by default; override this by supplying
* a string in the `objectOrError` parameter.
*
* If the parameter `objectOrError` is a string, the response body will contain an
* additional property, `error`, with a short description of the HTTP error. To override the
* entire JSON response body, pass an object instead. Nest will serialize the object
* and return it as the JSON response body.
*
* @param objectOrError string or object describing the error condition.
* @param description a short description of the HTTP error.
*/
constructor(
objectOrError?: string | object | any,
description = 'Misdirected',
) {
super(
HttpException.createBody(
objectOrError,
description,
HttpStatus.MISDIRECTED,
),
HttpStatus.MISDIRECTED,
);
}
}

View File

@@ -31,6 +31,7 @@ export {
INestApplicationContext,
INestMicroservice,
IntrospectionResult,
MessageEvent,
MiddlewareConsumer,
ModuleMetadata,
NestApplicationOptions,

View File

@@ -50,4 +50,9 @@ export interface ClassTransformOptions {
* and exposing all class properties (with undefined, if nothing else is given)
*/
excludeExtraneousValues?: boolean;
/**
* If set to true then class transformer will take default values for unprovided fields.
* This is useful when you convert a plain object to a class and have an optional field with a default value.
*/
exposeDefaultValues?: boolean;
}

View File

@@ -52,3 +52,10 @@ export interface CorsOptions {
*/
optionsSuccessStatus?: number;
}
export interface CorsOptionsCallback {
(error: Error, options: CorsOptions): void;
}
export interface CorsOptionsDelegate<T> {
(req: T, cb: CorsOptionsCallback): void;
}

View File

@@ -2,29 +2,41 @@
* Validation error description.
* @see https://github.com/typestack/class-validator
*
* class-validator@0.13.0
*
* @publicApi
*/
export interface ValidationError {
/**
* Object that was validated.
*
* OPTIONAL - configurable via the ValidatorOptions.validationError.target option
*/
target: Record<string, any>;
target?: Record<string, any>;
/**
* Object's property that hasn't passed validation.
*/
property: string;
/**
* Value that hasn't passed validation.
* Value that haven't pass a validation.
*
* OPTIONAL - configurable via the ValidatorOptions.validationError.value option
*/
value: any;
value?: any;
/**
* Constraints that failed validation with error messages.
*/
constraints: {
constraints?: {
[type: string]: string;
};
/**
* Contains all nested validation errors of the property.
*/
children: ValidationError[];
children?: ValidationError[];
/**
* A transient set of data passed through to the validation result for response mapping
*/
contexts?: {
[type: string]: any;
};
}

View File

@@ -2,11 +2,15 @@
* Options passed to validator during validation.
* @see https://github.com/typestack/class-validator
*
* class-validator@0.10.1
* class-validator@0.13.0
*
* @publicApi
*/
export interface ValidatorOptions {
/**
* If set to true then class-validator will print extra warning messages to the console when something is not right.
*/
enableDebugMessages?: boolean;
/**
* If set to true then validator will skip validation of all properties that are undefined in the validating object.
*/
@@ -33,6 +37,15 @@ export interface ValidatorOptions {
* Groups to be used during validation of the object.
*/
groups?: string[];
/**
* Set default for `always` option of decorators. Default can be overridden in decorator options.
*/
always?: boolean;
/**
* If [groups]{@link ValidatorOptions#groups} is not given or is empty,
* ignore decorators with at least one group.
*/
strictGroups?: boolean;
/**
* If set to true, the validation will not use default messages.
* Error message always will be undefined if its not explicitly set.
@@ -55,4 +68,8 @@ export interface ValidatorOptions {
* Settings true will cause fail validation of unknown objects.
*/
forbidUnknownValues?: boolean;
/**
* When set to true, validation of the given property will stop after encountering the first error. Defaults to false.
*/
stopAtFirstError?: boolean;
}

View File

@@ -1,5 +1,8 @@
import { RequestMethod } from '../../enums';
import { CorsOptions } from '../../interfaces/external/cors-options.interface';
import {
CorsOptions,
CorsOptionsDelegate,
} from '../../interfaces/external/cors-options.interface';
import { NestApplicationOptions } from '../../interfaces/nest-application-options.interface';
export type ErrorHandler<TRequest = any, TResponse = any> = (
@@ -62,7 +65,7 @@ export interface HttpServer<TRequest = any, TResponse = any> {
getRequestUrl?(request: TResponse): string;
getInstance(): any;
registerParserMiddleware(): any;
enableCors(options: CorsOptions): any;
enableCors(options: CorsOptions | CorsOptionsDelegate<TRequest>): any;
getHttpServer(): any;
initHttpServer(options: NestApplicationOptions): void;
close(): any;

View File

@@ -0,0 +1,2 @@
export * from './http-server.interface';
export * from './message-event.interface';

View File

@@ -0,0 +1,6 @@
export interface MessageEvent {
data: string | object;
id?: string;
type?: string;
retry?: number;
}

View File

@@ -13,7 +13,7 @@ export * from './features/nest-interceptor.interface';
export * from './features/paramtype.interface';
export * from './features/pipe-transform.interface';
export * from './hooks';
export * from './http/http-server.interface';
export * from './http';
export * from './injectable.interface';
export * from './microservices/nest-hybrid-application-options.interface';
export * from './middleware';

View File

@@ -6,7 +6,7 @@ export interface MiddlewareConfigProxy {
/**
* Excludes routes from the currently processed middleware.
*
* @param {} ...routes
* @param {(string | RouteInfo)[]} routes
* @returns {MiddlewareConfigProxy}
*/
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;
@@ -15,7 +15,7 @@ export interface MiddlewareConfigProxy {
* Attaches passed either routes or controllers to the currently configured middleware.
* If you pass a class, Nest would attach middleware to every path defined within this controller.
*
* @param {} ...routes
* @param {(string | Type | RouteInfo)[]} routes
* @returns {MiddlewareConsumer}
*/
forRoutes(...routes: (string | Type<any> | RouteInfo)[]): MiddlewareConsumer;

View File

@@ -10,7 +10,7 @@ import { MiddlewareConfigProxy } from './middleware-config-proxy.interface';
*/
export interface MiddlewareConsumer {
/**
* @param middleware middleware class/function or array of classes/functions
* @param {...(Type | Function)} middleware middleware class/function or array of classes/functions
* to be attached to the passed routes.
*
* @returns {MiddlewareConfigProxy}

View File

@@ -21,7 +21,7 @@ export interface DynamicModule extends ModuleMetadata {
* in all modules. Thereafter, modules that wish to inject a service exported
* from a global module do not need to import the provider module.
*
* Default: false
* @default false
*/
global?: boolean;
}

View File

@@ -8,4 +8,11 @@ export class NestApplicationContextOptions {
* Specifies the logger to use. Pass `false` to turn off logging.
*/
logger?: LoggerService | LogLevel[] | boolean;
/**
* Whether to abort the process on Error. By default, the process is exited.
* Pass `false` to override the default behavior. If `false` is passed, Nest will not exit
* the application and instead will rethrow the exception.
*/
abortOnError?: boolean | undefined;
}

View File

@@ -1,6 +1,7 @@
import { ShutdownSignal } from '../enums/shutdown-signal.enum';
import { LoggerService } from '../services/logger.service';
import { LoggerService, LogLevel } from '../services/logger.service';
import { Abstract } from './abstract.interface';
import { DynamicModule } from './modules';
import { Type } from './type.interface';
/**
@@ -13,7 +14,7 @@ export interface INestApplicationContext {
* Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.
* @returns {INestApplicationContext}
*/
select<T>(module: Type<T>): INestApplicationContext;
select<T>(module: Type<T> | DynamicModule): INestApplicationContext;
/**
* Retrieves an instance of either injectable or controller, otherwise, throws exception.
@@ -53,7 +54,7 @@ export interface INestApplicationContext {
* Sets custom logger service
* @returns {void}
*/
useLogger(logger: LoggerService): void;
useLogger(logger: LoggerService | LogLevel[] | false): void;
/**
* Enables the usage of shutdown hooks. Will call the

View File

@@ -1,4 +1,7 @@
import { CorsOptions } from './external/cors-options.interface';
import {
CorsOptions,
CorsOptionsDelegate,
} from './external/cors-options.interface';
import { HttpsOptions } from './external/https-options.interface';
import { NestApplicationContextOptions } from './nest-application-context-options.interface';
@@ -9,7 +12,7 @@ export interface NestApplicationOptions extends NestApplicationContextOptions {
/**
* CORS options from [CORS package](https://github.com/expressjs/cors#configuration-options)
*/
cors?: boolean | CorsOptions;
cors?: boolean | CorsOptions | CorsOptionsDelegate<any>;
/**
* Whether to use underlying platform body parser.
*/

View File

@@ -1,4 +1,7 @@
import { CorsOptions } from './external/cors-options.interface';
import {
CorsOptions,
CorsOptionsDelegate,
} from './external/cors-options.interface';
import { CanActivate } from './features/can-activate.interface';
import { NestInterceptor } from './features/nest-interceptor.interface';
import { HttpServer } from './http/http-server.interface';
@@ -21,7 +24,7 @@ export interface INestApplication extends INestApplicationContext {
* A wrapper function around HTTP adapter method: `adapter.use()`.
* Example `app.use(cors())`
*
* @returns {void}
* @returns {this}
*/
use(...args: any[]): this;
@@ -30,15 +33,15 @@ export interface INestApplication extends INestApplicationContext {
*
* @returns {void}
*/
enableCors(options?: CorsOptions): void;
enableCors(options?: CorsOptions | CorsOptionsDelegate<any>): void;
/**
* Starts the application.
*
* @param {number} port
* @param {string} hostname
* @param {Function} callback Optional callback
* @returns A Promise that, when resolved, is a reference to the underlying HttpServer.
* @param {number|string} port
* @param {string} [hostname]
* @param {Function} [callback] Optional callback
* @returns {Promise} A Promise that, when resolved, is a reference to the underlying HttpServer.
*/
listen(port: number | string, callback?: () => void): Promise<any>;
listen(
@@ -50,15 +53,15 @@ export interface INestApplication extends INestApplicationContext {
/**
* Returns the url the application is listening at, based on OS and IP version. Returns as an IP value either in IPv6 or IPv4
*
* @returns The IP where the server is listening
* @returns {Promise<string>} The IP where the server is listening
*/
getUrl(): Promise<string>;
/**
* Starts the application (can be awaited).
*
* @param {number} port
* @param {string} hostname (optional)
* @param {number|string} port
* @param {string} [hostname]
* @returns {Promise}
*/
listenAsync(port: number | string, hostname?: string): Promise<any>;
@@ -66,17 +69,17 @@ export interface INestApplication extends INestApplicationContext {
/**
* Registers a prefix for every HTTP route path.
*
* @param {string} prefix The prefix for every HTTP route path (for example `/v1/api`)
* @returns {void}
* @param {string} prefix The prefix for every HTTP route path (for example `/v1/api`)
* @returns {this}
*/
setGlobalPrefix(prefix: string): this;
/**
* Setup Ws Adapter which will be used inside Gateways.
* Register Ws Adapter which will be used inside Gateways.
* Use when you want to override default `socket.io` library.
*
* @param {WebSocketAdapter} adapter
* @returns {void}
* @param {WebSocketAdapter} adapter
* @returns {this}
*/
useWebSocketAdapter(adapter: WebSocketAdapter): this;
@@ -84,8 +87,9 @@ export interface INestApplication extends INestApplicationContext {
* Connects microservice to the NestApplication instance. Transforms application
* to a hybrid instance.
*
* @param {T} options Microservice options object
* @param {NestHybridApplicationOptions} hybridOptions Hybrid options object
* @template {object} T
* @param {T} options Microservice options object
* @param {NestHybridApplicationOptions} hybridOptions Hybrid options object
* @returns {INestMicroservice}
*/
connectMicroservice<T extends object = any>(
@@ -103,7 +107,7 @@ export interface INestApplication extends INestApplicationContext {
/**
* Returns the underlying native HTTP server.
*
* @returns {any}
* @returns {*}
*/
getHttpServer(): any;
@@ -117,8 +121,8 @@ export interface INestApplication extends INestApplicationContext {
/**
* Starts all connected microservices asynchronously.
*
* @param {Function} callback Optional callback function
* @returns {void}
* @param {Function} [callback] Optional callback function
* @returns {this}
*/
startAllMicroservices(callback?: () => void): this;
@@ -133,14 +137,14 @@ export interface INestApplication extends INestApplicationContext {
* Registers exception filters as global filters (will be used within
* every HTTP route handler)
*
* @param {ExceptionFilter[]} ...filters
* @param {...ExceptionFilter} filters
*/
useGlobalFilters(...filters: ExceptionFilter[]): this;
/**
* Registers pipes as global pipes (will be used within every HTTP route handler)
*
* @param {PipeTransform[]} ...pipes
* @param {...PipeTransform} pipes
*/
useGlobalPipes(...pipes: PipeTransform<any>[]): this;
@@ -148,14 +152,14 @@ export interface INestApplication extends INestApplicationContext {
* Registers interceptors as global interceptors (will be used within
* every HTTP route handler)
*
* @param {NestInterceptor[]} ...interceptors
* @param {...NestInterceptor} interceptors
*/
useGlobalInterceptors(...interceptors: NestInterceptor[]): this;
/**
* Registers guards as global guards (will be used within every HTTP route handler)
*
* @param {CanActivate[]} ...guards
* @param {...CanActivate} guards
*/
useGlobalGuards(...guards: CanActivate[]): this;

View File

@@ -14,11 +14,10 @@ export interface INestMicroservice extends INestApplicationContext {
/**
* Starts the microservice.
*
* @param {Function} callback
* @returns {Promise}
*
* @param {Function} callback
* @returns {void}
*/
listen(callback: () => void): any;
listen(callback: () => void): void;
/**
* Starts the microservice (can be awaited).
@@ -29,38 +28,38 @@ export interface INestMicroservice extends INestApplicationContext {
/**
* Register Ws Adapter which will be used inside Gateways.
* Use, when you want to override default `socket.io` library.
* Use when you want to override default `socket.io` library.
*
* @param {WebSocketAdapter} adapter
* @returns {void}
* @param {WebSocketAdapter} adapter
* @returns {this}
*/
useWebSocketAdapter(adapter: WebSocketAdapter): this;
/**
* Registers exception filters as a global filters (will be used within every message pattern handler)
* Registers exception filters as global filters (will be used within every message pattern handler)
*
* @param {ExceptionFilter[]} ...filters
* @param {...ExceptionFilter} filters
*/
useGlobalFilters(...filters: ExceptionFilter[]): this;
/**
* Registers pipes as a global pipes (will be used within every message pattern handler)
* Registers pipes as global pipes (will be used within every message pattern handler)
*
* @param {PipeTransform[]} ...pipes
* @param {...PipeTransform} pipes
*/
useGlobalPipes(...pipes: PipeTransform<any>[]): this;
/**
* Registers interceptors as a global interceptors (will be used within every message pattern handler)
* Registers interceptors as global interceptors (will be used within every message pattern handler)
*
* @param {NestInterceptor[]} ...interceptors
* @param {...NestInterceptor} interceptors
*/
useGlobalInterceptors(...interceptors: NestInterceptor[]): this;
/**
* Registers guards as a global guards (will be used within every message pattern handler)
* Registers guards as global guards (will be used within every message pattern handler)
*
* @param {CanActivate[]} ...guards
* @param {...CanActivate} guards
*/
useGlobalGuards(...guards: CanActivate[]): this;

View File

@@ -1,3 +1,3 @@
export interface Type<T> extends Function {
export interface Type<T = any> extends Function {
new (...args: any[]): T;
}

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/common",
"version": "7.4.2",
"version": "7.6.8",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
"author": "Kamil Mysliwiec",
"homepage": "https://nestjs.com",
@@ -17,14 +17,27 @@
},
"license": "MIT",
"dependencies": {
"axios": "0.19.2",
"cli-color": "2.0.0",
"axios": "0.21.1",
"iterare": "1.2.1",
"tslib": "2.0.0",
"uuid": "8.3.0"
"tslib": "2.1.0",
"uuid": "8.3.2"
},
"peerDependencies": {
"cache-manager": "*",
"class-transformer": "*",
"class-validator": "*",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.0.0"
},
"peerDependenciesMeta": {
"cache-manager": {
"optional": true
},
"class-validator": {
"optional": true
},
"class-transformer": {
"optional": true
}
}
}

View File

@@ -60,16 +60,28 @@ export class ValidationPipe implements PipeTransform<any> {
this.exceptionFactory =
options.exceptionFactory || this.createExceptionFactory();
classValidator = loadPackage('class-validator', 'ValidationPipe', () =>
classValidator = this.loadValidator();
classTransformer = this.loadTransformer();
}
protected loadValidator() {
return loadPackage('class-validator', 'ValidationPipe', () =>
require('class-validator'),
);
classTransformer = loadPackage('class-transformer', 'ValidationPipe', () =>
}
protected loadTransformer() {
return loadPackage('class-transformer', 'ValidationPipe', () =>
require('class-transformer'),
);
}
public async transform(value: any, metadata: ArgumentMetadata) {
const metatype = this.expectedType || metadata.metatype;
if (this.expectedType) {
metadata = { ...metadata, metatype: this.expectedType };
}
const metatype = metadata.metatype;
if (!metatype || !this.toValidate(metadata)) {
return this.isTransformEnabled
? this.transformPrimitive(value, metadata)
@@ -101,7 +113,7 @@ export class ValidationPipe implements PipeTransform<any> {
const errors = await classValidator.validate(entity, this.validatorOptions);
if (errors.length > 0) {
throw this.exceptionFactory(errors);
throw await this.exceptionFactory(errors);
}
if (isPrimitive) {
// if the value is a primitive value and the validation process has been successfully completed
@@ -130,16 +142,16 @@ export class ValidationPipe implements PipeTransform<any> {
};
}
private toValidate(metadata: ArgumentMetadata): boolean {
protected toValidate(metadata: ArgumentMetadata): boolean {
const { metatype, type } = metadata;
if (type === 'custom' && !this.validateCustomDecorators) {
return false;
}
const types = [String, Boolean, Number, Array, Object];
const types = [String, Boolean, Number, Array, Object, Buffer];
return !types.some(t => metatype === t) && !isNil(metatype);
}
private transformPrimitive(value: any, metadata: ArgumentMetadata) {
protected transformPrimitive(value: any, metadata: ArgumentMetadata) {
if (!metadata.data) {
// leave top-level query/param objects unmodified
return value;
@@ -157,11 +169,11 @@ export class ValidationPipe implements PipeTransform<any> {
return value;
}
private toEmptyIfNil<T = any, R = any>(value: T): R | {} {
protected toEmptyIfNil<T = any, R = any>(value: T): R | {} {
return isNil(value) ? {} : value;
}
private stripProtoKeys(value: Record<string, any>) {
protected stripProtoKeys(value: Record<string, any>) {
delete value.__proto__;
const keys = Object.keys(value);
iterate(keys)
@@ -169,11 +181,11 @@ export class ValidationPipe implements PipeTransform<any> {
.forEach(key => this.stripProtoKeys(value[key]));
}
private isPrimitive(value: unknown): boolean {
protected isPrimitive(value: unknown): boolean {
return ['number', 'boolean', 'string'].includes(typeof value);
}
private flattenValidationErrors(
protected flattenValidationErrors(
validationErrors: ValidationError[],
): string[] {
return iterate(validationErrors)
@@ -185,29 +197,37 @@ export class ValidationPipe implements PipeTransform<any> {
.toArray();
}
private mapChildrenToValidationErrors(
protected mapChildrenToValidationErrors(
error: ValidationError,
parentPath?: string,
): ValidationError[] {
if (!(error.children && error.children.length)) {
return [error];
}
const validationErrors = [];
parentPath = parentPath
? `${parentPath}.${error.property}`
: error.property;
for (const item of error.children) {
if (item.children && item.children.length) {
validationErrors.push(...this.mapChildrenToValidationErrors(item));
validationErrors.push(
...this.mapChildrenToValidationErrors(item, parentPath),
);
}
validationErrors.push(this.prependConstraintsWithParentProp(error, item));
validationErrors.push(
this.prependConstraintsWithParentProp(parentPath, item),
);
}
return validationErrors;
}
private prependConstraintsWithParentProp(
parentError: ValidationError,
protected prependConstraintsWithParentProp(
parentPath: string,
error: ValidationError,
): ValidationError {
const constraints = {};
for (const key in error.constraints) {
constraints[key] = `${parentError.property}.${error.constraints[key]}`;
constraints[key] = `${parentPath}.${error.constraints[key]}`;
}
return {
...error,

View File

@@ -71,7 +71,7 @@ export class ClassSerializerInterceptor implements NestInterceptor {
: plainOrClass;
}
private getContextOptions(
protected getContextOptions(
context: ExecutionContext,
): ClassTransformOptions | undefined {
return (

View File

@@ -1,10 +1,9 @@
import * as clc from 'cli-color';
import { Injectable } from '../decorators/core/injectable.decorator';
import { Optional } from '../decorators/core/optional.decorator';
import { isObject } from '../utils/shared.utils';
import { clc, yellow } from '../utils/cli-colors.util';
import { isObject, isPlainObject } from '../utils/shared.utils';
declare const process: any;
const yellow = clc.xterm(3);
export type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose';
@@ -26,7 +25,7 @@ export class Logger implements LoggerService {
'verbose',
];
private static lastTimestamp?: number;
private static instance?: typeof Logger | LoggerService = Logger;
protected static instance?: typeof Logger | LoggerService = Logger;
constructor(
@Optional() protected context?: string,
@@ -62,6 +61,10 @@ export class Logger implements LoggerService {
this.context = context;
}
getTimestamp() {
return Logger.getTimestamp();
}
static overrideLogger(logger: LoggerService | LogLevel[] | boolean) {
if (Array.isArray(logger)) {
this.logLevels = logger;
@@ -80,7 +83,7 @@ export class Logger implements LoggerService {
context = '',
isTimeDiffEnabled = true,
) {
this.printMessage(message, clc.red, context, isTimeDiffEnabled);
this.printMessage(message, clc.red, context, isTimeDiffEnabled, 'stderr');
this.printStackTrace(trace);
}
@@ -96,6 +99,18 @@ export class Logger implements LoggerService {
this.printMessage(message, clc.cyanBright, context, isTimeDiffEnabled);
}
static getTimestamp() {
const localeStringOptions = {
year: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
day: '2-digit',
month: '2-digit',
};
return new Date(Date.now()).toLocaleString(undefined, localeStringOptions);
}
private callFunction(
name: 'log' | 'warn' | 'debug' | 'verbose',
message: any,
@@ -115,7 +130,7 @@ export class Logger implements LoggerService {
);
}
private getInstance(): typeof Logger | LoggerService {
protected getInstance(): typeof Logger | LoggerService {
const { instance } = Logger;
return instance === this ? Logger : instance;
}
@@ -129,31 +144,22 @@ export class Logger implements LoggerService {
color: (message: string) => string,
context = '',
isTimeDiffEnabled?: boolean,
writeStreamType?: 'stdout' | 'stderr',
) {
const output = isObject(message)
const output = isPlainObject(message)
? `${color('Object:')}\n${JSON.stringify(message, null, 2)}\n`
: color(message);
const localeStringOptions = {
year: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
day: '2-digit',
month: '2-digit',
};
const timestamp = new Date(Date.now()).toLocaleString(
undefined,
localeStringOptions,
);
const pidMessage = color(`[Nest] ${process.pid} - `);
const contextMessage = context ? yellow(`[${context}] `) : '';
const timestampDiff = this.updateAndGetTimestampDiff(isTimeDiffEnabled);
const instance = (this.instance as typeof Logger) ?? Logger;
const timestamp = instance.getTimestamp
? instance.getTimestamp()
: Logger.getTimestamp?.();
const computedMessage = `${pidMessage}${timestamp} ${contextMessage}${output}${timestampDiff}\n`;
process.stdout.write(
`${pidMessage}${timestamp} ${contextMessage}${output}${timestampDiff}\n`,
);
process[writeStreamType ?? 'stdout'].write(computedMessage);
}
private static updateAndGetTimestampDiff(
@@ -171,6 +177,6 @@ export class Logger implements LoggerService {
if (!trace) {
return;
}
process.stdout.write(`${trace}\n`);
process.stderr.write(`${trace}\n`);
}
}

View File

@@ -0,0 +1,23 @@
import { expect } from 'chai';
import { METHOD_METADATA, PATH_METADATA, SSE_METADATA } from '../../constants';
import { Sse } from '../../decorators/http/sse.decorator';
import { RequestMethod } from '../../enums/request-method.enum';
describe('@Sse', () => {
const prefix = '/prefix';
class Test {
@Sse(prefix)
public static test() {}
}
it('should enhance method with expected http status code', () => {
const path = Reflect.getMetadata(PATH_METADATA, Test.test);
expect(path).to.be.eql('/prefix');
const method = Reflect.getMetadata(METHOD_METADATA, Test.test);
expect(method).to.be.eql(RequestMethod.GET);
const metadata = Reflect.getMetadata(SSE_METADATA, Test.test);
expect(metadata).to.be.eql(true);
});
});

View File

@@ -32,12 +32,12 @@ describe('@UseGuards', () => {
expect(metadata).to.be.eql(guards);
});
it('should enhance class with multiple guards array', () => {
it('should enhance method with multiple guards array', () => {
const metadata = Reflect.getMetadata(GUARDS_METADATA, Test2.test);
expect(metadata).to.be.eql(guards.concat(guards));
});
it('when object is invalid should throw exception', () => {
it('should throw exception when object is invalid', () => {
try {
UseGuards('test' as any)(() => {});
} catch (e) {

View File

@@ -8,6 +8,7 @@ import {
IsOptional,
IsString,
ValidateNested,
IsArray,
} from 'class-validator';
import { HttpStatus } from '../../enums';
import { UnprocessableEntityException } from '../../exceptions';
@@ -156,6 +157,32 @@ describe('ValidationPipe', () => {
]);
}
});
class TestModelForNestedArrayValidation {
@IsString()
public prop: string;
@IsArray()
@ValidateNested()
@Type(() => TestModel2)
public test: TestModel2[];
}
it('should provide complete path for nested errors', async () => {
try {
const model = new TestModelForNestedArrayValidation();
model.test = [new TestModel2()];
await target.transform(model, {
type: 'body',
metatype: TestModelForNestedArrayValidation,
});
} catch (err) {
expect(err.getResponse().message).to.be.eql([
'prop must be a string',
'test.0.prop1 must be a string',
'test.0.prop2 must be a boolean value',
]);
}
});
});
describe('when validation transforms', () => {
it('should return a TestModel instance', async () => {
@@ -403,7 +430,7 @@ describe('ValidationPipe', () => {
public prop1: string;
@IsBoolean()
public prop2: string;
public prop2: boolean;
@IsOptional()
@IsString()
@@ -422,5 +449,18 @@ describe('ValidationPipe', () => {
expect(await target.transform(testObj, m)).to.equal(testObj);
});
it('should validate against the expected type if presented and metatype is primitive type', async () => {
const m: ArgumentMetadata = {
type: 'body',
metatype: String,
data: '',
};
target = new ValidationPipe({ expectedType: TestModel });
const testObj = { prop1: 'value1', prop2: 'value2' };
expect(await target.transform(testObj, m)).to.equal(testObj);
});
});
});

View File

@@ -1,14 +1,14 @@
import { expect } from 'chai';
import {
isUndefined,
isFunction,
isObject,
isString,
addLeadingSlash,
isConstructor,
validatePath,
isNil,
isEmpty,
isFunction,
isNil,
isObject,
isPlainObject,
isString,
isUndefined,
} from '../../utils/shared.utils';
function Foo(a) {
@@ -81,17 +81,17 @@ describe('Shared utils', () => {
expect(isConstructor('nope')).to.be.false;
});
});
describe('validatePath', () => {
describe('addLeadingSlash', () => {
it('should returns validated path ("add / if not exists")', () => {
expect(validatePath('nope')).to.be.eql('/nope');
expect(addLeadingSlash('nope')).to.be.eql('/nope');
});
it('should returns same path', () => {
expect(validatePath('/nope')).to.be.eql('/nope');
expect(addLeadingSlash('/nope')).to.be.eql('/nope');
});
it('should returns empty path', () => {
expect(validatePath('')).to.be.eql('');
expect(validatePath(null)).to.be.eql('');
expect(validatePath(undefined)).to.be.eql('');
expect(addLeadingSlash('')).to.be.eql('');
expect(addLeadingSlash(null)).to.be.eql('');
expect(addLeadingSlash(undefined)).to.be.eql('');
});
});
describe('isNil', () => {

View File

@@ -0,0 +1,16 @@
type ColorTextFn = (text: string) => string;
const isColorAllowed = () => !process.env.NO_COLOR;
const colorIfAllowed = (colorFn: ColorTextFn) => (text: string) =>
isColorAllowed() ? colorFn(text) : text;
export const clc = {
green: colorIfAllowed((text: string) => `\x1B[32m${text}\x1B[39m`),
yellow: colorIfAllowed((text: string) => `\x1B[33m${text}\x1B[39m`),
red: colorIfAllowed((text: string) => `\x1B[31m${text}\x1B[39m`),
magentaBright: colorIfAllowed((text: string) => `\x1B[95m${text}\x1B[39m`),
cyanBright: colorIfAllowed((text: string) => `\x1B[96m${text}\x1B[39m`),
};
export const yellow = colorIfAllowed(
(text: string) => `\x1B[38;5;3m${text}\x1B[39m`,
);

View File

@@ -24,9 +24,15 @@ export const isPlainObject = (fn: any): fn is object => {
);
};
export const validatePath = (path?: string): string =>
export const addLeadingSlash = (path?: string): string =>
path ? (path.charAt(0) !== '/' ? '/' + path : path) : '';
/**
* Deprecated. Use the "addLeadingSlash" function instead.
* @deprecated
*/
export const validatePath = addLeadingSlash;
export const isFunction = (fn: any): boolean => typeof fn === 'function';
export const isString = (fn: any): fn is string => typeof fn === 'string';
export const isConstructor = (fn: any): boolean => fn === 'constructor';

View File

@@ -56,17 +56,23 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="180" valign="middle" /></a></td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td></tr></table>
#### Silver Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="170" valign="middle" /></a> </td><td>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td></tr></table>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
<a href="http://www.meetdandy.com" target="_blank"><img src="https://nestjs.com/img/dandy-wide-logo.png" width="150" valign="middle" /></td></tr></table>
#### Sponsors
@@ -84,12 +90,16 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://clay.global/" target="_blank"><img src="https://nestjs.com/img/clay-logo.svg" width="75" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://firesticktricks.com" target="_blank"><img src="https://nestjs.com/img/firesticktricks-logo.png" width="120" valign="middle" /></a></td></tr><tr><td align="center" valign="middle">
<a href="https://www.codeguesser.co.uk" target="_blank"><img src="https://nestjs.com/img/codeguesser-logo.svg" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://tekhattan.com" target="_blank"><img src="https://nestjs.com/img/tekhattan-logo.png" width="110" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://f-a.nz/" target="_blank"><img src="https://nestjs.com/img/franz.svg" width="80" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://sparkfabrik.com/" target="_blank"><img src="https://nestjs.com/img/sparkfabrik-logo.png" width="120" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://www.thebigphonestore.co.uk/" target="_blank"><img src="https://nestjs.com/img/the-big-phone-store-logo.png" width="65" valign="middle" /></a></td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr>
<tr><td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td>
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td></tr><tr><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://pickwriters.com/top-10-translation-services" target="_blank"><img src="https://nestjs.com/img/pickwriters-logo.png" width="40" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://thewordpoint.com/services/localization" target="_blank"><img src="https://nestjs.com/img/thewordpoint-logo.png" width="40" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://streamat.se/" target="_blank"><img src="https://nestjs.com/img/streamat-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://filmen.nu/" target="_blank"><img src="https://nestjs.com/img/filmen-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://meercode.io/" target="_blank"><img src="https://nestjs.com/img/meercode-logo.png" width="60" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thestandarddaily.com/" target="_blank"><img src="https://nestjs.com/img/the-standard-daily-logo.png" width="180" valign="middle" /></a></td>
</tr></table>
## Backers

View File

@@ -1,6 +1,9 @@
import { HttpServer, RequestMethod } from '@nestjs/common';
import { RequestHandler } from '@nestjs/common/interfaces';
import { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface';
import {
CorsOptions,
CorsOptionsDelegate,
} from '@nestjs/common/interfaces/external/cors-options.interface';
import { NestApplicationOptions } from '@nestjs/common/interfaces/nest-application-options.interface';
/**
@@ -14,6 +17,14 @@ export abstract class AbstractHttpAdapter<
protected httpServer: TServer;
constructor(protected readonly instance: any) {}
all(path: string, handler: RequestHandler<TRequest, TResponse>);
all(handler: RequestHandler<TRequest, TResponse>);
all(path: any, handler?: any) {
throw new Error('Method not implemented.');
}
setBaseViewsDir?(path: string | string[]): this {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
public async init() {}
@@ -97,7 +108,10 @@ export abstract class AbstractHttpAdapter<
abstract setNotFoundHandler(handler: Function, prefix?: string);
abstract setHeader(response, name: string, value: string);
abstract registerParserMiddleware(prefix?: string);
abstract enableCors(options: CorsOptions, prefix?: string);
abstract enableCors(
options: CorsOptions | CorsOptionsDelegate<TRequest>,
prefix?: string,
);
abstract createMiddlewareFactory(
requestMethod: RequestMethod,
):

View File

@@ -14,12 +14,8 @@ export class ApplicationConfig {
private globalInterceptors: NestInterceptor[] = [];
private globalGuards: CanActivate[] = [];
private readonly globalRequestPipes: InstanceWrapper<PipeTransform>[] = [];
private readonly globalRequestFilters: InstanceWrapper<
ExceptionFilter
>[] = [];
private readonly globalRequestInterceptors: InstanceWrapper<
NestInterceptor
>[] = [];
private readonly globalRequestFilters: InstanceWrapper<ExceptionFilter>[] = [];
private readonly globalRequestInterceptors: InstanceWrapper<NestInterceptor>[] = [];
private readonly globalRequestGuards: InstanceWrapper<CanActivate>[] = [];
constructor(private ioAdapter: WebSocketAdapter | null = null) {}

View File

@@ -1,5 +1,8 @@
import { ParamData } from '@nestjs/common';
import { PARAMTYPES_METADATA } from '@nestjs/common/constants';
import {
PARAMTYPES_METADATA,
RESPONSE_PASSTHROUGH_METADATA,
} from '@nestjs/common/constants';
import {
ContextType,
Controller,
@@ -38,6 +41,14 @@ export class ContextUtils {
return Reflect.getMetadata(metadataKey, instance.constructor, methodName);
}
public reflectPassthrough(instance: Controller, methodName: string): boolean {
return Reflect.getMetadata(
RESPONSE_PASSTHROUGH_METADATA,
instance.constructor,
methodName,
);
}
public getArgumentsLength<T>(keys: string[], metadata: T): number {
return Math.max(...keys.map(key => metadata[key].index)) + 1;
}

View File

@@ -38,9 +38,7 @@ export interface ExternalContextOptions {
export class ExternalContextCreator {
private readonly contextUtils = new ContextUtils();
private readonly externalErrorProxy = new ExternalErrorProxy();
private readonly handlerMetadataStorage = new HandlerMetadataStorage<
ExternalHandlerMetadata
>();
private readonly handlerMetadataStorage = new HandlerMetadataStorage<ExternalHandlerMetadata>();
private container: NestContainer;
constructor(

View File

@@ -1,11 +1,32 @@
import { Type } from '@nestjs/common';
import { Controller } from '@nestjs/common/interfaces';
import { IncomingMessage } from 'http';
import { Observable } from 'rxjs';
import { CONTROLLER_ID_KEY } from '../injector/constants';
import { ContextId } from '../injector/instance-wrapper';
import { HeaderStream } from '../router/sse-stream';
import { ParamProperties } from './context-utils';
export const HANDLER_METADATA_SYMBOL = Symbol.for('handler_metadata:cache');
export type HandleResponseFn = HandlerResponseBasicFn | HandleSseResponseFn;
export type HandlerResponseBasicFn = <TResult, TResponse>(
result: TResult,
res: TResponse,
req?: any,
) => any;
export type HandleSseResponseFn = <
TResult extends Observable<unknown> = any,
TResponse extends HeaderStream = any,
TRequest extends IncomingMessage = any
>(
result: TResult,
res: TResponse,
req: TRequest,
) => any;
export interface HandlerMetadata {
argsLength: number;
paramtypes: any[];
@@ -17,10 +38,7 @@ export interface HandlerMetadata {
contextId?: ContextId,
inquirerId?: string,
) => (ParamProperties & { metatype?: any })[];
fnHandleResponse: <TResult, TResponse>(
result: TResult,
res: TResponse,
) => any;
fnHandleResponse: HandleResponseFn;
}
export class HandlerMetadataStorage<

View File

@@ -0,0 +1,3 @@
export const rethrow = (err: unknown) => {
throw err;
};

View File

@@ -13,18 +13,17 @@ export class ModuleCompiler {
public async compile(
metatype: Type<any> | DynamicModule | Promise<DynamicModule>,
): Promise<ModuleFactory> {
const { type, dynamicMetadata } = await this.extractMetadata(metatype);
const { type, dynamicMetadata } = this.extractMetadata(await metatype);
const token = this.moduleTokenFactory.create(type, dynamicMetadata);
return { type, dynamicMetadata, token };
}
public async extractMetadata(
metatype: Type<any> | DynamicModule | Promise<DynamicModule>,
): Promise<{
public extractMetadata(
metatype: Type<any> | DynamicModule,
): {
type: Type<any>;
dynamicMetadata?: Partial<DynamicModule> | undefined;
}> {
metatype = await metatype;
} {
if (!this.isDynamicModule(metatype)) {
return { type: metatype };
}

View File

@@ -68,7 +68,12 @@ export class NestContainer {
}
const moduleRef = new Module(type, this);
this.modules.set(token, moduleRef);
this.addDynamicMetadata(token, dynamicMetadata, [].concat(scope, type));
await this.addDynamicMetadata(
token,
dynamicMetadata,
[].concat(scope, type),
);
if (this.isGlobalModule(type, dynamicMetadata)) {
this.addGlobalModule(moduleRef);
@@ -76,7 +81,7 @@ export class NestContainer {
return moduleRef;
}
public addDynamicMetadata(
public async addDynamicMetadata(
token: string,
dynamicModuleMetadata: Partial<DynamicModule>,
scope: Type<any>[],
@@ -87,14 +92,14 @@ export class NestContainer {
this.dynamicModulesMetadata.set(token, dynamicModuleMetadata);
const { imports } = dynamicModuleMetadata;
this.addDynamicModules(imports, scope);
await this.addDynamicModules(imports, scope);
}
public addDynamicModules(modules: any[], scope: Type<any>[]) {
public async addDynamicModules(modules: any[], scope: Type<any>[]) {
if (!modules) {
return;
}
modules.forEach(module => this.addModule(module, scope));
await Promise.all(modules.map(module => this.addModule(module, scope)));
}
public isGlobalModule(

View File

@@ -69,82 +69,6 @@ export interface InjectorDependencyContext {
}
export class Injector {
public async loadMiddleware(
wrapper: InstanceWrapper,
collection: Map<string, InstanceWrapper>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const { metatype } = wrapper;
const targetWrapper = collection.get(metatype.name);
if (!isUndefined(targetWrapper.instance)) {
return;
}
const loadInstance = (instances: any[]) => {
targetWrapper.instance = targetWrapper.isDependencyTreeStatic()
? new (metatype as Type<any>)(...instances)
: Object.create(metatype.prototype);
};
await this.resolveConstructorParams(
wrapper,
moduleRef,
null,
loadInstance,
contextId,
inquirer,
);
}
public async loadController(
wrapper: InstanceWrapper<Controller>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
) {
const controllers = moduleRef.controllers;
await this.loadInstance<Controller>(
wrapper,
controllers,
moduleRef,
contextId,
wrapper,
);
await this.loadEnhancersPerContext(wrapper, contextId, wrapper);
}
public async loadInjectable<T = any>(
wrapper: InstanceWrapper<T>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const injectables = moduleRef.injectables;
await this.loadInstance<T>(
wrapper,
injectables,
moduleRef,
contextId,
inquirer,
);
}
public async loadProvider(
wrapper: InstanceWrapper<Injectable>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const providers = moduleRef.providers;
await this.loadInstance<Injectable>(
wrapper,
providers,
moduleRef,
contextId,
inquirer,
);
await this.loadEnhancersPerContext(wrapper, contextId, wrapper);
}
public loadPrototype<T>(
{ name }: InstanceWrapper<T>,
collection: Map<string, InstanceWrapper<T>>,
@@ -164,15 +88,6 @@ export class Injector {
}
}
public applyDoneHook<T>(wrapper: InstancePerContext<T>): () => void {
let done: () => void;
wrapper.donePromise = new Promise<void>((resolve, reject) => {
done = resolve;
});
wrapper.isPending = true;
return done;
}
public async loadInstance<T>(
wrapper: InstanceWrapper<T>,
collection: Map<string, InstanceWrapper>,
@@ -225,11 +140,91 @@ export class Injector {
);
}
public async loadMiddleware(
wrapper: InstanceWrapper,
collection: Map<string, InstanceWrapper>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const { metatype } = wrapper;
const targetWrapper = collection.get(metatype.name);
if (!isUndefined(targetWrapper.instance)) {
return;
}
targetWrapper.instance = Object.create(metatype.prototype);
await this.loadInstance(
wrapper,
collection,
moduleRef,
contextId,
inquirer || wrapper,
);
}
public async loadController(
wrapper: InstanceWrapper<Controller>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
) {
const controllers = moduleRef.controllers;
await this.loadInstance<Controller>(
wrapper,
controllers,
moduleRef,
contextId,
wrapper,
);
await this.loadEnhancersPerContext(wrapper, contextId, wrapper);
}
public async loadInjectable<T = any>(
wrapper: InstanceWrapper<T>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const injectables = moduleRef.injectables;
await this.loadInstance<T>(
wrapper,
injectables,
moduleRef,
contextId,
inquirer,
);
}
public async loadProvider(
wrapper: InstanceWrapper<Injectable>,
moduleRef: Module,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
) {
const providers = moduleRef.providers;
await this.loadInstance<Injectable>(
wrapper,
providers,
moduleRef,
contextId,
inquirer,
);
await this.loadEnhancersPerContext(wrapper, contextId, wrapper);
}
public applyDoneHook<T>(wrapper: InstancePerContext<T>): () => void {
let done: () => void;
wrapper.donePromise = new Promise<void>((resolve, reject) => {
done = resolve;
});
wrapper.isPending = true;
return done;
}
public async resolveConstructorParams<T>(
wrapper: InstanceWrapper<T>,
moduleRef: Module,
inject: InjectorDependency[],
callback: (args: unknown[]) => void,
callback: (args: unknown[]) => void | Promise<void>,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
parentInquirer?: InstanceWrapper,
@@ -274,7 +269,7 @@ export class Injector {
if (!instanceHost.isResolved && !paramWrapper.forwardRef) {
isResolved = false;
}
return instanceHost && instanceHost.instance;
return instanceHost?.instance;
} catch (err) {
const isOptional = optionalDependenciesIds.includes(index);
if (!isOptional) {
@@ -372,7 +367,7 @@ export class Injector {
public async resolveComponentHost<T>(
moduleRef: Module,
instanceWrapper: InstanceWrapper<T>,
instanceWrapper: InstanceWrapper<T | Promise<T>>,
contextId = STATIC_CONTEXT,
inquirer?: InstanceWrapper,
): Promise<InstanceWrapper> {

View File

@@ -47,7 +47,15 @@ export class ModuleTokenFactory {
private replacer(key: string, value: any) {
if (typeof value === 'function') {
return value.name;
const funcAsString = value.toString();
const isClass = /^class\s/.test(funcAsString);
if (isClass) {
return value.name;
}
return hash(funcAsString, { ignoreUnknown: true });
}
if (typeof value === 'symbol') {
return value.toString();
}
return value;
}

View File

@@ -6,8 +6,10 @@ import {
} from '@nestjs/common/interfaces/middleware/middleware-configuration.interface';
import { NestMiddleware } from '@nestjs/common/interfaces/middleware/nest-middleware.interface';
import { NestModule } from '@nestjs/common/interfaces/modules/nest-module.interface';
import { Type } from '@nestjs/common/interfaces/type.interface';
import { isUndefined, validatePath } from '@nestjs/common/utils/shared.utils';
import {
addLeadingSlash,
isUndefined,
} from '@nestjs/common/utils/shared.utils';
import { ApplicationConfig } from '../application-config';
import { InvalidMiddlewareException } from '../errors/exceptions/invalid-middleware.exception';
import { RuntimeException } from '../errors/exceptions/runtime.exception';
@@ -105,18 +107,19 @@ export class MiddlewareModule {
applicationRef: any,
) {
const configs = middlewareContainer.getConfigurations();
const registerAllConfigs = (
const registerAllConfigs = async (
moduleKey: string,
middlewareConfig: MiddlewareConfiguration[],
) =>
middlewareConfig.map(async (config: MiddlewareConfiguration) => {
) => {
for (const config of middlewareConfig) {
await this.registerMiddlewareConfig(
middlewareContainer,
config,
moduleKey,
applicationRef,
);
});
}
};
const entriesSortedByDistance = [...configs.entries()].sort(
([moduleA], [moduleB]) => {
@@ -126,10 +129,9 @@ export class MiddlewareModule {
);
},
);
const registerModuleConfigs = async ([module, moduleConfigs]) => {
await Promise.all(registerAllConfigs(module, [...moduleConfigs]));
};
await Promise.all(entriesSortedByDistance.map(registerModuleConfigs));
for (const [moduleRef, moduleConfigurations] of entriesSortedByDistance) {
await registerAllConfigs(moduleRef, [...moduleConfigurations]);
}
}
public async registerMiddlewareConfig(
@@ -139,9 +141,7 @@ export class MiddlewareModule {
applicationRef: any,
) {
const { forRoutes } = config;
const registerRouteMiddleware = async (
routeInfo: Type<any> | string | RouteInfo,
) => {
for (const routeInfo of forRoutes) {
await this.registerRouteMiddleware(
middlewareContainer,
routeInfo as RouteInfo,
@@ -149,8 +149,7 @@ export class MiddlewareModule {
moduleKey,
applicationRef,
);
};
await Promise.all(forRoutes.map(registerRouteMiddleware));
}
}
public async registerRouteMiddleware(
@@ -163,25 +162,24 @@ export class MiddlewareModule {
const middlewareCollection = [].concat(config.middleware);
const moduleRef = this.container.getModuleByKey(moduleKey);
await Promise.all(
middlewareCollection.map(async (metatype: Type<NestMiddleware>) => {
const collection = middlewareContainer.getMiddlewareCollection(
moduleKey,
);
const instanceWrapper = collection.get(metatype.name);
if (isUndefined(instanceWrapper)) {
throw new RuntimeException();
}
await this.bindHandler(
instanceWrapper,
applicationRef,
routeInfo.method,
routeInfo.path,
moduleRef,
collection,
);
}),
);
for (const metatype of middlewareCollection) {
const collection = middlewareContainer.getMiddlewareCollection(moduleKey);
const instanceWrapper = collection.get(metatype.name);
if (isUndefined(instanceWrapper)) {
throw new RuntimeException();
}
if (instanceWrapper.isTransient) {
return;
}
await this.bindHandler(
instanceWrapper,
applicationRef,
routeInfo.method,
routeInfo.path,
moduleRef,
collection,
);
}
}
private async bindHandler(
@@ -273,7 +271,7 @@ export class MiddlewareModule {
) => void,
) {
const prefix = this.config.getGlobalPrefix();
const basePath = validatePath(prefix);
const basePath = addLeadingSlash(prefix);
if (basePath && path === '/*') {
// strip slash when a wildcard is being used
// and global prefix has been set

View File

@@ -2,9 +2,9 @@ import { RequestMethod } from '@nestjs/common';
import { PATH_METADATA } from '@nestjs/common/constants';
import { RouteInfo, Type } from '@nestjs/common/interfaces';
import {
addLeadingSlash,
isString,
isUndefined,
validatePath,
} from '@nestjs/common/utils/shared.utils';
import { NestContainer } from '../injector/container';
import { MetadataScanner } from '../metadata-scanner';
@@ -64,11 +64,11 @@ export class RoutesMapper {
}
private validateGlobalPath(path: string): string {
const prefix = validatePath(path);
const prefix = addLeadingSlash(path);
return prefix === '/' ? '' : prefix;
}
private validateRoutePath(path: string): string {
return validatePath(path);
return addLeadingSlash(path);
}
}

View File

@@ -2,9 +2,10 @@ import {
INestApplicationContext,
Logger,
LoggerService,
LogLevel,
ShutdownSignal,
} from '@nestjs/common';
import { Abstract, Scope } from '@nestjs/common/interfaces';
import { Abstract, DynamicModule, Scope } from '@nestjs/common/interfaces';
import { Type } from '@nestjs/common/interfaces/type.interface';
import { isEmpty } from '@nestjs/common/utils/shared.utils';
import { iterate } from 'iterare';
@@ -21,6 +22,7 @@ import {
callModuleInitHook,
} from './hooks';
import { ContextId } from './injector';
import { ModuleCompiler } from './injector/compiler';
import { NestContainer } from './injector/container';
import { Injector } from './injector/injector';
import { InstanceLinksHost } from './injector/instance-links-host';
@@ -32,8 +34,10 @@ import { Module } from './injector/module';
export class NestApplicationContext implements INestApplicationContext {
protected isInitialized = false;
protected readonly injector = new Injector();
private shutdownCleanupRef?: (...args: unknown[]) => unknown;
private readonly activeShutdownSignals = new Array<string>();
private readonly moduleCompiler = new ModuleCompiler();
private shutdownCleanupRef?: (...args: unknown[]) => unknown;
private _instanceLinksHost: InstanceLinksHost;
private get instanceLinksHost() {
@@ -54,14 +58,20 @@ export class NestApplicationContext implements INestApplicationContext {
this.contextModule = modules.next().value;
}
public select<T>(moduleType: Type<T>): INestApplicationContext {
const modules = this.container.getModules();
const moduleMetatype = this.contextModule.metatype;
const scope = this.scope.concat(moduleMetatype);
const moduleTokenFactory = this.container.getModuleTokenFactory();
public select<T>(
moduleType: Type<T> | DynamicModule,
): INestApplicationContext {
const modulesContainer = this.container.getModules();
const contextModuleCtor = this.contextModule.metatype;
const scope = this.scope.concat(contextModuleCtor);
const token = moduleTokenFactory.create(moduleType);
const selectedModule = modules.get(token);
const moduleTokenFactory = this.container.getModuleTokenFactory();
const { type, dynamicMetadata } = this.moduleCompiler.extractMetadata(
moduleType,
);
const token = moduleTokenFactory.create(type, dynamicMetadata);
const selectedModule = modulesContainer.get(token);
if (!selectedModule) {
throw new UnknownModuleException();
}
@@ -78,7 +88,7 @@ export class NestApplicationContext implements INestApplicationContext {
}
public resolve<TInput = any, TResult = TInput>(
typeOrToken: Type<TInput> | string | symbol,
typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol,
contextId = createContextId(),
options: { strict: boolean } = { strict: false },
): Promise<TResult> {
@@ -119,7 +129,7 @@ export class NestApplicationContext implements INestApplicationContext {
this.unsubscribeFromProcessSignals();
}
public useLogger(logger: LoggerService) {
public useLogger(logger: LoggerService | LogLevel[] | false) {
Logger.overrideLogger(logger);
}
@@ -177,7 +187,7 @@ export class NestApplicationContext implements INestApplicationContext {
} catch (err) {
Logger.error(
MESSAGES.ERROR_DURING_SHUTDOWN,
(err as Error).stack,
(err as Error)?.stack,
NestApplicationContext.name,
);
process.exit(1);
@@ -277,7 +287,7 @@ export class NestApplicationContext implements INestApplicationContext {
}
protected async resolvePerContext<TInput = any, TResult = TInput>(
typeOrToken: Type<TInput> | string | symbol,
typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol,
contextModule: Module,
contextId: ContextId,
options?: { strict: boolean },

View File

@@ -9,11 +9,14 @@ import {
PipeTransform,
WebSocketAdapter,
} from '@nestjs/common';
import { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface';
import {
CorsOptions,
CorsOptionsDelegate,
} from '@nestjs/common/interfaces/external/cors-options.interface';
import { NestApplicationOptions } from '@nestjs/common/interfaces/nest-application-options.interface';
import { Logger } from '@nestjs/common/services/logger.service';
import { loadPackage } from '@nestjs/common/utils/load-package.util';
import { isObject, validatePath } from '@nestjs/common/utils/shared.utils';
import { addLeadingSlash, isObject } from '@nestjs/common/utils/shared.utils';
import { iterate } from 'iterare';
import { platform } from 'os';
import { AbstractHttpAdapter } from './adapters';
@@ -40,7 +43,8 @@ const {
/**
* @publicApi
*/
export class NestApplication extends NestApplicationContext
export class NestApplication
extends NestApplicationContext
implements INestApplication {
private readonly logger = new Logger(NestApplication.name, true);
private readonly middlewareModule = new MiddlewareModule();
@@ -101,11 +105,15 @@ export class NestApplication extends NestApplicationContext
if (!this.appOptions || !this.appOptions.cors) {
return undefined;
}
const isCorsOptionsObj = isObject(this.appOptions.cors);
if (!isCorsOptionsObj) {
const passCustomOptions =
isObject(this.appOptions.cors) ||
typeof this.appOptions.cors === 'function';
if (!passCustomOptions) {
return this.enableCors();
}
return this.enableCors(this.appOptions.cors as CorsOptions);
return this.enableCors(
this.appOptions.cors as CorsOptions | CorsOptionsDelegate<any>,
);
}
public createServer<T = any>(): T {
@@ -163,7 +171,7 @@ export class NestApplication extends NestApplicationContext
await this.registerMiddleware(this.httpAdapter);
const prefix = this.config.getGlobalPrefix();
const basePath = validatePath(prefix);
const basePath = addLeadingSlash(prefix);
this.routesResolver.resolve(this.httpAdapter, basePath);
}
@@ -223,7 +231,7 @@ export class NestApplication extends NestApplicationContext
return this;
}
public enableCors(options?: CorsOptions): void {
public enableCors(options?: CorsOptions | CorsOptionsDelegate<any>): void {
this.httpAdapter.enableCors(options);
}
@@ -238,8 +246,8 @@ export class NestApplication extends NestApplicationContext
): Promise<any>;
public async listen(port: number | string, ...args: any[]): Promise<any> {
!this.isInitialized && (await this.init());
this.httpAdapter.listen(port, ...args);
this.isListening = true;
this.httpAdapter.listen(port, ...args);
return this.httpServer;
}
@@ -347,7 +355,7 @@ export class NestApplication extends NestApplicationContext
}
private listenToPromise(microservice: INestMicroservice) {
return new Promise(async resolve => {
return new Promise<void>(async resolve => {
await microservice.listen(resolve);
});
}

View File

@@ -15,6 +15,7 @@ import { ApplicationConfig } from './application-config';
import { MESSAGES } from './constants';
import { ExceptionsZone } from './errors/exceptions-zone';
import { loadAdapter } from './helpers/load-adapter';
import { rethrow } from './helpers/rethrow';
import { NestContainer } from './injector/container';
import { InstanceLoader } from './injector/instance-loader';
import { MetadataScanner } from './metadata-scanner';
@@ -27,6 +28,7 @@ import { DependenciesScanner } from './scanner';
*/
export class NestFactoryStatic {
private readonly logger = new Logger('NestFactory', true);
private abortOnError = true;
/**
* Creates an instance of NestApplication.
*
@@ -67,7 +69,7 @@ export class NestFactoryStatic {
const applicationConfig = new ApplicationConfig();
const container = new NestContainer(applicationConfig);
this.setAbortOnError(serverOrOptions, options);
this.applyLogger(appOptions);
await this.initialize(module, container, applicationConfig, httpServer);
@@ -101,7 +103,7 @@ export class NestFactoryStatic {
);
const applicationConfig = new ApplicationConfig();
const container = new NestContainer(applicationConfig);
this.setAbortOnError(options);
this.applyLogger(options);
await this.initialize(module, container, applicationConfig);
@@ -124,10 +126,9 @@ export class NestFactoryStatic {
options?: NestApplicationContextOptions,
): Promise<INestApplicationContext> {
const container = new NestContainer();
this.setAbortOnError(options);
this.applyLogger(options);
await this.initialize(module, container);
const modules = container.getModules().values();
const root = modules.next().value;
const context = this.createNestInstance<NestApplicationContext>(
@@ -155,17 +156,26 @@ export class NestFactoryStatic {
);
container.setHttpAdapter(httpServer);
const teardown = this.abortOnError === false ? rethrow : undefined;
await httpServer?.init();
try {
this.logger.log(MESSAGES.APPLICATION_START);
await ExceptionsZone.asyncRun(async () => {
await dependenciesScanner.scan(module);
await instanceLoader.createInstancesOfDependencies();
dependenciesScanner.applyApplicationProviders();
});
}, teardown);
} catch (e) {
this.handleInitializationError(e);
}
}
private handleInitializationError(err: unknown) {
if (this.abortOnError) {
process.abort();
}
rethrow(err);
}
private createProxy(target: any) {
@@ -192,20 +202,23 @@ export class NestFactoryStatic {
receiver: Record<string, any>,
prop: string,
): Function {
const teardown = this.abortOnError === false ? rethrow : undefined;
return (...args: unknown[]) => {
let result: unknown;
ExceptionsZone.run(() => {
result = receiver[prop](...args);
});
}, teardown);
return result;
};
}
private applyLogger(options: NestApplicationContextOptions | undefined) {
if (!options) {
if (!options || options?.logger === true || isNil(options?.logger)) {
return;
}
!isNil(options.logger) && Logger.overrideLogger(options.logger);
Logger.overrideLogger(options.logger);
}
private createHttpAdapter<T = any>(httpServer?: T): AbstractHttpAdapter {
@@ -225,6 +238,15 @@ export class NestFactoryStatic {
);
}
private setAbortOnError(
serverOrOptions?: AbstractHttpAdapter | NestApplicationOptions,
options?: NestApplicationContextOptions | NestApplicationOptions,
) {
this.abortOnError = this.isHttpServer(serverOrOptions)
? !(options && options.abortOnError === false)
: !(serverOrOptions && serverOrOptions.abortOnError === false);
}
private createAdapterProxy<T>(app: NestApplication, adapter: HttpServer): T {
return (new Proxy(app, {
get: (receiver: Record<string, any>, prop: string) => {

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "7.4.2",
"version": "7.6.8",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -27,20 +27,34 @@
}
},
"dependencies": {
"@nuxtjs/opencollective": "0.2.2",
"@nuxtjs/opencollective": "0.3.2",
"fast-safe-stringify": "2.0.7",
"iterare": "1.2.1",
"object-hash": "2.0.3",
"object-hash": "2.1.1",
"path-to-regexp": "3.2.0",
"tslib": "2.0.0",
"uuid": "8.3.0"
"tslib": "2.1.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@nestjs/common": "7.4.2"
"@nestjs/common": "7.6.8"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0",
"@nestjs/microservices": "^7.0.0",
"@nestjs/platform-express": "^7.0.0",
"@nestjs/websockets": "^7.0.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.0.0"
},
"peerDependenciesMeta": {
"@nestjs/websockets": {
"optional": true
},
"@nestjs/microservices": {
"optional": true
},
"@nestjs/platform-express": {
"optional": true
}
}
}

View File

@@ -13,19 +13,24 @@ import {
REDIRECT_METADATA,
RENDER_METADATA,
ROUTE_ARGS_METADATA,
SSE_METADATA,
} from '@nestjs/common/constants';
import { RouteParamMetadata } from '@nestjs/common/decorators';
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';
import { ContextType, Controller } from '@nestjs/common/interfaces';
import { isEmpty, isString } from '@nestjs/common/utils/shared.utils';
import { IncomingMessage } from 'http';
import { Observable } from 'rxjs';
import { FORBIDDEN_MESSAGE } from '../guards/constants';
import { GuardsConsumer } from '../guards/guards-consumer';
import { GuardsContextCreator } from '../guards/guards-context-creator';
import { ContextUtils } from '../helpers/context-utils';
import { ExecutionContextHost } from '../helpers/execution-context-host';
import {
HandleResponseFn,
HandlerMetadata,
HandlerMetadataStorage,
HandlerResponseBasicFn,
} from '../helpers/handler-metadata-storage';
import { STATIC_CONTEXT } from '../injector/constants';
import { InterceptorsConsumer } from '../interceptors/interceptors-consumer';
@@ -38,6 +43,7 @@ import {
RedirectResponse,
RouterResponseController,
} from './router-response-controller';
import { HeaderStream } from './sse-stream';
export interface ParamProperties {
index: number;
@@ -160,7 +166,7 @@ export class RouterExecutionContext {
handler(args, req, res, next),
contextType,
);
await fnHandleResponse(result, res);
await (fnHandleResponse as HandlerResponseBasicFn)(result, res, req);
};
}
@@ -209,9 +215,10 @@ export class RouterExecutionContext {
);
const paramsMetadata = getParamsMetadata(moduleKey);
const isResponseHandled = paramsMetadata.some(
({ type }) =>
type === RouteParamtypes.RESPONSE || type === RouteParamtypes.NEXT,
const isResponseHandled = this.isResponseHandled(
instance,
methodName,
paramsMetadata,
);
const httpRedirectResponse = this.reflectRedirect(callback);
@@ -265,6 +272,10 @@ export class RouterExecutionContext {
return Reflect.getMetadata(HEADERS_METADATA, callback) || [];
}
public reflectSse(callback: (...args: unknown[]) => unknown): string {
return Reflect.getMetadata(SSE_METADATA, callback);
}
public exchangeKeysForValues(
keys: string[],
metadata: Record<number, RouteParamMetadata>,
@@ -398,7 +409,7 @@ export class RouterExecutionContext {
isResponseHandled: boolean,
redirectResponse?: RedirectResponse,
httpStatusCode?: number,
) {
): HandleResponseFn {
const renderTemplate = this.reflectRenderTemplate(callback);
if (renderTemplate) {
return async <TResult, TResponse>(result: TResult, res: TResponse) => {
@@ -410,10 +421,44 @@ export class RouterExecutionContext {
await this.responseController.redirect(result, res, redirectResponse);
};
}
const isSseHandler = !!this.reflectSse(callback);
if (isSseHandler) {
return async <
TResult extends Observable<unknown> = any,
TResponse extends HeaderStream = any,
TRequest extends IncomingMessage = any
>(
result: TResult,
res: TResponse,
req: TRequest,
) => {
await this.responseController.sse(
result,
(res as any).raw || res,
(req as any).raw || req,
);
};
}
return async <TResult, TResponse>(result: TResult, res: TResponse) => {
result = await this.responseController.transformToResult(result);
!isResponseHandled &&
(await this.responseController.apply(result, res, httpStatusCode));
};
}
private isResponseHandled(
instance: Controller,
methodName: string,
paramsMetadata: ParamProperties[],
): boolean {
const hasResponseOrNextDecorator = paramsMetadata.some(
({ type }) =>
type === RouteParamtypes.RESPONSE || type === RouteParamtypes.NEXT,
);
const isPassthroughEnabled = this.contextUtils.reflectPassthrough(
instance,
methodName,
);
return hasResponseOrNextDecorator && !isPassthroughEnabled;
}
}

View File

@@ -6,9 +6,9 @@ import { Controller } from '@nestjs/common/interfaces/controllers/controller.int
import { Type } from '@nestjs/common/interfaces/type.interface';
import { Logger } from '@nestjs/common/services/logger.service';
import {
addLeadingSlash,
isString,
isUndefined,
validatePath,
} from '@nestjs/common/utils/shared.utils';
import * as pathToRegexp from 'path-to-regexp';
import { ApplicationConfig } from '../application-config';
@@ -87,20 +87,20 @@ export class RouterExplorer {
);
}
public extractRouterPath(
metatype: Type<Controller>,
prefix?: string,
): string {
public extractRouterPath(metatype: Type<Controller>, prefix = ''): string[] {
let path = Reflect.getMetadata(PATH_METADATA, metatype);
if (prefix) path = prefix + this.validateRoutePath(path);
return this.validateRoutePath(path);
}
public validateRoutePath(path: string): string {
if (isUndefined(path)) {
throw new UnknownRequestMappingException();
}
return validatePath(path);
if (Array.isArray(path)) {
path = path.map(p => prefix + addLeadingSlash(p));
} else {
path = [prefix + addLeadingSlash(path)];
}
return path.map(p => addLeadingSlash(p));
}
public scanForPaths(
@@ -134,8 +134,8 @@ export class RouterExplorer {
targetCallback,
);
const path = isString(routePath)
? [this.validateRoutePath(routePath)]
: routePath.map(p => this.validateRoutePath(p));
? [addLeadingSlash(routePath)]
: routePath.map(p => addLeadingSlash(p));
return {
path,
requestMethod,

View File

@@ -1,5 +1,9 @@
import { HttpServer, HttpStatus, RequestMethod } from '@nestjs/common';
import { isFunction } from '@nestjs/common/utils/shared.utils';
import { isFunction, isObject } from '@nestjs/common/utils/shared.utils';
import { IncomingMessage } from 'http';
import { Observable } from 'rxjs';
import { debounce } from 'rxjs/operators';
import { HeaderStream, SseStream } from './sse-stream';
export interface CustomHeader {
name: string;
@@ -78,4 +82,42 @@ export class RouterResponseController {
) {
this.applicationRef.status(response, statusCode);
}
public async sse<
TInput extends Observable<unknown> = any,
TResponse extends HeaderStream = any,
TRequest extends IncomingMessage = any
>(result: TInput, response: TResponse, request: TRequest) {
this.assertObservable(result);
const stream = new SseStream(request);
stream.pipe(response);
const subscription = result
.pipe(
debounce(
(message: any) =>
new Promise(resolve => {
if (!isObject(message)) {
message = { data: message };
}
stream.writeMessage(message, resolve);
}),
),
)
.subscribe();
request.on('close', () => {
response.end();
subscription.unsubscribe();
});
}
private assertObservable(result: any) {
if (!isFunction(result.subscribe)) {
throw new ReferenceError(
'You must return an Observable stream to use Server-Sent Events (SSE).',
);
}
}
}

View File

@@ -60,24 +60,27 @@ export class RoutesResolver implements Resolver {
const { metatype } = instanceWrapper;
const host = this.getHostMetadata(metatype);
const path = this.routerExplorer.extractRouterPath(
const paths = this.routerExplorer.extractRouterPath(
metatype as Type<any>,
basePath,
);
const controllerName = metatype.name;
this.logger.log(
CONTROLLER_MAPPING_MESSAGE(
controllerName,
this.routerExplorer.stripEndSlash(path),
),
);
this.routerExplorer.explore(
instanceWrapper,
moduleName,
applicationRef,
path,
host,
);
paths.forEach(path => {
this.logger.log(
CONTROLLER_MAPPING_MESSAGE(
controllerName,
this.routerExplorer.stripEndSlash(path),
),
);
this.routerExplorer.explore(
instanceWrapper,
moduleName,
applicationRef,
path,
host,
);
});
});
}

View File

@@ -0,0 +1,107 @@
import { MessageEvent } from '@nestjs/common/interfaces';
import { IncomingMessage, OutgoingHttpHeaders } from 'http';
import { Transform } from 'stream';
function toDataString(data: string | object): string {
if (typeof data === 'object') {
return toDataString(JSON.stringify(data));
}
return data
.split(/\r\n|\r|\n/)
.map(line => `data: ${line}\n`)
.join('');
}
interface WriteHeaders {
writeHead?(
statusCode: number,
reasonPhrase?: string,
headers?: OutgoingHttpHeaders,
): void;
writeHead?(statusCode: number, headers?: OutgoingHttpHeaders): void;
flushHeaders?(): void;
}
export type HeaderStream = NodeJS.WritableStream & WriteHeaders;
/**
* Adapted from https://raw.githubusercontent.com/EventSource/node-ssestream
* Transforms "messages" to W3C event stream content.
* See https://html.spec.whatwg.org/multipage/server-sent-events.html
* A message is an object with one or more of the following properties:
* - data (String or object, which gets turned into JSON)
* - type
* - id
* - retry
*
* If constructed with a HTTP Request, it will optimise the socket for streaming.
* If this stream is piped to an HTTP Response, it will set appropriate headers.
*/
export class SseStream extends Transform {
private lastEventId: number = null;
constructor(req?: IncomingMessage) {
super({ objectMode: true });
if (req && req.socket) {
req.socket.setKeepAlive(true);
req.socket.setNoDelay(true);
req.socket.setTimeout(0);
}
}
pipe<T extends HeaderStream>(destination: T, options?: { end?: boolean }): T {
if (destination.writeHead) {
destination.writeHead(200, {
// See https://github.com/dunglas/mercure/blob/master/hub/subscribe.go#L124-L130
'Content-Type': 'text/event-stream',
Connection: 'keep-alive',
// Disable cache, even for old browsers and proxies
'Cache-Control':
'private, no-cache, no-store, must-revalidate, max-age=0, no-transform',
'Transfer-Encoding': 'identity',
Pragma: 'no-cache',
Expire: '0',
// NGINX support https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-buffering
'X-Accel-Buffering': 'no',
});
destination.flushHeaders();
}
destination.write(':\n');
return super.pipe(destination, options);
}
_transform(
message: MessageEvent,
encoding: string,
callback: (error?: Error | null, data?: any) => void,
) {
let data = message.type ? `event: ${message.type}\n` : '';
data += message.id ? `id: ${message.id}\n` : '';
data += message.retry ? `retry: ${message.retry}\n` : '';
data += message.data ? toDataString(message.data) : '';
data += '\n';
this.push(data);
callback();
}
/**
* Calls `.write` but handles the drain if needed
*/
writeMessage(
message: MessageEvent,
cb: (error: Error | null | undefined) => void,
) {
if (!message.id) {
this.lastEventId++;
message.id = this.lastEventId.toString();
}
if (!this.write(message, 'utf-8', cb)) {
this.once('drain', cb);
} else {
process.nextTick(cb);
}
}
}

Some files were not shown because too many files have changed in this diff Show More