@currentjs/gen 0.3.0 → 0.3.1

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 CHANGED
@@ -6,38 +6,78 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
 
8
8
 
9
+
10
+ ## [0.3.1] - 2025-10-03
11
+
12
+ bug fixed with overwriting committed changes
13
+
9
14
  ## [0.3.0] - 2025-10-03
10
15
 
11
16
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
12
17
 
18
+
19
+ ## [0.3.1] - 2025-10-03
20
+
21
+ bug fixed with overwriting committed changes
22
+
13
23
  ## [0.2.2] - 2025-10-02
14
24
 
15
25
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
16
26
 
17
27
 
28
+
29
+ ## [0.3.1] - 2025-10-03
30
+
31
+ bug fixed with overwriting committed changes
32
+
18
33
  ## [0.3.0] - 2025-10-03
19
34
 
20
35
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
21
36
 
37
+
38
+ ## [0.3.1] - 2025-10-03
39
+
40
+ bug fixed with overwriting committed changes
41
+
22
42
  ## [0.2.1] - 2025-09-18
23
43
 
24
44
  Improve generated package.json
25
45
 
26
46
 
27
47
 
48
+
49
+ ## [0.3.1] - 2025-10-03
50
+
51
+ bug fixed with overwriting committed changes
52
+
28
53
  ## [0.3.0] - 2025-10-03
29
54
 
30
55
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
31
56
 
57
+
58
+ ## [0.3.1] - 2025-10-03
59
+
60
+ bug fixed with overwriting committed changes
61
+
32
62
  ## [0.2.2] - 2025-10-02
33
63
 
34
64
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
35
65
 
36
66
 
67
+
68
+ ## [0.3.1] - 2025-10-03
69
+
70
+ bug fixed with overwriting committed changes
71
+
37
72
  ## [0.3.0] - 2025-10-03
38
73
 
39
74
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
40
75
 
76
+
77
+ ## [0.3.1] - 2025-10-03
78
+
79
+ bug fixed with overwriting committed changes
80
+
41
81
  ## [0.2.0] - 2025-09-18
42
82
 
43
83
  implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
@@ -45,38 +85,78 @@ implement multi-model generation (controllers, services); fix service-controller
45
85
 
46
86
 
47
87
 
88
+
89
+ ## [0.3.1] - 2025-10-03
90
+
91
+ bug fixed with overwriting committed changes
92
+
48
93
  ## [0.3.0] - 2025-10-03
49
94
 
50
95
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
51
96
 
97
+
98
+ ## [0.3.1] - 2025-10-03
99
+
100
+ bug fixed with overwriting committed changes
101
+
52
102
  ## [0.2.2] - 2025-10-02
53
103
 
54
104
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
55
105
 
56
106
 
107
+
108
+ ## [0.3.1] - 2025-10-03
109
+
110
+ bug fixed with overwriting committed changes
111
+
57
112
  ## [0.3.0] - 2025-10-03
58
113
 
59
114
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
60
115
 
116
+
117
+ ## [0.3.1] - 2025-10-03
118
+
119
+ bug fixed with overwriting committed changes
120
+
61
121
  ## [0.2.1] - 2025-09-18
62
122
 
63
123
  Improve generated package.json
64
124
 
65
125
 
66
126
 
127
+
128
+ ## [0.3.1] - 2025-10-03
129
+
130
+ bug fixed with overwriting committed changes
131
+
67
132
  ## [0.3.0] - 2025-10-03
68
133
 
69
134
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
70
135
 
136
+
137
+ ## [0.3.1] - 2025-10-03
138
+
139
+ bug fixed with overwriting committed changes
140
+
71
141
  ## [0.2.2] - 2025-10-02
72
142
 
73
143
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
74
144
 
75
145
 
146
+
147
+ ## [0.3.1] - 2025-10-03
148
+
149
+ bug fixed with overwriting committed changes
150
+
76
151
  ## [0.3.0] - 2025-10-03
77
152
 
78
153
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
79
154
 
155
+
156
+ ## [0.3.1] - 2025-10-03
157
+
158
+ bug fixed with overwriting committed changes
159
+
80
160
  ## [0.1.2] - 2025-09-18
81
161
 
82
162
  fix: failed to generate with empty permissions actions
@@ -85,38 +165,78 @@ fix: failed to generate with empty permissions actions
85
165
 
86
166
 
87
167
 
168
+
169
+ ## [0.3.1] - 2025-10-03
170
+
171
+ bug fixed with overwriting committed changes
172
+
88
173
  ## [0.3.0] - 2025-10-03
89
174
 
