@volontariapp/contracts 4.3.1 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +9 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- README bump
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @volontariapp/logger@0.2.7
|
|
11
|
+
|
|
12
|
+
## 4.3.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- README bump
|
|
17
|
+
|
|
18
|
+
- Updated dependencies []:
|
|
19
|
+
- @volontariapp/logger@0.2.6
|
|
20
|
+
|
|
3
21
|
## 4.3.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Central repository for all TypeScript interfaces, commands, and queries shared across the Volontariapp ecosystem.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Purpose
|
|
6
6
|
|
|
7
7
|
This package is **isomorphic** and **front-end compatible**. It contains pure TypeScript definitions generated from the gRPC `.proto` files, making it suitable for:
|
|
8
8
|
- **Web Applications** (React/Next.js)
|
|
@@ -10,26 +10,26 @@ This package is **isomorphic** and **front-end compatible**. It contains pure Ty
|
|
|
10
10
|
- **Shared Logic** (Pure Node.js)
|
|
11
11
|
- **Microservices** (DTOs and Interfaces)
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Features
|
|
14
14
|
|
|
15
15
|
- **Pure TypeScript**: No dependencies on NestJS or other server-side frameworks.
|
|
16
16
|
- **Auto-generated**: Always in sync with the `proto-registry`.
|
|
17
17
|
- **Lightweight**: Optimized for bundling in browser/mobile environments.
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Usage
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { User, CreateUserCommand } from '@volontariapp/contracts';
|
|
23
23
|
|
|
24
24
|
const newUser: CreateUserCommand = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
email: 'user@example.com',
|
|
26
|
+
firstName: 'John',
|
|
27
|
+
lastName: 'Doe',
|
|
28
|
+
password: '...',
|
|
29
|
+
role: 'USER'
|
|
30
30
|
};
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Maintenance
|
|
34
34
|
|
|
35
35
|
The source code in `src/` is automatically generated by the CI from the `proto-registry`. Do **not** edit files inside `src/` manually.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volontariapp/contracts",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "5.7.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@volontariapp/logger": "0.2.
|
|
42
|
+
"@volontariapp/logger": "0.2.7",
|
|
43
43
|
"protobufjs": "^7.5.8"
|
|
44
44
|
}
|
|
45
45
|
}
|