Skip to content

Commit a7904c9

Browse files
Merge branch 'main' of github.com:ArturHamannRonconi/types-ddd into fix/url-value-object
2 parents 4a251c1 + 42c074a commit a7904c9

28 files changed

+327
-130
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ jobs:
2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
2730

2831
# Runs a single command using the runners shell
2932
- name: Install dependencies

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,59 @@ All notable changes to this project will be documented in this file.
44

55
## Unreleased
66

7+
### 3.4.3 - 2023-01-05
8+
9+
### Updated
10+
11+
- rich-domain: update lib core to 1.15.2
12+
13+
---
14+
15+
### 3.4.2 - 2023-01-03
16+
17+
### Fix
18+
19+
- node version: update requirements. node version required >=16 and < 19
20+
21+
---
22+
23+
### 3.4.1 - 2023-01-03
24+
25+
### Fix
26+
27+
- user-name.value-object: remove empty spaces. By: [VinnyLima](https://github.com/VinnyLima)
28+
29+
---
30+
### 3.4.0 - 2022-12-25
31+
32+
### Update
33+
34+
- rich-domain: update lib core to 1.15.0
35+
- value-objects: added MESSAGE attribute to instance
36+
37+
Now its possible to customize error message
38+
39+
Example:
40+
41+
```ts
42+
43+
// custom-user-name.ts
44+
45+
import { UserNameValueObject } from 'types-ddd';
46+
47+
Reflect.set(UserNameValueObject, "MIN_LENGTH", 3);
48+
Reflect.set(UserNameValueObject, "MAX_LENGTH", 20);
49+
Reflect.set(UserNameValueObject, "MESSAGE", "Username must be a maximum of 3 and a minimum of 20 characters");
50+
51+
const CustomName = UserNameValueObject;
52+
53+
export CustomName; // > import this to create your user name
54+
export default CustomName;
55+
56+
```
57+
58+
---
59+
760
### 3.3.7 - 2022-11-27
861

962
### Update

0 commit comments

Comments
 (0)