@veloxts/velox 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -1
- package/dist/presets/plugin.d.ts +1 -1
- package/dist/presets/plugin.js +5 -3
- package/dist/presets/validate.js +6 -4
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# @veloxts/velox
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- security audit, bumps dependency packages
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @veloxts/auth@0.7.1
|
|
10
|
+
- @veloxts/cache@0.7.1
|
|
11
|
+
- @veloxts/core@0.7.1
|
|
12
|
+
- @veloxts/events@0.7.1
|
|
13
|
+
- @veloxts/mail@0.7.1
|
|
14
|
+
- @veloxts/orm@0.7.1
|
|
15
|
+
- @veloxts/queue@0.7.1
|
|
16
|
+
- @veloxts/router@0.7.1
|
|
17
|
+
- @veloxts/scheduler@0.7.1
|
|
18
|
+
- @veloxts/storage@0.7.1
|
|
19
|
+
- @veloxts/validation@0.7.1
|
|
20
|
+
|
|
21
|
+
## 0.7.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
6
24
|
|
package/dist/presets/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Preset plugin for automatic ecosystem package registration.
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
4
|
+
import { type VeloxApp } from '@veloxts/core';
|
|
5
5
|
import type { AuthPreset, EcosystemPreset, Environment, PresetOptions } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Register ecosystem plugins based on preset configuration.
|
package/dist/presets/plugin.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Preset plugin for automatic ecosystem package registration.
|
|
3
3
|
*/
|
|
4
|
+
import { createLogger } from '@veloxts/core';
|
|
4
5
|
import { getPreset } from './defaults.js';
|
|
5
6
|
import { detectEnvironment } from './env.js';
|
|
6
7
|
import { mergeDeep } from './merge.js';
|
|
8
|
+
const log = createLogger('velox');
|
|
7
9
|
/**
|
|
8
10
|
* All ecosystem packages that can be registered.
|
|
9
11
|
*/
|
|
@@ -97,7 +99,7 @@ export async function registerEcosystemPlugins(app, preset, options) {
|
|
|
97
99
|
await app.register(plugin(config));
|
|
98
100
|
if (!options?.silent) {
|
|
99
101
|
const driver = info.getDriver(config);
|
|
100
|
-
|
|
102
|
+
log.info(` ✓ ${info.name} [${driver}]`);
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
catch (error) {
|
|
@@ -163,11 +165,11 @@ export async function usePresets(app, options = {}) {
|
|
|
163
165
|
auth: merge(basePreset.auth, options.overrides?.auth),
|
|
164
166
|
};
|
|
165
167
|
if (!options.silent) {
|
|
166
|
-
|
|
168
|
+
log.info(`\nVeloxTS Ecosystem Presets [${env}]`);
|
|
167
169
|
}
|
|
168
170
|
await registerEcosystemPlugins(app, finalPreset, options);
|
|
169
171
|
if (!options.silent) {
|
|
170
|
-
|
|
172
|
+
log.info('');
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
/**
|
package/dist/presets/validate.js
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* Validates that required environment variables, secrets, and security
|
|
5
5
|
* settings are properly configured before the application starts.
|
|
6
6
|
*/
|
|
7
|
+
import { createLogger } from '@veloxts/core';
|
|
7
8
|
import { detectEnvironment } from './env.js';
|
|
9
|
+
const log = createLogger('velox');
|
|
8
10
|
/**
|
|
9
11
|
* Default security requirements for production.
|
|
10
12
|
*/
|
|
@@ -152,14 +154,14 @@ export function validateSecurityOrThrow(requirements) {
|
|
|
152
154
|
}
|
|
153
155
|
// Log warnings even if validation passes
|
|
154
156
|
if (result.warnings.length > 0) {
|
|
155
|
-
|
|
157
|
+
log.warn('\nSecurity warnings:');
|
|
156
158
|
for (const warning of result.warnings) {
|
|
157
|
-
|
|
159
|
+
log.warn(` [${warning.category}] ${warning.key}: ${warning.message}`);
|
|
158
160
|
if (warning.suggestion) {
|
|
159
|
-
|
|
161
|
+
log.warn(` Suggestion: ${warning.suggestion}`);
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
|
-
|
|
164
|
+
log.warn('');
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
167
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/velox",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Complete VeloxTS framework - batteries included",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,30 +39,30 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@veloxts/
|
|
43
|
-
"@veloxts/core": "0.7.
|
|
44
|
-
"@veloxts/
|
|
45
|
-
"@veloxts/
|
|
46
|
-
"@veloxts/
|
|
42
|
+
"@veloxts/validation": "0.7.1",
|
|
43
|
+
"@veloxts/core": "0.7.1",
|
|
44
|
+
"@veloxts/router": "0.7.1",
|
|
45
|
+
"@veloxts/auth": "0.7.1",
|
|
46
|
+
"@veloxts/orm": "0.7.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vitest": "4.0.18",
|
|
51
|
-
"@veloxts/cache": "0.7.
|
|
52
|
-
"@veloxts/events": "0.7.
|
|
53
|
-
"@veloxts/
|
|
54
|
-
"@veloxts/
|
|
55
|
-
"@veloxts/
|
|
56
|
-
"@veloxts/
|
|
51
|
+
"@veloxts/cache": "0.7.1",
|
|
52
|
+
"@veloxts/events": "0.7.1",
|
|
53
|
+
"@veloxts/scheduler": "0.7.1",
|
|
54
|
+
"@veloxts/mail": "0.7.1",
|
|
55
|
+
"@veloxts/storage": "0.7.1",
|
|
56
|
+
"@veloxts/queue": "0.7.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"zod": "^4.3.0",
|
|
60
|
-
"@veloxts/
|
|
61
|
-
"@veloxts/
|
|
62
|
-
"@veloxts/
|
|
63
|
-
"@veloxts/
|
|
64
|
-
"@veloxts/scheduler": "0.7.
|
|
65
|
-
"@veloxts/events": "0.7.
|
|
60
|
+
"@veloxts/mail": "0.7.1",
|
|
61
|
+
"@veloxts/storage": "0.7.1",
|
|
62
|
+
"@veloxts/queue": "0.7.1",
|
|
63
|
+
"@veloxts/cache": "0.7.1",
|
|
64
|
+
"@veloxts/scheduler": "0.7.1",
|
|
65
|
+
"@veloxts/events": "0.7.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@veloxts/cache": {
|