Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/nest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.0.9
Choose a base ref
...
head repository: nestjs/nest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.0.10
Choose a head ref

Commits on Apr 20, 2020

  1. Copy the full SHA
    810bb02 View commit details

Commits on Apr 23, 2020

  1. Copy the full SHA
    678986a View commit details

Commits on Apr 24, 2020

  1. Copy the full SHA
    23181cb View commit details
  2. Copy the full SHA
    55a828a View commit details
  3. Copy the full SHA
    f0973d6 View commit details

Commits on Apr 25, 2020

  1. Copy the full SHA
    426a3b0 View commit details
  2. Merge pull request #4673 from nestjs/renovate/concurrently-5.x

    chore(deps): update dependency concurrently to v5.2.0
    kamilmysliwiec authored Apr 25, 2020
    Copy the full SHA
    e0a2eb7 View commit details
  3. Merge pull request #4672 from nestjs/renovate/mongoose-5.x

    chore(deps): update dependency @types/mongoose to v5.7.13
    kamilmysliwiec authored Apr 25, 2020
    Copy the full SHA
    392a13f View commit details
  4. Merge pull request #4663 from nestjs/renovate/class-validator-0.x

    fix(deps): update dependency class-validator to v0.12.2
    kamilmysliwiec authored Apr 25, 2020
    Copy the full SHA
    1f6deb0 View commit details
  5. Merge pull request #4667 from nestjs/renovate/nest-monorepo

    fix(deps): update nest monorepo to v7.0.9
    kamilmysliwiec authored Apr 25, 2020
    Copy the full SHA
    b271d89 View commit details
  6. Merge pull request #4665 from nestjs/renovate/coveralls-3.x

    chore(deps): update dependency coveralls to v3.1.0
    kamilmysliwiec authored Apr 25, 2020
    Copy the full SHA
    fb44f21 View commit details
  7. Copy the full SHA
    74d7a2f View commit details

Commits on Apr 26, 2020

  1. Copy the full SHA
    0c2e73c View commit details
  2. Copy the full SHA
    a215322 View commit details
  3. Copy the full SHA
    649033d View commit details

Commits on Apr 27, 2020

  1. Merge pull request #4685 from nestjs/renovate/ts-morph-7.x

    chore(deps): update dependency ts-morph to v7.0.3
    kamilmysliwiec authored Apr 27, 2020
    Copy the full SHA
    afc19bd View commit details
  2. Merge pull request #4681 from nestjs/renovate/mongoose-5.x

    chore(deps): update dependency @types/mongoose to v5.7.14
    kamilmysliwiec authored Apr 27, 2020
    Copy the full SHA
    87bdf87 View commit details
  3. Merge pull request #4680 from nestjs/renovate/mocha-7.x

    chore(deps): update dependency mocha to v7.1.2
    kamilmysliwiec authored Apr 27, 2020
    Copy the full SHA
    f2b3825 View commit details
  4. Merge pull request #4675 from nestjs/renovate/ws-7.x

    fix(deps): update dependency ws to v7.2.5
    kamilmysliwiec authored Apr 27, 2020
    Copy the full SHA
    a92f126 View commit details
  5. Copy the full SHA
    694704c View commit details
  6. Merge pull request #4679 from nestjs/renovate/ts-node-8.x

    chore(deps): update dependency ts-node to v8.9.1
    kamilmysliwiec authored Apr 27, 2020
    Copy the full SHA
    e95d527 View commit details
  7. Copy the full SHA
    47e2526 View commit details
  8. Copy the full SHA
    abdeee6 View commit details
  9. Copy the full SHA
    380a68d View commit details

