@adonisjs/core 6.12.1 → 6.13.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.
@@ -14,6 +14,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
14
14
  };
15
15
  import { stubsRoot } from '../stubs/main.js';
16
16
  import { args, BaseCommand, flags } from '../modules/ace/main.js';
17
+ import { RuntimeException } from '@poppinss/utils';
17
18
  /**
18
19
  * The configure command is used to configure packages after installation
19
20
  */
@@ -129,7 +130,14 @@ export default class Configure extends BaseCommand {
129
130
  /**
130
131
  * Run instructions
131
132
  */
132
- await packageExports.configure(this);
133
+ try {
134
+ await packageExports.configure(this);
135
+ }
136
+ catch (error) {
137
+ throw new RuntimeException(`Unable to configure package "${this.name}"`, {
138
+ cause: error,
139
+ });
140
+ }
133
141
  }
134
142
  }
135
143
  __decorate([
@@ -33,7 +33,7 @@ export default class GenerateKey extends BaseCommand {
33
33
  const secureKey = string.random(32);
34
34
  if (writeToFile) {
35
35
  const editor = await EnvEditor.create(this.app.appRoot);
36
- editor.add('APP_KEY', secureKey);
36
+ editor.add('APP_KEY', secureKey, true);
37
37
  await editor.save();
38
38
  this.logger.action('add APP_KEY to .env').succeeded();
39
39
  }
@@ -67,7 +67,7 @@ export class BaseCommand extends AceBaseCommand {
67
67
  ? await this.app.container.call(this, 'completed')
68
68
  : false;
69
69
  if (this.error && !errorHandled) {
70
- this.logger.fatal(this.error);
70
+ await this.kernel.errorHandler.render(this.error, this.kernel);
71
71
  }
72
72
  return this.result;
73
73
  }
@@ -22,12 +22,10 @@ declare const types: {
22
22
  boundFunction: typeof import("@sindresorhus/is").isBoundFunction;
23
23
  buffer: typeof import("@sindresorhus/is").isBuffer;
24
24
  class: typeof import("@sindresorhus/is").isClass;
25
- class_: typeof import("@sindresorhus/is").isClass;
26
25
  dataView: typeof import("@sindresorhus/is").isDataView;
27
26
  date: typeof import("@sindresorhus/is").isDate;
28
27
  detect: (value: unknown) => import("@sindresorhus/is").TypeName;
29
28
  directInstanceOf: typeof import("@sindresorhus/is").isDirectInstanceOf;
30
- domElement: typeof import("@sindresorhus/is").isHtmlElement;
31
29
  emptyArray: typeof import("@sindresorhus/is").isEmptyArray;
32
30
  emptyMap: typeof import("@sindresorhus/is").isEmptyMap;
33
31
  emptyObject: typeof import("@sindresorhus/is").isEmptyObject;
@@ -42,7 +40,6 @@ declare const types: {
42
40
  float64Array: typeof import("@sindresorhus/is").isFloat64Array;
43
41
  formData: typeof import("@sindresorhus/is").isFormData;
44
42
  function: typeof import("@sindresorhus/is").isFunction;
45
- function_: typeof import("@sindresorhus/is").isFunction;
46
43
  generator: typeof import("@sindresorhus/is").isGenerator;
47
44
  generatorFunction: typeof import("@sindresorhus/is").isGeneratorFunction;
48
45
  htmlElement: typeof import("@sindresorhus/is").isHtmlElement;
@@ -65,7 +62,6 @@ declare const types: {
65
62
  nonEmptyString: typeof import("@sindresorhus/is").isNonEmptyString;
66
63
  nonEmptyStringAndNotWhitespace: typeof import("@sindresorhus/is").isNonEmptyStringAndNotWhitespace;
67
64
  null: typeof import("@sindresorhus/is").isNull;
68
- null_: typeof import("@sindresorhus/is").isNull;
69
65
  nullOrUndefined: typeof import("@sindresorhus/is").isNullOrUndefined;
70
66
  number: typeof import("@sindresorhus/is").isNumber;
71
67
  numericString: typeof import("@sindresorhus/is").isNumericString;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "6.12.1",
4
+ "version": "6.13.1",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },
@@ -72,54 +72,55 @@
72
72
  "release": "npx release-it",
73
73
  "version": "npm run build",
74
74
  "prepublishOnly": "npm run build",
75
- "lint": "eslint . --ext=.ts",
75
+ "lint": "eslint .",
76
76
  "typecheck": "tsc --noEmit",
77
77
  "format": "prettier --write .",
78
78
  "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/core",
79
- "quick:test": "node --loader=ts-node/esm --enable-source-maps --experimental-import-meta-resolve bin/test.ts --force-exit",
80
- "citgm": "cross-env FORCE_COLOR=0 node --loader=ts-node/esm --experimental-import-meta-resolve bin/test.ts --force-exit",
81
- "index:commands": "node --loader=ts-node/esm toolkit/main.js index build/commands"
79
+ "quick:test": "node --import=ts-node-maintained/register/esm --enable-source-maps --experimental-import-meta-resolve bin/test.ts --force-exit",
80
+ "citgm": "cross-env FORCE_COLOR=0 node --import=ts-node-maintained/register/esm --experimental-import-meta-resolve bin/test.ts --force-exit",
81
+ "index:commands": "node --import=ts-node-maintained/register/esm toolkit/main.js index build/commands"
82
82
  },
83
83
  "devDependencies": {
84
- "@adonisjs/assembler": "^7.7.0",
85
- "@adonisjs/eslint-config": "^1.3.0",
86
- "@adonisjs/prettier-config": "^1.3.0",
87
- "@adonisjs/tsconfig": "^1.3.0",
88
- "@commitlint/cli": "^19.3.0",
89
- "@commitlint/config-conventional": "^19.2.2",
84
+ "@adonisjs/assembler": "^7.8.2",
85
+ "@adonisjs/eslint-config": "^2.0.0-beta.6",
86
+ "@adonisjs/prettier-config": "^1.4.0",
87
+ "@adonisjs/tsconfig": "^1.4.0",
88
+ "@commitlint/cli": "^19.4.1",
89
+ "@commitlint/config-conventional": "^19.4.1",
90
90
  "@japa/assert": "^3.0.0",
91
91
  "@japa/expect-type": "^2.0.2",
92
92
  "@japa/file-system": "^2.3.0",
93
93
  "@japa/runner": "^3.1.4",
94
- "@swc/core": "^1.6.5",
95
- "@types/node": "^20.14.7",
94
+ "@release-it/conventional-changelog": "^8.0.1",
95
+ "@swc/core": "^1.7.23",
96
+ "@types/node": "^22.5.4",
96
97
  "@types/pretty-hrtime": "^1.0.3",
97
98
  "@types/sinon": "^17.0.3",
98
99
  "@types/supertest": "^6.0.2",
99
100
  "@types/test-console": "^2.0.3",
100
101
  "@vinejs/vine": "^2.1.0",
101
- "argon2": "^0.40.3",
102
+ "argon2": "^0.41.1",
102
103
  "bcrypt": "^5.1.1",
103
104
  "c8": "^10.1.2",
104
105
  "copyfiles": "^2.4.1",
105
106
  "cross-env": "^7.0.3",
106
107
  "del-cli": "^5.1.0",
107
108
  "edge.js": "^6.0.2",
108
- "eslint": "^8.57.0",
109
- "execa": "^9.3.0",
109
+ "eslint": "^9.9.1",
110
+ "execa": "^9.3.1",
110
111
  "get-port": "^7.1.0",
111
112
  "github-label-sync": "^2.3.1",
112
- "husky": "^9.0.11",
113
- "prettier": "^3.3.2",
114
- "release-it": "^17.4.0",
113
+ "husky": "^9.1.5",
114
+ "prettier": "^3.3.3",
115
+ "release-it": "^17.6.0",
115
116
  "sinon": "^18.0.0",
116
117
  "supertest": "^7.0.0",
117
118
  "test-console": "^2.0.0",
118
- "ts-node": "^10.9.2",
119
- "typescript": "^5.5.2"
119
+ "ts-node-maintained": "^10.9.4",
120
+ "typescript": "^5.5.4"
120
121
  },
121
122
  "dependencies": {
122
- "@adonisjs/ace": "^13.1.0",
123
+ "@adonisjs/ace": "^13.2.0",
123
124
  "@adonisjs/application": "^8.3.1",
124
125
  "@adonisjs/bodyparser": "^10.0.2",
125
126
  "@adonisjs/config": "^5.0.2",
@@ -127,28 +128,28 @@
127
128
  "@adonisjs/env": "^6.1.0",
128
129
  "@adonisjs/events": "^9.0.2",
129
130
  "@adonisjs/fold": "^10.1.2",
130
- "@adonisjs/hash": "^9.0.3",
131
+ "@adonisjs/hash": "^9.0.4",
131
132
  "@adonisjs/health": "^2.0.0",
132
133
  "@adonisjs/http-server": "^7.2.3",
133
134
  "@adonisjs/logger": "^6.0.3",
134
135
  "@adonisjs/repl": "^4.0.1",
135
- "@antfu/install-pkg": "^0.3.3",
136
+ "@antfu/install-pkg": "^0.4.1",
136
137
  "@paralleldrive/cuid2": "^2.2.2",
137
138
  "@poppinss/macroable": "^1.0.2",
138
139
  "@poppinss/utils": "^6.7.3",
139
- "@sindresorhus/is": "^6.3.1",
140
+ "@sindresorhus/is": "^7.0.0",
140
141
  "@types/he": "^1.2.3",
141
142
  "he": "^1.2.0",
142
143
  "parse-imports": "^1.2.0",
143
144
  "pretty-hrtime": "^1.0.3",
144
- "string-width": "^7.1.0",
145
+ "string-width": "^7.2.0",
145
146
  "youch": "^3.3.3",
146
147
  "youch-terminal": "^2.2.3"
147
148
  },
148
149
  "peerDependencies": {
149
- "@adonisjs/assembler": "^7.5.0",
150
- "@vinejs/vine": "^2.0.0",
151
- "argon2": "^0.31.2 || ^0.40.0",
150
+ "@adonisjs/assembler": "^7.8.0",
151
+ "@vinejs/vine": "^2.1.0",
152
+ "argon2": "^0.31.2 || ^0.41.0",
152
153
  "bcrypt": "^5.1.1",
153
154
  "edge.js": "^6.0.1"
154
155
  },
@@ -169,7 +170,12 @@
169
170
  "optional": true
170
171
  }
171
172
  },
172
- "author": "virk,adonisjs",
173
+ "author": "Harminder Virk <virk@adonisjs.com>",
174
+ "contributors": [
175
+ "Romain Lanz <romain.lanz@pm.me>",
176
+ "Julien Ripouteau <julien@ripouteau.com>",
177
+ "Michaël Zasso"
178
+ ],
173
179
  "license": "MIT",
174
180
  "homepage": "https://github.com/adonisjs/core#readme",
175
181
  "repository": {
@@ -184,44 +190,50 @@
184
190
  "framework",
185
191
  "mvc"
186
192
  ],
187
- "eslintConfig": {
188
- "extends": "@adonisjs/eslint-config/package"
193
+ "publishConfig": {
194
+ "provenance": true,
195
+ "access": "public"
196
+ },
197
+ "c8": {
198
+ "reporter": [
199
+ "text",
200
+ "html"
201
+ ],
202
+ "exclude": [
203
+ "tests/**",
204
+ "build/**",
205
+ "factories/**",
206
+ ".yalc/**"
207
+ ]
189
208
  },
190
- "prettier": "@adonisjs/prettier-config",
191
209
  "commitlint": {
192
210
  "extends": [
193
211
  "@commitlint/config-conventional"
194
212
  ]
195
213
  },
196
- "publishConfig": {
197
- "access": "public",
198
- "tag": "latest"
199
- },
200
214
  "release-it": {
201
215
  "git": {
216
+ "requireCleanWorkingDir": true,
217
+ "requireUpstream": true,
202
218
  "commitMessage": "chore(release): ${version}",
203
219
  "tagAnnotation": "v${version}",
220
+ "push": true,
204
221
  "tagName": "v${version}"
205
222
  },
206
- "hooks": {
207
- "after:init": "npm test"
208
- },
209
223
  "github": {
210
- "release": true,
211
- "releaseName": "v${version}",
212
- "web": true
224
+ "release": true
225
+ },
226
+ "npm": {
227
+ "publish": true,
228
+ "skipChecks": true
229
+ },
230
+ "plugins": {
231
+ "@release-it/conventional-changelog": {
232
+ "preset": {
233
+ "name": "angular"
234
+ }
235
+ }
213
236
  }
214
237
  },
215
- "c8": {
216
- "reporter": [
217
- "text",
218
- "html"
219
- ],
220
- "exclude": [
221
- "tests/**",
222
- "build/**",
223
- "factories/**",
224
- ".yalc/**"
225
- ]
226
- }
238
+ "prettier": "@adonisjs/prettier-config"
227
239
  }