@adonisjs/http-server 8.1.2 → 8.2.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.
@@ -52,6 +52,25 @@ export type ResponseConfig = {
52
52
  * Default options to apply when setting cookies
53
53
  */
54
54
  cookie: Partial<CookieOptions>;
55
+ /**
56
+ * Configuration for HTTP redirects
57
+ */
58
+ redirect: {
59
+ /**
60
+ * Array of allowed hosts for referrer-based redirects.
61
+ * When empty, only the request's own host is allowed.
62
+ *
63
+ * Defaults to []
64
+ */
65
+ allowedHosts: string[];
66
+ /**
67
+ * Whether to forward the query string from the current request
68
+ * by default on redirects.
69
+ *
70
+ * Defaults to false
71
+ */
72
+ forwardQueryString: boolean;
73
+ };
55
74
  };
56
75
  /**
57
76
  * A readable stream that can be piped to the response stream method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "8.1.2",
3
+ "version": "8.2.0",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@adonisjs/application": "^9.0.0",
47
47
  "@adonisjs/eslint-config": "^3.0.0",
48
- "@adonisjs/events": "^10.1.0",
48
+ "@adonisjs/events": "^10.2.0",
49
49
  "@adonisjs/fold": "^11.0.0",
50
50
  "@adonisjs/logger": "^7.1.1",
51
51
  "@adonisjs/prettier-config": "^1.4.5",
@@ -67,32 +67,32 @@
67
67
  "@types/fresh": "^0.5.3",
68
68
  "@types/fs-extra": "^11.0.4",
69
69
  "@types/mime-types": "^3.0.1",
70
- "@types/node": "^25.5.0",
70
+ "@types/node": "^25.5.2",
71
71
  "@types/on-finished": "^2.3.5",
72
72
  "@types/pem": "^1.14.4",
73
73
  "@types/proxy-addr": "^2.0.3",
74
74
  "@types/supertest": "^7.2.0",
75
75
  "@types/type-is": "^1.6.7",
76
76
  "@types/vary": "^1.1.3",
77
- "@vinejs/vine": "^4.3.0",
77
+ "@vinejs/vine": "^4.3.1",
78
78
  "accepts": "^1.3.8",
79
79
  "autocannon": "^8.0.0",
80
80
  "c8": "^11.0.0",
81
81
  "cross-env": "^10.1.0",
82
- "eslint": "^10.0.3",
83
- "fastify": "^5.8.2",
82
+ "eslint": "^10.2.0",
83
+ "fastify": "^5.8.4",
84
84
  "fs-extra": "^11.3.4",
85
- "get-port": "^7.1.0",
85
+ "get-port": "^7.2.0",
86
86
  "http-status-codes": "^2.3.0",
87
87
  "pem": "^1.14.8",
88
88
  "prettier": "^3.8.1",
89
89
  "reflect-metadata": "^0.2.2",
90
90
  "release-it": "^19.2.4",
91
91
  "supertest": "^7.2.2",
92
- "tsdown": "0.20.3",
93
- "typedoc": "^0.28.17",
94
- "typescript": "^5.9.3",
95
- "youch": "^4.1.0"
92
+ "tsdown": "0.21.7",
93
+ "typedoc": "^0.28.18",
94
+ "typescript": "^6.0.2",
95
+ "youch": "^4.1.1"
96
96
  },
97
97
  "dependencies": {
98
98
  "@poppinss/macroable": "^1.1.2",
@@ -101,8 +101,8 @@
101
101
  "@poppinss/qs": "^6.15.0",
102
102
  "@poppinss/utils": "^7.0.1",
103
103
  "@sindresorhus/is": "^7.2.0",
104
- "content-disposition": "^1.0.1",
105
- "cookie-es": "^2.0.0",
104
+ "content-disposition": "^1.1.0",
105
+ "cookie-es": "^3.1.1",
106
106
  "destroy": "^1.2.0",
107
107
  "encodeurl": "^2.0.0",
108
108
  "etag": "^1.8.1",