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.11
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.13
Choose a head ref
  • 13 commits
  • 70 files changed
  • 3 contributors

Commits on May 12, 2020

  1. Copy the full SHA
    b1ed6db View commit details
  2. Update LICENSE

    kamilmysliwiec authored May 12, 2020
    Copy the full SHA
    b59965b View commit details
  3. Copy the full SHA
    c49c271 View commit details
  4. Merge pull request #4783 from nestjs/renovate/nest-monorepo

    fix(deps): update nest monorepo to v7.0.11
    kamilmysliwiec authored May 12, 2020
    Copy the full SHA
    8c146fe View commit details

Commits on May 13, 2020

  1. Update renovate.json

    kamilmysliwiec authored May 13, 2020
    Copy the full SHA
    dc1bd46 View commit details

Commits on May 14, 2020

  1. Copy the full SHA
    91d7564 View commit details

Commits on May 15, 2020

  1. Copy the full SHA
    47cd27e View commit details
  2. Copy the full SHA
    f3a8f7f View commit details
  3. Merge branch 'fix/axios-config-mutation' of https://github.com/soyuka…

    …/nest into soyuka-fix/axios-config-mutation
    kamilmysliwiec committed May 15, 2020
    Copy the full SHA
    53d3574 View commit details
  4. 2
    Copy the full SHA
    138e2c4 View commit details
  5. Copy the full SHA
    43a4ea4 View commit details
  6. Copy the full SHA
    f9ce824 View commit details
  7. Copy the full SHA
    baadb3f View commit details
Showing with 1,433 additions and 1,287 deletions.
  1. +1 −1 LICENSE
  2. +1 −1 lerna.json
  3. +1 −1 package.json
  4. +2 −6 packages/common/http/http.service.ts
  5. +1 −1 packages/common/package.json
  6. +3 −3 packages/core/injector/container.ts
  7. +2 −1 packages/core/injector/instance-wrapper.ts
  8. +2 −2 packages/core/package.json
  9. +3 −3 packages/microservices/package.json
  10. +3 −3 packages/platform-express/package.json
  11. +1 −1 packages/platform-fastify/package.json
  12. +1 −1 packages/platform-socket.io/package.json
  13. +1 −1 packages/platform-ws/package.json
  14. +1 −1 packages/testing/package.json
  15. +3 −3 packages/websockets/package.json
  16. +15 −7 renovate.json
  17. +42 −42 sample/01-cats-app/package-lock.json
  18. +4 −4 sample/01-cats-app/package.json
  19. +59 −59 sample/02-gateways/package-lock.json
  20. +6 −6 sample/02-gateways/package.json
  21. +49 −49 sample/03-microservices/package-lock.json
  22. +5 −5 sample/03-microservices/package.json
  23. +42 −42 sample/04-grpc/package-lock.json
  24. +4 −4 sample/04-grpc/package.json
  25. +42 −42 sample/05-sql-typeorm/package-lock.json
  26. +4 −4 sample/05-sql-typeorm/package.json
  27. +42 −42 sample/06-mongoose/package-lock.json
  28. +4 −4 sample/06-mongoose/package.json
  29. +42 −42 sample/07-sequelize/package-lock.json
  30. +4 −4 sample/07-sequelize/package.json
  31. +32 −32 sample/08-webpack/package-lock.json
  32. +3 −3 sample/08-webpack/package.json
  33. +77 −38 sample/09-babel-example/package-lock.json
  34. +6 −6 sample/09-babel-example/package.json
  35. +67 −59 sample/10-fastify/package-lock.json
  36. +4 −4 sample/10-fastify/package.json
  37. +42 −42 sample/11-swagger/package-lock.json
  38. +4 −4 sample/11-swagger/package.json
  39. +42 −42 sample/12-graphql-schema-first/package-lock.json
  40. +4 −4 sample/12-graphql-schema-first/package.json
  41. +42 −42 sample/13-mongo-typeorm/package-lock.json
  42. +4 −4 sample/13-mongo-typeorm/package.json
  43. +42 −42 sample/14-mongoose-base/package-lock.json
  44. +4 −4 sample/14-mongoose-base/package.json
  45. +39 −39 sample/15-mvc/package-lock.json
  46. +4 −4 sample/15-mvc/package.json
  47. +57 −62 sample/16-gateways-ws/package-lock.json
  48. +6 −6 sample/16-gateways-ws/package.json
  49. +80 −59 sample/17-mvc-fastify/package-lock.json
  50. +4 −4 sample/17-mvc-fastify/package.json
  51. +28 −28 sample/18-context/package-lock.json
  52. +2 −2 sample/18-context/package.json
  53. +42 −42 sample/19-auth-jwt/package-lock.json
  54. +4 −4 sample/19-auth-jwt/package.json
  55. +42 −42 sample/20-cache/package-lock.json
  56. +4 −4 sample/20-cache/package.json
  57. +42 −42 sample/21-serializer/package-lock.json
  58. +4 −4 sample/21-serializer/package.json
  59. +60 −21 sample/22-graphql-prisma/package-lock.json
  60. +4 −4 sample/22-graphql-prisma/package.json
  61. +60 −21 sample/23-graphql-code-first/package-lock.json
  62. +4 −4 sample/23-graphql-code-first/package.json
  63. +42 −42 sample/24-serve-static/package-lock.json
  64. +4 −4 sample/24-serve-static/package.json
  65. +42 −42 sample/25-dynamic-modules/package-lock.json
  66. +4 −4 sample/25-dynamic-modules/package.json
  67. +42 −42 sample/26-queues/package-lock.json
  68. +4 −4 sample/26-queues/package.json
  69. +42 −42 sample/27-scheduling/package-lock.json
  70. +4 −4 sample/27-scheduling/package.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2017-2019 Kamil Myśliwiec <http://kamilmysliwiec.com>
