@adonisjs/core 7.0.0-next.6 → 7.0.0-next.8

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.
@@ -0,0 +1 @@
1
+ export * from '@adonisjs/http-server/client/url_builder';
@@ -0,0 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+ export * from '@adonisjs/http-server/client/url_builder';
@@ -225,7 +225,7 @@ export default class AppServiceProvider {
225
225
  * await middleware.handle(ctx, next)
226
226
  */
227
227
  registerBodyParserMiddleware() {
228
- this.app.container.bind(BodyParserMiddleware, () => {
228
+ this.app.container.singleton(BodyParserMiddleware, () => {
229
229
  const config = this.app.config.get('bodyparser');
230
230
  return new BodyParserMiddleware(config, this.app.experimentalFlags);
231
231
  });
@@ -270,14 +270,17 @@ export default class AppServiceProvider {
270
270
  */
271
271
  async generateRoutesTypes(router) {
272
272
  try {
273
- const types = router.generateTypes(2);
273
+ const { routes, imports, types } = router.generateTypes(2);
274
274
  const outputPath = this.app.generatedServerPath('routes.d.ts');
275
275
  await mkdir(dirname(outputPath), { recursive: true });
276
276
  await writeFile(outputPath, [
277
277
  `import '@adonisjs/core/types/http'`,
278
+ ...imports,
279
+ '',
280
+ ...types,
278
281
  '',
279
282
  'export type ScannedRoutes = {',
280
- types,
283
+ routes,
281
284
  '}',
282
285
  `declare module '@adonisjs/core/types/http' {`,
283
286
  ' export interface RoutesList extends ScannedRoutes {}',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "7.0.0-next.6",
4
+ "version": "7.0.0-next.8",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -54,6 +54,7 @@
54
54
  "./env/editor": "./build/modules/env/editor.js",
55
55
  "./events": "./build/modules/events.js",
56
56
  "./http": "./build/modules/http/main.js",
57
+ "./http/url_builder_client": "./build/modules/http/url_builder_client.js",
57
58
  "./logger": "./build/modules/logger.js",
58
59
  "./repl": "./build/modules/repl.js",
59
60
  "./transformers": "./build/modules/transformers/main.js",
@@ -95,12 +96,12 @@
95
96
  "@japa/snapshot": "^2.0.9",
96
97
  "@poppinss/ts-exec": "^1.4.1",
97
98
  "@release-it/conventional-changelog": "^10.0.1",
98
- "@types/node": "^24.7.2",
99
+ "@types/node": "^24.9.1",
99
100
  "@types/pretty-hrtime": "^1.0.3",
100
101
  "@types/sinon": "^17.0.4",
101
102
  "@types/supertest": "^6.0.3",
102
103
  "@types/test-console": "^2.0.3",
103
- "@vinejs/vine": "^4.0.0-next.1",
104
+ "@vinejs/vine": "^4.0.1",
104
105
  "argon2": "^0.44.0",
105
106
  "bcrypt": "^6.0.0",
106
107
  "c8": "^10.1.3",
@@ -108,7 +109,7 @@
108
109
  "cross-env": "^10.1.0",
109
110
  "del-cli": "^7.0.0",
110
111
  "edge.js": "^6.3.0",
111
- "eslint": "^9.37.0",
112
+ "eslint": "^9.38.0",
112
113
  "execa": "^9.6.0",
113
114
  "get-port": "^7.1.0",
114
115
  "prettier": "^3.6.2",
@@ -124,7 +125,7 @@
124
125
  "dependencies": {
125
126
  "@adonisjs/ace": "^14.0.1-next.2",
126
127
  "@adonisjs/application": "^9.0.0-next.9",
127
- "@adonisjs/bodyparser": "^11.0.0-next.1",
128
+ "@adonisjs/bodyparser": "^11.0.0-next.2",
128
129
  "@adonisjs/config": "^6.0.0-next.1",
129
130
  "@adonisjs/encryption": "^7.0.0-next.1",
130
131
  "@adonisjs/env": "^7.0.0-next.1",
@@ -132,9 +133,9 @@
132
133
  "@adonisjs/fold": "^11.0.0-next.2",
133
134
  "@adonisjs/hash": "^10.0.0-next.1",
134
135
  "@adonisjs/health": "^3.0.0-next.0",
135
- "@adonisjs/http-server": "^8.0.0-next.11",
136
+ "@adonisjs/http-server": "^8.0.0-next.12",
136
137
  "@adonisjs/http-transformers": "^1.5.0",
137
- "@adonisjs/logger": "^7.1.0-next.0",
138
+ "@adonisjs/logger": "^7.1.0-next.2",
138
139
  "@adonisjs/repl": "^5.0.0-next.0",
139
140
  "@poppinss/colors": "^4.1.5",
140
141
  "@poppinss/dumper": "^0.6.4",