@stacksjs/server 0.70.87 → 0.70.88

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.87",
5
+ "version": "0.70.88",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -53,11 +53,11 @@
53
53
  "prepublishOnly": "bun run build"
54
54
  },
55
55
  "devDependencies": {
56
- "@stacksjs/config": "0.70.87",
56
+ "@stacksjs/config": "0.70.88",
57
57
  "better-dx": "^0.2.16",
58
- "@stacksjs/path": "0.70.87",
59
- "@stacksjs/router": "0.70.87",
60
- "@stacksjs/validation": "0.70.87",
58
+ "@stacksjs/path": "0.70.88",
59
+ "@stacksjs/router": "0.70.88",
60
+ "@stacksjs/validation": "0.70.88",
61
61
  "bun-plugin-auto-imports": "^0.4.0"
62
62
  }
63
63
  }
package/dist/config.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { ServerOptions } from '@stacksjs/types';
2
- export declare function config(options: ServerOptions): {
3
- host: string
4
- port: number
5
- open: boolean
6
- };
@@ -1,16 +0,0 @@
1
- import type { ResponseData } from '@stacksjs/types';
2
- declare type Request = any;
3
- /**
4
- * Base Controller class providing Laravel-like functionality
5
- */
6
- export declare class Controller {
7
- protected json(data: any, status?: number): any;
8
- protected success(data: any): ResponseData;
9
- protected created(data: any): ResponseData;
10
- protected noContent(): any;
11
- protected error(message: string, status?: number): ResponseData;
12
- protected notFound(message?: string): ResponseData;
13
- protected unauthorized(message?: string): ResponseData;
14
- protected forbidden(message?: string): ResponseData;
15
- protected validate(request: Request, rules: Record<string, any>): Promise<void>;
16
- }
package/dist/imports.d.ts DELETED
@@ -1,32 +0,0 @@
1
- /**
2
- * Generate runtime auto-import files for Bun runtime execution.
3
- * This creates index files that can be imported to get all auto-imports,
4
- * including defineModel()-based model definitions and resource functions.
5
- */
6
- export declare function generateAutoImportFiles(): Promise<void>;
7
- /**
8
- * Initialize auto-imports for both bundler and runtime.
9
- *
10
- * Scans defineModel() model files and resource functions, making them
11
- * available globally without explicit imports.
12
- */
13
- export declare function initiateImports(): void;
14
- /**
15
- * Import and inject all auto-imports into globalThis for runtime access.
16
- * Call this early in your application startup.
17
- *
18
- * This makes all models, plus framework primitives used by actions
19
- * (Action, response, schema, Auth), available globally, matching the
20
- * "no imports needed" ergonomics of framework default actions.
21
- */
22
- export declare function injectGlobalAutoImports(): Promise<void>;
23
- /**
24
- * Generate a runtime index file for defineModel() models.
25
- * These use `export default defineModel(...)`, so we re-export each default as a named export.
26
- *
27
- * Each entry is either a plain string (recursive scan) or `{ dir, recursive: false }`
28
- * for non-recursive scans. The defaults root passes the non-recursive form so
29
- * that feature-module subdirs (commerce/, Content/, …) only ship when the
30
- * project opted into them via config.
31
- */
32
- declare type ScanEntry = string | { dir: string, recursive: boolean }
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export { config as server } from './config';
2
- export * from './controllers/base';
3
- export * from './imports';
4
- export * from './maintenance';
5
- export * from './proxy';