90
175
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
91
176
 
177
+
178
+ ## [0.3.1] - 2025-10-03
179
+
180
+ bug fixed with overwriting committed changes
181
+
92
182
  ## [0.2.2] - 2025-10-02
93
183
 
94
184
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
95
185
 
96
186
 
187
+
188
+ ## [0.3.1] - 2025-10-03
189
+
190
+ bug fixed with overwriting committed changes
191
+
97
192
  ## [0.3.0] - 2025-10-03
98
193
 
99
194
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
100
195
 
196
+
197
+ ## [0.3.1] - 2025-10-03
198
+
199
+ bug fixed with overwriting committed changes
200
+
101
201
  ## [0.2.1] - 2025-09-18
102
202
 
103
203
  Improve generated package.json
104
204
 
105
205
 
106
206
 
207
+
208
+ ## [0.3.1] - 2025-10-03
209
+
210
+ bug fixed with overwriting committed changes
211
+
107
212
  ## [0.3.0] - 2025-10-03
108
213
 
109
214
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
110
215
 
216
+
217
+ ## [0.3.1] - 2025-10-03
218
+
219
+ bug fixed with overwriting committed changes
220
+
111
221
  ## [0.2.2] - 2025-10-02
112
222
 
113
223
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
114
224
 
115
225
 
226
+
227
+ ## [0.3.1] - 2025-10-03
228
+
229
+ bug fixed with overwriting committed changes
230
+
116
231
  ## [0.3.0] - 2025-10-03
117
232
 
118
233
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
119
234
 
235
+
236
+ ## [0.3.1] - 2025-10-03
237
+
238
+ bug fixed with overwriting committed changes
239
+
120
240
  ## [0.2.0] - 2025-09-18
121
241
 
122
242
  implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
@@ -124,38 +244,78 @@ implement multi-model generation (controllers, services); fix service-controller
124
244
 
125
245
 
126
246
 
247
+
248
+ ## [0.3.1] - 2025-10-03
249
+
250
+ bug fixed with overwriting committed changes
251
+
127
252
  ## [0.3.0] - 2025-10-03
128
253
 
129
254
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
130
255
 
256
+
257
+ ## [0.3.1] - 2025-10-03
258
+
259
+ bug fixed with overwriting committed changes
260
+
131
261
  ## [0.2.2] - 2025-10-02
132
262
 
133
263
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
134
264
 
135
265
 
266
+
267
+ ## [0.3.1] - 2025-10-03
268
+
269
+ bug fixed with overwriting committed changes
270
+
136
271
  ## [0.3.0] - 2025-10-03
137
272
 
138
273
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
139
274
 
275
+
276
+ ## [0.3.1] - 2025-10-03
277
+
278
+ bug fixed with overwriting committed changes
279
+
140
280
  ## [0.2.1] - 2025-09-18
141
281
 
142
282
  Improve generated package.json
143
283
 
144
284
 
145
285
 
286
+
287
+ ## [0.3.1] - 2025-10-03
288
+
289
+ bug fixed with overwriting committed changes
290
+
146
291
  ## [0.3.0] - 2025-10-03
147
292
 
148
293
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
149
294
 
295
+
296
+ ## [0.3.1] - 2025-10-03
297
+
298
+ bug fixed with overwriting committed changes
299
+
150
300
  ## [0.2.2] - 2025-10-02
151
301
 
152
302
  fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
153
303
 
154
304
 
305
+
306
+ ## [0.3.1] - 2025-10-03
307
+
308
+ bug fixed with overwriting committed changes
309
+
155
310
  ## [0.3.0] - 2025-10-03
156
311
 
157
312
  - model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
158
313
 
314
+
315
+ ## [0.3.1] - 2025-10-03
316
+
317
+ bug fixed with overwriting committed changes
318
+
159
319
  ## [0.1.1] - 2025-09-17
160
320
 
161
321
  Initial release
@@ -158,7 +158,7 @@ async function writeGeneratedFile(filePath, contents, options) {
158
158
  const applied = (0, commitUtils_1.tryApplyCommitsToGenerated)(abs, contents);
159
159
  if (applied.applied) {
160
160
  fs.writeFileSync(abs, applied.content);
161
- updateStoredHash(abs, computeContentHash(applied.content));
161
+ updateStoredHash(abs, newHash);
162
162
  if (!silent)
163
163
  console.log(colors_1.colors.cyan(`Updated (with commits) ${rel}`));
164
164
  return 'written';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@currentjs/gen",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "CLI code generator",
5
5
  "license": "LGPL-3.0",
6
6
  "author": "Konstantin Zavalny",