@adonisjs/core 6.16.0 → 6.17.1

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.
@@ -64,9 +64,11 @@ export default class EdgeServiceProvider {
64
64
  * explicit handler
65
65
  */
66
66
  BriskRoute.macro('render', function (template, data) {
67
- return this.setHandler(({ view }) => {
67
+ function rendersTemplate({ view }) {
68
68
  return view.render(template, data);
69
- });
69
+ }
70
+ Object.defineProperty(rendersTemplate, 'listArgs', { value: template, writable: false });
71
+ return this.setHandler(rendersTemplate);
70
72
  });
71
73
  edge.use(pluginEdgeDumper(dumper));
72
74
  }
@@ -11,6 +11,7 @@ type SerializedRoute = {
11
11
  handler: {
12
12
  type: 'closure';
13
13
  name: string;
14
+ args?: string;
14
15
  } | {
15
16
  type: 'controller';
16
17
  moduleNameOrPath: string;
@@ -129,6 +129,7 @@ export class RoutesListFormatter {
129
129
  return {
130
130
  type: 'closure',
131
131
  name: handler.name || 'closure',
132
+ args: 'listArgs' in handler ? String(handler.listArgs) : undefined,
132
133
  };
133
134
  }
134
135
  /**
@@ -178,15 +179,22 @@ export class RoutesListFormatter {
178
179
  * Formats controller name for the ansi list and table
179
180
  */
180
181
  #formatControllerName(route) {
181
- return route.handler.type === 'controller' ? ` ${route.handler.moduleNameOrPath}.` : '';
182
+ return route.handler.type === 'controller'
183
+ ? ` ${this.#colors.cyan(route.handler.moduleNameOrPath)}.`
184
+ : '';
182
185
  }
183
186
  /**
184
187
  * Formats action name for the ansi list and table
185
188
  */
186
189
  #formatAction(route) {
187
- return route.handler.type === 'controller'
188
- ? `${this.#colors.cyan(route.handler.method)}`
189
- : ` ${this.#colors.cyan(route.handler.name)}`;
190
+ if (route.handler.type === 'controller') {
191
+ return `${this.#colors.cyan(route.handler.method)}`;
192
+ }
193
+ const functionName = ` ${this.#colors.cyan(route.handler.name)}`;
194
+ if (route.handler.args) {
195
+ return ` ${functionName}${this.#colors.dim(`(${route.handler.args})`)}`;
196
+ }
197
+ return functionName;
190
198
  }
