@adaptivestone/framework 5.0.0-beta.22 → 5.0.0-beta.23

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
@@ -1,648 +1,866 @@
1
- ### 5.0.0-next
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [5.0.0-next]
2
9
 
3
10
  This is a big release that contains a lot of new features and breaking changes.
4
11
  Main feature of that release is full TypeScript support insluding mongoose models.
5
12
 
6
- #### New Features
13
+ ### New Features
14
+
15
+ - **[NEW]** Full TypeScript support, including Mongoose models.
16
+ - **[NEW]** New model type: `BaseModel`, simplifying work with TypeScript and based on statics.
17
+ - **[NEW]** `AppInstance` helper to access the app instance from anywhere without passing it.
18
+ - **[NEW]** `GenerateTypes` command added.
19
+ - **[NEW]** `Lock` model for working with locks via MongoDB.
20
+ - **[NEW]** `FrameworkFolder` folder added to the app for module usage.
21
+ - **[NEW]** Ability to skip Mongo model initialization in CLI environments.
22
+ - **[NEW]** Mongo connections in CLI now have unique names, including the command name.
23
+ - **[NEW]** On shutdown event, force shutdown after a timeout.
24
+ - **[NEW]** `GenerateRandomBytes` command added.
25
+ - **[NEW]** `IpDetector` middleware for detecting proxies and `X-Forwarded-For` headers.
26
+ - **[NEW]** Test helpers getTestServerURL and serverInstance.
27
+
28
+ ### Breaking changes (please read carefully)
29
+
30
+ - **[BREAKING]** All models now should be extended from `BaseModel`. This is a potencial breaking change specially for `User` model.
31
+ - **[BREAKING]** Remove jest support for testing.
32
+ - **[BREAKING]** Move email module to separate package `@adaptivestone/framework-module-email`. Please use it if you want to send emails.
33
+ - **[BREAKING]** Remove `VIEWS` folders at all. Should not affect any user as this was not used internally.
34
+ - **[BREAKING]** Removed `noidemailer-sendmail-transport`. Not needed anymore and not recommended to use as well.
35
+ - **[BREAKING]** Remove `minimist` CLI parsing and replace it by `commandArguments` parser.
36
+ - **[BREAKING]** `vitest` v3 <https://vitest.dev/guide/migration.html>.
37
+ - **[BREAKING]** `i18next` v24 <https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0>.
38
+ - **[BREAKING]** Possible breaking. Framework start using express 5 instead of express 4. Please follow express migration guide too <https://expressjs.com/en/guide/migrating-5.html>.
39
+ - **[BREAKING]** As part of express 5 migration `_` in rotes (middlewares) should have perameter. please replace `_` to `*splat`.
40
+ - **[BREAKING]** Default auth responce changed to be unified. `{token, user}` => `{data:{token, user}}`.
41
+ - **[BREAKING]** `RateLimiter` now need to have `IpDetector` middleware before.
42
+ - **[BREAKING]** Removing `staticFiles` middleware as it not used in projects anymore. Docs with nginx config will be provided.
43
+ - **[BREAKING]** Remove default `AUTH_SALT`. It should be provided on a app level now.
44
+ - **[BREAKING]** Minimum node version is 20.12 as for now (`process.loadEnvFile`).
45
+ - **[BREAKING]** ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience.
46
+ - **[BREAKING]** Mongoose v8. <https://mongoosejs.com/docs/migrating_to_8.html>.
47
+
48
+ ---
49
+
50
+ ## [5.0.0-beta.23]
51
+
52
+ - **[BREAKING]** No more global variables for testing and default user will not be created by default
53
+ - **[NEW]** Test helpers getTestServerURL, serverInstance, setDefaultUser, setDefaultAuthToken and createDefaultTestUser.
54
+ - **[DEPRECATION]** global usage in testing is deprecated
55
+
56
+ ---
57
+
58
+ ## [5.0.0-beta.22]
59
+
60
+ - **[UPDATE]** Update types.
61
+
62
+ ---
63
+
64
+ ## [5.0.0-beta.21]
65
+
66
+ - **[FIX]** Fix bug with missed model options.
67
+
68
+ ---
69
+
70
+ ## [5.0.0-beta.20]
71
+
72
+ - **[FIX]** Fix bug with `Lock` model index.
73
+ - **[NEW]** `BaseModel` add `Virtuals`.
74
+
75
+ ---
76
+
77
+ ## [5.0.0-beta.19]
78
+
79
+ - **[NEW]** Introducing new model type. `BaseModel`. Features - simplifie works with typescript. And based on statics.
80
+ - **[BREAKING]** All models now should be extended from `BaseModel`. This is a potencial breaking change specially for `User` model.
81
+
82
+ ---
83
+
84
+ ## [5.0.0-beta.18]
85
+
86
+ - **[UPDATE]** Move away connection from `mongooseModels` to server itself (preparation for different model types).
87
+ - **[BREAKING]** Potencial. We are removed callback from `mongooseModels` contrctuctor. It was not used in code.
88
+ - **[NEW]** Add `appInstance` helper to access app instance from anywhere without passing it.
89
+
90
+ ---
91
+
92
+ ## [5.0.0-beta.17]
93
+
94
+ - **[NEW]** Add `GenerateTypes` command.
95
+
96
+ ---
97
+
98
+ ## [5.0.0-beta.16]
99
+
100
+ - **[UPDATE]** Update deps.
101
+ - **[UPDATE]** New app getter `internalFilesCache`.
102
+ - **[UPDATE]** Command new static props to load `isShouldGetModelPaths`.
103
+
104
+ ---
105
+
106
+ ## [5.0.0-beta.15]
107
+
108
+ - **[FIX]** Fix missing folder `migrations` in `dist` folder (hope that will be finally).
109
+
110
+ ---
111
+
112
+ ## [5.0.0-beta.14]
113
+
114
+ - **[FIX]** Fix missing folder `migrations` in `dist` folder.
115
+
116
+ ---
117
+
118
+ ## [5.0.0-beta.13]
119
+
120
+ - **[UPDATE]** Only process `.ts` or `.js` files (not `.map` files).
121
+
122
+ ---
123
+
124
+ ## [5.0.0-beta.12]
125
+
126
+ - **[BREAKING]** Remove jest support for testing.
127
+ - **[NEW]** Initial move to typescript. Potencially breaking.
128
+ - **[NEW]** Introduce `src` and `dist` folders.
129
+
130
+ ---
7
131
 
8
- [NEW] Full TypeScript support, including Mongoose models.
9
- [NEW] New model type: BaseModel, simplifying work with TypeScript and based on statics.
10
- [NEW] AppInstance helper to access the app instance from anywhere without passing it.
11
- [NEW] GenerateTypes command added.
12
- [NEW] Lock model for working with locks via MongoDB.
13
- [NEW] FrameworkFolder folder added to the app for module usage.
14
- [NEW] Ability to skip Mongo model initialization in CLI environments.
15
- [NEW] Mongo connections in CLI now have unique names, including the command name.
16
- [NEW] On shutdown event, force shutdown after a timeout.
17
- [NEW] GenerateRandomBytes command added.
18
- [NEW] IpDetector middleware for detecting proxies and X-Forwarded-For headers.
132
+ ## [5.0.0-beta.11]
19
133
 
20
- #### Breaking changes (please read carefully)
134
+ - **[NEW]** Commands typing.
135
+ - **[NEW]** Commands support TS files.
136
+ - **[UPDATE]** Update deps.
21
137
 
22
- [BREAKING] all models now should be extended from BaseModel. This is a potencial breaking change specially for User model.
23
- [BREAKING] Remove jest support for testing
24
- [BREAKING] move email module to separate package @adaptivestone/framework-module-email. Please use it if you want to send emails
25
- [BREAKING] remove VIEWS folders at all. Should not afffect any user as this was not used internally
26
- [BREAKING] removed noidemailer-sendmail-transport. Not needed anymore and not recommended to use as well
27
- [BREAKING] remove minimist CLI parsing and replace it by commandArguments parser
28
- [BREAKING] vitest v3 https://vitest.dev/guide/migration.html
29
- [BREAKING] i18next v24 https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0
30
- [BREAKING] possible breaking. Framework start using express 5 instead of express 4. Please follow express migration guide too https://expressjs.com/en/guide/migrating-5.html.
31
- [BREAKING] AS part of express 5 migration _ in rotes (middlewares) should have perameter. please replace _ to \*splat
32
- [BREAKING] default auth responce changed to be unified. {token, user} = > {data:{token, user}}
33
- [BREAKING] RateLimiter now need to have IpDetector middleware before
34
- [BREAKING] removing staticFiles middleware as it not used in projects anymore. Docs with nginx config will be provided
35
- [BREAKING] remove default AUTH_SALT. It should be provided on a app level now
36
- [BREAKING] Minimum node version is 20.12 as for now (process.loadEnvFile)
37
- [BREAKING] ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience
38
- [BREAKING] Mongoose v8. https://mongoosejs.com/docs/migrating_to_8.html
138
+ ---
39
139
 
140
+ ## [5.0.0-beta.9]
40
141
 
41
- ### 5.0.0-beta.22
142
+ - **[BREAKING]** Move email module to separate package `@adaptivestone/framework-module-email`. Please use it if you want to send emails.
143
+ - **[NEW]** App now contains `frameworkFolder` folder the framework located. Mostly for modules usage.
144
+ - **[BREAKING]** Remove `VIEWS` folders at all. Should not afffect any user as this was not used internally.
145
+ - **[UPDATE]** Update typing.
146
+ - **[UPDATE]** Change `redis` -> `@redis/client` as we are using only client from pakage.
147
+ - **[BREAKING]** Removed `noidemailer-sendmail-transport`. Not needed anymore and not recommended to use as well.
42
148
 
43
- [UPDATE] update types
149
+ ---
44
150
 
45
- ### 5.0.0-beta.21
151
+ ## [5.0.0-beta.8]
46
152
 
47
- [FIX] fix bug with missed model options
153
+ - **[UPDATE]** Update deps.
154
+ - **[NEW]** `Lock` model for working locks via mongoDB.
48
155
 
