Skip to content

Commit a83f003

Browse files
authored
chore: merge pull request #57 from lucassm02/feature/handler-trace
Chore: release v2.3.0 – normalization utilities, APM decorators & RabbitMQ env-config
2 parents 394dd12 + cd26a60 commit a83f003

84 files changed

Lines changed: 1021 additions & 566 deletions

File tree

Some content is hidden

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

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ DB_PASSWORD=
3333
DB_PORT=
3434

3535
# MONGO
36+
MONGO_ENABLED=true
3637
MONGO_USER=
3738
MONGO_PASSWORD=
3839
MONGO_HOST=
@@ -41,6 +42,8 @@ MONGO_NAME=
4142
MONGO_AUTH_SOURCE=
4243

4344
# RABBIT
45+
RABBIT_ENABLED=
46+
RABBIT_OPTIONS=
4447
RABBIT_USER=
4548
RABBIT_PASSWORD=
4649
RABBIT_HOST=

.gitlab-ci.yml

Lines changed: 0 additions & 123 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,42 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.3.0] - 2025-05-06
9+
10+
### Added
11+
12+
- New `normalize` and `normalizeOptions` utilities for payload normalization in the reprocessing module.
13+
- APM decorators for handlers, enabling instrumentation.
14+
- Functionality to extract RabbitMQ options from the `RABBIT_OPTIONS` environment variable.
15+
16+
### Changed
17+
18+
- Renamed non-standard folder from `utils` to `util`.
19+
- Improved application startup and shutdown process.
20+
- Enhanced MemCached connection process and added connection timeout.
21+
- Updated the `.env.example` file.
22+
- Adjusted when Elastic is started.
23+
- Added protocol adaptation for new RabbitMQ implementations.
24+
- Improved handler processing logic to prevent subsequent handlers from executing prematurely.
25+
- Optimized APM decorators.
26+
27+
### Fixed
28+
29+
- Added normalization before message validation in the reprocessing module.
30+
- Optimized `searchLabels` to prevent maximum call stack overflow.
31+
32+
### Deprecated
33+
34+
- _No deprecations._
35+
36+
### Removed
37+
38+
- _No removals._
39+
40+
### Security
41+
42+
- _No security fixes.
43+
844
## [2.2.0] - 2025-03-19
945

1046
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "template-microservice",
3-
"version": "1.0.0",
3+
"version": "2.3.0",
44
"scripts": {
55
"helm:gen": "NODE_NO_WARNINGS=1 node script/helm/index.mjs",
66
"helm:gen:production": "NODE_NO_WARNINGS=1 node script/helm/index.mjs -e production --scan-routes",

src/data/protocols/mq/publish-in-exchange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export interface PublishInExchangeService {
44
message: object,
55
routingKey: string,
66
headers?: object
7-
): Promise<void>;
7+
): Promise<boolean>;
88
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
export interface PublishInQueueService {
2-
publishInQueue(queue: string, message: object, headers?: object): void;
2+
publishInQueue(
3+
queue: string,
4+
message: object,
5+
headers?: object
6+
): Promise<boolean>;
37
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)