Skip to content

Commit 24b0c5f

Browse files
Merge pull request #478 from 4lessandrodev/release/v4.1.0
Release/v4.1.0
2 parents 0d7201b + 2ba239d commit 24b0c5f

29 files changed

+422
-42
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ All notable changes to this project will be documented in this file.
1010

1111
---
1212

13+
### [4.1.0] - 2024-12-15
14+
15+
#### Feat
16+
17+
- Atualizando lib core para nova versão
18+
- rich-domain v1.25.0
19+
20+
---
21+
1322
### [4.0.5] - 2024-11-28
1423

1524
### Fix

Makefile

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,60 @@
1-
.PHONY: startVerdaccio stopVerdaccio publishVerdaccio addUser login build graph publish
1+
# Define the targets and the commands to be executed
2+
.PHONY: startVerdaccio stopVerdaccio publishVerdaccio addUser login build graph publish update
23

4+
# Start Verdaccio Docker container (local NPM registry)
5+
# This will install 'expect', pull the latest Verdaccio image, and run it.
36
startVerdaccio:
7+
# Install the 'expect' package needed for some automation scripts
48
sudo apt-get update && sudo apt-get install expect
9+
# Pull the latest nightly version of the Verdaccio image
510
docker pull verdaccio/verdaccio:nightly-master
11+
# Run Verdaccio in detached mode with port 4873 exposed
612
docker run -it -d --rm --name lib_verdaccio -p 4873:4873 verdaccio/verdaccio:nightly-master
13+
# Clear any existing NPM configuration
714
echo "" > ./.npmrc
15+
# Set the registry to the local Verdaccio instance for project-specific use
816
npm config set registry http://localhost:4873/ --location project
917

18+
# Stop the running Verdaccio Docker container
1019
stopVerdaccio:
20+
# Stop the Verdaccio container with the name 'lib_verdaccio'
1121
docker stop lib_verdaccio
1222

23+
# Add a new user to the local NPM registry (Verdaccio)
24+
# This will execute the script that interacts with the registry to add a user
1325
addUser:
1426
./scripts/make-user.sh
1527

28+
# Log in to the local NPM registry (Verdaccio)
29+
# This will execute the login script to authenticate the user with Verdaccio
1630
login:
1731
./scripts/login.sh
1832

33+
# Build the project and its dependencies using npm
34+
# This includes running the general build process and the Lerna build process
1935
build:
2036
npm run build && npm run build:lerna
2137

38+
# Build and publish packages to the local Verdaccio registry
39+
# This builds all packages using Yarn and Lerna and publishes them to the local registry
2240
publishVerdaccio:
2341
yarn build
2442
yarn build:lerna
2543
yarn lerna exec "npm publish --registry http://localhost:4873"
2644

45+
# Generate and visualize the dependency graph of the project using Nx
46+
# This will show a graphical representation of the dependencies in the monorepo
2747
graph:
2848
yarn nx graph
2949

50+
# Publish packages using Lerna
51+
# This command publishes packages to the specified registry using Lerna
3052
publish:
3153
yarn lerna publish
54+
55+
# Update a specific peer dependency across all packages in the monorepo
56+
# Example usage: make update lib=rich-domain v=1.1.0
57+
# This will update the specified peer dependency (e.g., 'rich-domain') to the given version (e.g., '1.1.0') in all package.json files in the ./packages directory
58+
# update peer dependency in all packages once
59+
update:
60+
./update-peer-dependency.sh $(lib) $(v)

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "type-ddd",
3-
"version": "4.0.5",
3+
"version": "4.1.0",
44
"description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -41,7 +41,6 @@
4141
"prepublish:lib": "rimraf ./dist && npm run check:circular-deps",
4242
"publish:lib": "npm publish",
4343
"format:all": "npx prettier --write .",
44-
"prepare": "husky install",
4544
"check:types": "tsc -v packages --noEmit"
4645
},
4746
"repository": {
@@ -53,7 +52,7 @@
5352
},
5453
"homepage": "https://github.com/4lessandrodev/type-ddd/tree/main",
5554
"peerDependencies": {
56-
"rich-domain": "^1.24.1"
55+
"rich-domain": "^1.25.0"
5756
},
5857
"devDependencies": {
5958
"@types/jest": "^27.0.1",
@@ -65,7 +64,7 @@
6564
"lint-staged": "^15.0.1",
6665
"madge": "^8.0.0",
6766
"prettier": "^3.0.0",
68-
"rich-domain": "^1.24.1",
67+
"rich-domain": "1.25.0",
6968
"rimraf": "^5.0.5",
7069
"ts-jest": "^27.1.4",
7170
"ts-node": "^10.7.0",

packages/cnpj/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)
7+
8+
9+
10+
## 4.0.5 (2024-11-28)
11+
12+
13+
### Bug Fixes
14+
15+
* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
16+
17+
18+
19+
## 4.0.3 (2024-07-26)
20+
21+
22+
23+
24+
125
# Changelog
226