191
199
  /**
192
200
  * Formats route middleware for the ansi list and table
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "6.16.0",
4
+ "version": "6.17.1",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },
@@ -86,16 +86,16 @@
86
86
  "@adonisjs/eslint-config": "^2.0.0-beta.7",
87
87
  "@adonisjs/prettier-config": "^1.4.0",
88
88
  "@adonisjs/tsconfig": "^1.4.0",
89
- "@commitlint/cli": "^19.6.0",
89
+ "@commitlint/cli": "^19.6.1",
90
90
  "@commitlint/config-conventional": "^19.6.0",
91
- "@japa/assert": "^3.0.0",
92
- "@japa/expect-type": "^2.0.2",
93
- "@japa/file-system": "^2.3.0",
94
- "@japa/runner": "^3.1.4",
95
- "@japa/snapshot": "^2.0.6",
96
- "@release-it/conventional-changelog": "^9.0.3",
97
- "@swc/core": "1.10.0",
98
- "@types/node": "^22.10.1",
91
+ "@japa/assert": "^4.0.1",
92
+ "@japa/expect-type": "^2.0.3",
93
+ "@japa/file-system": "^2.3.2",
94
+ "@japa/runner": "^4.1.0",
95
+ "@japa/snapshot": "^2.0.8",
96
+ "@release-it/conventional-changelog": "^10.0.0",
97
+ "@swc/core": "1.10.7",
98
+ "@types/node": "^22.10.5",
99
99
  "@types/pretty-hrtime": "^1.0.3",
100
100
  "@types/sinon": "^17.0.3",
101
101
  "@types/supertest": "^6.0.2",
@@ -103,24 +103,24 @@
103
103
  "@vinejs/vine": "^3.0.0",
104
104
  "argon2": "^0.41.1",
105
105
  "bcrypt": "^5.1.1",
106
- "c8": "^10.1.2",
106
+ "c8": "^10.1.3",
107
107
  "copyfiles": "^2.4.1",
108
108
  "cross-env": "^7.0.3",
109
109
  "del-cli": "^6.0.0",
110
110
  "edge.js": "^6.2.0",
111
- "eslint": "^9.16.0",
112
- "execa": "^9.5.1",
111
+ "eslint": "^9.18.0",
112
+ "execa": "^9.5.2",
113
113
  "get-port": "^7.1.0",
114
114
  "github-label-sync": "^2.3.1",
115
115
  "husky": "^9.1.7",
116
116
  "prettier": "^3.4.2",
117
- "release-it": "^17.10.0",
117
+ "release-it": "^18.1.1",
118
118
  "sinon": "^19.0.2",
119
119
  "supertest": "^7.0.0",
120
120
  "test-console": "^2.0.0",
121
121
  "timekeeper": "^2.3.1",
122
122
  "ts-node-maintained": "^10.9.4",
123
- "typescript": "^5.7.2"
123
+ "typescript": "^5.7.3"
124
124
  },
125
125
  "dependencies": {
126
126
  "@adonisjs/ace": "^13.3.0",
@@ -128,23 +128,23 @@
128
128
  "@adonisjs/bodyparser": "^10.0.2",
129
129
  "@adonisjs/config": "^5.0.2",
130
130
  "@adonisjs/encryption": "^6.0.2",
131
- "@adonisjs/env": "^6.1.0",
131
+ "@adonisjs/env": "^6.1.1",
132
132
  "@adonisjs/events": "^9.0.2",
133
133
  "@adonisjs/fold": "^10.1.3",
134
134
  "@adonisjs/hash": "^9.0.5",
135
135
  "@adonisjs/health": "^2.0.0",
136
- "@adonisjs/http-server": "^7.3.0",
136
+ "@adonisjs/http-server": "^7.4.0",
137
137
  "@adonisjs/logger": "^6.0.5",
138
- "@adonisjs/repl": "^4.0.1",
139
- "@antfu/install-pkg": "^0.5.0",
138
+ "@adonisjs/repl": "^4.1.0",
139
+ "@antfu/install-pkg": "^1.0.0",
140
140
  "@paralleldrive/cuid2": "^2.2.2",
141
- "@poppinss/colors": "^4.1.3",
142
- "@poppinss/dumper": "^0.6.1",
143
- "@poppinss/macroable": "^1.0.3",
144
- "@poppinss/utils": "^6.8.3",
141
+ "@poppinss/colors": "^4.1.4",
142
+ "@poppinss/dumper": "^0.6.2",
143
+ "@poppinss/macroable": "^1.0.4",
144
+ "@poppinss/utils": "^6.9.2",
145
145
  "@sindresorhus/is": "^7.0.1",
146
146
  "@types/he": "^1.2.3",
147
- "error-stack-parser-es": "^0.1.5",
147
+ "error-stack-parser-es": "^1.0.5",
148
148
  "he": "^1.2.0",
149
149
  "parse-imports": "^2.2.1",
150
150
  "pretty-hrtime": "^1.0.3",
@@ -176,13 +176,6 @@
176
176
  "optional": true
177
177
  }
178
178
  },
179
- "author": "Harminder Virk <virk@adonisjs.com>",
180
- "contributors": [
181
- "Romain Lanz <romain.lanz@pm.me>",
182
- "Julien Ripouteau <julien@ripouteau.com>",
183
- "Michaël Zasso"
184
- ],
185
- "license": "MIT",
186
179
  "homepage": "https://github.com/adonisjs/core#readme",
187
180
  "repository": {
188
181
  "type": "git",
@@ -196,6 +189,13 @@
196
189
  "framework",
197
190
  "mvc"
198
191
  ],
192
+ "author": "Harminder Virk <virk@adonisjs.com>",
193
+ "contributors": [
194
+ "Romain Lanz <romain.lanz@pm.me>",
195
+ "Julien Ripouteau <julien@ripouteau.com>",
196
+ "Michaël Zasso"
197
+ ],
198
+ "license": "MIT",
199
199
  "publishConfig": {
200
200
  "provenance": true,
201
201
  "access": "public"