@alevnyacow/nzmt 0.7.1 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +5 -9
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Next Zod Modules Toolkit
1
+ <img src='https://raw.githubusercontent.com/alevnyacow/nzmt/refs/heads/main/logo.svg?sanitize=true'></img>
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/@alevnyacow%2Fnzmt.svg)](https://badge.fury.io/js/@alevnyacow%2Fnzmt)
4
4
  ![NPM License](https://img.shields.io/npm/l/%40alevnyacow%2Fnzmt)
@@ -20,10 +20,13 @@ npx nzmt init prismaClientPath:@prisma/client
20
20
 
21
21
  # product entity with title and price fields
22
22
  npx nzmt entity product f:title-string,price-int.positive
23
+
23
24
  # product store (with Prisma implementation, RAM implementation and DI)
24
25
  npx nzmt store product
25
- # product service with injected user store and product store
26
+
27
+ # product service with injected product store
26
28
  npx nzmt service product i:ProductStore
29
+
27
30
  # shop controller with injected shop service and logger
28
31
  npx nzmt controller shop i:Logger,ProductService
29
32
  ```
@@ -57,13 +60,6 @@ There are also two building blocks shared across server and client: Entities and
57
60
 
58
61
  ## Setup
59
62
 
60
- 1. Install required dependencies:
61
- ```bash
62
- npm i inversify zod
63
- ```
64
- These are not peer dependencies, so you can use NZMT with only required features.
65
-
66
- 2. Initialize scaffolding:
67
63
  ```
68
64
  npx nzmt init prismaClientPath:@prisma/client
69
65
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,13 +38,13 @@
38
38
  "@rstest/core": "^0.9.0",
39
39
  "@types/node": "^24.12.0",
40
40
  "next": "^16.1.6",
41
+ "zod": "^4.3.6",
41
42
  "typescript": "^5.9.3"
42
43
  },
43
44
  "peerDependencies": {
44
- "next": ">=13 <17"
45
+ "next": ">=13 <17",
46
+ "zod": ">=4 <5",
47
+ "inversify": ">=7 <9"
45
48
  },
46
- "private": false,
47
- "dependencies": {
48
- "zod": "^4.3.6"
49
- }
49
+ "private": false
50
50
  }