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: v10.1.3
Choose a base ref
...
head repository: nestjs/nest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.2.0
Choose a head ref

Commits on Jul 22, 2023

  1. fix(common): fix custom multi file validator

    MohammadReza Momeni committed Jul 22, 2023
    Copy the full SHA
    e1bac6e View commit details

Commits on Jul 23, 2023

  1. chore(common): use better generic

    MohammadReza Momeni committed Jul 23, 2023
    Copy the full SHA
    a7c5963 View commit details

Commits on Jul 24, 2023

  1. revert: revert a7c5

    This reverts commit a7c5963.
    MohammadReza Momeni committed Jul 24, 2023
    Copy the full SHA
    ccca642 View commit details
  2. Copy the full SHA
    7e3da22 View commit details
  3. Copy the full SHA
    0d61789 View commit details
  4. Copy the full SHA
    5052674 View commit details

Commits on Jul 25, 2023

  1. Copy the full SHA
    0d18a52 View commit details

Commits on Jul 26, 2023

  1. chore(deps-dev): bump @types/node from 20.4.4 to 20.4.5

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.4 to 20.4.5.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 26, 2023
    Copy the full SHA
    b3ed339 View commit details

Commits on Jul 28, 2023

  1. chore(deps-dev): bump amqp-connection-manager from 4.1.13 to 4.1.14

    Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.13 to 4.1.14.
    - [Release notes](https://github.com/jwalton/node-amqp-connection-manager/releases)
    - [Changelog](https://github.com/jwalton/node-amqp-connection-manager/blob/master/CHANGELOG.md)
    - [Commits](jwalton/node-amqp-connection-manager@v4.1.13...v4.1.14)
    
    ---
    updated-dependencies:
    - dependency-name: amqp-connection-manager
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 28, 2023
    Copy the full SHA
    54b9e70 View commit details

Commits on Jul 29, 2023

  1. Copy the full SHA
    ccf79e1 View commit details
  2. Copy the full SHA
    2cb5f2c View commit details

Commits on Jul 31, 2023

  1. Copy the full SHA
    caa03c6 View commit details
  2. Copy the full SHA
    20da014 View commit details

Commits on Aug 1, 2023

  1. chore(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0

    Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.0.
    - [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
    - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
    - [Commits](import-js/eslint-plugin-import@v2.27.5...v2.28.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-import
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 1, 2023
    Copy the full SHA
    7ac635b View commit details
  2. chore(deps-dev): bump mqtt from 5.0.0 to 5.0.1

    Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.0 to 5.0.1.
    - [Release notes](https://github.com/mqttjs/MQTT.js/releases)
    - [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
    - [Commits](mqttjs/MQTT.js@v5.0.0...v5.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: mqtt
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 1, 2023
    Copy the full SHA
    cf682e6 View commit details
  3. chore(deps-dev): bump eslint from 8.45.0 to 8.46.0

    Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v8.45.0...v8.46.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 1, 2023
    Copy the full SHA
    08cf804 View commit details
  4. Merge pull request #12169 from nestjs/dependabot/npm_and_yarn/eslint-…

    …plugin-import-2.28.0
    
    chore(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0
    kamilmysliwiec authored Aug 1, 2023
    Copy the full SHA
    fd53a7e View commit details
  5. Merge pull request #12148 from nestjs/dependabot/npm_and_yarn/types/n…

    …ode-20.4.5
    
    chore(deps-dev): bump @types/node from 20.4.4 to 20.4.5
    kamilmysliwiec authored Aug 1, 2023
    Copy the full SHA
    a372b8f View commit details
  6. Merge pull request #12173 from nestjs/dependabot/npm_and_yarn/eslint-…

    …8.46.0
    
    chore(deps-dev): bump eslint from 8.45.0 to 8.46.0
    kamilmysliwiec authored Aug 1, 2023
    Copy the full SHA
    8a550bd View commit details
  7. Merge pull request #12172 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.1

    chore(deps-dev): bump mqtt from 5.0.0 to 5.0.1
    kamilmysliwiec authored Aug 1, 2023
    Copy the full SHA
    54c2f90 View commit details
  8. chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0

    Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.8.0 to 8.9.0.
    - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/eslint-config-prettier@v8.8.0...v8.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-config-prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 1, 2023
    Copy the full SHA
    09f9b5e View commit details
  9. Merge pull request #12171 from nestjs/dependabot/npm_and_yarn/eslint-…

    …config-prettier-8.9.0
    
    chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0
    kamilmysliwiec authored Aug 1, 2023
    Copy the full SHA
    657b24c View commit details

Commits on Aug 2, 2023

  1. chore(deps-dev): bump @grpc/grpc-js from 1.8.21 to 1.9.0

    Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.21 to 1.9.0.
    - [Release notes](https://github.com/grpc/grpc-node/releases)
    - [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.21...@grpc/grpc-js@1.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@grpc/grpc-js"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 2, 2023
    Copy the full SHA
    b2d51f7 View commit details
  2. chore(deps-dev): bump engine.io-client from 6.5.1 to 6.5.2

    Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 6.5.1 to 6.5.2.
    - [Release notes](https://github.com/socketio/engine.io-client/releases)
    - [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md)
    - [Commits](socketio/engine.io-client@6.5.1...6.5.2)
    
    ---
    updated-dependencies:
    - dependency-name: engine.io-client
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 2, 2023
    Copy the full SHA
    73659aa View commit details
  3. chore(deps-dev): bump @types/sinon from 10.0.15 to 10.0.16

    Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.15 to 10.0.16.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/sinon"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 2, 2023
    Copy the full SHA
    00bb3b5 View commit details

Commits on Aug 3, 2023

  1. chore(deps): bump socket.io from 4.7.1 to 4.7.2

    Bumps [socket.io](https://github.com/socketio/socket.io) from 4.7.1 to 4.7.2.
    - [Release notes](https://github.com/socketio/socket.io/releases)
    - [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
    - [Commits](socketio/socket.io@4.7.1...4.7.2)
    
    ---
    updated-dependencies:
    - dependency-name: socket.io
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 3, 2023
    Copy the full SHA
    362c13f View commit details
  2. Update Readme.md

    kamilmysliwiec authored Aug 3, 2023
    Copy the full SHA
    ae3b34f View commit details
  3. Merge pull request #12185 from nestjs/dependabot/npm_and_yarn/socket.…

    …io-4.7.2
    
    chore(deps): bump socket.io from 4.7.1 to 4.7.2
    kamilmysliwiec authored Aug 3, 2023
    Copy the full SHA
    3937afc View commit details
  4. Merge pull request #12182 from nestjs/dependabot/npm_and_yarn/types/s…

    …inon-10.0.16
    
    chore(deps-dev): bump @types/sinon from 10.0.15 to 10.0.16
    kamilmysliwiec authored Aug 3, 2023
    Copy the full SHA
    4df6b98 View commit details
  5. Merge pull request #12181 from nestjs/dependabot/npm_and_yarn/engine.…

    …io-client-6.5.2
    
    chore(deps-dev): bump engine.io-client from 6.5.1 to 6.5.2
    kamilmysliwiec authored Aug 3, 2023
    Copy the full SHA
    921e46e View commit details
  6. Merge pull request #12180 from nestjs/dependabot/npm_and_yarn/grpc/gr…

    …pc-js-1.9.0
    
    chore(deps-dev): bump @grpc/grpc-js from 1.8.21 to 1.9.0
    kamilmysliwiec authored Aug 3, 2023
    Copy the full SHA
    c2c8468 View commit details

Commits on Aug 4, 2023

  1. chore(deps-dev): bump socket.io-client from 4.7.1 to 4.7.2

    Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.7.1 to 4.7.2.
    - [Release notes](https://github.com/socketio/socket.io-client/releases)
    - [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
    - [Commits](socketio/socket.io-client@4.7.1...4.7.2)
    
    ---
    updated-dependencies:
    - dependency-name: socket.io-client
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 4, 2023
    Copy the full SHA
    f0a7e2f View commit details
  2. chore(deps-dev): bump mongoose from 7.4.1 to 7.4.2

    Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.4.1 to 7.4.2.
    - [Release notes](https://github.com/Automattic/mongoose/releases)
    - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
    - [Commits](Automattic/mongoose@7.4.1...7.4.2)
    
    ---
    updated-dependencies:
    - dependency-name: mongoose
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 4, 2023
    Copy the full SHA
    205bc65 View commit details

Commits on Aug 7, 2023

  1. chore(deps-dev): bump @types/node from 20.4.5 to 20.4.8

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.5 to 20.4.8.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 7, 2023
    Copy the full SHA
    20b30a5 View commit details
  2. Merge pull request #12198 from nestjs/dependabot/npm_and_yarn/types/n…

    …ode-20.4.8
    
    chore(deps-dev): bump @types/node from 20.4.5 to 20.4.8
    kamilmysliwiec authored Aug 7, 2023
    Copy the full SHA
    cb2632f View commit details
  3. Merge pull request #12191 from nestjs/dependabot/npm_and_yarn/mongoos…

    …e-7.4.2
    
    chore(deps-dev): bump mongoose from 7.4.1 to 7.4.2
    kamilmysliwiec authored Aug 7, 2023
    Copy the full SHA
    c2c8d3e View commit details
  4. Merge pull request #12189 from nestjs/dependabot/npm_and_yarn/socket.…

    …io-client-4.7.2
    
    chore(deps-dev): bump socket.io-client from 4.7.1 to 4.7.2
    kamilmysliwiec authored Aug 7, 2023
    Copy the full SHA
    f511740 View commit details
  5. chore(deps-dev): bump mqtt from 5.0.1 to 5.0.2

    Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.1 to 5.0.2.
    - [Release notes](https://github.com/mqttjs/MQTT.js/releases)
    - [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
    - [Commits](mqttjs/MQTT.js@v5.0.1...v5.0.2)
    
    ---
    updated-dependencies:
    - dependency-name: mqtt
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 7, 2023
    Copy the full SHA
    52aa89f View commit details

Commits on Aug 8, 2023

  1. chore(deps-dev): bump eslint-config-prettier from 8.9.0 to 9.0.0

    Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.9.0 to 9.0.0.
    - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/eslint-config-prettier@v8.9.0...v9.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-config-prettier
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 8, 2023
    Copy the full SHA
    3420827 View commit details
  2. chore(deps-dev): bump mysql2 from 3.5.2 to 3.6.0

    Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.5.2 to 3.6.0.
    - [Release notes](https://github.com/sidorares/node-mysql2/releases)
    - [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
    - [Commits](sidorares/node-mysql2@v3.5.2...v3.6.0)
    
    ---
    updated-dependencies:
    - dependency-name: mysql2
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 8, 2023
    Copy the full SHA
    e679710 View commit details
  3. chore(deps-dev): bump prettier from 3.0.0 to 3.0.1

    Bumps [prettier](https://github.com/prettier/prettier) from 3.0.0 to 3.0.1.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@3.0.0...3.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 8, 2023
    Copy the full SHA
    f08ae1a View commit details

Commits on Aug 9, 2023

  1. Merge pull request #12205 from nestjs/dependabot/npm_and_yarn/prettie…

    …r-3.0.1
    
    chore(deps-dev): bump prettier from 3.0.0 to 3.0.1
    kamilmysliwiec authored Aug 9, 2023
    Copy the full SHA
    ed8709e View commit details
  2. Merge pull request #12203 from nestjs/dependabot/npm_and_yarn/mysql2-…

    …3.6.0
    
    chore(deps-dev): bump mysql2 from 3.5.2 to 3.6.0
    kamilmysliwiec authored Aug 9, 2023
    Copy the full SHA
    264190c View commit details
  3. Merge pull request #12202 from nestjs/dependabot/npm_and_yarn/eslint-…

    …config-prettier-9.0.0
    
    chore(deps-dev): bump eslint-config-prettier from 8.9.0 to 9.0.0
    kamilmysliwiec authored Aug 9, 2023
    Copy the full SHA
    3b580fa View commit details
  4. Merge pull request #12190 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.2

    chore(deps-dev): bump mqtt from 5.0.1 to 5.0.2
    kamilmysliwiec authored Aug 9, 2023
    Copy the full SHA
    5d52982 View commit details
  5. chore(deps): bump fast-json-stringify from 5.7.0 to 5.8.0

    Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.7.0 to 5.8.0.
    - [Release notes](https://github.com/fastify/fast-json-stringify/releases)
    - [Commits](fastify/fast-json-stringify@v5.7.0...v5.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: fast-json-stringify
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 9, 2023
    Copy the full SHA
    114b8e1 View commit details

Commits on Aug 11, 2023

  1. Copy the full SHA
    2443611 View commit details
  2. Copy the full SHA
    ca4a48e View commit details
  3. chore(deps-dev): bump @commitlint/cli from 17.6.7 to 17.7.1

    Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.6.7 to 17.7.1.
    - [Release notes](https://github.com/conventional-changelog/commitlint/releases)
    - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
    - [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.7.1/@commitlint/cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@commitlint/cli"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 11, 2023
    Copy the full SHA
    0dccf3d View commit details
  4. Copy the full SHA
    1b23900 View commit details
Showing with 19,506 additions and 19,866 deletions.
  1. +143 −86 .circleci/config.yml
  2. +14 −11 Readme.md
  3. +35 −0 integration/discovery/e2e/discover-by-meta.spec.ts
  4. +10 −0 integration/discovery/src/app.module.ts
  5. +6 −0 integration/discovery/src/decorators/webhook.decorators.ts
  6. +9 −0 integration/discovery/src/my-webhook/cleanup.webhook.ts
  7. +9 −0 integration/discovery/src/my-webhook/flush.webhook.ts
  8. +6 −0 integration/discovery/src/my-webhook/my-webhook.module.ts
  9. +39 −0 integration/discovery/src/webhooks.explorer.ts
  10. +40 −0 integration/discovery/tsconfig.json
  11. +1 −1 integration/docker-compose.yml
  12. +1 −1 lerna.json
  13. +765 −1,233 package-lock.json
  14. +22 −22 package.json
  15. +2 −0 packages/common/Readme.md
  16. +1 −1 packages/common/package.json
  17. +1 −1 packages/common/pipes/file/file-validator.interface.ts
  18. +20 −0 packages/common/services/console-logger.service.ts
  19. +29 −1 packages/common/services/logger.service.ts
  20. +1 −0 packages/common/services/utils/is-log-level-enabled.util.ts
  21. +2 −0 packages/core/Readme.md
  22. +153 −0 packages/core/discovery/discoverable-meta-host-collection.ts
  23. +121 −5 packages/core/discovery/discovery-service.ts
  24. +15 −3 packages/core/injector/container.ts
  25. +1 −0 packages/core/injector/helpers/silent-logger.ts
  26. +9 −2 packages/core/injector/module.ts
  27. +2 −2 packages/core/package.json
  28. +14 −0 packages/core/router/router-explorer.ts
  29. +156 −6 packages/core/services/reflector.service.ts
  30. +7 −7 packages/core/test/injector/container.spec.ts
  31. +23 −0 packages/core/test/router/router-explorer.spec.ts
  32. +24 −1 packages/core/test/services/reflector.service.spec.ts
  33. +2 −0 packages/microservices/Readme.md
  34. +3 −3 packages/microservices/package.json
  35. +14 −4 packages/microservices/test/json-socket/message-parsing.spec.ts
  36. +2 −0 packages/platform-express/Readme.md
  37. +2 −2 packages/platform-express/multer/interfaces/multer-options.interface.ts
  38. +3 −3 packages/platform-express/package.json
  39. +2 −0 packages/platform-fastify/Readme.md
  40. +25 −12 packages/platform-fastify/adapters/fastify-adapter.ts
  41. +1 −0 packages/platform-fastify/constants.ts
  42. +1 −0 packages/platform-fastify/decorators/index.ts
  43. +8 −0 packages/platform-fastify/decorators/route-config.decorator.ts
  44. +1 −0 packages/platform-fastify/index.ts
  45. +1 −1 packages/platform-fastify/package.json
  46. +17 −0 packages/platform-fastify/test/decorators/router-config.decorator.spec.ts
  47. +2 −0 packages/platform-socket.io/Readme.md
  48. +2 −2 packages/platform-socket.io/package.json
  49. +2 −0 packages/platform-ws/Readme.md
  50. +1 −1 packages/platform-ws/package.json
  51. +2 −0 packages/testing/Readme.md
  52. +1 −1 packages/testing/package.json
  53. +2 −0 packages/websockets/Readme.md
  54. +3 −3 packages/websockets/package.json
  55. +502 −524 sample/01-cats-app/package-lock.json
  56. +1 −1 sample/01-cats-app/package.json
  57. +1 −1 sample/01-cats-app/src/cats/cats.controller.ts
  58. +2 −2 sample/01-cats-app/src/common/decorators/roles.decorator.ts
  59. +2 −1 sample/01-cats-app/src/common/guards/roles.guard.ts
  60. +502 −524 sample/02-gateways/package-lock.json
  61. +1 −1 sample/02-gateways/package.json
  62. +502 −524 sample/03-microservices/package-lock.json
  63. +1 −1 sample/03-microservices/package.json
  64. +518 −540 sample/04-grpc/package-lock.json
  65. +1 −1 sample/04-grpc/package.json
  66. +518 −540 sample/05-sql-typeorm/package-lock.json
  67. +1 −1 sample/05-sql-typeorm/package.json
  68. +518 −540 sample/06-mongoose/package-lock.json
  69. +1 −1 sample/06-mongoose/package.json
  70. +502 −524 sample/07-sequelize/package-lock.json
  71. +1 −1 sample/07-sequelize/package.json
  72. +518 −514 sample/09-babel-example/package-lock.json
  73. +1 −1 sample/09-babel-example/package.json
  74. +502 −524 sample/10-fastify/package-lock.json
  75. +1 −1 sample/10-fastify/package.json
  76. +518 −540 sample/11-swagger/package-lock.json
  77. +1 −1 sample/11-swagger/package.json
  78. +502 −524 sample/12-graphql-schema-first/package-lock.json
  79. +1 −1 sample/12-graphql-schema-first/package.json
  80. +502 −524 sample/13-mongo-typeorm/package-lock.json
  81. +1 −1 sample/13-mongo-typeorm/package.json
  82. +518 −540 sample/14-mongoose-base/package-lock.json
  83. +1 −1 sample/14-mongoose-base/package.json
  84. +518 −540 sample/15-mvc/package-lock.json
  85. +1 −1 sample/15-mvc/package.json
  86. +518 −540 sample/16-gateways-ws/package-lock.json
  87. +1 −1 sample/16-gateways-ws/package.json
  88. +502 −524 sample/17-mvc-fastify/package-lock.json
  89. +1 −1 sample/17-mvc-fastify/package.json
  90. +518 −540 sample/18-context/package-lock.json
  91. +1 −1 sample/18-context/package.json
  92. +518 −540 sample/19-auth-jwt/package-lock.json
  93. +1 −1 sample/19-auth-jwt/package.json
  94. +1 −1 sample/19-auth-jwt/src/auth/auth.service.ts
  95. +518 −540 sample/20-cache/package-lock.json
  96. +1 −1 sample/20-cache/package.json
  97. +518 −540 sample/21-serializer/package-lock.json
  98. +1 −1 sample/21-serializer/package.json
  99. +502 −524 sample/22-graphql-prisma/package-lock.json
  100. +1 −1 sample/22-graphql-prisma/package.json
  101. +502 −524 sample/23-graphql-code-first/package-lock.json
  102. +1 −1 sample/23-graphql-code-first/package.json
  103. +518 −540 sample/24-serve-static/package-lock.json
  104. +1 −1 sample/24-serve-static/package.json
  105. +518 −540 sample/25-dynamic-modules/package-lock.json
  106. +1 −1 sample/25-dynamic-modules/package.json
  107. +518 −540 sample/26-queues/package-lock.json
  108. +1 −1 sample/26-queues/package.json
  109. +518 −540 sample/27-scheduling/package-lock.json
  110. +1 −1 sample/27-scheduling/package.json
  111. +518 −540 sample/28-sse/package-lock.json
  112. +1 −1 sample/28-sse/package.json
  113. +518 −540 sample/29-file-upload/package-lock.json
  114. +1 −1 sample/29-file-upload/package.json
  115. +518 −540 sample/30-event-emitter/package-lock.json
  116. +1 −1 sample/30-event-emitter/package.json
  117. +256 −264 sample/31-graphql-federation-code-first/gateway/package-lock.json
  118. +1 −1 sample/31-graphql-federation-code-first/gateway/package.json
  119. +256 −264 sample/31-graphql-federation-code-first/posts-application/package-lock.json
  120. +1 −1 sample/31-graphql-federation-code-first/posts-application/package.json
  121. +256 −264 sample/31-graphql-federation-code-first/users-application/package-lock.json
  122. +1 −1 sample/31-graphql-federation-code-first/users-application/package.json
  123. +518 −540 sample/32-graphql-federation-schema-first/gateway/package-lock.json
  124. +1 −1 sample/32-graphql-federation-schema-first/gateway/package.json
  125. +518 −540 sample/32-graphql-federation-schema-first/posts-application/package-lock.json
  126. +1 −1 sample/32-graphql-federation-schema-first/posts-application/package.json
  127. +502 −524 sample/32-graphql-federation-schema-first/users-application/package-lock.json
  128. +1 −1 sample/32-graphql-federation-schema-first/users-application/package.json
  129. +517 −539 sample/33-graphql-mercurius/package-lock.json
  130. +2 −2 sample/33-graphql-mercurius/package.json
229 changes: 143 additions & 86 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
version: 2
version: 2.1

parameters:
check-legacy-node-version:
type: boolean
default: false
legacy-node-version:
type: string
default: "14.21.3"
maintenance-node-version:
type: string
default: "16.20"
active-node-version:
type: string
default: "18.17"
current-node-version:
type: string
default: "20.5"

aliases:
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- &save-cache
save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- &install-deps
run:
name: Install dependencies
@@ -17,70 +39,73 @@ aliases:
name: Test
command: npm run test

unit-tests-template: &unit-tests-template
working_directory: ~/nest
steps:
- checkout
- *restore-cache
- *install-deps
- *build-packages
- *run-unit-tests

jobs:
build:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- run:
name: Update NPM version
command: 'sudo npm install -g npm@^8'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Build
command: npm run build

test_node_16:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
steps:
- checkout
command: 'sudo npm install -g npm@^9'
- *restore-cache
- *install-deps
- *save-cache
- *build-packages
- run:
name: Test (coverage)
command: npm run test:cov
- run:
name: Collect coverage
command: npm run coverage
- store_artifacts:
path: coverage

test_node_18:
<<: *unit-tests-template
docker:
- image: cimg/node:18.16

test_node_19:
<<: *unit-tests-template
test:
parameters:
node-version:
type: string
working_directory: ~/nest
docker:
- image: cimg/node:19.9
- image: cimg/node:<< parameters.node-version >>
steps:
- when:
condition:
and:
- equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.legacy-node-version >>" ]
- not: << pipeline.parameters.check-legacy-node-version >>
steps:
- run:
name: Skip
command: |
echo Skipping
- when:
condition:
or:
- not:
equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.legacy-node-version >>" ]
- << pipeline.parameters.check-legacy-node-version >>
steps:
- checkout
- *restore-cache
- *install-deps
- *build-packages
- when:
condition:
equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.maintenance-node-version >>" ]
steps:
- run:
name: Test (coverage)
command: npm run test:cov
- run:
name: Collect coverage
command: npm run coverage
- store_artifacts:
path: coverage
- when:
condition:
not:
equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.maintenance-node-version >>" ]
steps:
- *run-unit-tests

lint:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- *restore-cache
@@ -93,44 +118,64 @@ jobs:
command: ./node_modules/.bin/commitlint-circle -c .commitlintrc.json

integration_tests:
parameters:
node-version:
type: string
working_directory: ~/nest
machine: true
steps:
- checkout
- run:
name: Prepare nvm
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Upgrade Node.js
command: |
nvm install v16
node -v
nvm alias default v16
- run:
name: Install Docker Compose
command: |
curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
- *install-deps
- run:
name: Prepare tests
command: |
bash ./scripts/prepare.sh
sleep 10
- run:
name: List containers
command: docker ps
- run:
name: Integration tests
command: npm run test:integration
- when:
condition:
and:
- equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.legacy-node-version >>" ]
- not: << pipeline.parameters.check-legacy-node-version >>
steps:
- run:
name: Skip
command: |
echo Skipping
- when:
condition:
or:
- not:
equal: [ "<< parameters.node-version >>", "<< pipeline.parameters.legacy-node-version >>" ]
- << pipeline.parameters.check-legacy-node-version >>
steps:
- checkout
- run:
name: Prepare nvm
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Upgrade Node.js
command: |
nvm install << parameters.node-version >>
node -v
nvm alias default << parameters.node-version >>
- run:
name: Install Docker Compose
command: |
curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
- *install-deps
- run:
name: Prepare tests
command: |
bash ./scripts/prepare.sh
sleep 10
- run:
name: List containers
command: docker ps
- run:
name: Integration tests
command: npm run test:integration

codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- *restore-cache
@@ -146,9 +191,9 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
environment:
- DISABLE_OPENCOLLECTIVE: true
DISABLE_OPENCOLLECTIVE: "true"
steps:
- checkout
- *restore-cache
@@ -158,22 +203,34 @@ jobs:
command: npm run build:samples

workflows:
version: 2
build-and-test:
jobs:
- build
- test_node_16:
requires:
- build
- test_node_18:
- test:
requires:
- build
matrix:
parameters:
node-version: [
"<< pipeline.parameters.legacy-node-version >>",
"<< pipeline.parameters.maintenance-node-version >>",
"<< pipeline.parameters.active-node-version >>",
"<< pipeline.parameters.current-node-version >>"
]
- lint:
requires:
- build
- integration_tests:
requires:
- build
matrix:
parameters:
node-version: [
"<< pipeline.parameters.legacy-node-version >>",
"<< pipeline.parameters.maintenance-node-version >>",
"<< pipeline.parameters.active-node-version >>",
"<< pipeline.parameters.current-node-version >>"
]
- samples:
requires:
- build
25 changes: 14 additions & 11 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@

## Description

Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>

@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org

## Getting started

* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)[docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)[docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:

## Questions

@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

#### Principal Sponsors

<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" 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="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>

#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors

<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td></tr>
</table>

#### Sponsors
@@ -121,9 +124,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors

## Stay in touch

* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Loading