@vercube/core 0.0.22 → 0.0.24

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/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  <br>
4
4
  <br>
5
5
 
6
- # Vercube
7
-
8
- Next generation HTTP framework
9
-
6
+ # Vercube
7
+
8
+ Next generation HTTP framework
9
+
10
10
  <a href="https://www.npmjs.com/package/@vercube/core">
11
11
  <img src="https://img.shields.io/npm/v/%40vercube%2Fcore?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
12
12
  </a>
@@ -16,14 +16,17 @@
16
16
  <a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
17
17
  <img src="https://img.shields.io/npm/l/%40vercube%2Fcore?style=for-the-badge&color=%23767eff" alt="License"/>
18
18
  </a>
19
+ <a href="https://codecov.io/gh/vercube/vercube" target="_blank">
20
+ <img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
21
+ </a>
19
22
  <br/>
20
23
  <br/>
21
24
  </div>
22
25
 
23
26
  An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
24
27
 
25
-
26
28
  ## <a name="getting-started">🚀 Quick Start</a>
29
+
27
30
  Vercube makes it incredibly easy to get started. With just one command, you'll have a fully configured project ready for development:
28
31
 
29
32
  ```sh
@@ -39,12 +42,12 @@ You can also try Vercube instantly using our online templates:
39
42
  <img src="https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=for-the-badge&logo=codesandbox" alt="Open in CodeSandbox">
40
43
  </a>
41
44
 
42
-
43
-
44
45
  ## <a name="documentation">📖 Documentation</a>
46
+
45
47
  Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
46
48
 
47
49
  ## <a name="contribute">❤️ Contribute</a>
50
+
48
51
  We welcome and appreciate all contributions to Vercube! There are several ways you can help make this project better:
49
52
 
50
53
  - **Report bugs**: If you find a bug, please [open an issue](https://github.com/vercube/vercube/issues) with detailed steps to reproduce it
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ import { Container } from "@vercube/di";
2
2
  import { FastResponse, ServerPlugin } from "srvx";
3
3
  import { LoggerTypes } from "@vercube/logger";
4
4
  import { DotenvOptions } from "c12";
5
+ import { RolldownPluginOption } from "rolldown";
5
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
7
 
7
8
  //#region src/Services/Plugins/BasePlugin.d.ts
@@ -70,11 +71,23 @@ declare namespace ConfigTypes {
70
71
  /**
71
72
  * The entry point file for the application build.
72
73
  */
73
- entry?: string;
74
+ entry?: string | string[];
74
75
  /**
75
76
  * Defines to pass to the build.
76
77
  */
77
78
  define?: Record<string, string>;
79
+ /**
80
+ * Path to the tsconfig file to use for the build.
81
+ */
82
+ tsconfig?: string;
83
+ /**
84
+ * Flag to indicate if declaration files should be generated.
85
+ */
86
+ dts?: boolean;
87
+ /**
88
+ * Additional plugins to use in the bundler.
89
+ */
90
+ plugins?: RolldownPluginOption[];
78
91
  /**
79
92
  * Output configuration for build artifacts.
80
93
  */
@@ -733,7 +746,7 @@ declare function Status(code: HTTPStatus): Function;
733
746
  declare function Redirect(location: string, code?: HTTPStatus): Function;
734
747
  //#endregion
735
748
  //#region src/Decorators/Http/Middleware.d.ts
736
- interface MiddlewareDecoratorParams extends Omit<MetadataTypes.Middleware, 'middleware'> {}
749
+ interface MiddlewareDecoratorParams extends Omit<MetadataTypes.Middleware, 'middleware' | 'target'> {}
737
750
  /**
738
751
  * Decorator that applies middleware to a class or method
739
752
  * @param middleware - The middleware class to apply
@@ -775,17 +788,6 @@ declare function Middleware$1(middleware: typeof BaseMiddleware, opts?: Middlewa
775
788
  */
776
789
  declare function MultipartFormData(): Function;
777
790
  //#endregion
778
- //#region src/Decorators/Http/Session.d.ts
779
- /**
780
- * A factory function for creating a SessionDecorator.
781
- *
782
- * This function returns a decorator function that can be used to annotate
783
- * a method parameter with session information.
784
- *
785
- * @return {Function} The decorator function.
786
- */
787
- declare function Session(): Function;
788
- //#endregion
789
791
  //#region src/Types/HooksTypes.d.ts
790
792
  declare namespace HooksTypes {
791
793
  interface HookType<T> {
@@ -1621,4 +1623,4 @@ declare function initializeMetadataMethod(target: any, propertyName: string): Me
1621
1623
  */
1622
1624
  declare function initializeMetadata(target: any): MetadataTypes.Ctx;
1623
1625
  //#endregion
1624
- export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, CreateAppOptions, DeepPartial, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, HttpStatusCode, InternalServerError, Listen, MaybePromise, MetadataResolver, MetadataTypes, MethodNotAllowedError, Middleware$1 as Middleware, MiddlewareOptions, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request$1 as Request, Response$1 as Response, Router, RouterTypes, RuntimeConfig$1 as RuntimeConfig, Session, SetHeader, StandardSchemaValidationProvider, Status, Trace, UnauthorizedError, ValidationProvider, ValidationTypes, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };
1626
+ export { App, BadRequestError, BaseMiddleware, BasePlugin, Body, ConfigTypes, Connect, Controller, CreateAppOptions, DeepPartial, Delete, ErrorHandlerProvider, FastResponse, ForbiddenError, Get, GlobalMiddlewareRegistry, HTTPStatus, Head, Header, Headers, HooksService, HooksTypes, HttpError, HttpServer, HttpStatusCode, InternalServerError, Listen, MaybePromise, MetadataResolver, MetadataTypes, MethodNotAllowedError, Middleware$1 as Middleware, MiddlewareOptions, MultipartFormData, NotAcceptableError, NotFoundError, Options, Param, Patch, Post, Put, QueryParam, QueryParams, Redirect, Request$1 as Request, Response$1 as Response, Router, RouterTypes, RuntimeConfig$1 as RuntimeConfig, SetHeader, StandardSchemaValidationProvider, Status, Trace, UnauthorizedError, ValidationProvider, ValidationTypes, createApp, createMetadataCtx, createMetadataMethod, defineConfig, initializeMetadata, initializeMetadataMethod, loadVercubeConfig };