Commits on Apr 28, 2020

  1. Merge pull request #4687 from nestjs/renovate/nest-monorepo

    chore(deps): update dependency @nestjs/cli to v7.1.4
    kamilmysliwiec authored Apr 28, 2020
    Copy the full SHA
    04cb13a View commit details
  2. Merge pull request #4689 from nestjs/renovate/typescript-eslint-monorepo

    chore(deps): update typescript-eslint monorepo to v2.30.0
    kamilmysliwiec authored Apr 28, 2020
    Copy the full SHA
    de57729 View commit details
  3. Copy the full SHA
    ab2c58d View commit details
  4. Merge pull request #4690 from nestjs/renovate/mqtt-4.x

    chore(deps): update dependency mqtt to v4
    kamilmysliwiec authored Apr 28, 2020
    Copy the full SHA
    b2d37b8 View commit details
  5. Copy the full SHA
    b6374e8 View commit details
  6. Merge pull request #4696 from nestjs/renovate/fastify-2.x

    fix(deps): update dependency fastify to v2.14.0
    kamilmysliwiec authored Apr 28, 2020
    Copy the full SHA
    f9e39c1 View commit details
  7. Merge pull request #4695 from nestjs/renovate/docker-mysql-5.x

    chore(deps): update mysql docker tag to v5.7.30
    kamilmysliwiec authored Apr 28, 2020
    Copy the full SHA
    29ad228 View commit details
  8. Copy the full SHA
    a39a6e9 View commit details
  9. Copy the full SHA
    2b7725b View commit details
  10. Copy the full SHA
    1280dd6 View commit details

Commits on Apr 29, 2020

  1. Merge pull request #4700 from nestjs/renovate/jest-monorepo

    chore(deps): update dependency jest to v25.5.0
    kamilmysliwiec authored Apr 29, 2020
    Copy the full SHA
    2d33f52 View commit details
  2. Merge pull request #4697 from nestjs/renovate/lint-staged-10.x

    chore(deps): update dependency lint-staged to v10.2.0
    kamilmysliwiec authored Apr 29, 2020
    Copy the full SHA
    1e98a8e View commit details
  3. Copy the full SHA
    c70bbb1 View commit details
  4. Copy the full SHA
    c7fee93 View commit details
  5. Copy the full SHA
    8fff239 View commit details

Commits on Apr 30, 2020

  1. Copy the full SHA
    9349189 View commit details
  2. Merge pull request #4708 from nestjs/renovate/ts-loader-7.x

    chore(deps): update dependency ts-loader to v7.0.2
    kamilmysliwiec authored Apr 30, 2020
    Copy the full SHA
    1420055 View commit details
  3. Merge pull request #4706 from nestjs/renovate/nats-1.x

    chore(deps): update dependency nats to v1.4.9
    kamilmysliwiec authored Apr 30, 2020
    Copy the full SHA
    12a92d9 View commit details
  4. Merge pull request #4705 from nestjs/renovate/babel-monorepo

    chore(deps): update babel monorepo to v7.9.6
    kamilmysliwiec authored Apr 30, 2020
    Copy the full SHA
    b6433fc View commit details
  5. Merge pull request #4703 from nestjs/renovate/mongodb-3.x

    fix(deps): update dependency mongodb to v3.5.7
    kamilmysliwiec authored Apr 30, 2020
    Copy the full SHA
    011ae85 View commit details
  6. Copy the full SHA
    0bb5f91 View commit details

Commits on May 1, 2020

  1. Copy the full SHA
    9e9c649 View commit details

Commits on May 2, 2020

  1. Copy the full SHA
    bacdc86 View commit details

Commits on May 3, 2020

  1. Copy the full SHA
    1ee4bc5 View commit details

Commits on May 4, 2020

  1. Copy the full SHA
    aad7ec2 View commit details
  2. Merge pull request #4724 from nestjs/renovate/nest-monorepo

    chore(deps): update dependency @nestjs/cli to v7.1.5
    kamilmysliwiec authored May 4, 2020
    Copy the full SHA
    6f65862 View commit details
