Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Splitting Components (Value Objects) into Individual Packages #382

Open
4lessandrodev opened this issue Apr 29, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@4lessandrodev
Copy link
Owner

4lessandrodev commented Apr 29, 2024

Currently

the types-ddd library provides several components (value objects) in a single package. However, it would be beneficial for users if these components were made available in individual packages, allowing users to install only the components they actually need.

For example, one user might only need the cpf component, while another might only need the cnpj component. Allowing the individual installation of each component would provide a more flexible and lean experience for users.

I suggest that the types-ddd library be split into individual packages for each component (value object), so that users can install all components or just the specific ones they need. This would also make maintenance and evolution of each component separately easier.

Proposal:

Split the types-ddd library into individual packages for each component (value object).
Update the documentation to reflect this change and provide clear instructions on how to install the components individually or all at once.

Usage Example:

# Installation of all value-objects
npm install @types-ddd/core

# Installation of a specific value object (example: money)
npm install @types-ddd/currency

This division will allow users to have more control over which package they want to use, reducing the installation size and improving the flexibility of using the types-ddd library.

@4lessandrodev 4lessandrodev added the enhancement New feature or request label Apr 29, 2024
@4lessandrodev 4lessandrodev added this to To do in features-types-ddd via automation Apr 29, 2024
@4lessandrodev 4lessandrodev added this to the improvements milestone Apr 29, 2024
@4lessandrodev
Copy link
Owner Author

Base Project

@4lessandrodev
Copy link
Owner Author

.
+-- package.json
`-- packages
   +-- money
   |   `-- package.json
   `-- email
       `-- package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant