Skip to content

Commit f4647ba

Browse files
committed
fix: use the Application class directly as the app property of the Request and Response classes.
1 parent d77a878 commit f4647ba

9 files changed

Lines changed: 32 additions & 8 deletions

File tree

examples/basic-app/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @h3ravel/example
22

3+
## 1.1.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @h3ravel/http@4.2.1
9+
- @h3ravel/router@1.4.1
10+
311
## 1.1.0
412

513
### Minor Changes

examples/basic-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/example",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Example H3ravel App.",
55
"type": "module",
66
"main": "dist/index.js",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"test": "jest --passWithNoTests"
2828
},
2929
"dependencies": {
30+
"@h3ravel/shared": "workspace:*",
3031
"edge.js": "^6.3.0",
3132
"h3": "^2.0.0-beta.1",
3233
"reflect-metadata": "^0.2.2",
3334
"srvx": "^0.8.2",
3435
"tslib": "^2.6.0",
35-
"@h3ravel/shared": "workspace:*",
3636
"dotenv": "^17.2.1"
3737
},
3838
"devDependencies": {

packages/http/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @h3ravel/http
22

3+
## 4.2.1
4+
5+
### Patch Changes
6+
7+
- fix: use the Application class directly as the app property of the Request and Response classes.
8+
39
## 4.2.0
410

511
### Minor Changes

packages/http/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/http",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "HTTP kernel, middleware pipeline, request/response classes for H3ravel.",
55
"type": "module",
66
"main": "dist/index.js",
@@ -27,6 +27,7 @@
2727
"test": "jest --passWithNoTests"
2828
},
2929
"dependencies": {
30+
"@h3ravel/core": "workspace:*",
3031
"@h3ravel/support": "workspace:*",
3132
"@h3ravel/shared": "workspace:*",
3233
"h3": "^2.0.0-beta.1",

packages/http/src/Request.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { getQuery, getRouterParams, readBody, type H3Event } from 'h3'
22
import { DotNestedKeys, DotNestedValue, safeDot } from '@h3ravel/support'
33
import type { ResponseHeaderMap, TypedHeaders } from 'fetchdts'
4-
import { IApplication, IRequest } from '@h3ravel/shared'
4+
import { IRequest } from '@h3ravel/shared'
5+
import { Application } from '@h3ravel/core'
56

67
export class Request implements IRequest {
78
/**
@@ -32,7 +33,7 @@ export class Request implements IRequest {
3233
/**
3334
* The current app instance
3435
*/
35-
public app: IApplication
36+
public app: Application
3637
) {
3738
this.event = event
3839
this.query = getQuery(this.event)

packages/http/src/Response.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { DotNestedKeys, DotNestedValue, safeDot } from '@h3ravel/support'
2-
import { IApplication, IResponse } from '@h3ravel/shared'
32
import { html, redirect, } from 'h3'
43

4+
import { Application } from '@h3ravel/core'
55
import type { H3Event } from 'h3'
6+
import { IResponse } from '@h3ravel/shared'
67

78
export class Response implements IResponse {
89
/**
@@ -18,7 +19,7 @@ export class Response implements IResponse {
1819
/**
1920
* The current app instance
2021
*/
21-
public app: IApplication
22+
public app: Application
2223
) {
2324
this.event = event
2425
}

packages/router/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @h3ravel/router
22

3+
## 1.4.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @h3ravel/http@4.2.1
9+
310
## 1.4.0
411

512
### Minor Changes

packages/router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/router",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Route facade, decorators and controller system for H3ravel.",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)