@adaptivestone/framework 5.0.0-beta.5 → 5.0.0-beta.51
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 +1223 -530
- package/LICENCE +1 -1
- package/dist/Cli.d.ts +7 -0
- package/dist/Cli.js +19 -0
- package/dist/Cli.js.map +1 -0
- package/dist/cluster.d.ts +1 -0
- package/dist/cluster.js +18 -0
- package/dist/cluster.js.map +1 -0
- package/dist/codegen/appTypes.d.ts +19 -0
- package/dist/codegen/appTypes.js +49 -0
- package/dist/codegen/appTypes.js.map +1 -0
- package/dist/codegen/collectMetadata.d.ts +45 -0
- package/dist/codegen/collectMetadata.js +63 -0
- package/dist/codegen/collectMetadata.js.map +1 -0
- package/dist/codegen/emit.d.ts +29 -0
- package/dist/codegen/emit.js +339 -0
- package/dist/codegen/emit.js.map +1 -0
- package/dist/codegen/index.d.ts +16 -0
- package/dist/codegen/index.js +18 -0
- package/dist/codegen/index.js.map +1 -0
- package/dist/codegen/routeTypes.d.ts +13 -0
- package/dist/codegen/routeTypes.js +126 -0
- package/dist/codegen/routeTypes.js.map +1 -0
- package/dist/commands/CreateUser.d.ts +32 -0
- package/dist/commands/CreateUser.js +83 -0
- package/dist/commands/CreateUser.js.map +1 -0
- package/dist/commands/DropIndex.d.ts +16 -0
- package/dist/commands/DropIndex.js +30 -0
- package/dist/commands/DropIndex.js.map +1 -0
- package/dist/commands/GenerateRandomBytes.d.ts +7 -0
- package/dist/commands/GenerateRandomBytes.js +18 -0
- package/dist/commands/GenerateRandomBytes.js.map +1 -0
- package/dist/commands/GenerateTypes.d.ts +7 -0
- package/dist/commands/GenerateTypes.js +14 -0
- package/dist/commands/GenerateTypes.js.map +1 -0
- package/dist/commands/SyncIndexes.d.ts +6 -0
- package/dist/commands/SyncIndexes.js +31 -0
- package/dist/commands/SyncIndexes.js.map +1 -0
- package/dist/commands/migration/Create.d.ts +18 -0
- package/dist/commands/migration/Create.js +57 -0
- package/dist/commands/migration/Create.js.map +1 -0
- package/dist/commands/migration/Migrate.d.ts +6 -0
- package/dist/commands/migration/Migrate.js +43 -0
- package/dist/commands/migration/Migrate.js.map +1 -0
- package/dist/config/auth.d.ts +6 -0
- package/dist/config/auth.js +7 -0
- package/dist/config/auth.js.map +1 -0
- package/dist/config/http.d.ts +8 -0
- package/dist/config/http.js +10 -0
- package/dist/config/http.js.map +1 -0
- package/dist/config/i18n.d.ts +13 -0
- package/dist/config/i18n.js +13 -0
- package/dist/config/i18n.js.map +1 -0
- package/dist/config/ipDetector.d.ts +5 -0
- package/dist/config/ipDetector.js +15 -0
- package/dist/config/ipDetector.js.map +1 -0
- package/dist/config/log.d.ts +11 -0
- package/dist/config/log.js +20 -0
- package/dist/config/log.js.map +1 -0
- package/dist/config/mongo.d.ts +4 -0
- package/dist/config/mongo.js +4 -0
- package/dist/config/mongo.js.map +1 -0
- package/dist/config/rateLimiter.d.ts +13 -0
- package/dist/config/rateLimiter.js +17 -0
- package/dist/config/rateLimiter.js.map +1 -0
- package/dist/config/redis.d.ts +5 -0
- package/dist/config/redis.js +5 -0
- package/dist/config/redis.js.map +1 -0
- package/dist/config/validate.d.ts +4 -0
- package/dist/config/validate.js +4 -0
- package/dist/config/validate.js.map +1 -0
- package/dist/controllers/Auth.d.ts +59 -0
- package/dist/controllers/Auth.js +317 -0
- package/dist/controllers/Auth.js.map +1 -0
- package/dist/controllers/Auth.routes.gen.d.ts +57 -0
- package/dist/controllers/Auth.routes.gen.js +10 -0
- package/dist/controllers/Auth.routes.gen.js.map +1 -0
- package/dist/controllers/Home.d.ts +15 -0
- package/dist/controllers/Home.js +22 -0
- package/dist/controllers/Home.js.map +1 -0
- package/dist/controllers/Home.routes.gen.d.ts +14 -0
- package/dist/controllers/Home.routes.gen.js +10 -0
- package/dist/controllers/Home.routes.gen.js.map +1 -0
- package/dist/controllers/index.d.ts +36 -0
- package/dist/controllers/index.js +454 -0
- package/dist/controllers/index.js.map +1 -0
- package/dist/folderConfig.d.ts +34 -0
- package/dist/folderConfig.js +14 -0
- package/dist/folderConfig.js.map +1 -0
- package/dist/helpers/appInstance.d.ts +3 -0
- package/dist/helpers/appInstance.js +8 -0
- package/dist/helpers/appInstance.js.map +1 -0
- package/dist/helpers/crypto.d.ts +3 -0
- package/dist/helpers/crypto.js +17 -0
- package/dist/helpers/crypto.js.map +1 -0
- package/dist/helpers/files.d.ts +16 -0
- package/dist/helpers/files.js +78 -0
- package/dist/helpers/files.js.map +1 -0
- package/dist/helpers/logger.d.ts +4 -0
- package/dist/helpers/logger.js +20 -0
- package/dist/helpers/logger.js.map +1 -0
- package/dist/helpers/redis/clearNamespace.d.ts +2 -0
- package/dist/helpers/redis/clearNamespace.js +14 -0
- package/dist/helpers/redis/clearNamespace.js.map +1 -0
- package/dist/helpers/redis/redisConnection.d.ts +6 -0
- package/dist/helpers/redis/redisConnection.js +48 -0
- package/dist/helpers/redis/redisConnection.js.map +1 -0
- package/dist/helpers/yup.d.ts +22 -0
- package/dist/helpers/yup.js +39 -0
- package/dist/helpers/yup.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/models/KeyValue.d.ts +22 -0
- package/dist/models/KeyValue.js +17 -0
- package/dist/models/KeyValue.js.map +1 -0
- package/dist/models/Lock.d.ts +90 -0
- package/dist/models/Lock.js +97 -0
- package/dist/models/Lock.js.map +1 -0
- package/dist/models/Migration.d.ts +13 -0
- package/dist/models/Migration.js +14 -0
- package/dist/models/Migration.js.map +1 -0
- package/dist/models/Sequence.d.ts +28 -0
- package/dist/models/Sequence.js +19 -0
- package/dist/models/Sequence.js.map +1 -0
- package/dist/models/User.d.ts +729 -0
- package/dist/models/User.js +294 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserOld.d.ts +190 -0
- package/dist/models/UserOld.js +230 -0
- package/dist/models/UserOld.js.map +1 -0
- package/dist/modules/AbstractCommand.d.ts +51 -0
- package/dist/modules/AbstractCommand.js +60 -0
- package/dist/modules/AbstractCommand.js.map +1 -0
- package/dist/modules/AbstractConnector.d.ts +5 -0
- package/dist/modules/AbstractConnector.js +8 -0
- package/dist/modules/AbstractConnector.js.map +1 -0
- package/dist/modules/AbstractController.d.ts +85 -0
- package/dist/modules/AbstractController.js +71 -0
- package/dist/modules/AbstractController.js.map +1 -0
- package/dist/modules/AbstractModel.d.ts +29 -0
- package/dist/modules/AbstractModel.js +42 -0
- package/dist/modules/AbstractModel.js.map +1 -0
- package/dist/modules/Base.d.ts +29 -0
- package/dist/modules/Base.js +58 -0
- package/dist/modules/Base.js.map +1 -0
- package/dist/modules/BaseCli.d.ts +25 -0
- package/dist/modules/BaseCli.js +148 -0
- package/dist/modules/BaseCli.js.map +1 -0
- package/dist/modules/BaseModel.d.ts +57 -0
- package/dist/modules/BaseModel.js +37 -0
- package/dist/modules/BaseModel.js.map +1 -0
- package/dist/server.d.ts +122 -0
- package/dist/server.js +478 -0
- package/dist/server.js.map +1 -0
- package/dist/services/cache/Cache.d.ts +31 -0
- package/dist/services/cache/Cache.js +103 -0
- package/dist/services/cache/Cache.js.map +1 -0
- package/dist/services/http/HttpServer.d.ts +44 -0
- package/dist/services/http/HttpServer.js +81 -0
- package/dist/services/http/HttpServer.js.map +1 -0
- package/dist/services/http/files.d.ts +18 -0
- package/dist/services/http/files.js +19 -0
- package/dist/services/http/files.js.map +1 -0
- package/dist/services/http/middleware/AbstractMiddleware.d.ts +41 -0
- package/dist/services/http/middleware/AbstractMiddleware.js +52 -0
- package/dist/services/http/middleware/AbstractMiddleware.js.map +1 -0
- package/dist/services/http/middleware/Auth.d.ts +9 -0
- package/dist/services/http/middleware/Auth.js +18 -0
- package/dist/services/http/middleware/Auth.js.map +1 -0
- package/dist/services/http/middleware/Cors.d.ts +12 -0
- package/dist/services/http/middleware/Cors.js +36 -0
- package/dist/services/http/middleware/Cors.js.map +1 -0
- package/dist/services/http/middleware/GetUserByToken.d.ts +36 -0
- package/dist/services/http/middleware/GetUserByToken.js +56 -0
- package/dist/services/http/middleware/GetUserByToken.js.map +1 -0
- package/dist/services/http/middleware/I18n.d.ts +23 -0
- package/dist/services/http/middleware/I18n.js +61 -0
- package/dist/services/http/middleware/I18n.js.map +1 -0
- package/dist/services/http/middleware/IpDetector.d.ts +14 -0
- package/dist/services/http/middleware/IpDetector.js +55 -0
- package/dist/services/http/middleware/IpDetector.js.map +1 -0
- package/dist/services/http/middleware/Pagination.d.ts +26 -0
- package/dist/services/http/middleware/Pagination.js +66 -0
- package/dist/services/http/middleware/Pagination.js.map +1 -0
- package/dist/services/http/middleware/PrepareAppInfo.d.ts +8 -0
- package/dist/services/http/middleware/PrepareAppInfo.js +17 -0
- package/dist/services/http/middleware/PrepareAppInfo.js.map +1 -0
- package/dist/services/http/middleware/RateLimiter.d.ts +26 -0
- package/dist/services/http/middleware/RateLimiter.js +102 -0
- package/dist/services/http/middleware/RateLimiter.js.map +1 -0
- package/dist/services/http/middleware/RequestLogger.d.ts +8 -0
- package/dist/services/http/middleware/RequestLogger.js +18 -0
- package/dist/services/http/middleware/RequestLogger.js.map +1 -0
- package/dist/services/http/middleware/RequestParser.d.ts +8 -0
- package/dist/services/http/middleware/RequestParser.js +35 -0
- package/dist/services/http/middleware/RequestParser.js.map +1 -0
- package/dist/services/http/middleware/Role.d.ts +12 -0
- package/dist/services/http/middleware/Role.js +24 -0
- package/dist/services/http/middleware/Role.js.map +1 -0
- package/dist/services/http/routing/ExpressAdapter.d.ts +12 -0
- package/dist/services/http/routing/ExpressAdapter.js +93 -0
- package/dist/services/http/routing/ExpressAdapter.js.map +1 -0
- package/dist/services/http/routing/RouteNode.d.ts +102 -0
- package/dist/services/http/routing/RouteNode.js +21 -0
- package/dist/services/http/routing/RouteNode.js.map +1 -0
- package/dist/services/http/routing/RouteRegistry.d.ts +37 -0
- package/dist/services/http/routing/RouteRegistry.js +201 -0
- package/dist/services/http/routing/RouteRegistry.js.map +1 -0
- package/dist/services/http/routing/formatTree.d.ts +23 -0
- package/dist/services/http/routing/formatTree.js +158 -0
- package/dist/services/http/routing/formatTree.js.map +1 -0
- package/dist/services/http/routing/match.d.ts +30 -0
- package/dist/services/http/routing/match.js +136 -0
- package/dist/services/http/routing/match.js.map +1 -0
- package/dist/services/http/routing/middlewareNormalization.d.ts +16 -0
- package/dist/services/http/routing/middlewareNormalization.js +28 -0
- package/dist/services/http/routing/middlewareNormalization.js.map +1 -0
- package/dist/services/http/types.d.ts +74 -0
- package/dist/services/http/types.js +8 -0
- package/dist/services/http/types.js.map +1 -0
- package/dist/services/i18n/I18n.d.ts +15 -0
- package/dist/services/i18n/I18n.js +58 -0
- package/dist/services/i18n/I18n.js.map +1 -0
- package/dist/services/logging/SentryTransport.d.ts +13 -0
- package/dist/services/logging/SentryTransport.js +121 -0
- package/dist/services/logging/SentryTransport.js.map +1 -0
- package/dist/services/validate/ValidateService.d.ts +54 -0
- package/dist/services/validate/ValidateService.js +122 -0
- package/dist/services/validate/ValidateService.js.map +1 -0
- package/dist/services/validate/ValidationError.d.ts +35 -0
- package/dist/services/validate/ValidationError.js +77 -0
- package/dist/services/validate/ValidationError.js.map +1 -0
- package/dist/services/validate/contentType.d.ts +18 -0
- package/dist/services/validate/contentType.js +30 -0
- package/dist/services/validate/contentType.js.map +1 -0
- package/dist/services/validate/defineSchema.d.ts +23 -0
- package/dist/services/validate/defineSchema.js +25 -0
- package/dist/services/validate/defineSchema.js.map +1 -0
- package/dist/services/validate/drivers/StandardSchemaDriver.d.ts +15 -0
- package/dist/services/validate/drivers/StandardSchemaDriver.js +34 -0
- package/dist/services/validate/drivers/StandardSchemaDriver.js.map +1 -0
- package/dist/services/validate/drivers/YupDriver.d.ts +21 -0
- package/dist/services/validate/drivers/YupDriver.js +66 -0
- package/dist/services/validate/drivers/YupDriver.js.map +1 -0
- package/dist/services/validate/types.d.ts +104 -0
- package/dist/services/validate/types.js +11 -0
- package/dist/services/validate/types.js.map +1 -0
- package/dist/tests/frameworkVitestSetup.d.ts +1 -0
- package/dist/tests/frameworkVitestSetup.js +9 -0
- package/dist/tests/frameworkVitestSetup.js.map +1 -0
- package/dist/tests/globalSetupVitest.d.ts +3 -0
- package/dist/tests/globalSetupVitest.js +29 -0
- package/dist/tests/globalSetupVitest.js.map +1 -0
- package/dist/tests/setupVitest.d.ts +1 -0
- package/dist/tests/setupVitest.js +91 -0
- package/dist/tests/setupVitest.js.map +1 -0
- package/dist/tests/testHelpers.d.ts +361 -0
- package/dist/tests/testHelpers.js +48 -0
- package/dist/tests/testHelpers.js.map +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +67 -43
- package/Cli.js +0 -22
- package/cluster.js +0 -25
- package/commands/CreateUser.js +0 -75
- package/commands/Documentation.js +0 -17
- package/commands/DropIndex.js +0 -29
- package/commands/GenerateRandomBytes.js +0 -21
- package/commands/GetOpenApiJson.js +0 -324
- package/commands/SyncIndexes.js +0 -39
- package/commands/migration/Create.js +0 -61
- package/commands/migration/Migrate.js +0 -55
- package/config/auth.js +0 -9
- package/config/http.js +0 -9
- package/config/i18n.js +0 -12
- package/config/ipDetector.js +0 -14
- package/config/log.js +0 -22
- package/config/mail.js +0 -29
- package/config/mongo.js +0 -3
- package/config/rateLimiter.js +0 -16
- package/config/redis.js +0 -4
- package/config/validate.js +0 -3
- package/controllers/Auth.js +0 -204
- package/controllers/Home.js +0 -28
- package/controllers/index.js +0 -60
- package/eslint.config.js +0 -44
- package/folderConfig.js +0 -14
- package/helpers/files.js +0 -76
- package/helpers/logger.js +0 -16
- package/helpers/redis/clearNamespace.js +0 -14
- package/helpers/yup.js +0 -21
- package/index.js +0 -8
- package/jsconfig.json +0 -9
- package/locales/en/translation.json +0 -27
- package/locales/ru/translation.json +0 -27
- package/migrations/.gitkeep +0 -0
- package/models/Migration.js +0 -15
- package/models/Sequence.js +0 -22
- package/models/User.js +0 -261
- package/modules/AbstractCommand.js +0 -43
- package/modules/AbstractConnector.js +0 -9
- package/modules/AbstractController.js +0 -406
- package/modules/AbstractModel.d.ts +0 -48
- package/modules/AbstractModel.js +0 -92
- package/modules/Base.d.ts +0 -37
- package/modules/Base.js +0 -63
- package/modules/BaseCli.js +0 -94
- package/server.d.ts +0 -98
- package/server.js +0 -437
- package/services/cache/Cache.d.ts +0 -35
- package/services/cache/Cache.js +0 -124
- package/services/documentation/DocumentationGenerator.js +0 -169
- package/services/http/HttpServer.js +0 -95
- package/services/http/middleware/AbstractMiddleware.js +0 -51
- package/services/http/middleware/Auth.js +0 -20
- package/services/http/middleware/Cors.js +0 -46
- package/services/http/middleware/GetUserByToken.js +0 -47
- package/services/http/middleware/I18n.js +0 -117
- package/services/http/middleware/IpDetector.js +0 -59
- package/services/http/middleware/Pagination.js +0 -57
- package/services/http/middleware/PrepareAppInfo.js +0 -18
- package/services/http/middleware/RateLimiter.js +0 -134
- package/services/http/middleware/RequestLogger.js +0 -22
- package/services/http/middleware/RequestParser.js +0 -40
- package/services/http/middleware/Role.js +0 -29
- package/services/messaging/email/index.js +0 -217
- package/services/messaging/email/resources/.gitkeep +0 -1
- package/services/messaging/email/templates/emptyTemplate/html.pug +0 -9
- package/services/messaging/email/templates/emptyTemplate/subject.pug +0 -1
- package/services/messaging/email/templates/emptyTemplate/text.pug +0 -1
- package/services/messaging/email/templates/recovery/html.pug +0 -8
- package/services/messaging/email/templates/recovery/subject.pug +0 -2
- package/services/messaging/email/templates/recovery/text.pug +0 -3
- package/services/messaging/email/templates/verification/html.pug +0 -10
- package/services/messaging/email/templates/verification/subject.pug +0 -1
- package/services/messaging/email/templates/verification/text.pug +0 -1
- package/services/messaging/index.js +0 -3
- package/services/validate/ValidateService.js +0 -157
- package/services/validate/drivers/AbstractValidator.js +0 -37
- package/services/validate/drivers/CustomValidator.js +0 -51
- package/services/validate/drivers/YupValidator.js +0 -103
- package/tests/globalSetupVitest.js +0 -35
- package/tests/setup.js +0 -116
- package/tests/setupVitest.js +0 -107
- package/types/Expand.d.ts +0 -11
- package/types/TFoldersConfig.d.ts +0 -17
- package/views/404.pug +0 -3
- package/views/home.pug +0 -3
- package/views/layouts/base.pug +0 -39
- package/vitest.config.js +0 -16
- /package/{commands → dist/migrations}/.gitkeep +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,526 +1,1098 @@
|
|
|
1
|
-
|
|
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]
|
|
9
|
+
|
|
10
|
+
This is a big release that contains a lot of new features and breaking changes.
|
|
11
|
+
Main feature of that release is full TypeScript support including mongoose models.
|
|
12
|
+
|
|
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
|
+
- **[NEW]** Rate limiter middleware - add consumeResult function to allow user middleware as a regular rate limiter
|
|
28
|
+
- **[NEW]** Ip detector middleware - add getIpAdressFromIncomingMessage function to allow user middleware as a detector of id adresses without middleware
|
|
29
|
+
- **[NEW]** Introduce i18nService (ability to user i18n not only inside middleware)
|
|
30
|
+
- **[NEW]** [Standard Schema](https://standardschema.dev/) validation. Yup ≥1.7, Zod, Valibot, ArkType supported.
|
|
31
|
+
- **[NEW]** Pluggable `ValidatorDriver` + `ValidateService.register(driver)` for custom validators.
|
|
32
|
+
- **[NEW]** `StandardSchemaV1.InferOutput<typeof schema>` for compile-time handler types.
|
|
33
|
+
- **[NEW]** Framework-owned `ValidationError` with structured `.issues`. Wire-compatible.
|
|
34
|
+
- **[NEW]** Tree-based `RouteRegistry` replaces Express's hidden router internally. Lives on `app.httpServer.routeRegistry`. One global tree, walkable by codegen / OpenAPI / MCP emitters. The Express adapter mounts once (`app.express.use(adapter)`); path matching, parameter extraction, method dispatch, and middleware ordering all live in framework code now. 405 with `Allow` header, 400 on malformed paths, HEAD → GET fallback. Per-segment URL decoding (Spring's `PathPatternParser` model).
|
|
35
|
+
- **[NEW]** `app.controllerManager.registerController(ControllerClass, prefix?)` for explicit/programmatic controller registration. Auto-loading uses the same entry point internally. Register late via `Server.startServer`'s `callbackBefore404` hook so routes mount before the 404 handler.
|
|
36
|
+
- **[NEW]** Per-controller route type generation: `npm run gen` (alias for `npm run cli generatetypes`) emits `<File>.routes.gen.ts` next to each controller plus `genTypes.d.ts` at the project root. Handler signatures use `import type { PostLoginRequest } from './Auth.routes.gen.ts'` instead of hand-written `req: FrameworkRequest & { appInfo: { request: { ... } } }` intersections. Codegen walks `RouteRegistry.flatten()` so resolved middleware chains exactly match what the runtime executes (no parallel matcher). Gen files are gitignored — recommend `**/*.routes.gen.ts` in your `.gitignore` and `npm run gen && tsc --noEmit` in your `check:types` script.
|
|
37
|
+
- **[NEW]** Type contracts in `services/http/types`: `BaseRequestContext`, `BaseAppInfo`, `AppInfoExtensions` (module-augmentation point for app-wide globals), `ProvidesOf<T>`, `UnionAppInfoProvides<MWs>`. Codegen output composes these into per-handler `<MethodName>Request` aliases.
|
|
38
|
+
- **[NEW]** `static get provides()` convention on middlewares — declares what the middleware adds to `req.appInfo` (e.g., `GetUserByToken.provides` returns `{ user?: InstanceType<TUser> }`). Codegen reads this; runtime ignores it. Type-only phantom.
|
|
39
|
+
- **[NEW]** Boot-time route tree log at `verbose` log level. After all controllers register, the framework prints the full route registry: path structure, per-node attached middlewares (with inherited chain marked separately as `pmw:`), per-method handlers with their absolute path, schema flags (`[body]` / `[query]`), and route-level middleware (`[mw: ...]`). HTTP verbs are color-coded (blue GET, green POST, yellow PUT/PATCH, red DELETE, gray OPTIONS); `:param` and `*splat` segments stand out in magenta. ANSI codes are emitted unconditionally — looks right in TTY consoles, raw codes appear in file/Sentry transports for the one-time boot output.
|
|
40
|
+
- **[NEW]** `Server#getLogger()` registers a `shutdown` listener that drains the winston logger (`logger.close()`). Fixes 5s exit stall in CLI commands (`generatetypes`, etc.) caused by winston transport sockets keeping the event loop alive past the shutdown signal. The 5-second force-shutdown safety timer remains as zombie-prevention in production.
|
|
41
|
+
- **[NEW]** Boot-time warnings on misconfigured routes / middleware Maps. Framework now logs at `warn` level when it sees: unknown verb in the `routes` getter (anything other than `get/post/put/patch/delete/head/options`), a route object missing a callable `handler` field, a non-string key in the middleware `Map`, or an unknown method prefix on a `Map` key (e.g., a typo like `'PATC/login'`). Previously these silently produced 404s at request time.
|
|
42
|
+
- **[NEW]** Codegen emits typed `params` for route path segments. `:name` segments and `{*name}` splats are extracted from the path string and emitted as `& { params: { name: string } }` on the generated `<Method>Request` alias. Splats capture multiple segments joined with `/` — typed as `string` (not `string[]`), matching the matcher's behavior. Removes the need for hand-rolled `& { params: { id: string } }` intersections on every handler with a `:param` route.
|
|
43
|
+
- **[NEW]** Codegen emits `appInfo.query: StandardSchemaV1.InferOutput<...>` from route-level `query:` schemas. Mirrors how `request:` schemas are already handled — declares it on the route, handlers read typed `req.appInfo.query.X`.
|
|
44
|
+
- **[NEW]** Codegen deduplicates identical union branches when one handler serves multiple routes with the same resolved chain + path params + schemas. Prevents `Foo = (X & {...}) | (X & {...})` output in `.routes.gen.ts`.
|
|
45
|
+
- **[NEW]** `Pagination` middleware declares `static get provides()` returning `PaginationMiddlewareAppInfo['appInfo']`. Routes with `Pagination` in their chain get `req.appInfo.pagination: { page, limit, skip }` typed automatically.
|
|
46
|
+
- **[FIX]** `setupVitest.ts` no longer imports framework-internal fixtures. The test-fixture controller (`SomeController`) is now registered inside its own test file via late `controllerManager.registerController()` (the adapter reads the registry live, so registration after `startServer` works). Consumer projects can use `@adaptivestone/framework/tests/setupVitest.js` without `Cannot find module './fixtures/...'` errors. `frameworkVitestSetup.*` is now `.npmignore`'d as framework-only.
|
|
47
|
+
- **[FIX]** Codegen now walks the `extends` chain when resolving middleware import paths. A child controller that inherits `static get middleware()` from its parent class no longer has those middlewares filtered out of its generated chain — codegen scans the parent's source file for the import line and emits the right `import type` in the child's `.routes.gen.ts`. Bare-package ancestors (e.g. extending a framework class from `node_modules`) are skipped because their `.ts` source isn't accessible at codegen time; child controllers in that case should either override the middleware Map or add a type-only re-import.
|
|
48
|
+
|
|
49
|
+
### Breaking changes (please read carefully)
|
|
50
|
+
|
|
51
|
+
- **[BREAKING]** No more global variables for testing and default user will not be created by default
|
|
52
|
+
- **[BREAKING]** All models now should be extended from `BaseModel`. This is a potential breaking change specially for `User` model.
|
|
53
|
+
- **[BREAKING]** Remove jest support for testing.
|
|
54
|
+
- **[BREAKING]** Move email module to separate package `@adaptivestone/framework-module-email`. Please use it if you want to send emails.
|
|
55
|
+
- **[BREAKING]** Remove `VIEWS` folders at all. Should not affect any user as this was not used internally.
|
|
56
|
+
- **[BREAKING]** Removed `noidemailer-sendmail-transport`. Not needed anymore and not recommended to use as well.
|
|
57
|
+
- **[BREAKING]** Remove `minimist` CLI parsing and replace it by `commandArguments` parser.
|
|
58
|
+
- **[BREAKING]** `vitest` v3 <https://vitest.dev/guide/migration.html>.
|
|
59
|
+
- **[BREAKING]** `i18next` v24 <https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0>.
|
|
60
|
+
- **[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>.
|
|
61
|
+
- **[BREAKING]** As part of express 5 migration `_` in rotes (middlewares) should have perameter. please replace `_` to `*splat`.
|
|
62
|
+
- **[BREAKING]** Default auth response changed to be unified. `{token, user}` => `{data:{token, user}}`.
|
|
63
|
+
- **[BREAKING]** `RateLimiter` now need to have `IpDetector` middleware before.
|
|
64
|
+
- **[BREAKING]** Removing `staticFiles` middleware as it not used in projects anymore. Docs with nginx config will be provided.
|
|
65
|
+
- **[BREAKING]** Remove default `AUTH_SALT`. It should be provided on a app level now.
|
|
66
|
+
- **[BREAKING]** Minimum node version is 20.12 as for now (`process.loadEnvFile`).
|
|
67
|
+
- **[BREAKING]** ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience.
|
|
68
|
+
- **[BREAKING]** Mongoose v8. <https://mongoosejs.com/docs/migrating_to_8.html>.
|
|
69
|
+
- **[BREAKING]** Mongoose v9. <https://mongoosejs.com/docs/migrating_to_9.html>.
|
|
70
|
+
- **[BREAKING]** Vitest v4 <https://vitest.dev/guide/migration.html#vitest-4>
|
|
71
|
+
- **[BREAKING]** `@redis/client` v6. Now defaults to the RESP3 protocol (was RESP2) and requires a Redis ≥6 server; pass `createClient({ RESP: 2 })` to keep v5 wire behavior. Also adds a default 5s command timeout. <https://github.com/redis/node-redis/blob/master/docs/v5-to-v6.md>
|
|
72
|
+
- **[BREAKING]** Yup ≥1.7 required (was ≥1.0). Stays as a direct dep — used by built-in `Auth` controller. Schemas must implement Standard Schema (`~standard`); yup ≥1.7 does this natively.
|
|
73
|
+
- **[BREAKING]** Legacy `{validate, cast}` plain-object validators removed. Wrap as Standard Schema (~10 lines).
|
|
74
|
+
- **[BREAKING]** Yup `req:` context inside `.test()` / `.when()` removed. Use `this.parent` or move logic to handler.
|
|
75
|
+
- **[BREAKING]** Internal driver classes (`AbstractValidator`, `YupValidator`, `CustomValidator`) removed.
|
|
76
|
+
- **[BREAKING]** `ValidateService` surface trimmed to `{constructor, validate, resolve, register}`. Helpers like `validateReqData` removed.
|
|
77
|
+
- **[BREAKING]** `AbstractMiddleware.relatedQueryParameters` / `relatedRequestParameters` defaults changed from `yup.object().shape({})` to `null`. Override with any Standard Schema-conformant schema.
|
|
78
|
+
- **[BREAKING]** `BaseAppInfo.i18n` is now required (was optional in `FrameworkRequest`). Reflects runtime reality: `I18nMiddleware` is part of `HttpServer`'s default chain. If you removed I18n from your global chain, augment `BaseAppInfo` to relax the field.
|
|
79
|
+
- **[BREAKING]** OpenAPI / documentation generation removed: `framework documentation` and `framework getOpenApiJson` CLI commands, `DocumentationGenerator`, and `app.documentation` field deleted. Output was already partial after Standard Schema migration. Will return in later with per-vendor `toJsonSchema` support.
|
|
80
|
+
- **[BREAKING]** Path-pattern syntax narrowed. The new tree-based router supports literal segments, `:name` params (exactly one segment), and `{*name}` splats (zero or more segments to end of path). **Express 5's optional-param `{:name}` and inline regex are NOT supported.** If you had routes like `/fullpath/:paramOne/{:paramTwo}`, split into two explicit routes (`/fullpath/:paramOne` + `/fullpath/:paramOne/:paramTwo`) or restructure. Specificity is structural (static > param > splat); URL decoding is per-segment.
|
|
81
|
+
- **[BREAKING]** `AbstractController` constructor third argument `isExpressMergeParams` removed. The old default Express-router behavior of stripping parent params is gone — all matched params (across the full path, including the controller prefix) are available on `req.params`. If you relied on the merge-params toggle, no action needed in most cases; if you specifically depended on the strip behavior, restructure your handler to filter `req.params` keys.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
## [5.0.0-beta.51]
|
|
85
|
+
|
|
86
|
+
- **[NEW]** `KeyValue` model: a minimal persistent key/value store backed by MongoDB for lightweight caching, runtime config, and feature flags.
|
|
87
|
+
- **[NEW]** `defineSchema<Output>(validate)` helper (`@adaptivestone/framework/services/validate/defineSchema.js`) — wrap a plain validate function into a zero-dependency Standard Schema. Codegen reads its `Output` generic for handler request types via `StandardSchemaV1.InferOutput`.
|
|
88
|
+
- **[NEW]** `File` type exported from `@adaptivestone/framework/types.js` — vendor-neutral uploaded-file type (aliases formidable's `PersistentFile` today; re-points at the web-standard `File` after the P3 parser swap). Validate uploads with your validator's idiom, e.g. `z.instanceof(File)`.
|
|
89
|
+
- **[NEW]** Content-type-keyed request schemas: a route's `request` can be a map (`{ 'application/json': schemaA, 'multipart/form-data': schemaB }`, mirrors OpenAPI `requestBody.content`). The framework validates with the schema matching the request's `Content-Type` (415 on no match) and `req.appInfo.request` becomes a `contentType`-discriminated union; codegen emits the union automatically. Media-type matching is case-insensitive and ignores parameters (`; charset=...`); `contentType` is a reserved field on the validated request object.
|
|
90
|
+
- **[CHANGE]** Built-in `Auth` controller and `Pagination` middleware now validate with `defineSchema` instead of yup. The framework runtime and built-ins are yup-free.
|
|
91
|
+
- **[BREAKING]** `yup` moved from `dependencies` to an optional `peerDependency`. It is no longer bundled. Apps that use yup schemas (including `YupFile`) must add `yup` to their own `dependencies`. Zod/Valibot/ArkType users are unaffected.
|
|
92
|
+
- **[BREAKING]** `@redis/client` v6. Now defaults to the RESP3 protocol (was RESP2) and requires a Redis ≥6 server; pass `createClient({ RESP: 2 })` to keep v5 wire behavior. Also adds a default 5s command timeout. <https://github.com/redis/node-redis/blob/master/docs/v5-to-v6.md>
|
|
93
|
+
- **[DEPRECATED]** `YupFile` (`@adaptivestone/framework/helpers/yup.js`) — removed in v6. Validate files via the new `File` export + your validator's `instanceof` idiom instead.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
## [5.0.0-beta.50]
|
|
97
|
+
|
|
98
|
+
- **[FIX]** Tree-based router: different HTTP methods at the same param position can now use different `:name` segments. Previously, `PUT /:slug` and `POST /:event` on the same controller would either throw at boot ("conflicting param children") or silently use the first-registered name for all methods (`req.params.event` → `undefined`). Each `HandlerEntry` now carries its own `paramNames` array — the tree is structural only, param naming is per-handler.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
## [5.0.0-beta.49]
|
|
102
|
+
|
|
103
|
+
- **[FIX]** Codegen: fix router name resolution in generated route types.
|
|
104
|
+
- **[UPDATE]** Codegen output improvements.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
## [5.0.0-beta.48]
|
|
108
|
+
|
|
109
|
+
- **[NEW]** Codegen emits route metadata (`methodName`, `controllerClass`, `sourceFile`) on `HandlerEntry.meta`.
|
|
110
|
+
- **[NEW]** `Pagination` middleware declares `static get provides()` — routes with `Pagination` in their chain get `req.appInfo.pagination` typed automatically.
|
|
111
|
+
- **[NEW]** Codegen emits `appInfo.query` from route-level `query:` schemas.
|
|
112
|
+
- **[NEW]** Codegen deduplicates identical union branches.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
## [5.0.0-beta.47]
|
|
116
|
+
|
|
117
|
+
- **[UPDATE]** Tree-based route type generation improvements.
|
|
118
|
+
- **[UPDATE]** Dependencies update.
|
|
2
119
|
|
|
3
|
-
|
|
120
|
+
---
|
|
121
|
+
## [5.0.0-beta.46]
|
|
4
122
|
|
|
5
|
-
|
|
123
|
+
- **[NEW]** Tree-based `RouteRegistry` replaces Express's hidden router internally. One global tree, walkable by codegen / OpenAPI / MCP emitters.
|
|
124
|
+
- **[NEW]** Per-controller route type generation (`npm run gen` emits `<File>.routes.gen.ts`).
|
|
125
|
+
- **[NEW]** Standard Schema validation (Yup ≥1.7, Zod, Valibot, ArkType supported).
|
|
126
|
+
- **[NEW]** Boot-time route tree log at `verbose` level.
|
|
127
|
+
- **[NEW]** Boot-time warnings on misconfigured routes / middleware Maps.
|
|
128
|
+
- **[NEW]** `app.controllerManager.registerController(ControllerClass, prefix?)` for explicit registration.
|
|
129
|
+
- **[FIX]** `setupVitest.ts` no longer imports framework-internal fixtures.
|
|
130
|
+
- **[FIX]** Codegen walks the `extends` chain when resolving middleware import paths.
|
|
131
|
+
- **[BREAKING]** Path-pattern syntax narrowed (no Express 5 optional-param `{:name}` or inline regex).
|
|
132
|
+
- **[BREAKING]** `AbstractController` constructor third argument `isExpressMergeParams` removed.
|
|
133
|
+
- **[BREAKING]** Legacy `{validate, cast}` plain-object validators removed.
|
|
134
|
+
- **[BREAKING]** Yup ≥1.7 required. Schemas must implement Standard Schema.
|
|
135
|
+
- **[BREAKING]** `ValidateService` surface trimmed. Helpers like `validateReqData` removed.
|
|
136
|
+
- **[BREAKING]** OpenAPI / documentation generation removed (will return later).
|
|
6
137
|
|
|
7
|
-
|
|
138
|
+
---
|
|
139
|
+
## [5.0.0-beta.45]
|
|
140
|
+
- **[BREAKING]** rate-limiter-flexible v9->v10
|
|
141
|
+
- **[BREAKING]** typecript v5->v6
|
|
8
142
|
|
|
9
|
-
|
|
143
|
+
---
|
|
144
|
+
## [5.0.0-beta.44]
|
|
10
145
|
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[NEW] now each mongo connection on CLI have own name and inslude command name there too (getMongoConnectionName in command)
|
|
146
|
+
- **[NEW]** Logout method
|
|
147
|
+
- **[Update]** set model typing
|
|
14
148
|
|
|
15
|
-
### 5.0.0-beta.1
|
|
16
149
|
|
|
17
|
-
[UPDATE] update deps
|
|
18
|
-
[BREAKING] vitest v3 https://vitest.dev/guide/migration.html
|
|
19
150
|
|
|
20
|
-
|
|
151
|
+
---
|
|
152
|
+
## [5.0.0-beta.43]
|
|
21
153
|
|
|
22
|
-
[
|
|
23
|
-
[UPDATE] new commands view in CLI
|
|
154
|
+
- **[FIX]** Fix typo in peerDeps
|
|
24
155
|
|
|
25
|
-
### 5.0.0-alpha.24
|
|
26
156
|
|
|
27
|
-
|
|
28
|
-
[
|
|
157
|
+
---
|
|
158
|
+
## [5.0.0-beta.42]
|
|
29
159
|
|
|
30
|
-
|
|
160
|
+
- **[BREAKING]** Mongoose v9. <https://mongoosejs.com/docs/migrating_to_9.html>.
|
|
31
161
|
|
|
32
|
-
|
|
162
|
+
---
|
|
163
|
+
## [5.0.0-beta.41]
|
|
33
164
|
|
|
34
|
-
|
|
165
|
+
- **[UPDATE]** Update deps
|
|
166
|
+
- **[NEW]** Bearer scheme support
|
|
167
|
+
- **[NEW]** redisConnection helper
|
|
35
168
|
|
|
36
|
-
[UPDATE] update deps
|
|
37
|
-
[FIX] fix optional routing parameters
|
|
38
169
|
|
|
39
|
-
### 5.0.0-alpha.21
|
|
40
170
|
|
|
41
|
-
|
|
42
|
-
[
|
|
43
|
-
[UPDATE] update deps
|
|
44
|
-
[UPDATE] Mailer uses await import() for startup speedup
|
|
171
|
+
---
|
|
172
|
+
## [5.0.0-beta.40]
|
|
45
173
|
|
|
46
|
-
|
|
174
|
+
- **[UPDATE]** Update `rate-limiter-flexible` to v9.
|
|
175
|
+
- **[UPDATE]** Remove 'winston-transport-sentry' and implementcustom logic based on 'sentry' itself (from v9.14 sentry have native winston support)
|
|
47
176
|
|
|
48
|
-
[UPDATE] update deps
|
|
49
|
-
[UPDATE] #realLogger do not throw error in a scecific cases (model toJSON({virtual:true}))
|
|
50
177
|
|
|
51
|
-
|
|
178
|
+
## [5.0.0-beta.39]
|
|
52
179
|
|
|
53
|
-
[
|
|
180
|
+
- **[UPDATE]** rete limiter. Do not create index on mongo if we have "process.env.test === 'true'"
|
|
54
181
|
|
|
55
|
-
|
|
182
|
+
---
|
|
56
183
|
|
|
57
|
-
[
|
|
58
|
-
[UPDATE] RateLimiter updae key generation
|
|
184
|
+
## [5.0.0-beta.38]
|
|
59
185
|
|
|
60
|
-
|
|
186
|
+
- **[UPDATE]** update dependencies
|
|
187
|
+
- **[UPDATE]** update rate limiter Mongo option to not create an index by default when NODE_ENV=test
|
|
188
|
+
- **[UPDATE]** the default User model now uses roles and permissions with the String type (previously was any, for historical reasons). To avoid changes on Mongoose 8.19 as it affects User model https://github.com/Automattic/mongoose/issues/15699
|
|
189
|
+
- **[BREAKING]** Vitest v4 <https://vitest.dev/guide/migration.html#vitest-4>
|
|
61
190
|
|
|
62
|
-
|
|
63
|
-
[UPDATE] update deps
|
|
191
|
+
---
|
|
64
192
|
|
|
65
|
-
|
|
193
|
+
## [5.0.0-beta.36]
|
|
66
194
|
|
|
67
|
-
[UPDATE]
|
|
68
|
-
|
|
195
|
+
- **[UPDATE]** i18nService update loading to avoid race conditions
|
|
196
|
+
---
|
|
69
197
|
|
|
70
|
-
|
|
198
|
+
## [5.0.0-beta.36]
|
|
71
199
|
|
|
72
|
-
[
|
|
73
|
-
[UPDATE] update deps
|
|
200
|
+
- **[UPDATE]** i18nService update method names
|
|
74
201
|
|
|
75
|
-
|
|
202
|
+
---
|
|
76
203
|
|
|
77
|
-
[
|
|
204
|
+
## [5.0.0-beta.35]
|
|
78
205
|
|
|
79
|
-
|
|
206
|
+
- **[NEW]** Introduce i18nService (ability to user i18n not only inside middleware)
|
|
80
207
|
|
|
81
|
-
|
|
82
|
-
[UPDATE] update i18n internal implementation
|
|
83
|
-
[CHANGE] disable https server view
|
|
208
|
+
---
|
|
84
209
|
|
|
85
|
-
|
|
210
|
+
## [5.0.0-beta.34]
|
|
86
211
|
|
|
87
|
-
[
|
|
212
|
+
- **[NEW]** I18nMiddlewareAppInfo type
|
|
88
213
|
|
|
89
|
-
|
|
214
|
+
---
|
|
90
215
|
|
|
91
|
-
[
|
|
216
|
+
## [5.0.0-beta.33]
|
|
92
217
|
|
|
93
|
-
|
|
218
|
+
- **[NEW]** consumeResult changed to be more flexible
|
|
94
219
|
|
|
95
|
-
|
|
96
|
-
[NEW] IpDetector middleware that support detecting proxy and X-Forwarded-For header
|
|
97
|
-
[BREAKING] RateLimiter now need to have IpDetector middleware before
|
|
220
|
+
---
|
|
98
221
|
|
|
99
|
-
|
|
222
|
+
## [5.0.0-beta.32]
|
|
100
223
|
|
|
101
|
-
[
|
|
102
|
-
[BREAKING] removing staticFiles middleware as it not used in projects anymore. Docs with nginx config will be provided
|
|
103
|
-
[BREAKING] remove default AUTH_SALT. It should be provided on a app level now
|
|
104
|
-
[BREAKING] Vitest 2.0.0 https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0
|
|
224
|
+
- **[NEW]** Ip detector middleware - add getIpAdressFromIncomingMessage function to allow user middleware as a detector of id adresses without middleware
|
|
105
225
|
|
|
106
|
-
|
|
226
|
+
---
|
|
107
227
|
|
|
108
|
-
[
|
|
109
|
-
[UPDATE] replace nodemon with node --watch (dev only)
|
|
110
|
-
[BREAKING] Minimum node version is 20.12 as for now (process.loadEnvFile)
|
|
228
|
+
## [5.0.0-beta.31]
|
|
111
229
|
|
|
112
|
-
|
|
230
|
+
- **[NEW]** Rate limiter middleware - add consumeResult function to allow user middleware as a regular rate limiter
|
|
113
231
|
|
|
114
|
-
[UPDATE] deps update
|
|
115
232
|
|
|
116
|
-
|
|
233
|
+
---
|
|
117
234
|
|
|
118
|
-
[
|
|
235
|
+
## [5.0.0-beta.30]
|
|
119
236
|
|
|
120
|
-
|
|
237
|
+
- **[FIX]** Fix CLI mongo app name generation (64 symbols limit)
|
|
121
238
|
|
|
122
|
-
[UPDATE] More verbose errors for rapsing body request.
|
|
123
|
-
[UPDATE] deps update
|
|
124
239
|
|
|
125
|
-
|
|
240
|
+
---
|
|
126
241
|
|
|
127
|
-
[
|
|
128
|
-
[CHANGE] Cache update redis.setEX to redis.set(..,..,{EX:xx}) as setEX deprecated
|
|
242
|
+
## [5.0.0-beta.29]
|
|
129
243
|
|
|
130
|
-
|
|
244
|
+
- **[FIX]** Fix CLI mongo app name generation (128 symbols limit)
|
|
131
245
|
|
|
132
|
-
|
|
133
|
-
[FIX] Migration commands apply
|
|
246
|
+
---
|
|
134
247
|
|
|
135
|
-
|
|
248
|
+
## [5.0.0-beta.28]
|
|
136
249
|
|
|
137
|
-
[UPDATE]
|
|
250
|
+
- **[UPDATE]** Inside CLI allow to have a negative values
|
|
251
|
+
- **[UPDATE]** Update deps.
|
|
138
252
|
|
|
139
|
-
|
|
253
|
+
---
|
|
140
254
|
|
|
141
|
-
[
|
|
142
|
-
[BREAKING] ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience
|
|
143
|
-
[BREAKING] Mongoose v8. https://mongoosejs.com/docs/migrating_to_8.html
|
|
255
|
+
## [5.0.0-beta.27]
|
|
144
256
|
|
|
145
|
-
|
|
257
|
+
- **[UPDATE]** Remove eslint, prettiver and move to biome
|
|
258
|
+
- **[UPDATE]** Update types.
|
|
259
|
+
- **[UPDATE]** Update deps.
|
|
146
260
|
|
|
147
|
-
[UPDATE] deps update
|
|
148
261
|
|
|
149
|
-
|
|
262
|
+
---
|
|
150
263
|
|
|
151
|
-
[
|
|
264
|
+
## [5.0.0-beta.26]
|
|
152
265
|
|
|
153
|
-
|
|
266
|
+
- **[UPDATE]** Update types.
|
|
267
|
+
- **[UPDATE]** Update tests (more ts).
|
|
154
268
|
|
|
155
|
-
|
|
269
|
+
---
|
|
156
270
|
|
|
157
|
-
|
|
271
|
+
## [5.0.0-beta.25]
|
|
158
272
|
|
|
159
|
-
[
|
|
273
|
+
- **[UPDATE]** Update types.
|
|
160
274
|
|
|
161
|
-
|
|
275
|
+
---
|
|
162
276
|
|
|
163
|
-
[
|
|
164
|
-
[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
|
|
277
|
+
## [5.0.0-beta.24]
|
|
165
278
|
|
|
166
|
-
|
|
279
|
+
- **[UPDATE]** Update types.
|
|
167
280
|
|
|
168
|
-
|
|
169
|
-
[NEW] Static file middleware
|
|
170
|
-
[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
|
|
281
|
+
---
|
|
171
282
|
|
|
172
|
-
|
|
283
|
+
## [5.0.0-beta.23]
|
|
173
284
|
|
|
174
|
-
[
|
|
285
|
+
- **[BREAKING]** No more global variables for testing and default user will not be created by default
|
|
286
|
+
- **[NEW]** Test helpers getTestServerURL, serverInstance, setDefaultUser, setDefaultAuthToken and createDefaultTestUser.
|
|
175
287
|
|
|
176
|
-
|
|
288
|
+
---
|
|
177
289
|
|
|
178
|
-
[
|
|
290
|
+
## [5.0.0-beta.22]
|
|
179
291
|
|
|
180
|
-
|
|
292
|
+
- **[UPDATE]** Update types.
|
|
181
293
|
|
|
182
|
-
|
|
294
|
+
---
|
|
183
295
|
|
|
184
|
-
|
|
296
|
+
## [5.0.0-beta.21]
|
|
185
297
|
|
|
186
|
-
[
|
|
298
|
+
- **[FIX]** Fix bug with missed model options.
|
|
187
299
|
|
|
188
|
-
|
|
300
|
+
---
|
|
189
301
|
|
|
190
|
-
[
|
|
302
|
+
## [5.0.0-beta.20]
|
|
191
303
|
|
|
192
|
-
|
|
304
|
+
- **[FIX]** Fix bug with `Lock` model index.
|
|
305
|
+
- **[NEW]** `BaseModel` add `Virtuals`.
|
|
193
306
|
|
|
194
|
-
|
|
195
|
-
[NEW] New options to skip model init isSkipModelInit
|
|
196
|
-
[NEW] New method server method initAllModels()
|
|
307
|
+
---
|
|
197
308
|
|
|
198
|
-
|
|
309
|
+
## [5.0.0-beta.19]
|
|
199
310
|
|
|
200
|
-
[
|
|
201
|
-
[BREAKING]
|
|
202
|
-
[UPDATE] update Base getFilesPathWithInheritance to use fs.read dir resursive option
|
|
203
|
-
[UPDATE] update cache (refactor+tets)
|
|
204
|
-
[UPDATE] update config and model inits
|
|
311
|
+
- **[NEW]** Introducing new model type. `BaseModel`. Features - simplifie works with typescript. And based on statics.
|
|
312
|
+
- **[BREAKING]** All models now should be extended from `BaseModel`. This is a potential breaking change specially for `User` model.
|
|
205
313
|
|
|
206
|
-
|
|
314
|
+
---
|
|
207
315
|
|
|
208
|
-
[
|
|
209
|
-
[UPDATE] updated deps
|
|
316
|
+
## [5.0.0-beta.18]
|
|
210
317
|
|
|
211
|
-
|
|
318
|
+
- **[UPDATE]** Move away connection from `mongooseModels` to server itself (preparation for different model types).
|
|
319
|
+
- **[BREAKING]** potential. We are removed callback from `mongooseModels` contrctuctor. It was not used in code.
|
|
320
|
+
- **[NEW]** Add `appInstance` helper to access app instance from anywhere without passing it.
|
|
212
321
|
|
|
213
|
-
|
|
322
|
+
---
|
|
214
323
|
|
|
215
|
-
|
|
324
|
+
## [5.0.0-beta.17]
|
|
216
325
|
|
|
217
|
-
[NEW]
|
|
218
|
-
[UPDATE] Update rate-limiter-flexible to v3
|
|
219
|
-
[UPDATE] Update test runner to suport ESM. In case problem with test please copy babel.config.js from framework to your project directory
|
|
326
|
+
- **[NEW]** Add `GenerateTypes` command.
|
|
220
327
|
|
|
221
|
-
|
|
328
|
+
---
|
|
222
329
|
|
|
223
|
-
[
|
|
330
|
+
## [5.0.0-beta.16]
|
|
224
331
|
|
|
225
|
-
|
|
332
|
+
- **[UPDATE]** Update deps.
|
|
333
|
+
- **[UPDATE]** New app getter `internalFilesCache`.
|
|
334
|
+
- **[UPDATE]** Command new static props to load `isShouldGetModelPaths`.
|
|
226
335
|
|
|
227
|
-
|
|
336
|
+
---
|
|
228
337
|
|
|
229
|
-
|
|
338
|
+
## [5.0.0-beta.15]
|
|
230
339
|
|
|
231
|
-
[
|
|
340
|
+
- **[FIX]** Fix missing folder `migrations` in `dist` folder (hope that will be finally).
|
|
232
341
|
|
|
233
|
-
|
|
342
|
+
---
|
|
234
343
|
|
|
235
|
-
[
|
|
236
|
-
[NEW] CreateUser cli command. Ability to update user by email or id.
|
|
344
|
+
## [5.0.0-beta.14]
|
|
237
345
|
|
|
238
|
-
|
|
346
|
+
- **[FIX]** Fix missing folder `migrations` in `dist` folder.
|
|
239
347
|
|
|
240
|
-
|
|
241
|
-
[NEW] email - Ability to render templae to string for future usage
|
|
348
|
+
---
|
|
242
349
|
|
|
243
|
-
|
|
350
|
+
## [5.0.0-beta.13]
|
|
244
351
|
|
|
245
|
-
[
|
|
246
|
-
[BREAKING] change internal express parser to formidable parser. Affect you if external formidable is used
|
|
247
|
-
[BREAKING] should not affect any user. Changed email-templates module to internal implementation. Idea to keep dependensy list smaller
|
|
248
|
-
[BREAKING] change i18n middleware to internal one. Nothing should be affected
|
|
249
|
-
[BREAKING] now validation of request splitted between request and query
|
|
250
|
-
[BREAKING] supportedLngs option added to i18n config
|
|
251
|
-
[BREAKING] email inliner now looking for src/services/messaging/email/resources folder instead of 'build' folder.
|
|
352
|
+
- **[UPDATE]** Only process `.ts` or `.js` files (not `.map` files).
|
|
252
353
|
|
|
253
|
-
|
|
254
|
-
[BREAKING] Yup validation was updated to v1 https://github.com/jquense/yup/issues/1906
|
|
354
|
+
---
|
|
255
355
|
|
|
256
|
-
[
|
|
356
|
+
## [5.0.0-beta.12]
|
|
257
357
|
|
|
258
|
-
[
|
|
259
|
-
[NEW]
|
|
260
|
-
[NEW]
|
|
261
|
-
[NEW] custom yup validator for validate File requests
|
|
262
|
-
[UPDATE] updated deps
|
|
263
|
-
[UPDATE] openApi generator support files
|
|
264
|
-
[UPDATE] updated 18n middleware. Introduced internal cachce. Speed up of request processing up to 100%
|
|
265
|
-
[UPDATE] cache drivers to JSON support BigInt numbers
|
|
358
|
+
- **[BREAKING]** Remove jest support for testing.
|
|
359
|
+
- **[NEW]** Initial move to typescript. potentially breaking.
|
|
360
|
+
- **[NEW]** Introduce `src` and `dist` folders.
|
|
266
361
|
|
|
267
|
-
|
|
362
|
+
---
|
|
268
363
|
|
|
269
|
-
[
|
|
270
|
-
[FIX] fix tests for redis
|
|
271
|
-
[FIX] support in tests TEST_FOLDER_EMAILS
|
|
364
|
+
## [5.0.0-beta.11]
|
|
272
365
|
|
|
273
|
-
|
|
366
|
+
- **[NEW]** Commands typing.
|
|
367
|
+
- **[NEW]** Commands support TS files.
|
|
368
|
+
- **[UPDATE]** Update deps.
|
|
274
369
|
|
|
275
|
-
|
|
276
|
-
[FIX] fix documentation generation
|
|
370
|
+
---
|
|
277
371
|
|
|
278
|
-
|
|
372
|
+
## [5.0.0-beta.9]
|
|
279
373
|
|
|
280
|
-
[
|
|
374
|
+
- **[BREAKING]** Move email module to separate package `@adaptivestone/framework-module-email`. Please use it if you want to send emails.
|
|
375
|
+
- **[NEW]** App now contains `frameworkFolder` folder the framework located. Mostly for modules usage.
|
|
376
|
+
- **[BREAKING]** Remove `VIEWS` folders at all. Should not afffect any user as this was not used internally.
|
|
377
|
+
- **[UPDATE]** Update typing.
|
|
378
|
+
- **[UPDATE]** Change `redis` -> `@redis/client` as we are using only client from pakage.
|
|
379
|
+
- **[BREAKING]** Removed `noidemailer-sendmail-transport`. Not needed anymore and not recommended to use as well.
|
|
281
380
|
|
|
282
|
-
|
|
381
|
+
---
|
|
283
382
|
|
|
284
|
-
[
|
|
383
|
+
## [5.0.0-beta.8]
|
|
285
384
|
|
|
286
|
-
|
|
385
|
+
- **[UPDATE]** Update deps.
|
|
386
|
+
- **[NEW]** `Lock` model for working locks via mongoDB.
|
|
287
387
|
|
|
288
|
-
|
|
289
|
-
[UPDATE] updated deps
|
|
290
|
-
[FIX] fix documentation generation
|
|
388
|
+
---
|
|
291
389
|
|
|
292
|
-
|
|
390
|
+
## [5.0.0-beta.7]
|
|
293
391
|
|
|
294
|
-
[UPDATE]
|
|
295
|
-
[
|
|
392
|
+
- **[UPDATE]** Update deps.
|
|
393
|
+
- **[UPDATE]** Change `vitest` shutdown behavior as mongo driver v6.13 change befaviur that affect us (`MongoClient.close` now closes any outstanding cursors).
|
|
296
394
|
|
|
297
|
-
|
|
395
|
+
---
|
|
298
396
|
|
|
299
|
-
[
|
|
300
|
-
[FIX] fix documentation generation
|
|
397
|
+
## [5.0.0-beta.5]
|
|
301
398
|
|
|
302
|
-
|
|
399
|
+
- **[BREAKING]** Remove `minimist` CLI parsing and replace it by `commandArguments` parser.
|
|
400
|
+
- **[UPDATE]** Migrated from `eslint-plugin-import` to `eslint-plugin-import-x`.
|
|
401
|
+
- **[UPDATE]** Migrate to eslint 9 and away from aibnb styles (they are abonded).
|
|
303
402
|
|
|
304
|
-
|
|
305
|
-
[NEW] cache.removeKey(key) - function to remove key from cache
|
|
403
|
+
---
|
|
306
404
|
|
|
307
|
-
|
|
405
|
+
## [5.0.0-beta.4]
|
|
308
406
|
|
|
309
|
-
[
|
|
310
|
-
[FIX] fix cache error handling.
|
|
407
|
+
- **[NEW]** On shutdown event now after timeout we are forcing to shutdown.
|
|
311
408
|
|
|
312
|
-
|
|
409
|
+
---
|
|
313
410
|
|
|
314
|
-
[
|
|
315
|
-
[NEW] coverage report
|
|
316
|
-
[UPDATE] updated deps
|
|
411
|
+
## [5.0.0-beta.2]
|
|
317
412
|
|
|
318
|
-
|
|
413
|
+
- **[UPDATE]** Update deps.
|
|
414
|
+
- **[NEW]** Add ability to skip mongo model init in CLI env.
|
|
415
|
+
- **[NEW]** Now each mongo connection on CLI have own name and inslude command name there too (`getMongoConnectionName` in command).
|
|
319
416
|
|
|
320
|
-
|
|
321
|
-
[FIX] fix custom errors
|
|
417
|
+
---
|
|
322
418
|
|
|
323
|
-
|
|
419
|
+
## [5.0.0-beta.1]
|
|
324
420
|
|
|
325
|
-
[UPDATE]
|
|
326
|
-
[
|
|
421
|
+
- **[UPDATE]** Update deps.
|
|
422
|
+
- **[BREAKING]** `vitest` v3 <https://vitest.dev/guide/migration.html>.
|
|
327
423
|
|
|
328
|
-
|
|
424
|
+
---
|
|
329
425
|
|
|
330
|
-
[
|
|
331
|
-
[NEW] updates tests to have own namespace on redis
|
|
426
|
+
## [5.0.0-alpha.26]
|
|
332
427
|
|
|
333
|
-
|
|
428
|
+
- **[UPDATE]** Update deps.
|
|
429
|
+
- **[UPDATE]** New commands view in CLI.
|
|
334
430
|
|
|
335
|
-
|
|
431
|
+
---
|
|
336
432
|
|
|
337
|
-
|
|
433
|
+
## [5.0.0-alpha.24]
|
|
338
434
|
|
|
339
|
-
[UPDATE]
|
|
435
|
+
- **[UPDATE]** Update deps.
|
|
436
|
+
- **[BREAKING]** `i18next` v24 <https://www.i18next.com/misc/migration-guide#v23.x.x-to-v24.0.0>.
|
|
340
437
|
|
|
341
|
-
|
|
438
|
+
---
|
|
342
439
|
|
|
343
|
-
[
|
|
344
|
-
[UPDATE] change default branch to 'main'
|
|
440
|
+
## [5.0.0-alpha.23]
|
|
345
441
|
|
|
346
|
-
|
|
442
|
+
- **[UPDATE]** Update deps.
|
|
347
443
|
|
|
348
|
-
|
|
444
|
+
---
|
|
349
445
|
|
|
350
|
-
|
|
446
|
+
## [5.0.0-alpha.22]
|
|
351
447
|
|
|
352
|
-
[UPDATE]
|
|
353
|
-
[FIX]
|
|
448
|
+
- **[UPDATE]** Update deps.
|
|
449
|
+
- **[FIX]** Fix optional routing parameters.
|
|
354
450
|
|
|
355
|
-
|
|
451
|
+
---
|
|
356
452
|
|
|
357
|
-
[
|
|
358
|
-
[UPDATE] minimum node version 16
|
|
453
|
+
## [5.0.0-alpha.21]
|
|
359
454
|
|
|
360
|
-
|
|
455
|
+
- **[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>.
|
|
456
|
+
- **[BREAKING]** As part of express 5 migration `_` in rotes (middlewares) should have perameter. please replace `_` to `*splat`.
|
|
457
|
+
- **[UPDATE]** Update deps.
|
|
458
|
+
- **[UPDATE]** Mailer uses `await import()` for startup speedup.
|
|
361
459
|
|
|
362
|
-
|
|
363
|
-
[UPDATE] update deps
|
|
460
|
+
---
|
|
364
461
|
|
|
365
|
-
|
|
462
|
+
## [5.0.0-alpha.20]
|
|
366
463
|
|
|
367
|
-
[UPDATE]
|
|
464
|
+
- **[UPDATE]** Update deps.
|
|
465
|
+
- **[UPDATE]** `#realLogger` do not throw error in a scecific cases (`model.toJSON({virtual:true})`).
|
|
368
466
|
|
|
369
|
-
|
|
467
|
+
---
|
|
370
468
|
|
|
371
|
-
[
|
|
372
|
-
[UPDATE] update deps
|
|
469
|
+
## [5.0.0-alpha.19]
|
|
373
470
|
|
|
374
|
-
|
|
471
|
+
- **[NEW]** Added `modelSchemaOptions` for models.
|
|
375
472
|
|
|
376
|
-
|
|
473
|
+
---
|
|
377
474
|
|
|
378
|
-
|
|
475
|
+
## [5.0.0-alpha.18]
|
|
379
476
|
|
|
380
|
-
[
|
|
381
|
-
[
|
|
382
|
-
[NEW] config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was)
|
|
477
|
+
- **[BREAKING]** Default auth response changed to be unified. `{token, user}` => `{data:{token, user}}`.
|
|
478
|
+
- **[UPDATE]** `RateLimiter` updae key generation.
|
|
383
479
|
|
|
384
|
-
|
|
480
|
+
---
|
|
385
481
|
|
|
386
|
-
[
|
|
482
|
+
## [5.0.0-alpha.17]
|
|
387
483
|
|
|
388
|
-
|
|
484
|
+
- **[NEW]** `generateRandomBytes` command.
|
|
485
|
+
- **[UPDATE]** Update deps.
|
|
389
486
|
|
|
390
|
-
|
|
487
|
+
---
|
|
391
488
|
|
|
392
|
-
|
|
489
|
+
## [5.0.0-alpha.16]
|
|
393
490
|
|
|
394
|
-
[UPDATE]
|
|
395
|
-
[
|
|
491
|
+
- **[UPDATE]** No warning of direct usage `body` and `query`.
|
|
492
|
+
- **[UPDATE]** Update deps.
|
|
396
493
|
|
|
397
|
-
|
|
494
|
+
---
|
|
398
495
|
|
|
399
|
-
[
|
|
496
|
+
## [5.0.0-alpha.15]
|
|
400
497
|
|
|
401
|
-
|
|
498
|
+
- **[BUG]** Fix bug with pagination.
|
|
499
|
+
- **[UPDATE]** Update deps.
|
|
402
500
|
|
|
403
|
-
|
|
501
|
+
---
|
|
404
502
|
|
|
405
|
-
|
|
503
|
+
## [5.0.0-alpha.14]
|
|
406
504
|
|
|
407
|
-
[
|
|
505
|
+
- **[NEW]** Add types for `Abstract` model (wip).
|
|
408
506
|
|
|
409
|
-
|
|
507
|
+
---
|
|
410
508
|
|
|
411
|
-
[
|
|
509
|
+
## [5.0.0-alpha.13]
|
|
412
510
|
|
|
413
|
-
|
|
511
|
+
- **[UPDATE]** Update deps.
|
|
512
|
+
- **[UPDATE]** Update `i18n` internal implementation.
|
|
513
|
+
- **[CHANGE]** Disable https server view.
|
|
414
514
|
|
|
415
|
-
|
|
515
|
+
---
|
|
416
516
|
|
|
417
|
-
|
|
517
|
+
## [5.0.0-alpha.12]
|
|
418
518
|
|
|
419
|
-
[UPDATE]
|
|
420
|
-
[UPDATE] getUserByTokens more logs
|
|
519
|
+
- **[UPDATE]** Update deps.
|
|
421
520
|
|
|
422
|
-
|
|
521
|
+
---
|
|
423
522
|
|
|
424
|
-
|
|
425
|
-
Notable changes from migration
|
|
426
|
-
Removed `execPopulate()`[link](https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate)
|
|
523
|
+
## [5.0.0-alpha.11]
|
|
427
524
|
|
|
428
|
-
|
|
429
|
-
// Document#populate() now returns a promise and is now no longer chainable.
|
|
525
|
+
- **[UPDATE]** Update deps.
|
|
430
526
|
|
|
431
|
-
|
|
432
|
-
await doc.populate('path1').populate('path2').execPopulate();
|
|
433
|
-
// with
|
|
434
|
-
await doc.populate(['path1', 'path2']);
|
|
435
|
-
//Replace
|
|
436
|
-
await doc
|
|
437
|
-
.populate('path1', 'select1')
|
|
438
|
-
.populate('path2', 'select2')
|
|
439
|
-
.execPopulate();
|
|
440
|
-
// with
|
|
441
|
-
await doc.populate([
|
|
442
|
-
{ path: 'path1', select: 'select1' },
|
|
443
|
-
{ path: 'path2', select: 'select2' },
|
|
444
|
-
]);
|
|
445
|
-
```
|
|
527
|
+
---
|
|
446
528
|
|
|
447
|
-
[
|
|
448
|
-
[REMOVED] removed deprecated someSecretSalt() on user model (use this.saltSecret instead)
|
|
449
|
-
[REMOVED] removed deprecated validate() on abstract controller and as result validator dependency. Use request validators instead
|
|
450
|
-
[REMOVED] removed deprecated isUseControllerNameForRouting() on abstract controller. Use getExpressPath() instead
|
|
451
|
-
[REMOVED] removed deprecated Base.loadFilesWithInheritance please use getFilesPathWithInheritance that produce almost the same output
|
|
452
|
-
[BREAKING] Removed "success" field on Auth contreoller. Please use http status instead
|
|
453
|
-
[BREAKING] Auth controller - "error" error responce renamed to "message"
|
|
529
|
+
## [5.0.0-alpha.10]
|
|
454
530
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
error: 'Some error';
|
|
459
|
-
}
|
|
460
|
-
// After
|
|
461
|
-
{
|
|
462
|
-
message: 'Some error';
|
|
463
|
-
}
|
|
464
|
-
```
|
|
531
|
+
- **[UPDATE]** Update deps.
|
|
532
|
+
- **[NEW]** `IpDetector` middleware that support detecting proxy and `X-Forwarded-For` header.
|
|
533
|
+
- **[BREAKING]** `RateLimiter` now need to have `IpDetector` middleware before.
|
|
465
534
|
|
|
466
|
-
|
|
467
|
-
[UPDATE] winston console transport now using timestapms
|
|
468
|
-
[UPDATE] PrepareAppInfo middleware now a global one. Do not need to include it on every controller
|
|
469
|
-
[NEW] Request anso works with req.query, but req.body have bigger priority
|
|
535
|
+
---
|
|
470
536
|
|
|
471
|
-
|
|
537
|
+
## [5.0.0-alpha.9]
|
|
472
538
|
|
|
473
|
-
[UPDATE]
|
|
474
|
-
[
|
|
475
|
-
[
|
|
539
|
+
- **[UPDATE]** Update deps.
|
|
540
|
+
- **[BREAKING]** Removing `staticFiles` middleware as it not used in projects anymore. Docs with nginx config will be provided.
|
|
541
|
+
- **[BREAKING]** Remove default `AUTH_SALT`. It should be provided on a app level now.
|
|
542
|
+
- **[BREAKING]** Vitest 2.0.0 <https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0>.
|
|
476
543
|
|
|
477
|
-
|
|
544
|
+
---
|
|
478
545
|
|
|
479
|
-
[
|
|
480
|
-
[NEW] new env variable LOGGER_SENTRY_LEVEL (default=info)
|
|
481
|
-
[NEW] new env variable LOGGER_CONSOLE_ENABLE (default=true)
|
|
482
|
-
[BREAKING] on translation we changed i18next. Please convert files if you have plurals inside it https://i18next.github.io/i18next-v4-format-converter-web/
|
|
546
|
+
## [5.0.0-alpha.8]
|
|
483
547
|
|
|
484
|
-
|
|
548
|
+
- **[UPDATE]** Replace `dotenv` with `loadEnvFile`.
|
|
549
|
+
- **[UPDATE]** Replace `nodemon` with `node --watch` (dev only).
|
|
550
|
+
- **[BREAKING]** Minimum node version is 20.12 as for now (`process.loadEnvFile`).
|
|
485
551
|
|
|
486
|
-
|
|
487
|
-
[NEW] begin adding type script definitions
|
|
552
|
+
---
|
|
488
553
|
|
|
489
|
-
|
|
554
|
+
## [5.0.0-alpha.7]
|
|
490
555
|
|
|
491
|
-
[UPDATE] update
|
|
492
|
-
[UPDATE] update tests timeout
|
|
556
|
+
- **[UPDATE]** Deps update.
|
|
493
557
|
|
|
494
|
-
|
|
558
|
+
---
|
|
495
559
|
|
|
496
|
-
[
|
|
497
|
-
[NEW] Ability to configure Auth flow with 'isAuthWithVefificationFlow' option.
|
|
498
|
-
[BREAKING] Register not return status 201 instead of 200
|
|
560
|
+
## [5.0.0-alpha.6]
|
|
499
561
|
|
|
500
|
-
|
|
562
|
+
- **[UPDATE]** Update internal documentation (`jsdoc`, `d.ts`).
|
|
501
563
|
|
|
502
|
-
|
|
564
|
+
---
|
|
503
565
|
|
|
504
|
-
|
|
505
|
-
const SequenceModel = this.app.getModel('Sequence');
|
|
506
|
-
// will be 1
|
|
507
|
-
const someTypeSequence = await SequenceModel.getSequence('someType');
|
|
508
|
-
// will be 2
|
|
509
|
-
const someTypeSequence2 = await SequenceModel.getSequence('someType');
|
|
510
|
-
// will be 1 as type is another
|
|
511
|
-
const someAnotherTypeSequence =
|
|
512
|
-
await SequenceModel.getSequence('someAnotherType');
|
|
513
|
-
```
|
|
566
|
+
## [5.0.0-alpha.5]
|
|
514
567
|
|
|
515
|
-
|
|
568
|
+
- **[UPDATE]** More verbose errors for rapsing body request.
|
|
569
|
+
- **[UPDATE]** Deps update.
|
|
516
570
|
|
|
517
|
-
|
|
571
|
+
---
|
|
518
572
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
[
|
|
522
|
-
|
|
523
|
-
|
|
573
|
+
## [5.0.0-alpha.4]
|
|
574
|
+
|
|
575
|
+
- **[UPDATE]** Update `rate-limiter-flexible` to v5.
|
|
576
|
+
- **[CHANGE]** Cache update `redis.setEX` to `redis.set(..,..,{EX:xx})` as `setEX` deprecated.
|
|
577
|
+
|
|
578
|
+
---
|
|
579
|
+
|
|
580
|
+
## [5.0.0-alpha.3]
|
|
581
|
+
|
|
582
|
+
- **[UPDATE]** Deps update.
|
|
583
|
+
- **[FIX]** `Migration` commands apply.
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
## [5.0.0-alpha.2]
|
|
588
|
+
|
|
589
|
+
- **[UPDATE]** Deps update.
|
|
590
|
+
|
|
591
|
+
---
|
|
592
|
+
|
|
593
|
+
## [5.0.0-alpha.1]
|
|
594
|
+
|
|
595
|
+
- **[BREAKING]** Vitest 1.0.0 <https://vitest.dev/guide/migration.html#migrating-from-vitest-0-34-6>.
|
|
596
|
+
- **[BREAKING]** ESM only. No more commonJS. That help to fix a lot of bugs with tests and provides better development expirience.
|
|
597
|
+
- **[BREAKING]** Mongoose v8. <https://mongoosejs.com/docs/migrating_to_8.html>.
|
|
598
|
+
|
|
599
|
+
---
|
|
600
|
+
|
|
601
|
+
## [4.11.4]
|
|
602
|
+
|
|
603
|
+
- **[UPDATE]** Deps update.
|
|
604
|
+
|
|
605
|
+
---
|
|
606
|
+
|
|
607
|
+
## [4.11.3]
|
|
608
|
+
|
|
609
|
+
- **[UPDATE]** Deps update.
|
|
610
|
+
|
|
611
|
+
---
|
|
612
|
+
|
|
613
|
+
## [4.11.2]
|
|
614
|
+
|
|
615
|
+
- **[FIX]** `Cors` middleware return proper headers on multidomains.
|
|
616
|
+
|
|
617
|
+
---
|
|
618
|
+
|
|
619
|
+
## [4.11.1]
|
|
620
|
+
|
|
621
|
+
- **[FIX]** `Cors` middleware return proper status.
|
|
622
|
+
|
|
623
|
+
---
|
|
624
|
+
|
|
625
|
+
## [4.11.0]
|
|
626
|
+
|
|
627
|
+
- **[NEW]** `Cors` middleware.
|
|
628
|
+
- **[BREAKING]** This is a potential breaking change as we switched from `cors` external package to internal middleware. From API nothing was changed. This is a potential breaking changes, but it should keep working as it.
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
## [4.10.0]
|
|
633
|
+
|
|
634
|
+
- **[UPDATE]** Deps update.
|
|
635
|
+
- **[NEW]** Static file middleware.
|
|
636
|
+
- **[BREAKING]** This is a potential breaking change as we switched from `express.static` to internal middleware that provide less features but faster. From API nothing was changed.
|
|
637
|
+
|
|
638
|
+
---
|
|
639
|
+
|
|
640
|
+
## [4.9.2]
|
|
641
|
+
|
|
642
|
+
- **[UPDATE]** Deps update.
|
|
643
|
+
|
|
644
|
+
---
|
|
645
|
+
|
|
646
|
+
## [4.9.1]
|
|
647
|
+
|
|
648
|
+
- **[UPDATE]** All responses from framework now happens in JSON. Previouls sometime aswers was in plan text.
|
|
649
|
+
|
|
650
|
+
---
|
|
651
|
+
|
|
652
|
+
## [4.9.0]
|
|
653
|
+
|
|
654
|
+
- **[BREAKING]** We are separated testsing to setyp and global setup. Global setup now care of mongo to make sure that only on mongodb memory server is spinned up. If you are using `vitest` please add `"globalSetup": "node_modules/@adaptivestone/framework/tests/globalSetupVitest"` to your vitest config.
|
|
655
|
+
|
|
656
|
+
---
|
|
657
|
+
|
|
658
|
+
## [4.8.3]
|
|
659
|
+
|
|
660
|
+
- **[UPDATE]** Fix problme with fat start and closing connections after.
|
|
661
|
+
|
|
662
|
+
---
|
|
663
|
+
|
|
664
|
+
## [4.8.2]
|
|
665
|
+
|
|
666
|
+
- **[UPDATE]** CLI - disable mongoose index creation.
|
|
667
|
+
|
|
668
|
+
---
|
|
669
|
+
|
|
670
|
+
## [4.8.1]
|
|
671
|
+
|
|
672
|
+
- **[UPDATE]** Model inited on server inited.
|
|
673
|
+
- **[NEW]** New options to skip model init `isSkipModelInit`.
|
|
674
|
+
- **[NEW]** New method server method `initAllModels()`.
|
|
675
|
+
|
|
676
|
+
---
|
|
677
|
+
|
|
678
|
+
## [4.8.0]
|
|
679
|
+
|
|
680
|
+
- **[BREAKING]** Minimum node js version id 18.17.0 now.
|
|
681
|
+
- **[BREAKING]** Removed `getFileWithExtendingInhirence`. This was internal method and not suppose to use externally.
|
|
682
|
+
- **[UPDATE]** Update `Base.getFilesPathWithInheritance` to use `fs.read` dir resursive option.
|
|
683
|
+
- **[UPDATE]** Update cache (refactor+tets).
|
|
684
|
+
- **[UPDATE]** Update config and model inits.
|
|
685
|
+
|
|
686
|
+
---
|
|
687
|
+
|
|
688
|
+
## [4.7.0]
|
|
689
|
+
|
|
690
|
+
- **[UPDATE]** Update logger init (refactor).
|
|
691
|
+
- **[UPDATE]** Updated deps.
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
## [4.6.0]
|
|
696
|
+
|
|
697
|
+
- **[NEW]** Migrated from JEST to `vitest`.
|
|
698
|
+
|
|
699
|
+
---
|
|
700
|
+
|
|
701
|
+
## [4.5.0]
|
|
702
|
+
|
|
703
|
+
- **[NEW]** Now `getSuper()` available as a method on mongoose models.
|
|
704
|
+
- **[UPDATE]** Update `rate-limiter-flexible` to v3.
|
|
705
|
+
- **[UPDATE]** Update test runner to suport ESM. In case problem with test please copy `babel.config.js` from framework to your project directory.
|
|
706
|
+
|
|
707
|
+
---
|
|
708
|
+
|
|
709
|
+
## [4.4.0]
|
|
710
|
+
|
|
711
|
+
- **[NEW]** New method to grab url of server it testing enviroument `global.server.testingGetUrl("/some/endpoint")`.
|
|
712
|
+
|
|
713
|
+
---
|
|
714
|
+
|
|
715
|
+
## [4.3.1]
|
|
716
|
+
|
|
717
|
+
- **[UPDATE]** `Yup` file validator update. As formidable now return all fields as an array.
|
|
718
|
+
|
|
719
|
+
---
|
|
720
|
+
|
|
721
|
+
## [4.3.0]
|
|
722
|
+
|
|
723
|
+
- **[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.
|
|
724
|
+
|
|
725
|
+
---
|
|
726
|
+
|
|
727
|
+
## [4.2.0]
|
|
728
|
+
|
|
729
|
+
- **[UPDATE]** Updated deps.
|
|
730
|
+
- **[NEW]** `CreateUser` cli command. Ability to update user by email or id.
|
|
731
|
+
|
|
732
|
+
---
|
|
733
|
+
|
|
734
|
+
## [4.1.0]
|
|
735
|
+
|
|
736
|
+
- **[UPDATE]** Updated deps.
|
|
737
|
+
- **[NEW]** Email - Ability to render templae to string for future usage.
|
|
738
|
+
|
|
739
|
+
---
|
|
740
|
+
|
|
741
|
+
## [4.0.0]
|
|
742
|
+
|
|
743
|
+
- **[BREAKING]** Change `bcrypt` encryption with `scrypt`.
|
|
744
|
+
- **[BREAKING]** Change internal express parser to `formidable` parser. Affect you if external `formidable` is used.
|
|
745
|
+
- **[BREAKING]** Should not affect any user. Changed `email-templates` module to internal implementation. Idea to keep dependensy list smaller.
|
|
746
|
+
- **[BREAKING]** Change `i18n` middleware to internal one. Nothing should be affected.
|
|
747
|
+
- **[BREAKING]** Now validation of request splitted between `request` and `query`.
|
|
748
|
+
- **[BREAKING]** `supportedLngs` option added to `i18n` config.
|
|
749
|
+
- **[BREAKING]** Email inliner now looking for `src/services/messaging/email/resources` folder instead of `build` folder.
|
|
750
|
+
- **[BREAKING]** Mongoose v7. <https://mongoosejs.com/docs/migrating_to_7.html>.
|
|
751
|
+
- **[BREAKING]** `Yup` validation was updated to v1 <https://github.com/jquense/yup/issues/1906>.
|
|
752
|
+
- **[DEPRECATED]** `getExpress` path is deprecated. Renamed to `getHttpPath`.
|
|
753
|
+
- **[NEW]** Pagination middleware.
|
|
754
|
+
- **[NEW]** `requestLogger` middleware. Migrated from core server to be an middleware.
|
|
755
|
+
- **[NEW]** `CreateUser` command.
|
|
756
|
+
- **[NEW]** Custom `yup` validator for validate File requests.
|
|
757
|
+
- **[UPDATE]** Updated deps.
|
|
758
|
+
- **[UPDATE]** `openApi` generator support files.
|
|
759
|
+
- **[UPDATE]** Updated `18n` middleware. Introduced internal cachce. Speed up of request processing up to 100%.
|
|
760
|
+
- **[UPDATE]** Cache drivers to JSON support `BigInt` numbers.
|
|
761
|
+
|
|
762
|
+
---
|
|
763
|
+
|
|
764
|
+
## [3.4.3]
|
|
765
|
+
|
|
766
|
+
- **[UPDATE]** Updated deps.
|
|
767
|
+
- **[FIX]** Fix tests for redis.
|
|
768
|
+
- **[FIX]** Support in tests `TEST_FOLDER_EMAILS`.
|
|
769
|
+
|
|
770
|
+
---
|
|
771
|
+
|
|
772
|
+
## [3.4.2]
|
|
773
|
+
|
|
774
|
+
- **[UPDATE]** Updated deps.
|
|
775
|
+
- **[FIX]** Fix documentation generation.
|
|
776
|
+
|
|
777
|
+
---
|
|
778
|
+
|
|
779
|
+
## [3.4.1]
|
|
780
|
+
|
|
781
|
+
- **[FIX]** Fix documentation generation.
|
|
782
|
+
|
|
783
|
+
---
|
|
784
|
+
|
|
785
|
+
## [3.4.0]
|
|
786
|
+
|
|
787
|
+
- **[NEW]** Now we pass `req` to validation and casting as a second parameter. This done mostly for custom validators.
|
|
788
|
+
|
|
789
|
+
---
|
|
790
|
+
|
|
791
|
+
## [3.3.0]
|
|
792
|
+
|
|
793
|
+
- **[NEW]** New command `SyncIndexes` to sync indexes for mongodb <https://framework.adaptivestone.com/docs/cli#syncindexes>.
|
|
794
|
+
- **[UPDATE]** Updated deps.
|
|
795
|
+
- **[FIX]** Fix documentation generation.
|
|
796
|
+
|
|
797
|
+
---
|
|
798
|
+
|
|
799
|
+
## [3.2.2]
|
|
800
|
+
|
|
801
|
+
- **[UPDATE]** Add options for `i18n` to config.
|
|
802
|
+
- **[CHANGE]** By default `i18n` not writing missed keys. Can be enabled via config.
|
|
803
|
+
|
|
804
|
+
---
|
|
805
|
+
|
|
806
|
+
## [3.2.1]
|
|
807
|
+
|
|
808
|
+
- **[UPDATE]** Updated deps.
|
|
809
|
+
- **[FIX]** Fix documentation generation.
|
|
810
|
+
|
|
811
|
+
---
|
|
812
|
+
|
|
813
|
+
## [3.2.0]
|
|
814
|
+
|
|
815
|
+
- **[UPDATE]** Updated deps.
|
|
816
|
+
- **[NEW]** `cache.removeKey(key)` - function to remove key from cache.
|
|
817
|
+
|
|
818
|
+
---
|
|
819
|
+
|
|
820
|
+
## [3.1.1]
|
|
821
|
+
|
|
822
|
+
- **[UPDATE]** Updated deps.
|
|
823
|
+
- **[FIX]** Fix cache error handling.
|
|
824
|
+
|
|
825
|
+
---
|
|
826
|
+
|
|
827
|
+
## [3.1.0]
|
|
828
|
+
|
|
829
|
+
- **[NEW]** New comand to generate open API documentation (wip).
|
|
830
|
+
- **[NEW]** Coverage report.
|
|
831
|
+
- **[UPDATE]** Updated deps.
|
|
832
|
+
|
|
833
|
+
---
|
|
834
|
+
|
|
835
|
+
## [3.0.23]
|
|
836
|
+
|
|
837
|
+
- **[UPDATE]** Updated deps.
|
|
838
|
+
- **[FIX]** Fix custom errors.
|
|
839
|
+
|
|
840
|
+
---
|
|
841
|
+
|
|
842
|
+
## [3.0.22]
|
|
843
|
+
|
|
844
|
+
- **[UPDATE]** Updated deps.
|
|
845
|
+
- **[UPDATE]** Cast function now can be ASYNC too.
|
|
846
|
+
|
|
847
|
+
---
|
|
848
|
+
|
|
849
|
+
## [3.0.21]
|
|
850
|
+
|
|
851
|
+
- **[UPDATE]** Updated redis to v4.
|
|
852
|
+
- **[NEW]** Updates tests to have own namespace on redis.
|
|
853
|
+
|
|
854
|
+
---
|
|
855
|
+
|
|
856
|
+
## [3.0.20]
|
|
857
|
+
|
|
858
|
+
- **[UPDATE]** Update deps.
|
|
859
|
+
|
|
860
|
+
---
|
|
861
|
+
|
|
862
|
+
## [3.0.19]
|
|
863
|
+
|
|
864
|
+
- **[UPDATE]** Update deps.
|
|
865
|
+
|
|
866
|
+
---
|
|
867
|
+
|
|
868
|
+
## [3.0.18]
|
|
869
|
+
|
|
870
|
+
- **[UPDATE]** Update deps.
|
|
871
|
+
- **[UPDATE]** Change default branch to `main`.
|
|
872
|
+
|
|
873
|
+
---
|
|
874
|
+
|
|
875
|
+
## [3.0.17]
|
|
876
|
+
|
|
877
|
+
- **[UPDATE]** Update deps.
|
|
878
|
+
|
|
879
|
+
---
|
|
880
|
+
|
|
881
|
+
## [3.0.16]
|
|
882
|
+
|
|
883
|
+
- **[UPDATE]** Update deps.
|
|
884
|
+
- **[FIX]** Fix bug with route level middleware.
|
|
885
|
+
|
|
886
|
+
---
|
|
887
|
+
|
|
888
|
+
## [3.0.15]
|
|
889
|
+
|
|
890
|
+
- **[UPDATE]** Update deps.
|
|
891
|
+
- **[UPDATE]** Minimum node version 16.
|
|
892
|
+
|
|
893
|
+
---
|
|
894
|
+
|
|
895
|
+
## [3.0.14]
|
|
896
|
+
|
|
897
|
+
- **[NEW]** Now possible to show all errors during validation (default one) by parameter `controllerValidationAbortEarly`.
|
|
898
|
+
- **[UPDATE]** Update deps.
|
|
899
|
+
|
|
900
|
+
---
|
|
901
|
+
|
|
902
|
+
## [3.0.13]
|
|
903
|
+
|
|
904
|
+
- **[UPDATE]** Bug fix with "mergeParams".
|
|
905
|
+
|
|
906
|
+
---
|
|
907
|
+
|
|
908
|
+
## [3.0.12]
|
|
909
|
+
|
|
910
|
+
- **[NEW]** Ability to pass "mergeParams" options to express router.
|
|
911
|
+
- **[UPDATE]** Update deps.
|
|
912
|
+
|
|
913
|
+
---
|
|
914
|
+
|
|
915
|
+
## [3.0.11]
|
|
916
|
+
|
|
917
|
+
- **[UPDATE]** More verbose email error.
|
|
918
|
+
|
|
919
|
+
---
|
|
920
|
+
|
|
921
|
+
## [3.0.10]
|
|
922
|
+
|
|
923
|
+
- **[UPDATE]** Update deps.
|
|
924
|
+
- **[CHANGE]** Tests `afterAll` not using timeout anymore (conflict with jest 28-alpha).
|
|
925
|
+
- **[NEW]** Config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was).
|
|
926
|
+
|
|
927
|
+
---
|
|
928
|
+
|
|
929
|
+
## [3.0.9]
|
|
930
|
+
|
|
931
|
+
- **[UPDATE]** Update deps.
|
|
932
|
+
|
|
933
|
+
---
|
|
934
|
+
|
|
935
|
+
## [3.0.8]
|
|
936
|
+
|
|
937
|
+
- **[UPDATE]** Update deps.
|
|
938
|
+
|
|
939
|
+
---
|
|
940
|
+
|
|
941
|
+
## [3.0.7]
|
|
942
|
+
|
|
943
|
+
- **[UPDATE]** Update deps.
|
|
944
|
+
- **[CHANGE]** Change default `getConfig` method.
|
|
945
|
+
|
|
946
|
+
---
|
|
947
|
+
|
|
948
|
+
## [3.0.6]
|
|
949
|
+
|
|
950
|
+
- **[UPDATE]** Update deps.
|
|
951
|
+
|
|
952
|
+
---
|
|
953
|
+
|
|
954
|
+
## [3.0.5]
|
|
955
|
+
|
|
956
|
+
- **[UPDATE]** Update deps.
|
|
957
|
+
|
|
958
|
+
---
|
|
959
|
+
|
|
960
|
+
## [3.0.4]
|
|
961
|
+
|
|
962
|
+
- **[UPDATE]** Fix bug with app shutdown.
|
|
963
|
+
|
|
964
|
+
---
|
|
965
|
+
|
|
966
|
+
## [3.0.3]
|
|
967
|
+
|
|
968
|
+
- **[UPDATE]** Update deps.
|
|
969
|
+
|
|
970
|
+
---
|
|
971
|
+
|
|
972
|
+
## [3.0.2]
|
|
973
|
+
|
|
974
|
+
- **[UPDATE]** Update deps.
|
|
975
|
+
|
|
976
|
+
---
|
|
977
|
+
|
|
978
|
+
## [3.0.1]
|
|
979
|
+
|
|
980
|
+
- **[UPDATE]** Update deps.
|
|
981
|
+
- **[UPDATE]** `getUserByTokens` more logs.
|
|
982
|
+
|
|
983
|
+
---
|
|
984
|
+
|
|
985
|
+
## [3.0.0]
|
|
986
|
+
|
|
987
|
+
- **[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).
|
|
988
|
+
Notable changes from migration
|
|
989
|
+
Removed `execPopulate()`[link](https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate)
|
|
990
|
+
```js
|
|
991
|
+
// Document#populate() now returns a promise and is now no longer chainable.
|
|
992
|
+
//Replace
|
|
993
|
+
await doc.populate('path1').populate('path2').execPopulate();
|
|
994
|
+
// with
|
|
995
|
+
await doc.populate(['path1', 'path2']);
|
|
996
|
+
//Replace
|
|
997
|
+
await doc
|
|
998
|
+
.populate('path1', 'select1')
|
|
999
|
+
.populate('path2', 'select2')
|
|
1000
|
+
.execPopulate();
|
|
1001
|
+
// with
|
|
1002
|
+
await doc.populate([
|
|
1003
|
+
{ path: 'path1', select: 'select1' },
|
|
1004
|
+
{ path: 'path2', select: 'select2' },
|
|
1005
|
+
]);
|
|
1006
|
+
```
|
|
1007
|
+
- **[REMOVED]** Removed deprecated router handler string not allowed anymore. Use functions by itself.
|
|
1008
|
+
- **[REMOVED]** Removed deprecated `someSecretSalt()` on user model (use `this.saltSecret` instead).
|
|
1009
|
+
- **[REMOVED]** Removed deprecated `validate()` on abstract controller and as result validator dependency. Use request validators instead.
|
|
1010
|
+
- **[REMOVED]** Removed deprecated `isUseControllerNameForRouting()` on abstract controller. Use `getExpressPath()` instead.
|
|
1011
|
+
- **[REMOVED]** Removed deprecated `Base.loadFilesWithInheritance` please use `getFilesPathWithInheritance` that produce almost the same output.
|
|
1012
|
+
- **[BREAKING]** Removed "success" field on Auth contreoller. Please use http status instead.
|
|
1013
|
+
- **[BREAKING]** Auth controller - "error" error response renamed to "message".
|
|
1014
|
+
```js
|
|
1015
|
+
// Before
|
|
1016
|
+
{
|
|
1017
|
+
error: 'Some error';
|
|
1018
|
+
}
|
|
1019
|
+
// After
|
|
1020
|
+
{
|
|
1021
|
+
message: 'Some error';
|
|
1022
|
+
}
|
|
1023
|
+
```
|
|
1024
|
+
- **[UPDATE]** Update deps.
|
|
1025
|
+
- **[UPDATE]** Winston console transport now using timestapms.
|
|
1026
|
+
- **[UPDATE]** `PrepareAppInfo` middleware now a global one. Do not need to include it on every controller.
|
|
1027
|
+
- **[NEW]** Request also works with `req.query`, but `req.body` have bigger priority.
|
|
1028
|
+
|
|
1029
|
+
---
|
|
1030
|
+
|
|
1031
|
+
## [2.18.0]
|
|
1032
|
+
|
|
1033
|
+
- **[UPDATE]** Update deps.
|
|
1034
|
+
- **[UPDATE]** Replace `body-parser` with `express.json`.
|
|
1035
|
+
- **[NEW]** Role middleware.
|
|
1036
|
+
|
|
1037
|
+
---
|
|
1038
|
+
|
|
1039
|
+
## [2.17.0]
|
|
1040
|
+
|
|
1041
|
+
- **[UPDATE]** Update deps.
|
|
1042
|
+
- **[NEW]** New env variable `LOGGER_SENTRY_LEVEL` (default=`info`).
|
|
1043
|
+
- **[NEW]** New env variable `LOGGER_CONSOLE_ENABLE` (default=`true`).
|
|
1044
|
+
- **[BREAKING]** On translation we changed `i18next`. Please convert files if you have plurals inside it <https://i18next.github.io/i18next-v4-format-converter-web/>.
|
|
1045
|
+
|
|
1046
|
+
---
|
|
1047
|
+
|
|
1048
|
+
## [2.16.0]
|
|
1049
|
+
|
|
1050
|
+
- **[UPDATE]** Update deps.
|
|
1051
|
+
- **[NEW]** Begin adding type script definitions.
|
|
1052
|
+
|
|
1053
|
+
---
|
|
1054
|
+
|
|
1055
|
+
## [2.15.4]
|
|
1056
|
+
|
|
1057
|
+
- **[UPDATE]** Update deps.
|
|
1058
|
+
- **[UPDATE]** Update tests timeout.
|
|
1059
|
+
|
|
1060
|
+
---
|
|
1061
|
+
|
|
1062
|
+
## [2.15.0]
|
|
1063
|
+
|
|
1064
|
+
- **[UPDATE]** Update deps.
|
|
1065
|
+
- **[NEW]** Ability to configure Auth flow with `isAuthWithVefificationFlow` option.
|
|
1066
|
+
- **[BREAKING]** Register not return status 201 instead of 200.
|
|
1067
|
+
|
|
1068
|
+
---
|
|
1069
|
+
|
|
1070
|
+
## [2.14.0]
|
|
1071
|
+
|
|
1072
|
+
- **[NEW]** Add `Sequence`. It provide ability to easily generate sequences for given types. It save to use on distributed environments.
|
|
1073
|
+
```javascript
|
|
1074
|
+
const SequenceModel = this.app.getModel('Sequence');
|
|
1075
|
+
// will be 1
|
|
1076
|
+
const someTypeSequence = await SequenceModel.getSequence('someType');
|
|
1077
|
+
// will be 2
|
|
1078
|
+
const someTypeSequence2 = await SequenceModel.getSequence('someType');
|
|
1079
|
+
// will be 1 as type is another
|
|
1080
|
+
const someAnotherTypeSequence =
|
|
1081
|
+
await SequenceModel.getSequence('someAnotherType');
|
|
1082
|
+
```
|
|
1083
|
+
|
|
1084
|
+
---
|
|
1085
|
+
|
|
1086
|
+
## [2.13.1]
|
|
1087
|
+
|
|
1088
|
+
- **[FIX]** Fix documentation about not using `req.appInfo.request`, but using `req.body` for `RateLimiter`.
|
|
1089
|
+
|
|
1090
|
+
---
|
|
1091
|
+
|
|
1092
|
+
## [2.13.0]
|
|
1093
|
+
|
|
1094
|
+
- **[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.
|
|
1095
|
+
```javascript
|
|
524
1096
|
static get middleware() {
|
|
525
1097
|
return new Map([
|
|
526
1098
|
['POST/login', [
|
|
@@ -530,16 +1102,16 @@ const someAnotherTypeSequence =
|
|
|
530
1102
|
]]
|
|
531
1103
|
]);
|
|
532
1104
|
}
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
#### 2.12.0
|
|
1105
|
+
```
|
|
536
1106
|
|
|
537
|
-
|
|
538
|
-
[NEW] Rate limited middleware
|
|
1107
|
+
---
|
|
539
1108
|
|
|
540
|
-
|
|
1109
|
+
## [2.12.0]
|
|
541
1110
|
|
|
542
|
-
|
|
1111
|
+
- **[UPDATE]** Update deps.
|
|
1112
|
+
- **[NEW]** Rate limited middleware.
|
|
1113
|
+
As rate limited we using <https://github.com/animir/node-rate-limiter-flexible>
|
|
1114
|
+
```javascript
|
|
543
1115
|
static get middleware() {
|
|
544
1116
|
return new Map([
|
|
545
1117
|
['POST/login', [
|
|
@@ -549,13 +1121,10 @@ As rate limited we using https://github.com/animir/node-rate-limiter-flexible
|
|
|
549
1121
|
]]
|
|
550
1122
|
]);
|
|
551
1123
|
}
|
|
552
|
-
```
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memory' backend activated
|
|
557
|
-
|
|
558
|
-
```javascript
|
|
1124
|
+
```
|
|
1125
|
+
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)
|
|
1126
|
+
Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memory' backend activated
|
|
1127
|
+
```javascript
|
|
559
1128
|
static get middleware() {
|
|
560
1129
|
return new Map([
|
|
561
1130
|
[
|
|
@@ -574,18 +1143,21 @@ Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memo
|
|
|
574
1143
|
],
|
|
575
1144
|
]);
|
|
576
1145
|
}
|
|
577
|
-
```
|
|
1146
|
+
```
|
|
578
1147
|
|
|
579
|
-
|
|
1148
|
+
---
|
|
580
1149
|
|
|
581
|
-
[
|
|
1150
|
+
## [2.11.0]
|
|
582
1151
|
|
|
583
|
-
|
|
1152
|
+
- **[NEW]** Added env variable `HTTP_HOST` for configure host to listen.
|
|
584
1153
|
|
|
585
|
-
|
|
586
|
-
[NEW] ability to pass parameters to middleware
|
|
1154
|
+
---
|
|
587
1155
|
|
|
588
|
-
|
|
1156
|
+
## [2.10.0]
|
|
1157
|
+
|
|
1158
|
+
- **[UPDATE]** Update deps.
|
|
1159
|
+
- **[NEW]** Ability to pass parameters to middleware.
|
|
1160
|
+
```javascript
|
|
589
1161
|
static get middleware() {
|
|
590
1162
|
return new Map([
|
|
591
1163
|
['POST/someUrl', [
|
|
@@ -595,113 +1167,150 @@ Rate limiter have multiple backends (memory, redis and mongo). Buy default 'memo
|
|
|
595
1167
|
]]
|
|
596
1168
|
]);
|
|
597
1169
|
}
|
|
598
|
-
```
|
|
1170
|
+
```
|
|
1171
|
+
All this params goes to constructor as a second paramater.
|
|
1172
|
+
|
|
1173
|
+
---
|
|
1174
|
+
|
|
1175
|
+
## [2.9.2]
|
|
1176
|
+
|
|
1177
|
+
- **[UPDATE]** Update deps.
|
|
1178
|
+
- **[FIX]** Fix auth nick.
|
|
1179
|
+
|
|
1180
|
+
---
|
|
1181
|
+
|
|
1182
|
+
## [2.9.1]
|
|
1183
|
+
|
|
1184
|
+
- **[UPDATE]** Update deps.
|
|
1185
|
+
|
|
1186
|
+
---
|
|
1187
|
+
|
|
1188
|
+
## [2.9.0]
|
|
1189
|
+
|
|
1190
|
+
- **[BREAKING]** Auth controller update.
|
|
1191
|
+
|
|
1192
|
+
---
|
|
1193
|
+
|
|
1194
|
+
## [2.8.3]
|
|
599
1195
|
|
|
600
|
-
|
|
1196
|
+
- **[FIX]** Update recovery email template.
|
|
601
1197
|
|
|
602
|
-
|
|
1198
|
+
---
|
|
603
1199
|
|
|
604
|
-
[
|
|
605
|
-
[FIX] fix auth nick
|
|
1200
|
+
## [2.8.2]
|
|
606
1201
|
|
|
607
|
-
|
|
1202
|
+
- **[FIX]** Update AUTH controller.
|
|
608
1203
|
|
|
609
|
-
|
|
1204
|
+
---
|
|
610
1205
|
|
|
611
|
-
|
|
1206
|
+
## [2.8.1]
|
|
612
1207
|
|
|
613
|
-
[
|
|
1208
|
+
- **[UPDATE]** Update deps.
|
|
1209
|
+
- **[FIX]** Update AUTH controller.
|
|
614
1210
|
|
|
615
|
-
|
|
1211
|
+
---
|
|
616
1212
|
|
|
617
|
-
[
|
|
1213
|
+
## [2.8.0]
|
|
618
1214
|
|
|
619
|
-
|
|
1215
|
+
- **[UPDATE]** Change controllers to reflect latest changes.
|
|
1216
|
+
- **[UPDATE]** Add warning when using `req.body` directly.
|
|
1217
|
+
- **[BREAKING]** Possible breaking. `AsyncFunction` now required for router handler (it always was but without checking of code).
|
|
1218
|
+
- **[DEPRECATE]** Usage of `validator` of controllers.
|
|
1219
|
+
- **[DEPRECATE]** Usage of `isUseControllerNameForRouting` of controllers.
|
|
620
1220
|
|
|
621
|
-
|
|
1221
|
+
---
|
|
622
1222
|
|
|
623
|
-
|
|
1223
|
+
## [2.7.4]
|
|
624
1224
|
|
|
625
|
-
[UPDATE]
|
|
626
|
-
[FIX] update AUTH controller
|
|
1225
|
+
- **[UPDATE]** Update deps.
|
|
627
1226
|
|
|
628
|
-
|
|
1227
|
+
---
|
|
629
1228
|
|
|
630
|
-
[
|
|
631
|
-
[UPDATE] add warning when using 'req.body' directly
|
|
632
|
-
[BREAKING] Possible breaking. AsyncFunction now required for router handler (it always was but without checking of code)
|
|
633
|
-
[DEPRECATE] usage of 'validator' of controllers
|
|
634
|
-
[DEPRECATE] usage of 'isUseControllerNameForRouting' of controllers.
|
|
1229
|
+
## [2.7.3]
|
|
635
1230
|
|
|
636
|
-
|
|
1231
|
+
- **[UPDATE]** Replace `i18next-node-fs-backend` to `i18next-fs-backend` (drop in replacement).
|
|
637
1232
|
|
|
638
|
-
|
|
1233
|
+
---
|
|
639
1234
|
|
|
640
|
-
|
|
1235
|
+
## [2.7.2]
|
|
641
1236
|
|
|
642
|
-
[UPDATE]
|
|
1237
|
+
- **[UPDATE]** Update deps.
|
|
643
1238
|
|
|
644
|
-
|
|
1239
|
+
---
|
|
645
1240
|
|
|
646
|
-
[
|
|
1241
|
+
## [2.7.1]
|
|
647
1242
|
|
|
648
|
-
|
|
1243
|
+
- **[REMOVE]** Remove unused websocket.
|
|
649
1244
|
|
|
650
|
-
|
|
1245
|
+
---
|
|
651
1246
|
|
|
652
|
-
|
|
1247
|
+
## [2.7.0]
|
|
653
1248
|
|
|
654
|
-
[UPDATE]
|
|
1249
|
+
- **[UPDATE]** Change winston sentry transport.
|
|
655
1250
|
|
|
656
|
-
|
|
1251
|
+
---
|
|
657
1252
|
|
|
658
|
-
[
|
|
659
|
-
[UPDATE] optimize deps
|
|
1253
|
+
## [2.6.5]
|
|
660
1254
|
|
|
661
|
-
|
|
1255
|
+
- **[UPDATE]** Update deps.
|
|
1256
|
+
- **[UPDATE]** Optimize deps.
|
|
662
1257
|
|
|
663
|
-
|
|
1258
|
+
---
|
|
664
1259
|
|
|
665
|
-
|
|
1260
|
+
## [2.6.4]
|
|
666
1261
|
|
|
667
|
-
[UPDATE]
|
|
668
|
-
[UPDATE] update handling exceptions loging
|
|
1262
|
+
- **[UPDATE]** Update deps.
|
|
669
1263
|
|
|
670
|
-
|
|
1264
|
+
---
|
|
671
1265
|
|
|
672
|
-
[
|
|
1266
|
+
## [2.6.3]
|
|
673
1267
|
|
|
674
|
-
|
|
1268
|
+
- **[UPDATE]** Update deps.
|
|
1269
|
+
- **[UPDATE]** Update handling exceptions loging.
|
|
675
1270
|
|
|
676
|
-
|
|
677
|
-
[UPDATE] stripUnknown=true by default on casting
|
|
1271
|
+
---
|
|
678
1272
|
|
|
679
|
-
|
|
1273
|
+
## [2.6.2]
|
|
680
1274
|
|
|
681
|
-
[UPDATE]
|
|
682
|
-
[NEW]new cache system (alpha, subject of change)
|
|
1275
|
+
- **[UPDATE]** Normalize auth config.
|
|
683
1276
|
|
|
684
|
-
|
|
685
|
-
const cacheTime = 60 * 5;
|
|
686
|
-
this.app.cache.getSetValue(
|
|
687
|
-
'someKey',
|
|
688
|
-
async () => {
|
|
689
|
-
// function that will execute in case cache value is missed
|
|
690
|
-
},
|
|
691
|
-
cacheTime,
|
|
692
|
-
);
|
|
693
|
-
```
|
|
1277
|
+
---
|
|
694
1278
|
|
|
695
|
-
|
|
1279
|
+
## [2.6.1]
|
|
696
1280
|
|
|
697
|
-
[
|
|
698
|
-
[
|
|
1281
|
+
- **[FIX]** Fix error on cache system.
|
|
1282
|
+
- **[UPDATE]** `stripUnknown=true` by default on casting.
|
|
699
1283
|
|
|
700
|
-
|
|
1284
|
+
---
|
|
701
1285
|
|
|
702
|
-
[
|
|
1286
|
+
## [2.6.0]
|
|
703
1287
|
|
|
704
|
-
|
|
1288
|
+
- **[UPDATE]** Deps update.
|
|
1289
|
+
- **[NEW]** New cache system (alpha, subject of change).
|
|
1290
|
+
```javascript
|
|
1291
|
+
const cacheTime = 60 * 5;
|
|
1292
|
+
this.app.cache.getSetValue(
|
|
1293
|
+
'someKey',
|
|
1294
|
+
async () => {
|
|
1295
|
+
// function that will execute in case cache value is missed
|
|
1296
|
+
},
|
|
1297
|
+
cacheTime,
|
|
1298
|
+
);
|
|
1299
|
+
```
|
|
1300
|
+
|
|
1301
|
+
---
|
|
1302
|
+
|
|
1303
|
+
## [2.5.1]
|
|
1304
|
+
|
|
1305
|
+
- **[UPDATE]** Deps update.
|
|
1306
|
+
- **[FIX]** Fix error logging on unhadled rejection.
|
|
1307
|
+
|
|
1308
|
+
---
|
|
1309
|
+
|
|
1310
|
+
## [2.5.0]
|
|
1311
|
+
|
|
1312
|
+
- **[NEW]** New route handler format with request validations and casting (yup based).
|
|
1313
|
+
```javascript
|
|
705
1314
|
get routes() {
|
|
706
1315
|
return {
|
|
707
1316
|
post: {
|
|
@@ -716,217 +1325,301 @@ this.app.cache.getSetValue(
|
|
|
716
1325
|
}
|
|
717
1326
|
// send request with data {count: "5000"}
|
|
718
1327
|
// will produce error with status 400 and {errors: {count:['Text error']}}
|
|
719
|
-
|
|
720
|
-
|
|
721
1328
|
postSample(req,res) =>{
|
|
722
1329
|
// on success validate we pass here.
|
|
723
1330
|
// {count: "5000"}
|
|
724
1331
|
console.log(req.appInfo.request)
|
|
725
1332
|
// {count: 5000} -> casted to number
|
|
726
1333
|
}
|
|
727
|
-
```
|
|
1334
|
+
```
|
|
1335
|
+
|
|
1336
|
+
---
|
|
728
1337
|
|
|
729
|
-
|
|
1338
|
+
## [2.4.4]
|
|
730
1339
|
|
|
731
|
-
[UPDATE]
|
|
732
|
-
[NEW]
|
|
733
|
-
[NEW]
|
|
1340
|
+
- **[UPDATE]** Deps update.
|
|
1341
|
+
- **[NEW]** Controller unhandled rejection now handled with default error.
|
|
1342
|
+
- **[NEW]** Handle error with wrong model name.
|
|
734
1343
|
|
|
735
|
-
|
|
1344
|
+
---
|
|
736
1345
|
|
|
737
|
-
[
|
|
1346
|
+
## [2.4.3]
|
|
738
1347
|
|
|
739
|
-
|
|
1348
|
+
- **[UPDATE]** Deps update.
|
|
740
1349
|
|
|
741
|
-
|
|
742
|
-
[UPDATE] deps update
|
|
1350
|
+
---
|
|
743
1351
|
|
|
744
|
-
|
|
1352
|
+
## [2.4.2]
|
|
745
1353
|
|
|
746
|
-
[FIX]
|
|
1354
|
+
- **[FIX]** Abstract controlled middleware.
|
|
1355
|
+
- **[UPDATE]** Deps update.
|
|
747
1356
|
|
|
748
|
-
|
|
1357
|
+
---
|
|
749
1358
|
|
|
750
|
-
[
|
|
1359
|
+
## [2.4.1]
|
|
751
1360
|
|
|
752
|
-
[
|
|
1361
|
+
- **[FIX]** Updated test because of previous breaking changes.
|
|
753
1362
|
|
|
754
|
-
|
|
1363
|
+
---
|
|
1364
|
+
|
|
1365
|
+
## [2.4.0]
|
|
1366
|
+
|
|
1367
|
+
- **[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.
|
|
1368
|
+
- **[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).
|
|
1369
|
+
```javascript
|
|
755
1370
|
static get middleware() {
|
|
756
1371
|
return new Map([['GET/*', [PrepareAppInfo, GetUserByToken]]]);
|
|
757
1372
|
}
|
|
758
|
-
```
|
|
1373
|
+
```
|
|
1374
|
+
|
|
1375
|
+
---
|
|
1376
|
+
|
|
1377
|
+
## [2.3.14]
|
|
1378
|
+
|
|
1379
|
+
- **[FIX]** Fix validate controller method for non strings.
|
|
1380
|
+
|
|
1381
|
+
---
|
|
1382
|
+
|
|
1383
|
+
## [2.3.13]
|
|
1384
|
+
|
|
1385
|
+
- **[UPDATE]** Testing now with mongoDB Replica.
|
|
1386
|
+
- **[UPDATE]** Refactor CLI.
|
|
1387
|
+
|
|
1388
|
+
---
|
|
1389
|
+
|
|
1390
|
+
## [2.3.12]
|
|
1391
|
+
|
|
1392
|
+
- **[UPDATE]** Testing update.
|
|
1393
|
+
|
|
1394
|
+
---
|
|
1395
|
+
|
|
1396
|
+
## [2.3.11]
|
|
1397
|
+
|
|
1398
|
+
- **[UPDATE]** Refactor CLI for testing.
|
|
1399
|
+
|
|
1400
|
+
---
|
|
1401
|
+
|
|
1402
|
+
## [2.3.10]
|
|
1403
|
+
|
|
1404
|
+
- **[UPDATE]** Update user model indexes to allow null email and nick.
|
|
1405
|
+
- **[UPDATE]** Deps update.
|
|
1406
|
+
|
|
1407
|
+
---
|
|
1408
|
+
|
|
1409
|
+
## [2.3.9]
|
|
1410
|
+
|
|
1411
|
+
- **[FIX]** Test fix.
|
|
1412
|
+
|
|
1413
|
+
---
|
|
1414
|
+
|
|
1415
|
+
## [2.3.8]
|
|
1416
|
+
|
|
1417
|
+
- **[NEW]** Add `global.testSetup.beforeAll` `global.testSetup.afterAll` functions and `global.testSetup.disableUserCreate` flag for testing testing.
|
|
1418
|
+
|
|
1419
|
+
---
|
|
1420
|
+
|
|
1421
|
+
## [2.3.7]
|
|
1422
|
+
|
|
1423
|
+
- **[UPDATE]** Deps update.
|
|
1424
|
+
- **[NEW]** Add `global.testSetup.userCreate` function for testing.
|
|
1425
|
+
|
|
1426
|
+
---
|
|
1427
|
+
|
|
1428
|
+
## [2.3.6]
|
|
1429
|
+
|
|
1430
|
+
- **[UPDATE]** Deps update.
|
|
1431
|
+
- **[FIX]** Test fix.
|
|
1432
|
+
|
|
1433
|
+
---
|
|
1434
|
+
|
|
1435
|
+
## [2.3.5]
|
|
1436
|
+
|
|
1437
|
+
- **[NEW]** Add command `DropIndex`.
|
|
1438
|
+
- **[UPDATE]** Deps update.
|
|
1439
|
+
|
|
1440
|
+
---
|
|
1441
|
+
|
|
1442
|
+
## [2.3.4]
|
|
1443
|
+
|
|
1444
|
+
- **[NEW]** Add `webResources` option to email service.
|
|
1445
|
+
- **[UPDATE]** Deps update.
|
|
1446
|
+
|
|
1447
|
+
---
|
|
1448
|
+
|
|
1449
|
+
## [2.3.3]
|
|
1450
|
+
|
|
1451
|
+
- **[UPDATE]** Deps update.
|
|
1452
|
+
|
|
1453
|
+
---
|
|
1454
|
+
|
|
1455
|
+
## [2.3.2]
|
|
1456
|
+
|
|
1457
|
+
- **[FIX]** Fix controllers order to load.
|
|
759
1458
|
|
|
760
|
-
|
|
1459
|
+
---
|
|
761
1460
|
|
|
762
|
-
[
|
|
1461
|
+
## [2.3.1]
|
|
763
1462
|
|
|
764
|
-
|
|
1463
|
+
- **[FIX]** Fix parsing token.
|
|
765
1464
|
|
|
766
|
-
|
|
767
|
-
[UPDATE] refactor CLI
|
|
1465
|
+
---
|
|
768
1466
|
|
|
769
|
-
|
|
1467
|
+
## [2.3.0]
|
|
770
1468
|
|
|
771
|
-
[
|
|
1469
|
+
- **[NEW]** `Migration/create` `migration/migrate` commands.
|
|
772
1470
|
|
|
773
|
-
|
|
1471
|
+
---
|
|
774
1472
|
|
|
775
|
-
[
|
|
1473
|
+
## [2.2.6]
|
|
776
1474
|
|
|
777
|
-
|
|
1475
|
+
- **[NEW]** CLI command receiving parsed arguments.
|
|
778
1476
|
|
|
779
|
-
|
|
780
|
-
[UPDATE] deps update
|
|
1477
|
+
---
|
|
781
1478
|
|
|
782
|
-
|
|
1479
|
+
## [2.2.5]
|
|
783
1480
|
|
|
784
|
-
[FIX]
|
|
1481
|
+
- **[FIX]** Fix disconnecting problems with replica set.
|
|
785
1482
|
|
|
786
|
-
|
|
1483
|
+
---
|
|
787
1484
|
|
|
788
|
-
[
|
|
1485
|
+
## [2.2.4]
|
|
789
1486
|
|
|
790
|
-
|
|
1487
|
+
- **[UPDATE]** Internal update for speed up cli init.
|
|
791
1488
|
|
|
792
|
-
|
|
793
|
-
[NEW] add 'global.testSetup.userCreate' function for testing
|
|
1489
|
+
---
|
|
794
1490
|
|
|
795
|
-
|
|
1491
|
+
## [2.2.3]
|
|
796
1492
|
|
|
797
|
-
[
|
|
798
|
-
[FIX] test fix
|
|
1493
|
+
- **[FIX]** Fix language detection.
|
|
799
1494
|
|
|
800
|
-
|
|
1495
|
+
---
|
|
801
1496
|
|
|
802
|
-
[
|
|
803
|
-
[UPDATE] deps update
|
|
1497
|
+
## [2.2.2]
|
|
804
1498
|
|
|
805
|
-
|
|
1499
|
+
- **[FIX]** Fix test as part of docker image update. This just a `mongo-memory-server` problems.
|
|
1500
|
+
- **[NEW]** Add config to configure language detecting order and types.
|
|
806
1501
|
|
|
807
|
-
|
|
808
|
-
[UPDATE] deps update
|
|
1502
|
+
---
|
|
809
1503
|
|
|
810
|
-
|
|
1504
|
+
## [2.2.1]
|
|
811
1505
|
|
|
812
|
-
[UPDATE]
|
|
1506
|
+
- **[UPDATE]** Deps update.
|
|
813
1507
|
|
|
814
|
-
|
|
1508
|
+
---
|
|
815
1509
|
|
|
816
|
-
[
|
|
1510
|
+
## [2.2.0]
|
|
817
1511
|
|
|
818
|
-
|
|
1512
|
+
- **[DEPRECATED]** `Base.loadFilesWithInheritance` please use `getFilesPathWithInheritance` that produce almost the same output.
|
|
1513
|
+
- **[UPDATE]** Deps update.
|
|
1514
|
+
- **[UPDATE]** Https logs now contains request time.
|
|
1515
|
+
- **[NEW]** Ability to put controllers into folders with path inheritance.
|
|
1516
|
+
- **[NEW]** Ability to replace `expressPath` on controller - `getExpressPath()` methos.
|
|
1517
|
+
- **[NEW]** Ability to put commands into folders with path inheritance.
|
|
819
1518
|
|
|
820
|
-
|
|
1519
|
+
---
|
|
821
1520
|
|
|
822
|
-
|
|
1521
|
+
## [2.1.2]
|
|
823
1522
|
|
|
824
|
-
[
|
|
1523
|
+
- **[UPDATE]** Disconnect of mongoose when command was finished.
|
|
825
1524
|
|
|
826
|
-
|
|
1525
|
+
---
|
|
827
1526
|
|
|
828
|
-
[
|
|
1527
|
+
## [2.1.1]
|
|
829
1528
|
|
|
830
|
-
|
|
1529
|
+
- **[UPDATE]** Deps update.
|
|
831
1530
|
|
|
832
|
-
|
|
1531
|
+
---
|
|
833
1532
|
|
|
834
|
-
|
|
1533
|
+
## [2.1.0]
|
|
835
1534
|
|
|
836
|
-
[
|
|
1535
|
+
- **[DEV]** Added codestyle checker.
|
|
1536
|
+
- **[NEW]** Initial CLI module.
|
|
837
1537
|
|
|
838
|
-
|
|
1538
|
+
---
|
|
839
1539
|
|
|
840
|
-
[
|
|
1540
|
+
## [2.0.2]
|
|
841
1541
|
|
|
842
|
-
|
|
1542
|
+
- **[UPDATE]** Socket.io v3.
|
|
1543
|
+
- **[UPDATE]** Deps update.
|
|
843
1544
|
|
|
844
|
-
|
|
845
|
-
[NEW] add config to configure language detecting order and types
|
|
1545
|
+
---
|
|
846
1546
|
|
|
847
|
-
|
|
1547
|
+
## [2.0.1]
|
|
848
1548
|
|
|
849
|
-
[
|
|
1549
|
+
- **[NEW]** Added config to websocket.
|
|
850
1550
|
|
|
851
|
-
|
|
1551
|
+
---
|
|
852
1552
|
|
|
853
|
-
[
|
|
854
|
-
[UPDATE] deps update
|
|
855
|
-
[UPDATE] https logs now contains request time
|
|
856
|
-
[NEW] Ability to put controllers into folders with path inheritance
|
|
857
|
-
[NEW] Ability to replace expressPath on controller - getExpressPath() methos
|
|
858
|
-
[NEW] Ability to put commands into folders with path inheritance
|
|
1553
|
+
## [2.0.0]
|
|
859
1554
|
|
|
860
|
-
|
|
1555
|
+
- **[BREAKING]** Change config format of log config. Now configs can be only objects.
|
|
861
1556
|
|
|
862
|
-
|
|
1557
|
+
---
|
|
863
1558
|
|
|
864
|
-
|
|
1559
|
+
## [1.5.0]
|
|
865
1560
|
|
|
866
|
-
[
|
|
1561
|
+
- **[NEW]** Support for environment configs (`config.js` and `config.{NODE_ENV}.js`) with overwrite.
|
|
1562
|
+
- **[UPDATE]** Deps update.
|
|
867
1563
|
|
|
868
|
-
|
|
1564
|
+
---
|
|
869
1565
|
|
|
870
|
-
[
|
|
871
|
-
[NEW] Initial CLI module
|
|
1566
|
+
## [1.4.0]
|
|
872
1567
|
|
|
873
|
-
|
|
1568
|
+
- **[NEW]** Ability to pass additional parameter to server that will be executed before adding page 404.
|
|
874
1569
|
|
|
875
|
-
|
|
876
|
-
[UPDATE] deps update
|
|
1570
|
+
---
|
|
877
1571
|
|
|
878
|
-
|
|
1572
|
+
## [1.3.0]
|
|
879
1573
|
|
|
880
|
-
[NEW]
|
|
1574
|
+
- **[NEW]** Models now support optional callback that will executed on connection ready. If mongo already connected then callback will be executed immediately.
|
|
881
1575
|
|
|
882
|
-
|
|
1576
|
+
---
|
|
883
1577
|
|
|
884
|
-
[
|
|
1578
|
+
## [1.2.9]
|
|
885
1579
|
|
|
886
|
-
|
|
1580
|
+
- **[UPDATE]** Update deps.
|
|
887
1581
|
|
|
888
|
-
|
|
889
|
-
[UPDATE] deps update
|
|
1582
|
+
---
|
|
890
1583
|
|
|
891
|
-
|
|
1584
|
+
## [1.2.8]
|
|
892
1585
|
|
|
893
|
-
|
|
1586
|
+
- **[UPDATE]** Update deps.
|
|
894
1587
|
|
|
895
|
-
|
|
1588
|
+
---
|
|
896
1589
|
|
|
897
|
-
|
|
1590
|
+
## [1.2.7]
|
|
898
1591
|
|
|
899
|
-
|
|
1592
|
+
- **[NEW]** Add abilty to return error from custom validation functions.
|
|
900
1593
|
|
|
901
|
-
|
|
1594
|
+
---
|
|
902
1595
|
|
|
903
|
-
|
|
1596
|
+
## [1.2.6]
|
|
904
1597
|
|
|
905
|
-
|
|
1598
|
+
- **[UPDATE]** Validator documentation (jsdoc) update.
|
|
1599
|
+
- **[UPDATE]** Validator support pass parameters to validator.
|
|
906
1600
|
|
|
907
|
-
|
|
1601
|
+
---
|
|
908
1602
|
|
|
909
|
-
|
|
1603
|
+
## [1.2.5]
|
|
910
1604
|
|
|
911
|
-
|
|
1605
|
+
- **[FIX]** Fix problem with test (user should be global on tests).
|
|
912
1606
|
|
|
913
|
-
|
|
914
|
-
Validator support pass parameters to validator
|
|
1607
|
+
---
|
|
915
1608
|
|
|
916
|
-
|
|
1609
|
+
## [1.2.4]
|
|
917
1610
|
|
|
918
|
-
|
|
1611
|
+
- **[NEW]** Add eslint.
|
|
1612
|
+
- **[UPDATE]** Code refactor.
|
|
919
1613
|
|
|
920
|
-
|
|
1614
|
+
---
|
|
921
1615
|
|
|
922
|
-
|
|
923
|
-
Code refactor
|
|
1616
|
+
## [1.2.3]
|
|
924
1617
|
|
|
925
|
-
|
|
1618
|
+
- **[NEW]** Add prettier.
|
|
1619
|
+
- **[UPDATE]** Code reformat.
|
|
926
1620
|
|
|
927
|
-
|
|
928
|
-
Code reformat
|
|
1621
|
+
---
|
|
929
1622
|
|
|
930
|
-
|
|
1623
|
+
## [1.2.2]
|
|
931
1624
|
|
|
932
|
-
Update deps
|
|
1625
|
+
- **[UPDATE]** Update deps.
|