Skip to content

Commit 44c732e

Browse files
daniasTraigordependabot[bot]Varagos
authored
Develop (#27)
* changes for the metadata refactor * Bump web-vitals from 3.3.0 to 3.3.1 in /frontend Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 3.3.0 to 3.3.1. - [Release notes](https://github.com/GoogleChrome/web-vitals/releases) - [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md) - [Commits](GoogleChrome/web-vitals@v3.3.0...v3.3.1) --- updated-dependencies: - dependency-name: web-vitals dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump mongodb from 5.1.0 to 5.2.0 in /backend Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.1.0 to 5.2.0. - [Release notes](https://github.com/mongodb/node-mongodb-native/releases) - [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md) - [Commits](mongodb/node-mongodb-native@v5.1.0...v5.2.0) --- updated-dependencies: - dependency-name: mongodb dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump axios from 1.3.4 to 1.3.5 in /frontend Bumps [axios](https://github.com/axios/axios) from 1.3.4 to 1.3.5. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.3.4...v1.3.5) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump jest and @types/jest in /backend Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest). These dependencies needed to be updated together. Updates `jest` from 29.3.1 to 29.5.0 - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.5.0/packages/jest) Updates `@types/jest` from 29.2.4 to 29.5.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @nestjs/common from 9.3.12 to 9.4.0 in /backend Bumps [@nestjs/common](https://github.com/nestjs/nest) from 9.3.12 to 9.4.0. - [Release notes](https://github.com/nestjs/nest/releases) - [Commits](nestjs/nest@v9.3.12...v9.4.0) --- updated-dependencies: - dependency-name: "@nestjs/common" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @typescript-eslint/eslint-plugin from 5.57.0 to 5.57.1 in /backend Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.57.0 to 5.57.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @opentelemetry/sdk-node from 0.36.1 to 0.37.0 in /backend Bumps [@opentelemetry/sdk-node](https://github.com/open-telemetry/opentelemetry-js) from 0.36.1 to 0.37.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-js/commits/experimental/v0.37.0) --- updated-dependencies: - dependency-name: "@opentelemetry/sdk-node" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump typescript from 5.0.3 to 5.0.4 in /frontend Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.3 to 5.0.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.0.3...v5.0.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @types/react from 18.0.31 to 18.0.33 in /frontend Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.31 to 18.0.33. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Updated protogen.sh * increased version to v0.1.1 * update domain event props * fix red test * update dependencies * update dependencies * moved dev dependencies under... devDependencies * Bump @types/react from 18.0.33 to 18.0.34 in /frontend (#21) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.33 to 18.0.34. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Code generated comments updated * Bump @nestjs/platform-fastify from 9.3.12 to 9.4.0 in /backend (#26) Bumps [@nestjs/platform-fastify](https://github.com/nestjs/nest) from 9.3.12 to 9.4.0. - [Release notes](https://github.com/nestjs/nest/releases) - [Commits](nestjs/nest@v9.3.12...v9.4.0) --- updated-dependencies: - dependency-name: "@nestjs/platform-fastify" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Removed unnecessary packages * Bump ts-jest from 29.0.5 to 29.1.0 in /backend (#25) Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.0.5 to 29.1.0. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v29.0.5...v29.1.0) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Removed unused packages * Bumped versions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Spiros Grigoratos <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Markos Girgis <[email protected]>
1 parent fa339cd commit 44c732e

File tree

49 files changed

+811
-2324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+811
-2324
lines changed

backend/package.json

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "todo",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Todo Backend using Domain Driven Design (DDD), Hexagonal Architecture, CQRS, Event Sourcing (ES), Event Driven Architecture (EDA), Behaviour Driven Development (BDD) using TypeScript and NestJS. Like what you see? Don't forget to star! ⭐",
55
"author": "Bitloops S.A.",
66
"private": false,
@@ -26,70 +26,36 @@
2626
"node": ">=16.0.0"
2727
},
2828
"dependencies": {
29-
"@bitloops/bl-boilerplate-core": "^0.3.4",
29+
"@bitloops/bl-boilerplate-core": "^0.3.6",
3030
"@bitloops/bl-boilerplate-infra-mongo": "^0.1.2",
3131
"@bitloops/bl-boilerplate-infra-nest-auth-passport": "^0.1.4",
32-
"@bitloops/bl-boilerplate-infra-nest-jetstream": "^0.0.2",
32+
"@bitloops/bl-boilerplate-infra-nest-jetstream": "^0.0.3",
3333
"@bitloops/bl-boilerplate-infra-postgres": "^0.1.1",
3434
"@bitloops/bl-boilerplate-infra-telemetry": "^0.1.3",
3535
"@grpc/grpc-js": "^1.8.13",
36-
"@grpc/proto-loader": "^0.7.6",
3736
"@nestjs/common": "^9.4.0",
3837
"@nestjs/config": "^2.3.1",
3938
"@nestjs/core": "^9.0.0",
40-
"@nestjs/cqrs": "^9.0.3",
41-
"@nestjs/jwt": "^10.0.2",
42-
"@nestjs/mapped-types": "*",
4339
"@nestjs/microservices": "^9.3.10",
44-
"@nestjs/passport": "^9.0.3",
45-
"@nestjs/platform-express": "^9.0.0",
46-
"@nestjs/platform-fastify": "^9.3.9",
47-
"@nestjs/typeorm": "^9.0.1",
48-
"@opentelemetry/api": "^1.4.1",
49-
"@opentelemetry/auto-instrumentations-node": "^0.36.4",
50-
"@opentelemetry/exporter-jaeger": "^1.10.0",
51-
"@opentelemetry/exporter-prometheus": "^0.36.0",
52-
"@opentelemetry/instrumentation-fastify": "^0.31.1",
53-
"@opentelemetry/instrumentation-http": "^0.36.0",
54-
"@opentelemetry/instrumentation-mongodb": "^0.34.1",
55-
"@opentelemetry/instrumentation-nestjs-core": "^0.32.2",
56-
"@opentelemetry/node": "^0.24.0",
57-
"@opentelemetry/resources": "^1.10.0",
58-
"@opentelemetry/sdk-metrics-base": "^0.31.0",
59-
"@opentelemetry/sdk-node": "^0.37.0",
60-
"@opentelemetry/sdk-trace-base": "^1.10.0",
61-
"@opentelemetry/semantic-conventions": "^1.10.0",
62-
"@types/passport-jwt": "^3.0.8",
63-
"@types/passport-local": "^1.0.35",
64-
"@willsoto/nestjs-prometheus": "^5.1.0",
65-
"async-mutex": "^0.4.0",
66-
"bcrypt": "^5.1.0",
40+
"@nestjs/platform-fastify": "^9.4.0",
6741
"class-transformer": "^0.5.1",
6842
"class-validator": "^0.14.0",
69-
"express": "^4.18.2",
7043
"google-protobuf": "^3.21.2",
7144
"jsonwebtoken": "^9.0.0",
7245
"mongodb": "^5.2.0",
7346
"nats": "^2.13.1",
74-
"passport": "^0.6.0",
75-
"passport-jwt": "^4.0.1",
76-
"passport-local": "^1.0.0",
77-
"pg": "^8.10.0",
78-
"prom-client": "^14.2.0",
7947
"reflect-metadata": "^0.1.13",
80-
"rxjs": "^7.8.0"
48+
"rxjs": "^7.8.0",
49+
"uuid": "^9.0.0"
8150
},
8251
"devDependencies": {
8352
"@nestjs/cli": "^9.0.0",
8453
"@nestjs/schematics": "^9.0.0",
8554
"@nestjs/testing": "^9.0.0",
86-
"@types/bcrypt": "^5.0.0",
87-
"@types/express": "^4.17.13",
8855
"@types/google-protobuf": "^3.15.6",
8956
"@types/jest": "29.5.0",
9057
"@types/jsonwebtoken": "^9.0.1",
9158
"@types/node": "18.15.11",
92-
"@types/pg": "^8.6.6",
9359
"@types/supertest": "^2.0.11",
9460
"@typescript-eslint/eslint-plugin": "^5.57.1",
9561
"@typescript-eslint/parser": "^5.57.0",
@@ -99,11 +65,12 @@
9965
"grpc-tools": "^1.12.4",
10066
"grpc_tools_node_protoc_ts": "^5.3.3",
10167
"jest": "29.5.0",
68+
"passport": "^0.6.0",
10269
"prettier": "^2.3.2",
10370
"protoc-gen-ts": "^0.8.6",
10471
"source-map-support": "^0.5.20",
10572
"supertest": "^6.1.3",
106-
"ts-jest": "29.0.5",
73+
"ts-jest": "29.1.0",
10774
"ts-loader": "^9.2.3",
10875
"ts-node": "^10.0.0",
10976
"tsconfig-paths": "4.1.1",

backend/src/api/pub-sub-handlers/todo-added.integration-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TodoAddedPubSubIntegrationEventHandler
3131
const { payload } = event;
3232

3333
const { userId } = payload;
34-
console.log('TodoIntegrationEvent', event);
34+
// console.log('TodoIntegrationEvent', event);
3535
// console.log('subscritpions', this.subscriptions);
3636
// console.log('subscribers', this.subscribers);
3737
// const call = this.subscribers[userId]?.call;

backend/src/api/pub-sub-handlers/todo-completed.integration-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TodoCompletedPubSubIntegrationEventHandler
3131
const { payload } = event;
3232

3333
const { userId } = payload;
34-
console.log('TodoIntegrationEvent', event);
34+
// console.log('TodoIntegrationEvent', event);
3535
// console.log('subscritpions', this.subscriptions);
3636
// console.log('subscribers', this.subscribers);
3737
// const call = this.subscribers[userId]?.call;

backend/src/api/pub-sub-handlers/todo-deleted.integration-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TodoDeletedPubSubIntegrationEventHandler
3131
const { payload } = event;
3232

3333
const { userId } = payload;
34-
console.log('TodoIntegrationEvent', event);
34+
// console.log('TodoIntegrationEvent', event);
3535
// console.log('subscriptions', this.subscriptions);
3636
// console.log('subscribers', this.subscribers);
3737
// const call = this.subscribers[userId]?.call;

backend/src/api/pub-sub-handlers/todo-modified-title.integration-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TodoModifiedTitlePubSubIntegrationEventHandler
3131
const { payload } = event;
3232

3333
const { userId } = payload;
34-
console.log('TodoIntegrationEvent', event);
34+
// console.log('TodoIntegrationEvent', event);
3535
// console.log('subscritpions', this.subscriptions);
3636
// console.log('subscribers', this.subscribers);
3737
// const call = this.subscribers[userId]?.call;

backend/src/api/pub-sub-handlers/todo-uncompleted.integration-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TodoUncompletedPubSubIntegrationEventHandler
3131
const { payload } = event;
3232

3333
const { userId } = payload;
34-
console.log('TodoIntegrationEvent', event);
34+
// console.log('TodoIntegrationEvent', event);
3535
// console.log('subscritpions', this.subscriptions);
3636
// console.log('subscribers', this.subscribers);
3737
// const call = this.subscribers[userId]?.call;

backend/src/lib/bounded-contexts/iam/authentication/application/command-handlers/change-email.handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export class ChangeEmailHandler
4545
},
4646
})
4747
async execute(command: ChangeEmailCommand): Promise<ChangeEmailResponse> {
48-
console.log('ChangeEmail command');
4948
const userId = new Domain.UUIDv4(command.userId);
5049
const email = EmailVO.create({ email: command.email });
5150
if (email.isFail()) {

backend/src/lib/bounded-contexts/iam/authentication/application/command-handlers/log-in.handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class LogInHandler
4444
},
4545
})
4646
async execute(command: LogInCommand): Promise<LogInUseCaseResponse> {
47-
console.log('Login command');
4847
const userId = new Domain.UUIDv4(command.userId);
4948

5049
const user = await this.userRepo.getById(userId);

backend/src/lib/bounded-contexts/iam/authentication/commands/change-email.command.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
Application,
3-
asyncLocalStorage,
4-
Domain,
5-
} from '@bitloops/bl-boilerplate-core';
1+
import { Application } from '@bitloops/bl-boilerplate-core';
62
import { ChangeEmailCommandDTO } from '../dtos/change-email-command.dto';
73
export type TChangeEmailCommand = {
84
userId: string;
@@ -11,15 +7,9 @@ export type TChangeEmailCommand = {
117
export class ChangeEmailCommand extends Application.Command {
128
public readonly userId: string;
139
public readonly email: string;
14-
public readonly metadata: Application.TCommandMetadata = {
15-
boundedContextId: 'IAM',
16-
createdTimestamp: Date.now(),
17-
messageId: new Domain.UUIDv4().toString(),
18-
correlationId: asyncLocalStorage.getStore()?.get('correlationId'),
19-
context: asyncLocalStorage.getStore()?.get('context'),
20-
};
10+
2111
constructor(changeEmailCommandDTO: ChangeEmailCommandDTO) {
22-
super();
12+
super('IAM');
2313
this.userId = changeEmailCommandDTO.userId;
2414
this.email = changeEmailCommandDTO.email;
2515
}
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
import {
2-
Application,
3-
Domain,
4-
asyncLocalStorage,
5-
} from '@bitloops/bl-boilerplate-core';
1+
import { Application } from '@bitloops/bl-boilerplate-core';
62
export type TLogInCommand = {
73
userId: string;
84
};
95
export class LogInCommand extends Application.Command {
106
public readonly userId: string;
11-
public metadata: Application.TCommandMetadata = {
12-
boundedContextId: 'IAM',
13-
createdTimestamp: Date.now(),
14-
messageId: new Domain.UUIDv4().toString(),
15-
context: asyncLocalStorage.getStore()?.get('context'),
16-
correlationId: asyncLocalStorage.getStore()?.get('correlationId'),
17-
};
7+
188
constructor(loginCommand: TLogInCommand) {
19-
super();
9+
super('IAM');
2010
this.userId = loginCommand.userId;
2111
}
2212
}

0 commit comments

Comments
 (0)