@h3ravel/core 1.20.0 → 1.21.0

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/dist/index.cjs CHANGED
@@ -694,7 +694,7 @@ const h3ravel = async (providers = [], basePath = process.cwd(), config = {
694
694
  app.context = async (event) => {
695
695
  if (event._h3ravelContext) return event._h3ravelContext;
696
696
  __h3ravel_http.Request.enableHttpMethodParameterOverride();
697
- const ctx = __h3ravel_shared.HttpContext.init({
697
+ const ctx = __h3ravel_http.HttpContext.init({
698
698
  app,
699
699
  request: await __h3ravel_http.Request.create(event, app),
700
700
  response: new __h3ravel_http.Response(event, app)
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference path="./app.globals.d.ts" />
2
2
  import { Bindings, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IServiceProvider, PathLoader, UseKey } from "@h3ravel/shared";
3
3
  import { H3, H3Event } from "h3";
4
+ import { HttpContext as HttpContext$1 } from "@h3ravel/http";
4
5
 
5
6
  //#region src/Contracts/ServiceProviderConstructor.d.ts
6
7
  type ServiceProviderConstructor = (new (app: Application) => ServiceProvider) & IServiceProvider;
@@ -317,7 +318,7 @@ config?: EntryConfig,
317
318
  /**
318
319
  * final middleware function to call once the server is fired up
319
320
  */
320
- middleware?: (ctx: HttpContext) => Promise<unknown>) => Promise<Application>;
321
+ middleware?: (ctx: HttpContext$1) => Promise<unknown>) => Promise<Application>;
321
322
  //#endregion
322
323
  //#region src/Http/Kernel.d.ts
323
324
  /**
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference path="./app.globals.d.ts" />
2
2
  import "reflect-metadata";
3
3
  import { Bindings, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IServiceProvider, PathLoader, UseKey } from "@h3ravel/shared";
4
+ import { HttpContext as HttpContext$1 } from "@h3ravel/http";
4
5
  import { H3, H3Event } from "h3";
5
6
 
6
7
  //#region src/Contracts/ServiceProviderConstructor.d.ts
@@ -318,7 +319,7 @@ config?: EntryConfig,
318
319
  /**
319
320
  * final middleware function to call once the server is fired up
320
321
  */
321
- middleware?: (ctx: HttpContext) => Promise<unknown>) => Promise<Application>;
322
+ middleware?: (ctx: HttpContext$1) => Promise<unknown>) => Promise<Application>;
322
323
  //#endregion
323
324
  //#region src/Http/Kernel.d.ts
324
325
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "reflect-metadata";
2
- import { FileSystem, HttpContext, Logger, PathLoader } from "@h3ravel/shared";
2
+ import { FileSystem, Logger, PathLoader } from "@h3ravel/shared";
3
3
  import { InvalidArgumentException, Str, dd, dump, str } from "@h3ravel/support";
4
4
  import fg from "fast-glob";
5
5
  import path from "node:path";
@@ -8,7 +8,7 @@ import dotenv from "dotenv";
8
8
  import dotenvExpand from "dotenv-expand";
9
9
  import { readFile } from "node:fs/promises";
10
10
  import semver from "semver";
11
- import { LogRequests, Request, Response } from "@h3ravel/http";
11
+ import { HttpContext as HttpContext$1, LogRequests, Request, Response } from "@h3ravel/http";
12
12
 
13
13
  //#region src/Container.ts
14
14
  var Container = class {
@@ -661,7 +661,7 @@ const h3ravel = async (providers = [], basePath = process.cwd(), config = {
661
661
  app.context = async (event) => {
662
662
  if (event._h3ravelContext) return event._h3ravelContext;
663
663
  Request.enableHttpMethodParameterOverride();
664
- const ctx = HttpContext.init({
664
+ const ctx = HttpContext$1.init({
665
665
  app,
666
666
  request: await Request.create(event, app),
667
667
  response: new Response(event, app)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/core",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "Core application container, lifecycle management and service providers for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,8 +54,8 @@
54
54
  "semver": "^7.7.2",
55
55
  "srvx": "^0.8.7",
56
56
  "tslib": "^2.8.1",
57
- "@h3ravel/support": "^0.14.4",
58
- "@h3ravel/shared": "^0.25.0"
57
+ "@h3ravel/shared": "^0.27.0",
58
+ "@h3ravel/support": "^0.15.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/semver": "^7.7.1",