327
All notable changes to this project will be documented in this file.

packages/cnpj/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@type-ddd/cnpj",
33
"description": "Library that provides TypeScript type definitions for handling CNPJ (Cadastro Nacional da Pessoa Jurídica) in Domain-Driven Design contexts. It facilitates the validation and manipulation of CNPJ numbers, ensuring they adhere to the Brazilian legal standards.",
4-
"version": "0.0.3",
4+
"version": "0.1.0",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"author": "Alessandro Dev",
@@ -33,7 +33,7 @@
3333
"build": "tsc"
3434
},
3535
"peerDependencies": {
36-
"rich-domain": "^1.24.1"
36+
"rich-domain": "^1.25.0"
3737
},
3838
"files": [
3939
"index.js",

packages/cpf/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)
7+
8+
9+
10+
## 4.0.5 (2024-11-28)
11+
12+
13+
### Bug Fixes
14+
15+
* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
16+
17+
18+
19+
## 4.0.3 (2024-07-26)
20+
21+
22+
23+
24+
125
# Changelog
226

327
All notable changes to this project will be documented in this file.

packages/cpf/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@type-ddd/cpf",
33
"description": "This package provides TypeScript type definitions for handling CPF (Cadastro de Pessoa Física) in Domain-Driven Design contexts",
4-
"version": "0.0.3",
4+
"version": "0.1.0",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"author": "Alessandro Dev",
@@ -30,7 +30,7 @@
3030
"build": "tsc"
3131
},
3232
"peerDependencies": {
33-
"rich-domain": "^1.24.1"
33+
"rich-domain": "^1.25.0"
3434
},
3535
"files": [
3636
"index.js",

packages/date/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)
7+
8+
9+
10+
## 4.0.5 (2024-11-28)
11+
12+
13+
### Bug Fixes
14+
15+
* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
16+
17+
18+
19+
## 4.0.3 (2024-07-26)
20+
21+
22+
23+
24+
125
# Changelog
226

327
All notable changes to this project will be documented in this file.

packages/date/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@type-ddd/date",
33
"description": "Library that provides TypeScript type definitions for handling Dates in Domain-Driven Design contexts. It facilitates the validation and manipulation of Dates.",
4-
"version": "0.0.3",
4+
"version": "0.1.0",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"author": "Alessandro Dev",
@@ -29,7 +29,7 @@
2929
"build": "tsc"
3030
},
3131
"peerDependencies": {
32-
"rich-domain": "^1.24.1"
32+
"rich-domain": "^1.25.0"
3333
},
3434
"files": [
3535
"index.js",

packages/email/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [0.0.5-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)
7+
8+
9+
10+
## 4.0.5 (2024-11-28)
11+
12+
13+
### Bug Fixes
14+
15+
* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
16+
* solve error module not found [#449](https://github.com/4lessandrodev/type-ddd/issues/449) ([e9d14f6](https://github.com/4lessandrodev/type-ddd/commit/e9d14f694cafc9c2123cc31055a4561f460a82d3))
17+
18+
19+
20+
## 4.0.3 (2024-07-26)
21+
22+
23+
24+
25+
126
# Changelog
227

328
All notable changes to this project will be documented in this file.

0 commit comments

Comments
 (0)