Showing with 40,271 additions and 28,341 deletions.
  1. +1 −1 integration/docker-compose.yml
  2. +16 −0 integration/injector/e2e/scoped-instances.spec.ts
  3. +7 −1 integration/injector/src/scoped/scoped.module.ts
  4. +1 −1 integration/injector/src/scoped/transient.service.ts
  5. +4 −2 integration/injector/src/scoped/transient2.service.ts
  6. +7 −0 integration/injector/src/scoped/transient3.service.ts
  7. +1 −1 lerna.json
  8. +1,999 −688 package-lock.json
  9. +26 −27 package.json
  10. +14 −4 packages/common/http/http.service.ts
  11. +3 −3 packages/common/package.json
  12. +22 −0 packages/common/pipes/default-value.pipe.ts
  13. +1 −0 packages/common/pipes/index.ts
  14. +20 −0 packages/common/test/pipes/default-value.pipe.spec.ts
  15. +3 −2 packages/core/injector/instance-wrapper.ts
  16. +4 −4 packages/core/package.json
  17. +4 −4 packages/microservices/package.json
  18. +4 −4 packages/platform-express/package.json
  19. +4 −4 packages/platform-fastify/package.json
  20. +2 −2 packages/platform-socket.io/package.json
  21. +3 −3 packages/platform-ws/package.json
  22. +2 −2 packages/testing/package.json
  23. +4 −4 packages/websockets/package.json
  24. +1,585 −1,181 sample/01-cats-app/package-lock.json
  25. +14 −14 sample/01-cats-app/package.json
  26. +1,357 −997 sample/02-gateways/package-lock.json
  27. +16 −16 sample/02-gateways/package.json
  28. +1,305 −1,004 sample/03-microservices/package-lock.json
  29. +15 −15 sample/03-microservices/package.json
  30. +1,333 −1,017 sample/04-grpc/package-lock.json
  31. +14 −14 sample/04-grpc/package.json
  32. +1,353 −985 sample/05-sql-typeorm/package-lock.json
  33. +13 −13 sample/05-sql-typeorm/package.json
  34. +1,314 −1,014 sample/06-mongoose/package-lock.json
  35. +16 −16 sample/06-mongoose/package.json
  36. +3 −3 sample/06-mongoose/src/cats/cats.controller.ts
  37. +2 −2 sample/06-mongoose/src/cats/cats.module.ts
  38. +3 −3 sample/06-mongoose/src/cats/cats.service.ts
  39. +0 −7 sample/06-mongoose/src/cats/interfaces/cat.interface.ts
  40. +15 −6 sample/06-mongoose/src/cats/schemas/cat.schema.ts
  41. +1 −1 sample/07-sequelize/README.md
  42. +1,312 −979 sample/07-sequelize/package-lock.json
  43. +14 −14 sample/07-sequelize/package.json
  44. +325 −171 sample/08-webpack/package-lock.json
  45. +8 −8 sample/08-webpack/package.json
  46. +975 −842 sample/09-babel-example/package-lock.json
  47. +11 −11 sample/09-babel-example/package.json
  48. +1,291 −991 sample/10-fastify/package-lock.json
  49. +14 −14 sample/10-fastify/package.json
  50. +1,368 −969 sample/11-swagger/package-lock.json
  51. +15 −15 sample/11-swagger/package.json
  52. +1,646 −1,080 sample/12-graphql-schema-first/package-lock.json
  53. +17 −17 sample/12-graphql-schema-first/package.json
  54. +1,319 −984 sample/13-mongo-typeorm/package-lock.json
  55. +14 −14 sample/13-mongo-typeorm/package.json
  56. +1,350 −988 sample/14-mongoose-base/package-lock.json
  57. +14 −14 sample/14-mongoose-base/package.json
  58. +1,314 −1,009 sample/15-mvc/package-lock.json
  59. +13 −13 sample/15-mvc/package.json
  60. +1,313 −1,007 sample/16-gateways-ws/package-lock.json
  61. +17 −17 sample/16-gateways-ws/package.json
  62. +1,323 −1,005 sample/17-mvc-fastify/package-lock.json
  63. +13 −13 sample/17-mvc-fastify/package.json
  64. +1,322 −975 sample/18-context/package-lock.json
  65. +11 −11 sample/18-context/package.json
  66. +1,619 −1,149 sample/19-auth-jwt/package-lock.json
  67. +13 −13 sample/19-auth-jwt/package.json
  68. +1,352 −977 sample/20-cache/package-lock.json
  69. +14 −14 sample/20-cache/package.json
  70. +1,348 −974 sample/21-serializer/package-lock.json
  71. +13 −13 sample/21-serializer/package.json
  72. +1,945 −1,144 sample/22-graphql-prisma/package-lock.json
  73. +15 −15 sample/22-graphql-prisma/package.json
  74. +2,035 −1,182 sample/23-graphql-code-first/package-lock.json
  75. +17 −17 sample/23-graphql-code-first/package.json
  76. +1,350 −987 sample/24-serve-static/package-lock.json
  77. +15 −15 sample/24-serve-static/package.json
  78. +1,631 −1,137 sample/25-dynamic-modules/package-lock.json
  79. +13 −13 sample/25-dynamic-modules/package.json
  80. +1,695 −1,293 sample/26-queues/package-lock.json
  81. +15 −15 sample/26-queues/package.json
  82. +1,637 −1,143 sample/27-scheduling/package-lock.json
  83. +14 −14 sample/27-scheduling/package.json
