@veloxts/web 0.6.57 → 0.6.59
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 +22 -0
- package/dist/app/create-app.d.ts +25 -7
- package/dist/app/create-app.js +25 -7
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -3
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @veloxts/web
|
|
2
2
|
|
|
3
|
+
## 0.6.59
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor(ecosystem): Laravel-style API refinements & added missing unit tests
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @veloxts/auth@0.6.59
|
|
10
|
+
- @veloxts/client@0.6.59
|
|
11
|
+
- @veloxts/core@0.6.59
|
|
12
|
+
- @veloxts/router@0.6.59
|
|
13
|
+
|
|
14
|
+
## 0.6.58
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- feat(router): add OpenAPI 3.0.3 specification generator
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @veloxts/auth@0.6.58
|
|
21
|
+
- @veloxts/client@0.6.58
|
|
22
|
+
- @veloxts/core@0.6.58
|
|
23
|
+
- @veloxts/router@0.6.58
|
|
24
|
+
|
|
3
25
|
## 0.6.57
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/app/create-app.d.ts
CHANGED
|
@@ -163,15 +163,15 @@ export interface DefineVeloxAppOptions {
|
|
|
163
163
|
*
|
|
164
164
|
* @example Minimal (all defaults)
|
|
165
165
|
* ```typescript
|
|
166
|
-
* import {
|
|
167
|
-
* export default
|
|
166
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
167
|
+
* export default createVeloxApp();
|
|
168
168
|
* ```
|
|
169
169
|
*
|
|
170
170
|
* @example Flat config (preferred, Laravel-style)
|
|
171
171
|
* ```typescript
|
|
172
|
-
* import {
|
|
172
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
173
173
|
*
|
|
174
|
-
* export default
|
|
174
|
+
* export default createVeloxApp({
|
|
175
175
|
* port: 3030,
|
|
176
176
|
* apiPrefix: '/api',
|
|
177
177
|
* pagesDir: 'app/pages',
|
|
@@ -180,15 +180,33 @@ export interface DefineVeloxAppOptions {
|
|
|
180
180
|
*
|
|
181
181
|
* @example Nested config (backward compatible)
|
|
182
182
|
* ```typescript
|
|
183
|
-
* import {
|
|
183
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
184
184
|
*
|
|
185
|
-
* export default
|
|
185
|
+
* export default createVeloxApp({
|
|
186
186
|
* server: { port: 3030 },
|
|
187
187
|
* api: { prefix: '/api' },
|
|
188
188
|
* });
|
|
189
189
|
* ```
|
|
190
190
|
*/
|
|
191
|
-
export declare function
|
|
191
|
+
export declare function createVeloxApp(options?: DefineVeloxAppOptions): VinxiApp;
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated Use `createVeloxApp()` instead. Will be removed in v2.0.
|
|
194
|
+
*
|
|
195
|
+
* The naming `define*` is reserved for type/schema definitions in VeloxTS.
|
|
196
|
+
* Factory functions that create instances use `create*` naming.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* // Old (deprecated):
|
|
201
|
+
* import { defineVeloxApp } from '@veloxts/web';
|
|
202
|
+
* export default defineVeloxApp({ port: 3030 });
|
|
203
|
+
*
|
|
204
|
+
* // New:
|
|
205
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
206
|
+
* export default createVeloxApp({ port: 3030 });
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
export declare const defineVeloxApp: typeof createVeloxApp;
|
|
192
210
|
/**
|
|
193
211
|
* Re-export for convenience
|
|
194
212
|
*/
|
package/dist/app/create-app.js
CHANGED
|
@@ -18,15 +18,15 @@ import { getEnvConfig, resolveConfig, validateConfig } from './config.js';
|
|
|
18
18
|
*
|
|
19
19
|
* @example Minimal (all defaults)
|
|
20
20
|
* ```typescript
|
|
21
|
-
* import {
|
|
22
|
-
* export default
|
|
21
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
22
|
+
* export default createVeloxApp();
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
25
|
* @example Flat config (preferred, Laravel-style)
|
|
26
26
|
* ```typescript
|
|
27
|
-
* import {
|
|
27
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
28
28
|
*
|
|
29
|
-
* export default
|
|
29
|
+
* export default createVeloxApp({
|
|
30
30
|
* port: 3030,
|
|
31
31
|
* apiPrefix: '/api',
|
|
32
32
|
* pagesDir: 'app/pages',
|
|
@@ -35,15 +35,15 @@ import { getEnvConfig, resolveConfig, validateConfig } from './config.js';
|
|
|
35
35
|
*
|
|
36
36
|
* @example Nested config (backward compatible)
|
|
37
37
|
* ```typescript
|
|
38
|
-
* import {
|
|
38
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
39
39
|
*
|
|
40
|
-
* export default
|
|
40
|
+
* export default createVeloxApp({
|
|
41
41
|
* server: { port: 3030 },
|
|
42
42
|
* api: { prefix: '/api' },
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
export function
|
|
46
|
+
export function createVeloxApp(options = {}) {
|
|
47
47
|
// Merge environment config with provided options
|
|
48
48
|
const envConfig = getEnvConfig();
|
|
49
49
|
// Support both flat and nested config (flat takes precedence)
|
|
@@ -84,6 +84,24 @@ export function defineVeloxApp(options = {}) {
|
|
|
84
84
|
routers,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use `createVeloxApp()` instead. Will be removed in v2.0.
|
|
89
|
+
*
|
|
90
|
+
* The naming `define*` is reserved for type/schema definitions in VeloxTS.
|
|
91
|
+
* Factory functions that create instances use `create*` naming.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* // Old (deprecated):
|
|
96
|
+
* import { defineVeloxApp } from '@veloxts/web';
|
|
97
|
+
* export default defineVeloxApp({ port: 3030 });
|
|
98
|
+
*
|
|
99
|
+
* // New:
|
|
100
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
101
|
+
* export default createVeloxApp({ port: 3030 });
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export const defineVeloxApp = createVeloxApp;
|
|
87
105
|
/**
|
|
88
106
|
* Creates the four routers for the Vinxi application
|
|
89
107
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* // Build-time configuration (app.config.ts) - runs in Node.js
|
|
17
|
-
* import {
|
|
17
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
18
18
|
*
|
|
19
19
|
* // Server action files ('use server') - runs in RSC context
|
|
20
20
|
* import { authAction, validated } from '@veloxts/web/server';
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*
|
|
29
29
|
* ## Why No server-only Guard Here?
|
|
30
30
|
*
|
|
31
|
-
* This module includes build-time configuration (`
|
|
31
|
+
* This module includes build-time configuration (`createVeloxApp`) which runs
|
|
32
32
|
* in Node.js context during Vinxi's config loading, NOT in React Server Component
|
|
33
33
|
* context. The `server-only` package is designed to prevent client bundle inclusion,
|
|
34
34
|
* but it incorrectly throws during legitimate Node.js build-time usage.
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
* @packageDocumentation
|
|
41
41
|
*/
|
|
42
42
|
export { getEnvConfig, resolveConfig, validateConfig, } from './app/config.js';
|
|
43
|
-
export { type ApiConfig, type BuildConfig,
|
|
43
|
+
export { type ApiConfig, type BuildConfig, createVeloxApp, type DefineVeloxAppOptions,
|
|
44
|
+
/** @deprecated Use createVeloxApp(). Will be removed in v2.0. */
|
|
45
|
+
defineVeloxApp, type RoutingConfig, type ServerConfig, } from './app/create-app.js';
|
|
44
46
|
export { Document } from './rendering/document.js';
|
|
45
47
|
export { type ClientManifest, createEmptyModuleMap, createModuleMap, type FlightModuleMap, getClientComponentChunks, isClientComponent, loadClientManifest, resolveClientManifest, } from './rendering/flight.js';
|
|
46
48
|
export { clearComponentCache, type RenderToStreamOptions, renderToStream, } from './rendering/server-renderer.js';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* // Build-time configuration (app.config.ts) - runs in Node.js
|
|
17
|
-
* import {
|
|
17
|
+
* import { createVeloxApp } from '@veloxts/web';
|
|
18
18
|
*
|
|
19
19
|
* // Server action files ('use server') - runs in RSC context
|
|
20
20
|
* import { authAction, validated } from '@veloxts/web/server';
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*
|
|
29
29
|
* ## Why No server-only Guard Here?
|
|
30
30
|
*
|
|
31
|
-
* This module includes build-time configuration (`
|
|
31
|
+
* This module includes build-time configuration (`createVeloxApp`) which runs
|
|
32
32
|
* in Node.js context during Vinxi's config loading, NOT in React Server Component
|
|
33
33
|
* context. The `server-only` package is designed to prevent client bundle inclusion,
|
|
34
34
|
* but it incorrectly throws during legitimate Node.js build-time usage.
|
|
@@ -43,7 +43,9 @@ export { getEnvConfig, resolveConfig, validateConfig, } from './app/config.js';
|
|
|
43
43
|
// ============================================================================
|
|
44
44
|
// App Configuration (always server-side)
|
|
45
45
|
// ============================================================================
|
|
46
|
-
export {
|
|
46
|
+
export { createVeloxApp,
|
|
47
|
+
/** @deprecated Use createVeloxApp(). Will be removed in v2.0. */
|
|
48
|
+
defineVeloxApp, } from './app/create-app.js';
|
|
47
49
|
// ============================================================================
|
|
48
50
|
// Rendering (Server-Side)
|
|
49
51
|
// ============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/web",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.59",
|
|
4
4
|
"description": "React Server Components integration for VeloxTS framework using Vinxi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">=19.2.0",
|
|
74
74
|
"react-dom": ">=19.2.0",
|
|
75
|
-
"@veloxts/auth": "0.6.
|
|
76
|
-
"@veloxts/
|
|
77
|
-
"@veloxts/
|
|
78
|
-
"@veloxts/
|
|
75
|
+
"@veloxts/auth": "0.6.59",
|
|
76
|
+
"@veloxts/router": "0.6.59",
|
|
77
|
+
"@veloxts/client": "0.6.59",
|
|
78
|
+
"@veloxts/core": "0.6.59"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@veloxts/auth": {
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"react-server-dom-webpack": "19.2.3",
|
|
99
99
|
"typescript": "5.9.3",
|
|
100
100
|
"vitest": "4.0.16",
|
|
101
|
-
"@veloxts/core": "0.6.
|
|
102
|
-
"@veloxts/client": "0.6.
|
|
103
|
-
"@veloxts/
|
|
104
|
-
"@veloxts/
|
|
101
|
+
"@veloxts/core": "0.6.59",
|
|
102
|
+
"@veloxts/client": "0.6.59",
|
|
103
|
+
"@veloxts/router": "0.6.59",
|
|
104
|
+
"@veloxts/auth": "0.6.59"
|
|
105
105
|
},
|
|
106
106
|
"keywords": [
|
|
107
107
|
"velox",
|