49
- ### 5.0.0-beta.20
156
+ ---
50
157
 
51
- [FIX] fix bug with Lock model index
52
- [NEW] BaseModel add Virtuals
158
+ ## [5.0.0-beta.7]
53
159
 
54
- ### 5.0.0-beta.19
160
+ - **[UPDATE]** Update deps.
161
+ - **[UPDATE]** Change `vitest` shutdown behavior as mongo driver v6.13 change befaviur that affect us (`MongoClient.close` now closes any outstanding cursors).
55
162
 
56
- [NEW] intruducing new model type. BaseModel. Features - simplifie works with typescript. And based on statics
57
- [BREAKING] all models now should be extended from BaseModel. This is a potencial breaking change specially for User model.
163
+ ---
58
164
 
59
- ### 5.0.0-beta.18
165
+ ## [5.0.0-beta.5]
60
166
 
61
- [UPDATE] move away connection from mongooseModels to server itself (preparation for different model types)
62
- [BREAKING] potencial. We are removed callback from mongooseModels contrctuctor. It was not used in code.
63
- [NEW] add appInstance helper to access app instance from anywhere without passing it
167
+ - **[BREAKING]** Remove `minimist` CLI parsing and replace it by `commandArguments` parser.
168
+ - **[UPDATE]** Migrated from `eslint-plugin-import` to `eslint-plugin-import-x`.
169
+ - **[UPDATE]** Migrate to eslint 9 and away from aibnb styles (they are abonded).
64
170
 
65
- ### 5.0.0-beta.17
171
+ ---
66
172
 
67
- [NEW] add GenerateTypes command
173
+ ## [5.0.0-beta.4]
68
174
 
69
- ### 5.0.0-beta.16
175
+ - **[NEW]** On shutdown event now after timeout we are forcing to shutdown.
70
176
 
71
- [UPDATE] update deps
72
- [UPDATE] new app getter internalFilesCache
73
- [UPDATE] command new static props to load isShouldGetModelPaths
177
+ ---
74
178
 
75
- ### 5.0.0-beta.15
179
+ ## [5.0.0-beta.2]
76
180
 
77
- [FIX] fix missing folder migrations in dist folder (hope that will be finally)
181
+ - **[UPDATE]** Update deps.
182
+ - **[NEW]** Add ability to skip mongo model init in CLI env.
183
+ - **[NEW]** Now each mongo connection on CLI have own name and inslude command name there too (`getMongoConnectionName` in command).
78
184
 
79
- ### 5.0.0-beta.14
185
+ ---
80
186
 
81
- [FIX] fix missing folder migrations in dist folder
187
+ ## [5.0.0-beta.1]
82
188
 
83
- ### 5.0.0-beta.13
189
+ - **[UPDATE]** Update deps.
190
+ - **[BREAKING]** `vitest` v3 <https://vitest.dev/guide/migration.html>.
84
191
 
85
- [UPDATE] only process .ts or .js files (not .map files)
192
+ ---
86
193
 
87
- ### 5.0.0-beta.12
194
+ ## [5.0.0-alpha.26]
88
195
 
89
- [BREAKING] Remove jest support for testing
90
- [NEW] initial move to typescript. Potencially breaking.
91
- [NEW] introduce src and dist folders
196
+ - **[UPDATE]** Update deps.
197
+ - **[UPDATE]** New commands view in CLI.
92
198
 
93
- ### 5.0.0-beta.11
199
+ ---
94
200
 
95
- [NEW] commands typing
96
- [NEW] commands support TS files
97
- [UPDATE] update deps
201
+ ## [5.0.0-alpha.24]
98
202
 
99
- ### 5.0.0-beta.9
203
+ - **[UPDATE]** Update deps.
204
+ - **[BREAKING]** `i18next` v24 <https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0>.
100
205
 
101
- [BREAKING] move email module to separate package @adaptivestone/framework-module-email. Please use it if you want to send emails
102
- [NEW] app now contains 'frameworkFolder' folder the framework located. Mostly for modules usage
103
- [BREAKING] remove VIEWS folders at all. Should not afffect any user as this was not used internally
104
- [UPDATE] update typing
105
- [UPDATE] change redis -> @redis/client as we are using only client from pakage
106
- [BREAKING] removed noidemailer-sendmail-transport. Not needed anymore and not recommended to use as well
206
+ ---
107
207
 
108
- ### 5.0.0-beta.8
208
+ ## [5.0.0-alpha.23]
109
209
 
110
- [UPDATE] update deps
111
- [NEW] Lock model for working locks via mongoDB
210
+ - **[UPDATE]** Update deps.
112
211
 
113
- ### 5.0.0-beta.7
212
+ ---
114
213
 
115
- [UPDATE] update deps
116
- [UPDATE] change vitest shutdown behavior as mongo driver v6.13 change befaviur that affect us (MongoClient.close now closes any outstanding cursors)
214
+ ## [5.0.0-alpha.22]
117
215
 
118
- ### 5.0.0-beta.5
216
+ - **[UPDATE]** Update deps.
217
+ - **[FIX]** Fix optional routing parameters.
119
218
 
120
- [BREAKING] remove minimist CLI parsing and replace it by commandArguments parser
121
- [UPDATE] migrated from eslint-plugin-import to eslint-plugin-import-x
219
+ ---
122
220
 
123
- ### 5.0.0-beta.5
221
+ ## [5.0.0-alpha.21]
124
222
 
125
- [UPDATE] migrate to eslint 9 and away from aibnb styles (they are abonded)
223
+ - **[BREAKING]** Possible breaking. Framework start using express 5 instead of express 4. Please follow express migration guide too <https://expressjs.com/en/guide/migrating-5.html>.
224
+ - **[BREAKING]** As part of express 5 migration `_` in rotes (middlewares) should have perameter. please replace `_` to `*splat`.
225
+ - **[UPDATE]** Update deps.
226
+ - **[UPDATE]** Mailer uses `await import()` for startup speedup.
126
227
 
127
- ### 5.0.0-beta.4
228
+ ---
128
229
 
129
- [NEW] on shutdown event now after timeout we are forcing to shutdown
230
+ ## [5.0.0-alpha.20]
130
231
 
131
- ### 5.0.0-beta.2
232
+ - **[UPDATE]** Update deps.
233
+ - **[UPDATE]** `#realLogger` do not throw error in a scecific cases (`model.toJSON({virtual:true})`).
132
234
 
133
- [UPDATE] update deps
134
- [NEW] add ability to skip mongo model init in CLI env
135
- [NEW] now each mongo connection on CLI have own name and inslude command name there too (getMongoConnectionName in command)
235
+ ---
136
236
 
137
- ### 5.0.0-beta.1
237
+ ## [5.0.0-alpha.19]
138
238
 
139
- [UPDATE] update deps
140
- [BREAKING] vitest v3 https://vitest.dev/guide/migration.html
239
+ - **[NEW]** Added `modelSchemaOptions` for models.
141
240
 
142
- ### 5.0.0-alpha.26
241
+ ---
143
242
 
144
- [UPDATE] update deps
145
- [UPDATE] new commands view in CLI
243
+ ## [5.0.0-alpha.18]
146
244
 
147
- ### 5.0.0-alpha.24
245
+ - **[BREAKING]** Default auth responce changed to be unified. `{token, user}` => `{data:{token, user}}`.
246
+ - **[UPDATE]** `RateLimiter` updae key generation.
148
247
 
149
- [UPDATE] update deps
150
- [BREAKING] i18next v24 https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0
248
+ ---
151
249
 
152
- ### 5.0.0-alpha.23
250
+ ## [5.0.0-alpha.17]
153
251
 
154
- [UPDATE] update deps
252
+ - **[NEW]** `generateRandomBytes` command.
253
+ - **[UPDATE]** Update deps.
155
254
 
156
- ### 5.0.0-alpha.22
255
+ ---
157
256
 
158
- [UPDATE] update deps
159
- [FIX] fix optional routing parameters
257
+ ## [5.0.0-alpha.16]
160
258
 
161
- ### 5.0.0-alpha.21
259
+ - **[UPDATE]** No warning of direct usage `body` and `query`.
260
+ - **[UPDATE]** Update deps.
162
261
 
163
- [BREAKING] possible breaking. Framework start using express 5 instead of express 4. Please follow express migration guide too https://expressjs.com/en/guide/migrating-5.html.
164
- [BREAKING] AS part of express 5 migration _ in rotes (middlewares) should have perameter. please replace _ to \*splat
165
- [UPDATE] update deps
166
- [UPDATE] Mailer uses await import() for startup speedup
262
+ ---
167
263
 
168
- ### 5.0.0-alpha.20
264
+ ## [5.0.0-alpha.15]
169
265
 
170
- [UPDATE] update deps
171
- [UPDATE] #realLogger do not throw error in a scecific cases (model toJSON({virtual:true}))
266
+ - **[BUG]** Fix bug with pagination.
267
+ - **[UPDATE]** Update deps.
172
268
 
173
- ### 5.0.0-alpha.19
269
+ ---
174
270
 
175
- [NEW] added modelSchemaOptions for models
271
+ ## [5.0.0-alpha.14]
176
272
 
177
- ### 5.0.0-alpha.18
273
+ - **[NEW]** Add types for `Abstract` model (wip).
178
274
 
179
- [BREAKING] default auth responce changed to be unified. {token, user} = > {data:{token, user}}
180
- [UPDATE] RateLimiter updae key generation
275
+ ---
181
276
 
182
- ### 5.0.0-alpha.17
277
+ ## [5.0.0-alpha.13]
183
278
 
184
- [NEW] generateRandomBytes command
185
- [UPDATE] update deps
279
+ - **[UPDATE]** Update deps.
280
+ - **[UPDATE]** Update `i18n` internal implementation.
281
+ - **[CHANGE]** Disable https server view.
186
282
 
187
- ### 5.0.0-alpha.16
283
+ ---
188
284
 
189
- [UPDATE] no warning of direct usage body and query
190
- [UPDATE] update deps
285
+ ## [5.0.0-alpha.12]
191
286
 
192
- ### 5.0.0-alpha.15
287
+ - **[UPDATE]** Update deps.
193
288
 
