@adonisjs/core 6.1.5-23 → 6.1.5-25

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.
@@ -80,7 +80,7 @@ export default class MakePreload extends BaseCommand {
80
80
  entity: this.app.generators.createEntity(this.name),
81
81
  });
82
82
  /**
83
- * Registering the preload file with the `.adonisrc.json` file. We register
83
+ * Registering the preload file with the `adonisrc.js` file. We register
84
84
  * the relative path, since we cannot be sure about aliases to exist.
85
85
  */
86
86
  const preloadImportPath = `./${output.relativeFileName.replace(/(\.js|\.ts)$/, '')}.js`;
@@ -31,7 +31,7 @@ export default class MakeProvider extends BaseCommand {
31
31
  entity: this.app.generators.createEntity(this.name),
32
32
  });
33
33
  /**
34
- * Registering the provider with the `.adonisrc.json` file. We register
34
+ * Registering the provider with the `adonisrc.js` file. We register
35
35
  * the relative path, since we cannot be sure about aliases to exist.
36
36
  */
37
37
  const providerImportPath = `./${output.relativeFileName.replace(/(\.js|\.ts)$/, '')}.js`;
@@ -80,7 +80,7 @@ export default class MakeTest extends BaseCommand {
80
80
  * Show error when mentioned/selected suite does not exist
81
81
  */
82
82
  if (!suite) {
83
- this.logger.error(`The "${this.suite}" suite is not configured inside the .adonisrc.json file`);
83
+ this.logger.error(`The "${this.suite}" suite is not configured inside the "adonisrc.js" file`);
84
84
  this.exitCode = 1;
85
85
  return;
86
86
  }
package/build/index.d.ts CHANGED
@@ -26,7 +26,6 @@ export declare const errors: {
26
26
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
27
27
  stackTraceLimit: number;
28
28
  };
29
- E_MISSING_COMMAND_NAME: new (args: [command: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
30
29
  E_COMMAND_NOT_FOUND: {
31
30
  new (args: [command: string]): {
32
31
  commandName: string;
@@ -48,12 +47,13 @@ export declare const errors: {
48
47
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
49
48
  stackTraceLimit: number;
50
49
  };
51
- E_MISSING_FLAG: new (args: [flag: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
52
- E_MISSING_FLAG_VALUE: new (args: [flag: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
50
+ E_INVALID_FLAG: new (args: [flag: string, expectedDataType: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
53
51
  E_MISSING_ARG: new (args: [arg: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
54
52
  E_MISSING_ARG_VALUE: new (args: [arg: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
53
+ E_MISSING_COMMAND_NAME: new (args: [command: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
54
+ E_MISSING_FLAG: new (args: [flag: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
55
+ E_MISSING_FLAG_VALUE: new (args: [flag: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
55
56
  E_UNKNOWN_FLAG: new (args: [flag: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
56
- E_INVALID_FLAG: new (args: [flag: string, expectedDataType: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
57
57
  E_MISSING_METAFILE_PATTERN: new (args: [fileProperty: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
58
58
  E_MISSING_PRELOAD_FILE: new (args: [preloadProperty: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
59
59
  E_MISSING_PROVIDER_FILE: new (args: [preloadProperty: string], options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
@@ -1,7 +1,7 @@
1
1
  import { type Edge } from 'edge.js';
2
2
  import type { ApplicationService } from '../src/types.js';
3
3
  import { type Route } from '../modules/http/main.js';
4
- declare module '@adonisjs/core/http' {
4
+ declare module '@adonisjs/http-server' {
5
5
  interface HttpContext {
6
6
  /**
7
7
  * Reference to the edge renderer to render templates
@@ -17,7 +17,7 @@ declare module '@vinejs/vine' {
17
17
  /**
18
18
  * Extend HTTP request class
19
19
  */
20
- declare module '@adonisjs/core/http' {
20
+ declare module '@adonisjs/http-server' {
21
21
  interface Request extends RequestValidator {
22
22
  }
23
23
  }
@@ -33,5 +33,5 @@ export declare class TestUtils extends Macroable {
33
33
  createHttpContext(options?: {
34
34
  req?: IncomingMessage;
35
35
  res?: ServerResponse;
36
- }): Promise<import("@adonisjs/core/http").HttpContext>;
36
+ }): Promise<import("../../modules/http/main.js").HttpContext>;
37
37
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "6.1.5-23",
4
+ "version": "6.1.5-25",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
@@ -10,7 +10,6 @@
10
10
  "files": [
11
11
  "build/modules",
12
12
  "build/commands",
13
- "build/legacy",
14
13
  "build/providers",
15
14
  "build/services",
16
15
  "build/factories",
@@ -76,7 +75,7 @@
76
75
  "index:commands": "node --loader=ts-node/esm toolkit/main.js index build/commands"
77
76
  },
78
77
  "devDependencies": {
79
- "@adonisjs/assembler": "^6.1.3-21",
78
+ "@adonisjs/assembler": "^6.1.3-22",
80
79
  "@adonisjs/eslint-config": "^1.1.8",
81
80
  "@adonisjs/prettier-config": "^1.1.8",
82
81
  "@adonisjs/tsconfig": "^1.1.8",
@@ -86,43 +85,45 @@
86
85
  "@japa/expect-type": "2.0.0-0",
87
86
  "@japa/file-system": "2.0.0-1",
88
87
  "@japa/runner": "^3.0.0-5",
89
- "@swc/core": "^1.3.78",
90
- "@types/node": "^20.5.1",
88
+ "@swc/core": "^1.3.82",
89
+ "@types/node": "^20.5.9",
91
90
  "@types/pretty-hrtime": "^1.0.1",
92
91
  "@types/sinon": "^10.0.15",
93
92
  "@types/supertest": "^2.0.12",
94
93
  "@types/test-console": "^2.0.0",
95
94
  "@vinejs/vine": "^1.6.0",
95
+ "argon2": "^0.31.1",
96
+ "bcrypt": "^5.1.1",
96
97
  "c8": "^8.0.1",
97
98
  "copyfiles": "^2.4.1",
98
99
  "cross-env": "^7.0.3",
99
- "del-cli": "^5.0.0",
100
+ "del-cli": "^5.1.0",
100
101
  "edge.js": "^6.0.0-8",
101
- "eslint": "^8.47.0",
102
+ "eslint": "^8.48.0",
102
103
  "get-port": "^7.0.0",
103
104
  "github-label-sync": "^2.3.1",
104
105
  "husky": "^8.0.3",
105
106
  "np": "^8.0.4",
106
- "prettier": "^3.0.2",
107
+ "prettier": "^3.0.3",
107
108
  "sinon": "^15.2.0",
108
109
  "supertest": "^6.3.3",
109
110
  "test-console": "^2.0.0",
110
111
  "ts-node": "^10.9.1",
111
- "typescript": "^5.1.6"
112
+ "typescript": "^5.2.2"
112
113
  },
113
114
  "dependencies": {
114
- "@adonisjs/ace": "^12.3.1-10",
115
- "@adonisjs/application": "^7.1.2-14",
116
- "@adonisjs/bodyparser": "^9.3.2-7",
117
- "@adonisjs/config": "^4.2.1-3",
115
+ "@adonisjs/ace": "^12.3.1-12",
116
+ "@adonisjs/application": "^7.1.2-15",
117
+ "@adonisjs/bodyparser": "^9.3.2-8",
118
+ "@adonisjs/config": "^4.2.1-4",
118
119
  "@adonisjs/encryption": "^5.1.2-2",
119
- "@adonisjs/env": "^4.2.0-4",
120
- "@adonisjs/events": "^8.4.9-4",
121
- "@adonisjs/fold": "^9.9.3-7",
122
- "@adonisjs/hash": "^8.3.1-5",
123
- "@adonisjs/http-server": "^6.8.2-12",
124
- "@adonisjs/logger": "^5.4.2-4",
125
- "@adonisjs/repl": "^4.0.0-6",
120
+ "@adonisjs/env": "^4.2.0-5",
121
+ "@adonisjs/events": "^8.4.9-5",
122
+ "@adonisjs/fold": "^9.9.3-8",
123
+ "@adonisjs/hash": "^8.3.1-6",
124
+ "@adonisjs/http-server": "^6.8.2-13",
125
+ "@adonisjs/logger": "^5.4.2-5",
126
+ "@adonisjs/repl": "^4.0.0-7",
126
127
  "@antfu/install-pkg": "^0.1.1",
127
128
  "@paralleldrive/cuid2": "^2.2.2",
128
129
  "@poppinss/macroable": "^1.0.0-7",
@@ -138,10 +139,10 @@
138
139
  "youch-terminal": "^2.2.2"
139
140
  },
140
141
  "peerDependencies": {
141
- "@adonisjs/assembler": "^6.1.3-21",
142
+ "@adonisjs/assembler": "^6.1.3-22",
142
143
  "@vinejs/vine": "^1.6.0",
143
- "argon2": "^0.30.3",
144
- "bcrypt": "^5.0.1",
144
+ "argon2": "^0.31.1",
145
+ "bcrypt": "^5.1.1",
145
146
  "edge.js": "^6.0.0-8"
146
147
  },
147
148
  "peerDependenciesMeta": {