diff --git a/CHANGELOG.md b/CHANGELOG.md index a9a441be..76501051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Makefile b/Makefile index 68c6dd97..dd1ae0df 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/package.json b/package.json index e51e019d..65e1e370 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { @@ -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", @@ -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", diff --git a/packages/cnpj/CHANGELOG.md b/packages/cnpj/CHANGELOG.md index 4daf77d3..b6051103 100644 --- a/packages/cnpj/CHANGELOG.md +++ b/packages/cnpj/CHANGELOG.md @@ -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/cnpj@0.0.2...@type-ddd/cnpj@0.0.4-alpha.0) (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. diff --git a/packages/cnpj/package.json b/packages/cnpj/package.json index 9bca8e01..ef5e5676 100644 --- a/packages/cnpj/package.json +++ b/packages/cnpj/package.json @@ -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", @@ -33,7 +33,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/cpf/CHANGELOG.md b/packages/cpf/CHANGELOG.md index 8f5d9f22..331a8604 100644 --- a/packages/cpf/CHANGELOG.md +++ b/packages/cpf/CHANGELOG.md @@ -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/cpf@0.0.2...@type-ddd/cpf@0.0.4-alpha.0) (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. diff --git a/packages/cpf/package.json b/packages/cpf/package.json index fcffe38b..6c046ac4 100644 --- a/packages/cpf/package.json +++ b/packages/cpf/package.json @@ -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", @@ -30,7 +30,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/date/CHANGELOG.md b/packages/date/CHANGELOG.md index 4daf77d3..29c1427a 100644 --- a/packages/date/CHANGELOG.md +++ b/packages/date/CHANGELOG.md @@ -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/date@0.0.2...@type-ddd/date@0.0.4-alpha.0) (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. diff --git a/packages/date/package.json b/packages/date/package.json index a0a4a379..6e194280 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -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", @@ -29,7 +29,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/email/CHANGELOG.md b/packages/email/CHANGELOG.md index 4bdf0d33..91b6441d 100644 --- a/packages/email/CHANGELOG.md +++ b/packages/email/CHANGELOG.md @@ -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@0.0.2...@type-ddd/email@0.0.5-alpha.0) (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. diff --git a/packages/email/package.json b/packages/email/package.json index 6f8ec188..7fb7f46a 100644 --- a/packages/email/package.json +++ b/packages/email/package.json @@ -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", @@ -29,7 +29,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/logger/CHANGELOG.md b/packages/logger/CHANGELOG.md index d6537bca..b5e51eaf 100644 --- a/packages/logger/CHANGELOG.md +++ b/packages/logger/CHANGELOG.md @@ -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/logger@0.0.2...@type-ddd/logger@0.0.3-alpha.0) (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. diff --git a/packages/logger/package.json b/packages/logger/package.json index 5b51d465..28caa393 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -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", diff --git a/packages/money/CHANGELOG.md b/packages/money/CHANGELOG.md index 8f5d9f22..cdc47c8f 100644 --- a/packages/money/CHANGELOG.md +++ b/packages/money/CHANGELOG.md @@ -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/money@0.0.2...@type-ddd/money@0.0.4-alpha.0) (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. diff --git a/packages/money/package.json b/packages/money/package.json index a7f6d8d8..125b0f57 100644 --- a/packages/money/package.json +++ b/packages/money/package.json @@ -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", @@ -30,7 +30,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/password/CHANGELOG.md b/packages/password/CHANGELOG.md index e548227f..d9ea00f2 100644 --- a/packages/password/CHANGELOG.md +++ b/packages/password/CHANGELOG.md @@ -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/password@0.0.2...@type-ddd/password@0.0.5-alpha.0) (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. diff --git a/packages/password/package.json b/packages/password/package.json index 2ebb7ec3..84a826eb 100644 --- a/packages/password/package.json +++ b/packages/password/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/password", "description": "Library that provides TypeScript type definitions for handling Password in Domain-Driven Design contexts. It facilitates the validation and manipulation of passwords.", - "version": "0.0.4", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -35,7 +35,7 @@ }, "peerDependencies": { "bcrypt": "^5.0.1", - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/patterns/CHANGELOG.md b/packages/patterns/CHANGELOG.md index 4daf77d3..72ce8944 100644 --- a/packages/patterns/CHANGELOG.md +++ b/packages/patterns/CHANGELOG.md @@ -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/patterns@0.0.2...@type-ddd/patterns@0.0.4-alpha.0) (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. diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 1c4b06ab..5d073d10 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/patterns", "description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design", - "version": "0.0.3", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -32,7 +32,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/phone/CHANGELOG.md b/packages/phone/CHANGELOG.md index 4daf77d3..d5abe260 100644 --- a/packages/phone/CHANGELOG.md +++ b/packages/phone/CHANGELOG.md @@ -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/phone@0.0.2...@type-ddd/phone@0.0.4-alpha.0) (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. diff --git a/packages/phone/package.json b/packages/phone/package.json index 8644b528..efaf07f4 100644 --- a/packages/phone/package.json +++ b/packages/phone/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/phone", "description": "Library that provides TypeScript type definitions for handling Phone Numbers in Domain-Driven Design contexts. It facilitates the validation and manipulation of Brazilian phone numbers.", - "version": "0.0.3", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -31,7 +31,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/type-ddd/CHANGELOG.md b/packages/type-ddd/CHANGELOG.md index 269038c3..d069eb59 100644 --- a/packages/type-ddd/CHANGELOG.md +++ b/packages/type-ddd/CHANGELOG.md @@ -1,3 +1,25 @@ +# 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.7-alpha.0](https://github.com/4lessandrodev/type-ddd/compare/@type-ddd/core@0.0.2...@type-ddd/core@0.0.7-alpha.0) (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)) +* export money ([633577e](https://github.com/4lessandrodev/type-ddd/commit/633577eb6aeb4aa7389d747f1b076a042a5e8b22)) +* solve error module not found [#449](https://github.com/4lessandrodev/type-ddd/issues/449) ([e9d14f6](https://github.com/4lessandrodev/type-ddd/commit/e9d14f694cafc9c2123cc31055a4561f460a82d3)) + + + + + # Changelog All notable changes to this project will be documented in this file. diff --git a/packages/type-ddd/package.json b/packages/type-ddd/package.json index 34bace3c..f499e7c3 100644 --- a/packages/type-ddd/package.json +++ b/packages/type-ddd/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/core", "description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design", - "version": "0.0.6", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -13,17 +13,17 @@ "build": "tsc" }, "dependencies": { - "@type-ddd/cnpj": "^0.0.3", - "@type-ddd/cpf": "^0.0.3", - "@type-ddd/date": "^0.0.3", - "@type-ddd/email": "^0.0.4", - "@type-ddd/money": "^0.0.3", - "@type-ddd/password": "^0.0.4", - "@type-ddd/patterns": "^0.0.3", - "@type-ddd/phone": "^0.0.3", - "@type-ddd/username": "^0.0.3", - "@type-ddd/zip-code": "^0.0.3", - "rich-domain": "^1.24.1" + "@type-ddd/cnpj": "^0.1.0", + "@type-ddd/cpf": "^0.1.0", + "@type-ddd/date": "^0.1.0", + "@type-ddd/email": "^0.1.0", + "@type-ddd/money": "^0.1.0", + "@type-ddd/password": "^0.1.0", + "@type-ddd/patterns": "^0.1.0", + "@type-ddd/phone": "^0.1.0", + "@type-ddd/username": "^0.1.0", + "@type-ddd/zip-code": "^0.1.0", + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/username/CHANGELOG.md b/packages/username/CHANGELOG.md index 4daf77d3..721268af 100644 --- a/packages/username/CHANGELOG.md +++ b/packages/username/CHANGELOG.md @@ -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/username@0.0.2...@type-ddd/username@0.0.4-alpha.0) (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. diff --git a/packages/username/package.json b/packages/username/package.json index 2e551578..3c736705 100644 --- a/packages/username/package.json +++ b/packages/username/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/username", "description": "This package provides TypeScript type definitions for handling User Name in Domain-Driven Design contexts", - "version": "0.0.3", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -30,7 +30,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/packages/zip-code/CHANGELOG.md b/packages/zip-code/CHANGELOG.md index 4daf77d3..5bf5b0d4 100644 --- a/packages/zip-code/CHANGELOG.md +++ b/packages/zip-code/CHANGELOG.md @@ -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/zip-code@0.0.2...@type-ddd/zip-code@0.0.4-alpha.0) (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. diff --git a/packages/zip-code/package.json b/packages/zip-code/package.json index 4a971aab..1e3e2a3a 100644 --- a/packages/zip-code/package.json +++ b/packages/zip-code/package.json @@ -1,7 +1,7 @@ { "name": "@type-ddd/zip-code", "description": "This package provides TypeScript type definitions for handling Brazilian Zip Code in Domain-Driven Design contexts", - "version": "0.0.3", + "version": "0.1.0", "main": "index.js", "types": "index.d.ts", "author": "Alessandro Dev", @@ -31,7 +31,7 @@ "build": "tsc" }, "peerDependencies": { - "rich-domain": "^1.24.1" + "rich-domain": "^1.25.0" }, "files": [ "index.js", diff --git a/update-peer-dependency.sh b/update-peer-dependency.sh new file mode 100755 index 00000000..edd8967e --- /dev/null +++ b/update-peer-dependency.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# Update a specific peer dependency across all packages in the monorepo + +# Usage example: +# in root folder execute: +# ./update-peer-dependency.sh +# ./update-peer-dependency.sh rich-domain 1.25.0 + +# Check if jq is installed +if ! command -v jq &> /dev/null; then + echo "Error: jq is not installed. Please install jq to proceed." + exit 1 +fi + +# Check if the correct number of arguments is provided +# The script expects two arguments: the name of the dependency and the desired version. +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + echo "Example: $0 rich-domain 1.25.0-beta" + exit 1 +fi + +# Assign the arguments to variables +DEPENDENCY=$1 # The name of the dependency to be updated +VERSION=$2 # The version to be set for the dependency + +# Directory where the packages are located. The script will look inside this directory. +PACKAGES_DIR="./packages" + +# Check if the /packages directory exists +if [ ! -d "$PACKAGES_DIR" ]; then + echo "The /packages directory does not exist! Please ensure the path is correct." + exit 1 +fi + +# Start the loop to iterate over all folders inside the /packages directory +for PACKAGE in $PACKAGES_DIR/*/; do + # Check if the current path is a directory + if [ -d "$PACKAGE" ]; then + # Build the path for the package.json file inside the package + PACKAGE_JSON="${PACKAGE}package.json" + + # Check if the package.json file exists in the current directory + if [ -f "$PACKAGE_JSON" ]; then + # Check if the package.json contains the specific dependency under peerDependencies + if jq -e ".peerDependencies | has(\"$DEPENDENCY\")" "$PACKAGE_JSON" > /dev/null; then + # Update the version of the dependency in the package.json file + echo "Updating '$DEPENDENCY' to version ^$VERSION in $PACKAGE_JSON" + + # Use jq to modify the version of the dependency + # The result is written to a temporary file and then replaces the original file + jq ".peerDependencies[\"$DEPENDENCY\"] = \"^$VERSION\"" "$PACKAGE_JSON" > "$PACKAGE_JSON.tmp" && mv "$PACKAGE_JSON.tmp" "$PACKAGE_JSON" + fi + fi + fi +done + +# Message indicating the script has finished successfully +echo "Update completed." diff --git a/yarn.lock b/yarn.lock index bb93b699..59cc97a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5856,10 +5856,15 @@ rfdc@^1.4.1: resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== -rich-domain@^1.24.1: - version "1.24.1" - resolved "https://registry.yarnpkg.com/rich-domain/-/rich-domain-1.24.1.tgz#fdb33c43886d4ec4c2b6ccdd0cb2d1c60a6c97a7" - integrity sha512-0w7TbcRaTmXzWQBOMbGMOVMmkJ53LtRxCbDOA/0yTq64cGJef2l2LIrwWtfZ+ag8suo9hUpLDZhCNuhQb498pQ== +rich-domain@1.25.0-beta: + version "1.25.0-beta" + resolved "https://registry.yarnpkg.com/rich-domain/-/rich-domain-1.25.0-beta.tgz#cb5f9f0260977b666f44457238b7e8a7e9e30b66" + integrity sha512-B5XbfndP0VyidO1VflDeystk9ZCJVLhhncfq/2UhytvYqOcsmqyIl16IbQ1mEZ1weGhUYT/ip3ChgE4lezTghw== + +rich-domain@^1.25.0: + version "1.25.0" + resolved "https://registry.yarnpkg.com/rich-domain/-/rich-domain-1.25.0.tgz#5043a2aed040660b2d3f05390eeee9259c511cdb" + integrity sha512-W6/yB2twlPahc1WRWVYsa8YOQ+X/OKwTCVkS2MaiGSCt3BhcQncNi5fVfyKXPumB9bgdEpRpnSERDQLUiYGJkA== rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2"