194
- [BUG] fix bug with pagination
195
- [UPDATE] update deps
289
+ ---
196
290
 
197
- ### 5.0.0-alpha.14
291
+ ## [5.0.0-alpha.11]
198
292
 
199
- [NEW] add types for Abstract model (wip)
293
+ - **[UPDATE]** Update deps.
200
294
 
201
- ### 5.0.0-alpha.13
295
+ ---
202
296
 
203
- [UPDATE] update deps
204
- [UPDATE] update i18n internal implementation
205
- [CHANGE] disable https server view
297
+ ## [5.0.0-alpha.10]
206
298
 
207
- ### 5.0.0-alpha.12
299
+ - **[UPDATE]** Update deps.
300
+ - **[NEW]** `IpDetector` middleware that support detecting proxy and `X-Forwarded-For` header.
301
+ - **[BREAKING]** `RateLimiter` now need to have `IpDetector` middleware before.
208
302
 
209
- [UPDATE] update deps
303
+ ---
210
304
 
211
- ### 5.0.0-alpha.11
305
+ ## [5.0.0-alpha.9]
212
306
 
213
- [UPDATE] update deps
307
+ - **[UPDATE]** Update deps.
308
+ - **[BREAKING]** Removing `staticFiles` middleware as it not used in projects anymore. Docs with nginx config will be provided.
309
+ - **[BREAKING]** Remove default `AUTH_SALT`. It should be provided on a app level now.
310
+ - **[BREAKING]** Vitest 2.0.0 <https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0>.
214
311
 
215
- ### 5.0.0-alpha.10
312
+ ---
216
313
 
217
- [UPDATE] update deps
218
- [NEW] IpDetector middleware that support detecting proxy and X-Forwarded-For header
219
- [BREAKING] RateLimiter now need to have IpDetector middleware before
314
+ ## [5.0.0-alpha.8]
220
315
 
221
- ### 5.0.0-alpha.9
316
+ - **[UPDATE]** Replace `dotenv` with `loadEnvFile`.
317
+ - **[UPDATE]** Replace `nodemon` with `node --watch` (dev only).
318
+ - **[BREAKING]** Minimum node version is 20.12 as for now (`process.loadEnvFile`).
222
319
 
223
- [UPDATE] update deps
224
- [BREAKING] removing staticFiles middleware as it not used in projects anymore. Docs with nginx config will be provided
225
- [BREAKING] remove default AUTH_SALT. It should be provided on a app level now
226
- [BREAKING] Vitest 2.0.0 https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0
320
+ ---
227
321
 
228
- ### 5.0.0-alpha.8
322
+ ## [5.0.0-alpha.7]
229
323
 
230
- [UPDATE] replace dotenv with loadEnvFile
231
- [UPDATE] replace nodemon with node --watch (dev only)
232
- [BREAKING] Minimum node version is 20.12 as for now (process.loadEnvFile)
324
+ - **[UPDATE]** Deps update.
233
325
 
234
- ### 5.0.0-alpha.7
326
+ ---
235
327
 
236
- [UPDATE] deps update
328
+ ## [5.0.0-alpha.6]
237
329
 
238
- ### 5.0.0-alpha.6
330
+ - **[UPDATE]** Update internal documentation (`jsdoc`, `d.ts`).
239
331
 
240
- [UPDATE] Update internal documentation (jsdoc, d.ts)
332
+ ---
241
333
 
242
- ### 5.0.0-alpha.5
334
+ ## [5.0.0-alpha.5]
243
335
 
244
- [UPDATE] More verbose errors for rapsing body request.
245
- [UPDATE] deps update
336
+ - **[UPDATE]** More verbose errors for rapsing body request.
337
+ - **[UPDATE]** Deps update.
246
338
 
247
- ### 5.0.0-alpha.4
339
+ ---
248
340
 
249
- [UPDATE] Update rate-limiter-flexible to v5
250
- [CHANGE] Cache update redis.setEX to redis.set(..,..,{EX:xx}) as setEX deprecated
341
+ ## [5.0.0-alpha.4]
251
342
 
252
- ### 5.0.0-alpha.3
343
+ - **[UPDATE]** Update `rate-limiter-flexible` to v5.
344
+ - **[CHANGE]** Cache update `redis.setEX` to `redis.set(..,..,{EX:xx})` as `setEX` deprecated.
253
345
 
254
- [UPDATE] deps update
255
- [FIX] Migration commands apply
346
+ ---
256
347
 
257
- ### 5.0.0-alpha.2
348
+ ## [5.0.0-alpha.3]
258
349
 
259
- [UPDATE] deps update
350
+ - **[UPDATE]** Deps update.
351
+ - **[FIX]** `Migration` commands apply.
260
352
 
261
- ### 5.0.0-alpha.1
353
+ ---
262
354
 
263
- [BREAKING] Vitest 1.0.0 https://vitest.dev/guide/migration.html#migrating-from-vitest-0-34-6
264
- [BREAKING] ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience
265
- [BREAKING] Mongoose v8. https://mongoosejs.com/docs/migrating_to_8.html
355
+ ## [5.0.0-alpha.2]
266
356
 
267
- ### 4.11.4
357
+ - **[UPDATE]** Deps update.
268
358
 
269
- [UPDATE] deps update
359
+ ---
270
360
 
271
- ### 4.11.3
361
+ ## [5.0.0-alpha.1]
272
362
 
273
- [UPDATE] deps update
363
+ - **[BREAKING]** Vitest 1.0.0 <https://vitest.dev/guide/migration.html#migrating-from-vitest-0-34-6>.
364
+ - **[BREAKING]** ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience.
365
+ - **[BREAKING]** Mongoose v8. <https://mongoosejs.com/docs/migrating_to_8.html>.
274
366
 
275
- ### 4.11.2
367
+ ---
276
368
 
277
- [FIX] Cors middleware return proper headers on multidomains
369
+ ## [4.11.4]
278
370
 
279
- ### 4.11.1
371
+ - **[UPDATE]** Deps update.
280
372
 
281
- [FIX] Cors middleware return proper status
373
+ ---
282
374
 
283
- ### 4.11.0
375
+ ## [4.11.3]
284
376
 
285
- [NEW] Cors middleware
286
- [BREAKING] This is a potencial breaking change as we switched from cors external package to internal middleware. From API nothing was changed. This is a potencial breaking changes, but it should keep working as it
377
+ - **[UPDATE]** Deps update.
287
378
 
288
- ### 4.10.0
379
+ ---
289
380
 
290
- [UPDATE] deps update
291
- [NEW] Static file middleware
292
- [BREAKING] This is a potencial breaking change as we switched from express.static to internal middleware that provide less features but faster. From API nothing was changed
381
+ ## [4.11.2]
293
382
 
294
- ### 4.9.2
383
+ - **[FIX]** `Cors` middleware return proper headers on multidomains.
295
384
 
296
- [UPDATE] deps update
385
+ ---
297
386
 
298
- ### 4.9.1
387
+ ## [4.11.1]
299
388
 
300
- [UPDATE] all responces from framework now happens in JSON. Previouls sometime aswers was in plan text
389
+ - **[FIX]** `Cors` middleware return proper status.
301
390
 
302
- ### 4.9.0
391
+ ---
303
392
 
304
- [BREAKING] We are separated testsing to setyp and global setup. Global setup now care of mongo to make sure that only on mongodb memoery server is spinned up. If you are using vitest please add "globalSetup: node_modules/@adaptivestone/framework/tests/globalSetupVitest" to your vitest config
393
+ ## [4.11.0]
305
394
 
306
- ### 4.8.3
395
+ - **[NEW]** `Cors` middleware.
396
+ - **[BREAKING]** This is a potencial breaking change as we switched from `cors` external package to internal middleware. From API nothing was changed. This is a potencial breaking changes, but it should keep working as it.
307
397
 
308
- [UPDATE] Fix problme with fat start and closing connections after
398
+ ---
309
399
 
310
- ### 4.8.2
400
+ ## [4.10.0]
311
401
 
312
- [UPDATE] CLI - disable mongoose index creation
402
+ - **[UPDATE]** Deps update.
403
+ - **[NEW]** Static file middleware.
404
+ - **[BREAKING]** This is a potencial breaking change as we switched from `express.static` to internal middleware that provide less features but faster. From API nothing was changed.
313
405
 
314
- ### 4.8.1
406
+ ---
315
407
 
316
- [UPDATE] Model inited on server inited.
317
- [NEW] New options to skip model init isSkipModelInit
318
- [NEW] New method server method initAllModels()
408
+ ## [4.9.2]
319
409
 
320
- ### 4.8.0
410
+ - **[UPDATE]** Deps update.
321
411
 
322
- [BREAKING] Minimum node js version id 18.17.0 now.
323
- [BREAKING] Removed getFileWithExtendingInhirence. This was internal method and not suppose to use externally
324
- [UPDATE] update Base getFilesPathWithInheritance to use fs.read dir resursive option
325
- [UPDATE] update cache (refactor+tets)
326
- [UPDATE] update config and model inits
412
+ ---
327
413
 
328
- ### 4.7.0
414
+ ## [4.9.1]
329
415
 
330
- [UPDATE] update logger init (refactor)
331
- [UPDATE] updated deps
416
+ - **[UPDATE]** All responces from framework now happens in JSON. Previouls sometime aswers was in plan text.
332
417
 
333
- ### 4.6.0
418
+ ---
334
419
 
335
- [NEW] migrated from JEST to vitest
420
+ ## [4.9.0]
336
421
 
337
- ### 4.5.0
422
+ - **[BREAKING]** We are separated testsing to setyp and global setup. Global setup now care of mongo to make sure that only on mongodb memoery server is spinned up. If you are using `vitest` please add `"globalSetup": "node_modules/@adaptivestone/framework/tests/globalSetupVitest"` to your vitest config.
338
423
 
339
- [NEW] Now getSuper() available as a method on mongoose models
340
- [UPDATE] Update rate-limiter-flexible to v3
341
- [UPDATE] Update test runner to suport ESM. In case problem with test please copy babel.config.js from framework to your project directory
424
+ ---
342
425
 
343
- ### 4.4.0
426
+ ## [4.8.3]
344
427
 
345
- [NEW] New method to grab url of server it testing enviroument global.server.testingGetUrl("/some/endpoint")
428
+ - **[UPDATE]** Fix problme with fat start and closing connections after.
346
429
 
347
- ### 4.3.1
430
+ ---
348
431
 
349
- [UPDATE] Yup file validator update. As formidable now return all fields as an array
432
+ ## [4.8.2]
350
433
 
351
- ### 4.3.0
434
+ - **[UPDATE]** CLI - disable mongoose index creation.
352
435
 
353
- [BREAKING] updated formidable with a new version + tests. Marked as breaking because of a new major version, but this is internal of framework and exernal still the same. Should break nothing
436
+ ---
354
437
 
355
- ### 4.2.0
438
+ ## [4.8.1]
356
439
 
357
- [UPDATE] updated deps
358
- [NEW] CreateUser cli command. Ability to update user by email or id.
440
+ - **[UPDATE]** Model inited on server inited.
441
+ - **[NEW]** New options to skip model init `isSkipModelInit`.
442
+ - **[NEW]** New method server method `initAllModels()`.
359
443
 
360
- ### 4.1.0
444
+ ---
361
445
 
362
- [UPDATE] updated deps
363
- [NEW] email - Ability to render templae to string for future usage
446
+ ## [4.8.0]
364
447
 
365
- ### 4.0.0
448
+ - **[BREAKING]** Minimum node js version id 18.17.0 now.
449
+ - **[BREAKING]** Removed `getFileWithExtendingInhirence`. This was internal method and not suppose to use externally.
450
+ - **[UPDATE]** Update `Base.getFilesPathWithInheritance` to use `fs.read` dir resursive option.
451
+ - **[UPDATE]** Update cache (refactor+tets).
452
+ - **[UPDATE]** Update config and model inits.
366
453
 
367
- [BREAKING] change bcrypt encryption with scrypt
368
- [BREAKING] change internal express parser to formidable parser. Affect you if external formidable is used
369
- [BREAKING] should not affect any user. Changed email-templates module to internal implementation. Idea to keep dependensy list smaller
370
- [BREAKING] change i18n middleware to internal one. Nothing should be affected
371
- [BREAKING] now validation of request splitted between request and query
372
- [BREAKING] supportedLngs option added to i18n config
373
- [BREAKING] email inliner now looking for src/services/messaging/email/resources folder instead of 'build' folder.
454
+ ---
374
455
 
375
- [BREAKING] Mongoose v7. https://mongoosejs.com/docs/migrating_to_7.html
376
- [BREAKING] Yup validation was updated to v1 https://github.com/jquense/yup/issues/1906
456
+ ## [4.7.0]
377
457
 
378
- [DEPRECATED] getExpress path is deprecated. Renamed to getHttpPath
458
+ - **[UPDATE]** Update logger init (refactor).
459
+ - **[UPDATE]** Updated deps.
379
460
 
380
- [NEW] pagination middleware
381
- [NEW] requestLogger middleware. Migrated from core server to be an middleware
382
- [NEW] CreateUser command
383
- [NEW] custom yup validator for validate File requests
384
- [UPDATE] updated deps
385
- [UPDATE] openApi generator support files
386
- [UPDATE] updated 18n middleware. Introduced internal cachce. Speed up of request processing up to 100%
387
- [UPDATE] cache drivers to JSON support BigInt numbers
461
+ ---
388
462
 
389
- ### 3.4.3
463
+ ## [4.6.0]
390
464
 
391
- [UPDATE] updated deps
392
- [FIX] fix tests for redis
393
- [FIX] support in tests TEST_FOLDER_EMAILS
465
+ - **[NEW]** Migrated from JEST to `vitest`.
394
466
 
395
- ### 3.4.2
467
+ ---
396
468
 
397
- [UPDATE] updated deps
398
- [FIX] fix documentation generation
469
+ ## [4.5.0]
399
470
 
400
- ### 3.4.1
471
+ - **[NEW]** Now `getSuper()` available as a method on mongoose models.
472
+ - **[UPDATE]** Update `rate-limiter-flexible` to v3.
473
+ - **[UPDATE]** Update test runner to suport ESM. In case problem with test please copy `babel.config.js` from framework to your project directory.
401
474
 
402
- [FIX] fix documentation generation
475
+ ---
403
476
 
404
- ### 3.4.0
477
+ ## [4.4.0]
405
478
 
406
- [NEW] now we pass 'req' to validation and casting as a second parameter. This done mostly for custom validators
479
+ - **[NEW]** New method to grab url of server it testing enviroument `global.server.testingGetUrl("/some/endpoint")`.
407
480
 
408
- ### 3.3.0
481
+ ---
409
482
 
410
- [NEW] new command 'SyncIndexes' to sync indexes for mongodb https://framework.adaptivestone.com/docs/cli#syncindexes
411
- [UPDATE] updated deps
412
- [FIX] fix documentation generation
483
+ ## [4.3.1]
413
484
 
414
- ### 3.2.2
485
+ - **[UPDATE]** `Yup` file validator update. As formidable now return all fields as an array.
415
486
 
416
- [UPDATE] add options for i18n to config.
417
- [CHANGE] by default i18n not writing missed keys. Can be enabled via config
487
+ ---
418
488
 
419
- ### 3.2.1
489
+ ## [4.3.0]
420
490
 
421
- [UPDATE] updated deps
422
- [FIX] fix documentation generation
491
+ - **[BREAKING]** Updated `formidable` with a new version + tests. Marked as breaking because of a new major version, but this is internal of framework and exernal still the same. Should break nothing.
423
492
 
424
- ### 3.2.0
493
+ ---
425
494
 
426
- [UPDATE] updated deps
427
- [NEW] cache.removeKey(key) - function to remove key from cache
495
+ ## [4.2.0]
428
496
 
429
- ### 3.1.1
497
+ - **[UPDATE]** Updated deps.
498
+ - **[NEW]** `CreateUser` cli command. Ability to update user by email or id.
430
499
 
431
- [UPDATE] updated deps
432
- [FIX] fix cache error handling.
500
+ ---
433
501
 
434
- ### 3.1.0
502
+ ## [4.1.0]
435
503
 
436
- [NEW] new comand to generate open API documentation (wip)
437
- [NEW] coverage report
438
- [UPDATE] updated deps
504
+ - **[UPDATE]** Updated deps.
505
+ - **[NEW]** Email - Ability to render templae to string for future usage.
439
506
 
440
- ### 3.0.23
507
+ ---
441
508
 
442
- [UPDATE] updated deps
443
- [FIX] fix custom errors
509
+ ## [4.0.0]
444
510
 
445
- ### 3.0.22
511
+ - **[BREAKING]** Change `bcrypt` encryption with `scrypt`.
512
+ - **[BREAKING]** Change internal express parser to `formidable` parser. Affect you if external `formidable` is used.
513
+ - **[BREAKING]** Should not affect any user. Changed `email-templates` module to internal implementation. Idea to keep dependensy list smaller.
514
+ - **[BREAKING]** Change `i18n` middleware to internal one. Nothing should be affected.
515
+ - **[BREAKING]** Now validation of request splitted between `request` and `query`.
516
+ - **[BREAKING]** `supportedLngs` option added to `i18n` config.
517
+ - **[BREAKING]** Email inliner now looking for `src/services/messaging/email/resources` folder instead of `build` folder.
518
+ - **[BREAKING]** Mongoose v7. <https://mongoosejs.com/docs/migrating_to_7.html>.
519
+ - **[BREAKING]** `Yup` validation was updated to v1 <https://github.com/jquense/yup/issues/1906>.
520
+ - **[DEPRECATED]** `getExpress` path is deprecated. Renamed to `getHttpPath`.
521
+ - **[NEW]** Pagination middleware.
522
+ - **[NEW]** `requestLogger` middleware. Migrated from core server to be an middleware.
523
+ - **[NEW]** `CreateUser` command.
524
+ - **[NEW]** Custom `yup` validator for validate File requests.
525
+ - **[UPDATE]** Updated deps.
526
+ - **[UPDATE]** `openApi` generator support files.
527
+ - **[UPDATE]** Updated `18n` middleware. Introduced internal cachce. Speed up of request processing up to 100%.
528
+ - **[UPDATE]** Cache drivers to JSON support `BigInt` numbers.
446
529
 
447
- [UPDATE] updated deps
448
- [UPDATE] cast function now can be ASYNC too
530
+ ---
449
531
 
450
- ### 3.0.21
532
+ ## [3.4.3]
451
533
 
452
- [UPDATE] updated redis to v4
453
- [NEW] updates tests to have own namespace on redis
534
+ - **[UPDATE]** Updated deps.
535
+ - **[FIX]** Fix tests for redis.
536
+ - **[FIX]** Support in tests `TEST_FOLDER_EMAILS`.
454
537
 
455
- ### 3.0.20
538
+ ---
456
539
 
457
- [UPDATE] update deps
540
+ ## [3.4.2]
458
541
 
459
- ### 3.0.19
542
+ - **[UPDATE]** Updated deps.
543
+ - **[FIX]** Fix documentation generation.
460
544
 
461
- [UPDATE] update deps
545
+ ---
462
546
 
463
- ### 3.0.18
547
+ ## [3.4.1]
464
548
 
465
- [UPDATE] update deps
466
- [UPDATE] change default branch to 'main'
549
+ - **[FIX]** Fix documentation generation.
467
550
 
468
- ### 3.0.17
551
+ ---
469
552
 
470
- [UPDATE] update deps
553
+ ## [3.4.0]
471
554
 
472
- ### 3.0.16
555
+ - **[NEW]** Now we pass `req` to validation and casting as a second parameter. This done mostly for custom validators.
473
556
 
474
- [UPDATE] update deps
475
- [FIX] fix bug with route level middleware
557
+ ---
476
558
 
477
- ### 3.0.15
559
+ ## [3.3.0]
478
560
 
479
- [UPDATE] update deps
480
- [UPDATE] minimum node version 16
561
+ - **[NEW]** New command `SyncIndexes` to sync indexes for mongodb <https://framework.adaptivestone.com/docs/cli#syncindexes>.
562
+ - **[UPDATE]** Updated deps.
563
+ - **[FIX]** Fix documentation generation.
481
564
 
482
- ### 3.0.14
565
+ ---
483
566
 
484
- [NEW] now possible to show all errors during validation (default one) by parameter controllerValidationAbortEarly
485
- [UPDATE] update deps
567
+ ## [3.2.2]
486
568
 
487
- ### 3.0.13
569
+ - **[UPDATE]** Add options for `i18n` to config.
570
+ - **[CHANGE]** By default `i18n` not writing missed keys. Can be enabled via config.
488
571
 
489
- [UPDATE] bug fix with "mergeParams"
572
+ ---
490
573
 
491
- ### 3.0.12
574
+ ## [3.2.1]
492
575
 
493
- [NEW] ability to pass "mergeParams" options to express router
494
- [UPDATE] update deps
576
+ - **[UPDATE]** Updated deps.
577
+ - **[FIX]** Fix documentation generation.
495
578
 
496
- ### 3.0.11
579
+ ---
497
580
 
498
- [UPDATE] more verbose email error
581
+ ## [3.2.0]
499
582
 
500
- ### 3.0.10
583
+ - **[UPDATE]** Updated deps.
584
+ - **[NEW]** `cache.removeKey(key)` - function to remove key from cache.
501
585
 
502
- [UPDATE] update deps
503
- [CHANGE] tests afterAll not using timeout anymore (conflict with jest 28-alpha)
504
- [NEW] config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was)
586
+ ---
505
587
 
506
- ### 3.0.9
588
+ ## [3.1.1]
507
589
 
508
- [UPDATE] update deps
590
+ - **[UPDATE]** Updated deps.
591
+ - **[FIX]** Fix cache error handling.
509
592
 
510
- ### 3.0.8
593
+ ---
511
594
 
512
- [UPDATE] update deps
595
+ ## [3.1.0]
513
596
 
514
- ### 3.0.7
597
+ - **[NEW]** New comand to generate open API documentation (wip).
598
+ - **[NEW]** Coverage report.
599
+ - **[UPDATE]** Updated deps.
515
600
 
516
- [UPDATE] update deps
517
- [CHANGE] change default getConfig method
601
+ ---
518
602
 
519
- ### 3.0.6
603
+ ## [3.0.23]
520
604
 
521
- [UPDATE] update deps
605
+ - **[UPDATE]** Updated deps.
606
+ - **[FIX]** Fix custom errors.
522
607
 
523
- ### 3.0.5
608
+ ---
524
609
 
525
- [UPDATE] update deps
610
+ ## [3.0.22]
526
611
 
527
- ### 3.0.4
612
+ - **[UPDATE]** Updated deps.
613
+ - **[UPDATE]** Cast function now can be ASYNC too.
528
614
 
529
- [UPDATE] fix bug with app shutdown
615
+ ---
530
616
 
531
- ### 3.0.3
617
+ ## [3.0.21]
532
618
 
533
- [UPDATE] update deps
619
+ - **[UPDATE]** Updated redis to v4.
620
+ - **[NEW]** Updates tests to have own namespace on redis.
534
621
 
535
- ### 3.0.2
622
+ ---
536
623
 
537
- [UPDATE] update deps
624
+ ## [3.0.20]
538
625
 
539
- ### 3.0.1
626
+ - **[UPDATE]** Update deps.
540
627
 
541
- [UPDATE] update deps
542
- [UPDATE] getUserByTokens more logs
628
+ ---
543
629
 
544
- ### 3.0.0
630
+ ## [3.0.19]
545
631
 
546
- [BREAKING] Mongoose v6. Than a lot of changes:[mongoDB drive changes](https://github.com/mongodb/node-mongodb-native/blob/4.0/docs/CHANGES_4.0.0.md), [Mongoose changes](https://mongoosejs.com/docs/migrating_to_6.html).
547
- Notable changes from migration
548
- Removed `execPopulate()`[link](https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate)
632
+ - **[UPDATE]** Update deps.
549
633
 
550
- ```js
551
- // Document#populate() now returns a promise and is now no longer chainable.
634
+ ---
552
635
 
553
- //Replace
554
- await doc.populate('path1').populate('path2').execPopulate();
555
- // with
556
- await doc.populate(['path1', 'path2']);
557
- //Replace
558
- await doc
559
- .populate('path1', 'select1')
560
- .populate('path2', 'select2')
561
- .execPopulate();
562
- // with
563
- await doc.populate([
564
- { path: 'path1', select: 'select1' },
565
- { path: 'path2', select: 'select2' },
566
- ]);
567
- ```
636
+ ## [3.0.18]
568
637
 
569
- [REMOVED] removed deprecated router handler string not allowed anymore. Use functions by itself
570
- [REMOVED] removed deprecated someSecretSalt() on user model (use this.saltSecret instead)
571
- [REMOVED] removed deprecated validate() on abstract controller and as result validator dependency. Use request validators instead
572
- [REMOVED] removed deprecated isUseControllerNameForRouting() on abstract controller. Use getExpressPath() instead
573
- [REMOVED] removed deprecated Base.loadFilesWithInheritance please use getFilesPathWithInheritance that produce almost the same output
574
- [BREAKING] Removed "success" field on Auth contreoller. Please use http status instead
575
- [BREAKING] Auth controller - "error" error responce renamed to "message"
638
+ - **[UPDATE]** Update deps.
639
+ - **[UPDATE]** Change default branch to `main`.
576
640
 
577
- ```js
578
- // Before
579
- {
580
- error: 'Some error';
581
- }
582
- // After
583
- {
584
- message: 'Some error';
585
- }
586
- ```
641
+ ---
587
642
 
588
- [UPDATE] update deps
589
- [UPDATE] winston console transport now using timestapms
590
- [UPDATE] PrepareAppInfo middleware now a global one. Do not need to include it on every controller
591
- [NEW] Request also works with req.query, but req.body have bigger priority
643
+ ## [3.0.17]
592
644
 
593
- ### 2.18.0
645
+ - **[UPDATE]** Update deps.
594
646
 
595
- [UPDATE] update deps
596
- [UPDATE] replace body-parser with express.json
597
- [NEW] role middleware
647
+ ---
598
648
 
599
- ### 2.17.0
649
+ ## [3.0.16]
600
650
 
601
- [UPDATE] update deps
602
- [NEW] new env variable LOGGER_SENTRY_LEVEL (default=info)
603
- [NEW] new env variable LOGGER_CONSOLE_ENABLE (default=true)
604
- [BREAKING] on translation we changed i18next. Please convert files if you have plurals inside it https://i18next.github.io/i18next-v4-format-converter-web/
651
+ - **[UPDATE]** Update deps.
652
+ - **[FIX]** Fix bug with route level middleware.
605
653
 
606
- #### 2.16.0
654
+ ---
607
655
 
608
- [UPDATE] update deps
609
- [NEW] begin adding type script definitions
656
+ ## [3.0.15]
610
657
 
611
- #### 2.15.4
658
+ - **[UPDATE]** Update deps.
659
+ - **[UPDATE]** Minimum node version 16.
612
660
 
613
- [UPDATE] update deps
614
- [UPDATE] update tests timeout
661
+ ---
615
662
 
616
- #### 2.15.0
663
+ ## [3.0.14]
617
664
 
618
- [UPDATE] update deps
619
- [NEW] Ability to configure Auth flow with 'isAuthWithVefificationFlow' option.
620
- [BREAKING] Register not return status 201 instead of 200
665
+ - **[NEW]** Now possible to show all errors during validation (default one) by parameter `controllerValidationAbortEarly`.
666
+ - **[UPDATE]** Update deps.
621
667
 
622
- #### 2.14.0
668
+ ---
669
+
670
+ ## [3.0.13]
671
+
672
+ - **[UPDATE]** Bug fix with "mergeParams".
673
+
674
+ ---
675
+
676
+ ## [3.0.12]
677
+
678
+ - **[NEW]** Ability to pass "mergeParams" options to express router.
679
+ - **[UPDATE]** Update deps.
680
+
681
+ ---
682
+
683
+ ## [3.0.11]
684
+
685
+ - **[UPDATE]** More verbose email error.
686
+
687
+ ---
688
+
689
+ ## [3.0.10]
690
+
691
+ - **[UPDATE]** Update deps.
692
+ - **[CHANGE]** Tests `afterAll` not using timeout anymore (conflict with jest 28-alpha).
693
+ - **[NEW]** Config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was).
694
+
695
+ ---
696
+
697
+ ## [3.0.9]
698
+
699
+ - **[UPDATE]** Update deps.
700
+
701
+ ---
702
+
703
+ ## [3.0.8]
704
+
705
+ - **[UPDATE]** Update deps.
706
+
707
+ ---
708
+
709
+ ## [3.0.7]
710
+
711
+ - **[UPDATE]** Update deps.
712
+ - **[CHANGE]** Change default `getConfig` method.
713
+
714
+ ---
715
+
716
+ ## [3.0.6]
717
+
718
+ - **[UPDATE]** Update deps.
719
+
720
+ ---
721
+
722
+ ## [3.0.5]
723
+
724
+ - **[UPDATE]** Update deps.
725
+
726
+ ---
727
+
728
+ ## [3.0.4]
729
+
730
+ - **[UPDATE]** Fix bug with app shutdown.
731
+
732
+ ---
733
+
734
+ ## [3.0.3]
735
+
736
+ - **[UPDATE]** Update deps.
737
+
738
+ ---
739
+
740
+ ## [3.0.2]
741
+
742
+ - **[UPDATE]** Update deps.
743
+
744
+ ---
745
+
746
+ ## [3.0.1]
747
+
748
+ - **[UPDATE]** Update deps.
749
+ - **[UPDATE]** `getUserByTokens` more logs.
750
+
751
+ ---
752
+
753
+ ## [3.0.0]
754
+
755
+ - **[BREAKING]** Mongoose v6. Than a lot of changes:[mongoDB drive changes](https://github.com/mongodb/node-mongodb-native/blob/4.0/docs/CHANGES_4.0.0.md), [Mongoose changes](https://mongoosejs.com/docs/migrating_to_6.html).
756
+ Notable changes from migration
757
+ Removed `execPopulate()`[link](https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate)
758
+ ```js
759
+ // Document#populate() now returns a promise and is now no longer chainable.
760
+ //Replace
761
+ await doc.populate('path1').populate('path2').execPopulate();
762
+ // with
763
+ await doc.populate(['path1', 'path2']);
764
+ //Replace
765
+ await doc
766
+ .populate('path1', 'select1')
767
+ .populate('path2', 'select2')
768
+ .execPopulate();
769
+ // with
770
+ await doc.populate([
771
+ { path: 'path1', select: 'select1' },
772
+ { path: 'path2', select: 'select2' },
773
+ ]);
774
+ ```
775
+ - **[REMOVED]** Removed deprecated router handler string not allowed anymore. Use functions by itself.
776
+ - **[REMOVED]** Removed deprecated `someSecretSalt()` on user model (use `this.saltSecret` instead).
777
+ - **[REMOVED]** Removed deprecated `validate()` on abstract controller and as result validator dependency. Use request validators instead.
778
+ - **[REMOVED]** Removed deprecated `isUseControllerNameForRouting()` on abstract controller. Use `getExpressPath()` instead.
779
+ - **[REMOVED]** Removed deprecated `Base.loadFilesWithInheritance` please use `getFilesPathWithInheritance` that produce almost the same output.
780
+ - **[BREAKING]** Removed "success" field on Auth contreoller. Please use http status instead.
781
+ - **[BREAKING]** Auth controller - "error" error responce renamed to "message".
782
+ ```js
783
+ // Before
784
+ {
785
+ error: 'Some error';
786
+ }
787
+ // After
788
+ {
789
+ message: 'Some error';
790
+ }
791
+ ```
792
+ - **[UPDATE]** Update deps.
793
+ - **[UPDATE]** Winston console transport now using timestapms.
794
+ - **[UPDATE]** `PrepareAppInfo` middleware now a global one. Do not need to include it on every controller.
795
+ - **[NEW]** Request also works with `req.query`, but `req.body` have bigger priority.
623
796
 
624
- [NEW] Add Sequence. It provide ability to easily generate sequences for given types. It save to use on distributed environments
797
+ ---
625
798
 
626
- ```javascript
627
- const SequenceModel = this.app.getModel('Sequence');
628
- // will be 1
629
- const someTypeSequence = await SequenceModel.getSequence('someType');
630
- // will be 2
631
- const someTypeSequence2 = await SequenceModel.getSequence('someType');
632
- // will be 1 as type is another
633
- const someAnotherTypeSequence =
634
- await SequenceModel.getSequence('someAnotherType');
635
- ```
799
+ ## [2.18.0]
636
800
 
637
- #### 2.13.1
801
+ - **[UPDATE]** Update deps.
802
+ - **[UPDATE]** Replace `body-parser` with `express.json`.
803
+ - **[NEW]** Role middleware.
638
804
 
639
- [FIX] fix documentation about not using req.appInfo.request, but using req.body for RateLimiter
805
+ ---
640
806
 
641
- #### 2.13.0
642
-
643
- [NEW] Rate limited middleware - ability to include request components (req.body) for key generation. Please not that you have no access to req.appInfo.request on this stage
644
-
645
- ```javascript
807
+ ## [2.17.0]
808
+
809
+ - **[UPDATE]** Update deps.
810
+ - **[NEW]** New env variable `LOGGER_SENTRY_LEVEL` (default=`info`).
811
+ - **[NEW]** New env variable `LOGGER_CONSOLE_ENABLE` (default=`true`).
812
+ - **[BREAKING]** On translation we changed `i18next`. Please convert files if you have plurals inside it <https://i18next.github.io/i18next-v4-format-converter-web/>.
813
+
814
+ ---
815
+
816
+ ## [2.16.0]
817
+
818
+ - **[UPDATE]** Update deps.
819
+ - **[NEW]** Begin adding type script definitions.
820
+
821
+ ---
822
+
823
+ ## [2.15.4]
824
+
825
+ - **[UPDATE]** Update deps.
826
+ - **[UPDATE]** Update tests timeout.
827
+
828
+ ---
829
+
830
+ ## [2.15.0]
831
+
832
+ - **[UPDATE]** Update deps.
833
+ - **[NEW]** Ability to configure Auth flow with `isAuthWithVefificationFlow` option.
834
+ - **[BREAKING]** Register not return status 201 instead of 200.
835
+
836
+ ---
837
+
838
+ ## [2.14.0]
839
+
840
+ - **[NEW]** Add `Sequence`. It provide ability to easily generate sequences for given types. It save to use on distributed environments.
841
+ ```javascript
842
+ const SequenceModel = this.app.getModel('Sequence');
843
+ // will be 1
844
+ const someTypeSequence = await SequenceModel.getSequence('someType');
845
+ // will be 2
846
+ const someTypeSequence2 = await SequenceModel.getSequence('someType');
847
+ // will be 1 as type is another
848
+ const someAnotherTypeSequence =
849
+ await SequenceModel.getSequence('someAnotherType');
850
+ ```
851
+
852
+ ---
853
+
854
+ ## [2.13.1]
855
+
856
+ - **[FIX]** Fix documentation about not using `req.appInfo.request`, but using `req.body` for `RateLimiter`.
857
+
858
+ ---
859
+
860
+ ## [2.13.0]
861
+
862
+ - **[NEW]** Rate limited middleware - ability to include request components (`req.body`) for key generation. Please not that you have no access to `req.appInfo.request` on this stage.
863
+ ```javascript
646
864
  static get middleware() {
647
865
  return new Map([
648
866
  ['POST/login', [
@@ -652,16 +870,16 @@ const someAnotherTypeSequence =
652
870
  ]]
653
871
  ]);
654
872
  }
655
- ```
656
-
657
- #### 2.12.0
873
+ ```
658
874
 
659
- [UPDATE] update deps
660
- [NEW] Rate limited middleware
875
+ ---
661
876
 
662
- As rate limited we using https://github.com/animir/node-rate-limiter-flexible
877
+ ## [2.12.0]
663
878
 
664
- ```javascript
879
+ - **[UPDATE]** Update deps.
880
+ - **[NEW]** Rate limited middleware.
881
+ As rate limited we using <https://github.com/animir/node-rate-limiter-flexible>
882
+ ```javascript
665
883
  static get middleware() {
666
884
  return new Map([
667
885
  ['POST/login', [
@@ -671,13 +889,10 @@ As rate limited we using https://github.com/animir/node-rate-limiter-flexible
671
889
  ]]
672
890
  ]);
673
891
  }
674
- ```
675
-
676
- Be default rate key generated based on Route, IP and userID. But you can adjust it vie config (global) or via middleware parameters (see v 2.10.0)
677
-
678
- Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memory' backend activated
679
-
680
- ```javascript
892
+ ```
893
+ Be default rate key generated based on Route, IP and userID. But you can adjust it vie config (global) or via middleware parameters (see v 2.10.0)
894
+ Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memory' backend activated
895
+ ```javascript
681
896
  static get middleware() {
682
897
  return new Map([
683
898
  [
@@ -696,18 +911,21 @@ Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memo
696
911
  ],
697
912
  ]);
698
913
  }
699
- ```
914
+ ```
915
+
916
+ ---
700
917
 
701
- #### 2.11.0
918
+ ## [2.11.0]
702
919
 
703
- [NEW] Added env variable HTTP_HOST for configure host to listen
920
+ - **[NEW]** Added env variable `HTTP_HOST` for configure host to listen.
704
921
 
705
- #### 2.10.0
922
+ ---
706
923
 
707
- [UPDATE] update deps
708
- [NEW] ability to pass parameters to middleware
924
+ ## [2.10.0]
709
925
 
710
- ```javascript
926
+ - **[UPDATE]** Update deps.
927
+ - **[NEW]** Ability to pass parameters to middleware.
928
+ ```javascript
711
929
  static get middleware() {
712
930
  return new Map([
713
931
  ['POST/someUrl', [
@@ -717,113 +935,150 @@ Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memo
717
935
  ]]
718
936
  ]);
719
937
  }
720
- ```
938
+ ```
939
+ All this params goes to constructor as a second paramater.
940
+
941
+ ---
942
+
943
+ ## [2.9.2]
944
+
945
+ - **[UPDATE]** Update deps.
946
+ - **[FIX]** Fix auth nick.
947
+
948
+ ---
949
+
950
+ ## [2.9.1]
951
+
952
+ - **[UPDATE]** Update deps.
953
+
954
+ ---
955
+
956
+ ## [2.9.0]
957
+
958
+ - **[BREAKING]** Auth controller update.
721
959
 
722
- All this params goes to constructor as a second paramater
960
+ ---
723
961
 
724
- #### 2.9.2
962
+ ## [2.8.3]
725
963
 
726
- [UPDATE] update deps
727
- [FIX] fix auth nick
964
+ - **[FIX]** Update recovery email template.
728
965
 
729
- #### 2.9.1
966
+ ---
730
967
 
731
- [UPDATE] update deps
968
+ ## [2.8.2]
732
969
 
733
- #### 2.9.0
970
+ - **[FIX]** Update AUTH controller.
734
971
 
735
- [BREAKING] Auth controller update
972
+ ---
736
973
 
737
- #### 2.8.3
974
+ ## [2.8.1]
738
975
 
739
- [FIX] update recovery email template
976
+ - **[UPDATE]** Update deps.
977
+ - **[FIX]** Update AUTH controller.
740
978
 
741
- #### 2.8.2
979
+ ---
742
980
 
743
- [FIX] update AUTH controller
981
+ ## [2.8.0]
744
982
 
745
- #### 2.8.1
983
+ - **[UPDATE]** Change controllers to reflect latest changes.
984
+ - **[UPDATE]** Add warning when using `req.body` directly.
985
+ - **[BREAKING]** Possible breaking. `AsyncFunction` now required for router handler (it always was but without checking of code).
986
+ - **[DEPRECATE]** Usage of `validator` of controllers.
987
+ - **[DEPRECATE]** Usage of `isUseControllerNameForRouting` of controllers.
746
988
 
747
- [UPDATE] update deps
748
- [FIX] update AUTH controller
989
+ ---
749
990
 
750
- #### 2.8.0
991
+ ## [2.7.4]
751
992
 
752
- [UPDATE] change controllers to reflect latest changes
753
- [UPDATE] add warning when using 'req.body' directly
754
- [BREAKING] Possible breaking. AsyncFunction now required for router handler (it always was but without checking of code)
755
- [DEPRECATE] usage of 'validator' of controllers
756
- [DEPRECATE] usage of 'isUseControllerNameForRouting' of controllers.
993
+ - **[UPDATE]** Update deps.
757
994
 
758
- #### 2.7.4
995
+ ---
759
996
 
760
- [UPDATE] update deps
997
+ ## [2.7.3]
761
998
 
762
- #### 2.7.3
999
+ - **[UPDATE]** Replace `i18next-node-fs-backend` to `i18next-fs-backend` (drop in replacement).
763
1000
 
764
- [UPDATE] replace i18next-node-fs-backend to i18next-fs-backend (drop in replacement)
1001
+ ---
765
1002
 
766
- #### 2.7.2
1003
+ ## [2.7.2]
767
1004
 
768
- [UPDATE] update deps
1005
+ - **[UPDATE]** Update deps.
769
1006
 
770
- #### 2.7.1
1007
+ ---
771
1008
 
772
- [REMOVE] remove unused websocket
1009
+ ## [2.7.1]
773
1010
 
774
- #### 2.7.0
1011
+ - **[REMOVE]** Remove unused websocket.
775
1012
 
776
- [UPDATE] change winston sentry transport
1013
+ ---
777
1014
 
778
- #### 2.6.5
1015
+ ## [2.7.0]
779
1016
 
780
- [UPDATE] update deps
781
- [UPDATE] optimize deps
1017
+ - **[UPDATE]** Change winston sentry transport.
782
1018
 
783
- #### 2.6.4
1019
+ ---
784
1020
 
785
- [UPDATE] update deps
1021
+ ## [2.6.5]
786
1022
 
787
- #### 2.6.3
1023
+ - **[UPDATE]** Update deps.
1024
+ - **[UPDATE]** Optimize deps.
788
1025
 
789
- [UPDATE] update deps
790
- [UPDATE] update handling exceptions loging
1026
+ ---
791
1027
 
792
- #### 2.6.2
1028
+ ## [2.6.4]
793
1029
 
794
- [UPDATE] normalize auth config
1030
+ - **[UPDATE]** Update deps.
795
1031
 
796
- #### 2.6.1
1032
+ ---
797
1033
 
798
- [FIX] fix error on cache system
799
- [UPDATE] stripUnknown=true by default on casting
1034
+ ## [2.6.3]
800
1035
 
801
- #### 2.6.0
1036
+ - **[UPDATE]** Update deps.
1037
+ - **[UPDATE]** Update handling exceptions loging.
802
1038
 
803
- [UPDATE] deps update
804
- [NEW]new cache system (alpha, subject of change)
1039
+ ---
805
1040
 
806
- ```javascript
807
- const cacheTime = 60 * 5;
808
- this.app.cache.getSetValue(
809
- 'someKey',
810
- async () => {
811
- // function that will execute in case cache value is missed
812
- },
813
- cacheTime,
814
- );
815
- ```
1041
+ ## [2.6.2]
816
1042
 
817
- #### 2.5.1
1043
+ - **[UPDATE]** Normalize auth config.
818
1044
 
819
- [UPDATE] deps update
820
- [FIX] fix error logging on unhadled rejection
1045
+ ---
821
1046
 
822
- #### 2.5.0
1047
+ ## [2.6.1]
823
1048
 
824
- [NEW] new route handler format with request validations and casting (yup based)
1049
+ - **[FIX]** Fix error on cache system.
1050
+ - **[UPDATE]** `stripUnknown=true` by default on casting.
825
1051
 
826
- ```javascript
1052
+ ---
1053
+
1054
+ ## [2.6.0]
1055
+
1056
+ - **[UPDATE]** Deps update.
1057
+ - **[NEW]** New cache system (alpha, subject of change).
1058
+ ```javascript
1059
+ const cacheTime = 60 * 5;
1060
+ this.app.cache.getSetValue(
1061
+ 'someKey',
1062
+ async () => {
1063
+ // function that will execute in case cache value is missed
1064
+ },
1065
+ cacheTime,
1066
+ );
1067
+ ```
1068
+
1069
+ ---
1070
+
1071
+ ## [2.5.1]
1072
+
1073
+ - **[UPDATE]** Deps update.
1074
+ - **[FIX]** Fix error logging on unhadled rejection.
1075
+
1076
+ ---
1077
+
1078
+ ## [2.5.0]
1079
+
1080
+ - **[NEW]** New route handler format with request validations and casting (yup based).
1081
+ ```javascript
827
1082
  get routes() {
828
1083
  return {
829
1084
  post: {
@@ -838,217 +1093,301 @@ this.app.cache.getSetValue(
838
1093
  }
839
1094
  // send request with data {count: "5000"}
840
1095
  // will produce error with status 400 and {errors: {count:['Text error']}}
841
-
842
-
843
1096
  postSample(req,res) =>{
844
1097
  // on success validate we pass here.
845
1098
  // {count: "5000"}
846
1099
  console.log(req.appInfo.request)
847
1100
  // {count: 5000} -> casted to number
848
1101
  }
849
- ```
1102
+ ```
850
1103
 
851
- #### 2.4.4
1104
+ ---
852
1105
 
853
- [UPDATE] deps update
854
- [NEW] controller unhandled rejection now handled with default error
855
- [NEW] handle error with wrong model name
1106
+ ## [2.4.4]
856
1107
 
857
- #### 2.4.3
1108
+ - **[UPDATE]** Deps update.
1109
+ - **[NEW]** Controller unhandled rejection now handled with default error.
1110
+ - **[NEW]** Handle error with wrong model name.
858
1111
 
859
- [UPDATE] deps update
1112
+ ---
860
1113
 
861
- #### 2.4.2
1114
+ ## [2.4.3]
862
1115
 
863
- [FIX] abstract controlled middleware
864
- [UPDATE] deps update
1116
+ - **[UPDATE]** Deps update.
865
1117
 
866
- #### 2.4.1
1118
+ ---
867
1119
 
868
- [FIX] updated test because of previous breaking changes
1120
+ ## [2.4.2]
869
1121
 
870
- #### 2.4.0
1122
+ - **[FIX]** Abstract controlled middleware.
1123
+ - **[UPDATE]** Deps update.
871
1124
 
872
- [BREAKING] possible that bug fix of middleware can affect your code. Previous route middleware was GLOBAL (router.use) now in router level only (route.any). Previous Home controller (/ route be default) middleware affect ANY routes on app. Right now that fixed.
1125
+ ---
873
1126
 
874
- [NEW] Controller middleware now support methods. Previous only ALL was supported. Possible to start router with any method that supported by Express and middleware will be scoped by this method. If middleware route started from "/" then ALL method will be used (like previous bahaviour)
1127
+ ## [2.4.1]
875
1128
 
876
- ```javascript
1129
+ - **[FIX]** Updated test because of previous breaking changes.
1130
+
1131
+ ---
1132
+
1133
+ ## [2.4.0]
1134
+
1135
+ - **[BREAKING]** Possible that bug fix of middleware can affect your code. Previous route middleware was GLOBAL (`router.use`) now in router level only (`route.any`). Previous Home controller (`/` route be default) middleware affect ANY routes on app. Right now that fixed.
1136
+ - **[NEW]** Controller middleware now support methods. Previous only `ALL` was supported. Possible to start router with any method that supported by Express and middleware will be scoped by this method. If middleware route started from "/" then `ALL` method will be used (like previous bahaviour).
1137
+ ```javascript
877
1138
  static get middleware() {
878
1139
  return new Map([['GET/*', [PrepareAppInfo, GetUserByToken]]]);
879
1140
  }
880
- ```
1141
+ ```
1142
+
1143
+ ---
1144
+
1145
+ ## [2.3.14]
1146
+
1147
+ - **[FIX]** Fix validate controller method for non strings.
1148
+
1149
+ ---
1150
+
1151
+ ## [2.3.13]
1152
+
1153
+ - **[UPDATE]** Testing now with mongoDB Replica.
1154
+ - **[UPDATE]** Refactor CLI.
1155
+
1156
+ ---
1157
+
1158
+ ## [2.3.12]
1159
+
1160
+ - **[UPDATE]** Testing update.
1161
+
1162
+ ---
1163
+
1164
+ ## [2.3.11]
1165
+
1166
+ - **[UPDATE]** Refactor CLI for testing.
1167
+
1168
+ ---
1169
+
1170
+ ## [2.3.10]
1171
+
1172
+ - **[UPDATE]** Update user model indexes to allow null email and nick.
1173
+ - **[UPDATE]** Deps update.
1174
+
1175
+ ---
1176
+
1177
+ ## [2.3.9]
1178
+
1179
+ - **[FIX]** Test fix.
1180
+
1181
+ ---
1182
+
1183
+ ## [2.3.8]
1184
+
1185
+ - **[NEW]** Add `global.testSetup.beforeAll` `global.testSetup.afterAll` functions and `global.testSetup.disableUserCreate` flag for testing testing.
1186
+
1187
+ ---
1188
+
1189
+ ## [2.3.7]
1190
+
1191
+ - **[UPDATE]** Deps update.
1192
+ - **[NEW]** Add `global.testSetup.userCreate` function for testing.
1193
+
1194
+ ---
1195
+
1196
+ ## [2.3.6]
1197
+
1198
+ - **[UPDATE]** Deps update.
1199
+ - **[FIX]** Test fix.
1200
+
1201
+ ---
1202
+
1203
+ ## [2.3.5]
1204
+
1205
+ - **[NEW]** Add command `DropIndex`.
1206
+ - **[UPDATE]** Deps update.
1207
+
1208
+ ---
1209
+
1210
+ ## [2.3.4]
1211
+
1212
+ - **[NEW]** Add `webResources` option to email service.
1213
+ - **[UPDATE]** Deps update.
1214
+
1215
+ ---
1216
+
1217
+ ## [2.3.3]
1218
+
1219
+ - **[UPDATE]** Deps update.
1220
+
1221
+ ---
1222
+
1223
+ ## [2.3.2]
1224
+
1225
+ - **[FIX]** Fix controllers order to load.
881
1226
 
882
- #### 2.3.14
1227
+ ---
883
1228
 
884
- [FIX] fix validate controller method for non strings
1229
+ ## [2.3.1]
885
1230
 
886
- #### 2.3.13
1231
+ - **[FIX]** Fix parsing token.
887
1232
 
888
- [UPDATE] testing now with mongoDB Replica
889
- [UPDATE] refactor CLI
1233
+ ---
890
1234
 
891
- #### 2.3.12
1235
+ ## [2.3.0]
892
1236
 
893
- [UPDATE] testing update
1237
+ - **[NEW]** `Migration/create` `migration/migrate` commands.
894
1238
 
895
- #### 2.3.11
1239
+ ---
896
1240
 
897
- [UPDATE] refactor CLI for testing
1241
+ ## [2.2.6]
898
1242
 
899
- #### 2.3.10
1243
+ - **[NEW]** CLI command receiving parsed arguments.
900
1244
 
901
- [UPDATE] update user model indexes to allow null email and nick
902
- [UPDATE] deps update
1245
+ ---
903
1246
 
904
- #### 2.3.9
1247
+ ## [2.2.5]
905
1248
 
906
- [FIX] test fix
1249
+ - **[FIX]** Fix disconnecting problems with replica set.
907
1250
 
908
- #### 2.3.8
1251
+ ---
909
1252
 
910
- [NEW] add 'global.testSetup.beforeAll' 'global.testSetup.afterAll' functions and 'global.testSetup.disableUserCreate' flag for testing testing
1253
+ ## [2.2.4]
911
1254
 
912
- #### 2.3.7
1255
+ - **[UPDATE]** Internal update for speed up cli init.
913
1256
 
914
- [UPDATE] deps update
915
- [NEW] add 'global.testSetup.userCreate' function for testing
1257
+ ---
916
1258
 
917
- #### 2.3.6
1259
+ ## [2.2.3]
918
1260
 
919
- [UPDATE] deps update
920
- [FIX] test fix
1261
+ - **[FIX]** Fix language detection.
921
1262
 
922
- #### 2.3.5
1263
+ ---
923
1264
 
924
- [NEW] Add command DropIndex
925
- [UPDATE] deps update
1265
+ ## [2.2.2]
926
1266
 
927
- #### 2.3.4
1267
+ - **[FIX]** Fix test as part of docker image update. This just a `mongo-memory-server` problems.
1268
+ - **[NEW]** Add config to configure language detecting order and types.
928
1269
 
929
- [NEW] Add webResources option to email service
930
- [UPDATE] deps update
1270
+ ---
931
1271
 
932
- #### 2.3.3
1272
+ ## [2.2.1]
933
1273
 
934
- [UPDATE] deps update
1274
+ - **[UPDATE]** Deps update.
935
1275
 
936
- #### 2.3.2
1276
+ ---
937
1277
 
938
- [FIX] Fix controllers order to load
1278
+ ## [2.2.0]
939
1279
 
940
- #### 2.3.1
1280
+ - **[DEPRECATED]** `Base.loadFilesWithInheritance` please use `getFilesPathWithInheritance` that produce almost the same output.
1281
+ - **[UPDATE]** Deps update.
1282
+ - **[UPDATE]** Https logs now contains request time.
1283
+ - **[NEW]** Ability to put controllers into folders with path inheritance.
1284
+ - **[NEW]** Ability to replace `expressPath` on controller - `getExpressPath()` methos.
1285
+ - **[NEW]** Ability to put commands into folders with path inheritance.
941
1286
 
942
- [FIX] Fix parsing token
1287
+ ---
943
1288
 
944
- #### 2.3.0
1289
+ ## [2.1.2]
945
1290
 
946
- [NEW] Migration/create migration/migrate commands
1291
+ - **[UPDATE]** Disconnect of mongoose when command was finished.
947
1292
 
948
- #### 2.2.6
1293
+ ---
949
1294
 
950
- [NEW] CLI command receiving parsed arguments
1295
+ ## [2.1.1]
951
1296
 
952
- #### 2.2.5
1297
+ - **[UPDATE]** Deps update.
953
1298
 
954
- [FIX] Fix disconnecting problems with replica set
1299
+ ---
955
1300
 
956
- #### 2.2.4
1301
+ ## [2.1.0]
957
1302
 
958
- [UPDATE] Internal update for speed up cli init
1303
+ - **[DEV]** Added codestyle checker.
1304
+ - **[NEW]** Initial CLI module.
959
1305
 
960
- #### 2.2.3
1306
+ ---
961
1307
 
962
- [FIX] fix language detection
1308
+ ## [2.0.2]
963
1309
 
964
- #### 2.2.2
1310
+ - **[UPDATE]** Socket.io v3.
1311
+ - **[UPDATE]** Deps update.
965
1312
 
966
- [FIX] fix test as part of docker image update. This just a mongo-memory-server problems
967
- [NEW] add config to configure language detecting order and types
1313
+ ---
968
1314
 
969
- #### 2.2.1
1315
+ ## [2.0.1]
970
1316
 
971
- [UPDATE] deps update
1317
+ - **[NEW]** Added config to websocket.
972
1318
 
973
- #### 2.2.0
1319
+ ---
974
1320
 
975
- [DEPRECATED] Base.loadFilesWithInheritance please use getFilesPathWithInheritance that produce almost the same output
976
- [UPDATE] deps update
977
- [UPDATE] https logs now contains request time
978
- [NEW] Ability to put controllers into folders with path inheritance
979
- [NEW] Ability to replace expressPath on controller - getExpressPath() methos
980
- [NEW] Ability to put commands into folders with path inheritance
1321
+ ## [2.0.0]
981
1322
 
982
- #### 2.1.2
1323
+ - **[BREAKING]** Change config format of log config. Now configs can be only objects.
983
1324
 
984
- [UPDATE] disconnect of mongoose when command was finished
1325
+ ---
985
1326
 
986
- #### 2.1.1
1327
+ ## [1.5.0]
987
1328
 
988
- [UPDATE] deps update
1329
+ - **[NEW]** Support for environment configs (`config.js` and `config.{NODE_ENV}.js`) with overwrite.
1330
+ - **[UPDATE]** Deps update.
989
1331
 
990
- #### 2.1.0
1332
+ ---
991
1333
 
992
- [DEV] added codestyle checker
993
- [NEW] Initial CLI module
1334
+ ## [1.4.0]
994
1335
 
995
- #### 2.0.2 released
1336
+ - **[NEW]** Ability to pass additional parameter to server that will be executed before adding page 404.
996
1337
 
997
- [UPDATE] socket.io v3
998
- [UPDATE] deps update
1338
+ ---
999
1339
 
1000
- #### 2.0.1
1340
+ ## [1.3.0]
1001
1341
 
1002
- [NEW] Added config to websocket
1342
+ - **[NEW]** Models now support optional callback that will executed on connection ready. If mongo already connected then callback will be executed immediately.
1003
1343
 
1004
- #### 2.0.0
1344
+ ---
1005
1345
 
1006
- [BREAKING] Change config format of log config. Now configs can be only objects
1346
+ ## [1.2.9]
1007
1347
 
1008
- #### 1.5.0
1348
+ - **[UPDATE]** Update deps.
1009
1349
 
1010
- [NEW] Support for environment configs (config.js and config.{NODE_ENV}.js) with overwrite
1011
- [UPDATE] deps update
1350
+ ---
1012
1351
 
1013
- #### 1.4.0
1352
+ ## [1.2.8]
1014
1353
 
1015
- Ability to pass additional parameter to server that will be executed before adding page 404
1354
+ - **[UPDATE]** Update deps.
1016
1355
 
1017
- #### 1.3.0
1356
+ ---
1018
1357
 
1019
- Models now support optional callback that will executed on connection ready. If mongo already connected then callback will be executed immediately
1358
+ ## [1.2.7]
1020
1359
 
1021
- #### 1.2.9
1360
+ - **[NEW]** Add abilty to return error from custom validation functions.
1022
1361
 
1023
- Update deps
1362
+ ---
1024
1363
 
1025
- #### 1.2.8
1364
+ ## [1.2.6]
1026
1365
 
1027
- Update deps
1366
+ - **[UPDATE]** Validator documentation (jsdoc) update.
1367
+ - **[UPDATE]** Validator support pass parameters to validator.
1028
1368
 
1029
- #### 1.2.7
1369
+ ---
1030
1370
 
1031
- Add abilty to return error from custom validation functions
1371
+ ## [1.2.5]
1032
1372
 
1033
- #### 1.2.6
1373
+ - **[FIX]** Fix problem with test (user should be global on tests).
1034
1374
 
1035
- Validator documentation (jsdoc) update
1036
- Validator support pass parameters to validator
1375
+ ---
1037
1376
 
1038
- #### 1.2.5
1377
+ ## [1.2.4]
1039
1378
 
1040
- Fix problem with test (user should be global on tests)
1379
+ - **[NEW]** Add eslint.
1380
+ - **[UPDATE]** Code refactor.
1041
1381
 
1042
- #### 1.2.4
1382
+ ---
1043
1383
 
1044
- Add eslint
1045
- Code refactor
1384
+ ## [1.2.3]
1046
1385
 
1047
- #### 1.2.3
1386
+ - **[NEW]** Add prettier.
1387
+ - **[UPDATE]** Code reformat.
1048
1388
 
1049
- Add prettier
1050
- Code reformat
1389
+ ---
1051
1390
 
1052
- #### 1.2.2
1391
+ ## [1.2.2]
1053
1392
 
1054
- Update deps
1393
+ - **[UPDATE]** Update deps.