2 changes: 1 addition & 1 deletion integration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ services:
- "9001:9001"
restart: always
mysql:
image: mysql:5.7.29
image: mysql:5.7.30
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
16 changes: 16 additions & 0 deletions integration/injector/e2e/scoped-instances.spec.ts
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import { ScopedController } from '../src/scoped/scoped.controller';
import { ScopedModule } from '../src/scoped/scoped.module';
import { ScopedService } from '../src/scoped/scoped.service';
import { TransientService } from '../src/scoped/transient.service';
import { Transient3Service } from '../src/scoped/transient3.service';

describe('Scoped Instances', () => {
let testingModule: TestingModule;
@@ -26,6 +27,21 @@ describe('Scoped Instances', () => {
expect(transient1).to.be.equal(transient2);
});

it('should dynamically resolve nested transient provider', async () => {
const contextId = createContextId();
const transientTwoDepthLevel = await testingModule.resolve(
TransientService,
contextId,
);
const transientThreeDepthLevel = await testingModule.resolve(
Transient3Service,
contextId,
);

expect(transientTwoDepthLevel.svc.logger).to.not.be.undefined;
expect(transientThreeDepthLevel.svc.svc.logger).to.not.be.undefined;
});

it('should dynamically resolve request-scoped provider', async () => {
const request1 = await testingModule.resolve(ScopedService);
const request2 = await testingModule.resolve(ScopedService);
8 changes: 7 additions & 1 deletion integration/injector/src/scoped/scoped.module.ts
Original file line number Diff line number Diff line change
@@ -3,9 +3,15 @@ import { ScopedController } from './scoped.controller';
import { ScopedService } from './scoped.service';
import { TransientService } from './transient.service';
import { Transient2Service } from './transient2.service';
import { Transient3Service } from './transient3.service';

@Module({
controllers: [ScopedController],
providers: [ScopedService, TransientService, Transient2Service],
providers: [
ScopedService,
TransientService,
Transient2Service,
Transient3Service,
],
})
export class ScopedModule {}
2 changes: 1 addition & 1 deletion integration/injector/src/scoped/transient.service.ts
Original file line number Diff line number Diff line change
@@ -3,5 +3,5 @@ import { Transient2Service } from './transient2.service';

@Injectable({ scope: Scope.TRANSIENT })
export class TransientService {
constructor(private readonly svc: Transient2Service) {}
constructor(public readonly svc: Transient2Service) {}
}
6 changes: 4 additions & 2 deletions integration/injector/src/scoped/transient2.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Injectable, Scope } from '@nestjs/common';
import { Injectable, Logger, Scope } from '@nestjs/common';

@Injectable({ scope: Scope.TRANSIENT })
export class Transient2Service {}
export class Transient2Service {
logger = new Logger();
}
7 changes: 7 additions & 0 deletions integration/injector/src/scoped/transient3.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Injectable, Scope } from '@nestjs/common';
import { TransientService } from './transient.service';

@Injectable({ scope: Scope.TRANSIENT })
export class Transient3Service {
constructor(public readonly svc: TransientService) {}
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "7.0.9"
"version": "7.0.10"
}
Loading