Skip to content

Commit

Permalink
Merge pull request #478 from 4lessandrodev/release/v4.1.0
Browse files Browse the repository at this point in the history
Release/v4.1.0
  • Loading branch information
4lessandrodev authored Dec 18, 2024
2 parents 0d7201b + 2ba239d commit 24b0c5f
Show file tree
Hide file tree
Showing 29 changed files with 422 additions and 42 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ All notable changes to this project will be documented in this file.

---

### [4.1.0] - 2024-12-15

#### Feat

- Atualizando lib core para nova versão
- rich-domain v1.25.0

---

### [4.0.5] - 2024-11-28

### Fix
Expand Down
31 changes: 30 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,31 +1,60 @@
.PHONY: startVerdaccio stopVerdaccio publishVerdaccio addUser login build graph publish
# Define the targets and the commands to be executed
.PHONY: startVerdaccio stopVerdaccio publishVerdaccio addUser login build graph publish update

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

# Stop the running Verdaccio Docker container
stopVerdaccio:
# Stop the Verdaccio container with the name 'lib_verdaccio'
docker stop lib_verdaccio

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

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

# Build the project and its dependencies using npm
# This includes running the general build process and the Lerna build process
build:
npm run build && npm run build:lerna

# Build and publish packages to the local Verdaccio registry
# This builds all packages using Yarn and Lerna and publishes them to the local registry
publishVerdaccio:
yarn build
yarn build:lerna
yarn lerna exec "npm publish --registry http://localhost:4873"

# Generate and visualize the dependency graph of the project using Nx
# This will show a graphical representation of the dependencies in the monorepo
graph:
yarn nx graph

# Publish packages using Lerna
# This command publishes packages to the specified registry using Lerna
publish:
yarn lerna publish

# Update a specific peer dependency across all packages in the monorepo
# Example usage: make update lib=rich-domain v=1.1.0
# 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
# update peer dependency in all packages once
update:
./update-peer-dependency.sh $(lib) $(v)
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "type-ddd",
"version": "4.0.5",
"version": "4.1.0",
"description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -41,7 +41,6 @@
"prepublish:lib": "rimraf ./dist && npm run check:circular-deps",
"publish:lib": "npm publish",
"format:all": "npx prettier --write .",
"prepare": "husky install",
"check:types": "tsc -v packages --noEmit"
},
"repository": {
Expand All @@ -53,7 +52,7 @@
},
"homepage": "https://github.com/4lessandrodev/type-ddd/tree/main",
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"devDependencies": {
"@types/jest": "^27.0.1",
Expand All @@ -65,7 +64,7 @@
"lint-staged": "^15.0.1",
"madge": "^8.0.0",
"prettier": "^3.0.0",
"rich-domain": "^1.24.1",
"rich-domain": "1.25.0",
"rimraf": "^5.0.5",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
Expand Down
24 changes: 24 additions & 0 deletions packages/cnpj/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
4 changes: 2 additions & 2 deletions packages/cnpj/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/cnpj",
"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.",
"version": "0.0.3",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down Expand Up @@ -33,7 +33,7 @@
"build": "tsc"
},
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"files": [
"index.js",
Expand Down
24 changes: 24 additions & 0 deletions packages/cpf/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
4 changes: 2 additions & 2 deletions packages/cpf/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/cpf",
"description": "This package provides TypeScript type definitions for handling CPF (Cadastro de Pessoa Física) in Domain-Driven Design contexts",
"version": "0.0.3",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down Expand Up @@ -30,7 +30,7 @@
"build": "tsc"
},
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"files": [
"index.js",
Expand Down
24 changes: 24 additions & 0 deletions packages/date/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
4 changes: 2 additions & 2 deletions packages/date/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/date",
"description": "Library that provides TypeScript type definitions for handling Dates in Domain-Driven Design contexts. It facilitates the validation and manipulation of Dates.",
"version": "0.0.3",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down Expand Up @@ -29,7 +29,7 @@
"build": "tsc"
},
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"files": [
"index.js",
Expand Down
25 changes: 25 additions & 0 deletions packages/email/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.5-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
* solve error module not found [#449](https://github.com/4lessandrodev/type-ddd/issues/449) ([e9d14f6](https://github.com/4lessandrodev/type-ddd/commit/e9d14f694cafc9c2123cc31055a4561f460a82d3))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
4 changes: 2 additions & 2 deletions packages/email/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/email",
"description": "Library that provides TypeScript type definitions for handling Email in Domain-Driven Design contexts. It facilitates the validation and manipulation of emails.",
"version": "0.0.4",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down Expand Up @@ -29,7 +29,7 @@
"build": "tsc"
},
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"files": [
"index.js",
Expand Down
13 changes: 13 additions & 0 deletions packages/logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.3-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)

**Note:** Version bump only for package @type-ddd/logger





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/logger",
"description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design",
"version": "0.0.2",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down
24 changes: 24 additions & 0 deletions packages/money/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.4-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
4 changes: 2 additions & 2 deletions packages/money/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@type-ddd/money",
"description": "This package provides TypeScript type definitions for handling Money in Domain-Driven Design contexts",
"version": "0.0.3",
"version": "0.1.0",
"main": "index.js",
"types": "index.d.ts",
"author": "Alessandro Dev",
Expand Down Expand Up @@ -30,7 +30,7 @@
"build": "tsc"
},
"peerDependencies": {
"rich-domain": "^1.24.1"
"rich-domain": "^1.25.0"
},
"files": [
"index.js",
Expand Down
26 changes: 26 additions & 0 deletions packages/password/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.5-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/[email protected]...@type-ddd/[email protected]) (2024-12-16)



## 4.0.5 (2024-11-28)


### Bug Fixes

* change type create method return null [#194](https://github.com/4lessandrodev/type-ddd/issues/194) ([2cd03bf](https://github.com/4lessandrodev/type-ddd/commit/2cd03bf34387f4889a0a292ba350f2c0cfc753b7))
* solve error module not found [#449](https://github.com/4lessandrodev/type-ddd/issues/449) ([e9d14f6](https://github.com/4lessandrodev/type-ddd/commit/e9d14f694cafc9c2123cc31055a4561f460a82d3))
* solve error module not found [#449](https://github.com/4lessandrodev/type-ddd/issues/449) ([7c85419](https://github.com/4lessandrodev/type-ddd/commit/7c85419376860b9b94fbee3f16bc2b10592221f6))



## 4.0.3 (2024-07-26)





# Changelog

All notable changes to this project will be documented in this file.
Expand Down
Loading

0 comments on commit 24b0c5f

Please sign in to comment.