Copyright (c) 2017-2020 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
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.11"
"version": "7.0.13"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "7.0.5",
"version": "7.0.11",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
8 changes: 2 additions & 6 deletions packages/common/http/http.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Axios, {
AxiosInstance,
AxiosPromise,
AxiosRequestConfig,
AxiosResponse,
AxiosPromise,
CancelTokenSource,
} from 'axios';
import { Observable } from 'rxjs';
@@ -73,11 +73,7 @@ export class HttpService {
...args: any[]
) {
return new Observable<AxiosResponse<T>>(subscriber => {
let config: AxiosRequestConfig = args[args.length - 1];
if (!config) {
config = {};
args[args.length - 1] = config;
}
const config: AxiosRequestConfig = args[args.length - 1] || {};

let cancelSource: CancelTokenSource;
if (!config.cancelToken) {
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/common",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
"author": "Kamil Mysliwiec",
"homepage": "https://nestjs.com",
6 changes: 3 additions & 3 deletions packages/core/injector/container.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { Injectable } from '@nestjs/common/interfaces/injectable.interface';
import { Type } from '@nestjs/common/interfaces/type.interface';
import { ApplicationConfig } from '../application-config';
import { CircularDependencyException } from '../errors/exceptions/circular-dependency.exception';
import { UndefinedForwardRefException } from '../errors/exceptions/undefined-forwardref.exception';
import { UnknownModuleException } from '../errors/exceptions/unknown-module.exception';
import { ExternalContextCreator } from '../helpers/external-context-creator';
import { HttpAdapterHost } from '../helpers/http-adapter-host';
@@ -15,7 +16,6 @@ import { InternalProvidersStorage } from './internal-providers-storage';
import { Module } from './module';
import { ModuleTokenFactory } from './module-token-factory';
import { ModulesContainer } from './modules-container';
import { UndefinedForwardRefException } from '../errors/exceptions/undefined-forwardref.exception';

export class NestContainer {
private readonly globalModules = new Set<Module>();
@@ -182,11 +182,11 @@ export class NestContainer {
}

public replace(toReplace: any, options: any & { scope: any[] | null }) {
this.modules.forEach(module => module.replace(toReplace, options));
this.modules.forEach(moduleRef => moduleRef.replace(toReplace, options));
}

public bindGlobalScope() {
this.modules.forEach(module => this.bindGlobalsToImports(module));
this.modules.forEach(moduleRef => this.bindGlobalsToImports(moduleRef));
}

public bindGlobalsToImports(moduleRef: Module) {
3 changes: 2 additions & 1 deletion packages/core/injector/instance-wrapper.ts
Original file line number Diff line number Diff line change
@@ -38,9 +38,9 @@ export class InstanceWrapper<T = any> {
public readonly name: any;
public readonly async?: boolean;
public readonly host?: Module;
public readonly scope?: Scope = Scope.DEFAULT;
public readonly isAlias: boolean = false;

public scope?: Scope = Scope.DEFAULT;
public metatype: Type<T> | Function;
public inject?: (string | symbol | Function | Type<any>)[];
public forwardRef?: boolean;
@@ -321,6 +321,7 @@ export class InstanceWrapper<T = any> {
if ((provider as ValueProvider).useValue) {
this.metatype = null;
this.inject = null;
this.scope = Scope.DEFAULT;

this.setInstanceByContextId(STATIC_CONTEXT, {
instance: (provider as ValueProvider).useValue,
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -36,7 +36,7 @@
"uuid": "8.0.0"
},
"devDependencies": {
"@nestjs/common": "7.0.11"
"@nestjs/common": "7.0.13"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0",
6 changes: 3 additions & 3 deletions packages/microservices/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/microservices",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@microservices)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -22,8 +22,8 @@
"tslib": "1.11.2"
},
"devDependencies": {
"@nestjs/common": "7.0.11",
"@nestjs/core": "7.0.11"
"@nestjs/common": "7.0.13",
"@nestjs/core": "7.0.13"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0",
6 changes: 3 additions & 3 deletions packages/platform-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-express",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -24,8 +24,8 @@
"tslib": "1.11.2"
},
"devDependencies": {
"@nestjs/common": "7.0.11",
"@nestjs/core": "7.0.11"
"@nestjs/common": "7.0.13",
"@nestjs/core": "7.0.13"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0",
2 changes: 1 addition & 1 deletion packages/platform-fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-fastify",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
"author": "Kamil Mysliwiec",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/platform-socket.io/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-socket.io",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-socket.io)",
"author": "Kamil Mysliwiec",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/platform-ws/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-ws",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
"author": "Kamil Mysliwiec",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/testing",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@testing)",
"author": "Kamil Mysliwiec",
"license": "MIT",
6 changes: 3 additions & 3 deletions packages/websockets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/websockets",
"version": "7.0.11",
"version": "7.0.13",
"description": "Nest - modern, fast, powerful node.js web framework (@websockets)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -16,8 +16,8 @@
"tslib": "1.11.2"
},
"devDependencies": {
"@nestjs/common": "7.0.11",
"@nestjs/core": "7.0.11"
"@nestjs/common": "7.0.13",
"@nestjs/core": "7.0.13"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0",
22 changes: 15 additions & 7 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"extends": ["config:base"],
"semanticCommits": true,
"packageRules": [{
"depTypeList": ["devDependencies"],
"automerge": true
}],
"extends": [
"config:base"
]
"packageRules": [
{
"depTypeList": ["devDependencies"],
"automerge": true
},
{
"packagePatterns": ["*"],
"minor": {
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}
}
],
"schedule": ["every weekday"]
}
84 changes: 42 additions & 42 deletions sample/01-cats-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading