@adonisjs/core 7.0.0-next.3 → 7.0.0-next.4

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.
@@ -337,8 +337,8 @@ export default class AppServiceProvider {
337
337
  */
338
338
  async boot() {
339
339
  BaseEvent.useEmitter(await this.app.container.make('emitter'));
340
- HttpContext.instanceProperty('serialize', function (...args) {
341
- return serialize(...args);
340
+ HttpContext.instanceProperty('serialize', function (value, container) {
341
+ return serialize(value, container ?? this.containerResolver);
342
342
  });
343
343
  }
344
344
  /**
@@ -37,7 +37,7 @@ export { default as base64 } from '@poppinss/utils/base64';
37
37
  * Core utilities including function composition, secret management,
38
38
  * safe equality comparison, and message building.
39
39
  */
40
- export { compose, Secret, safeEqual, MessageBuilder } from '@poppinss/utils';
40
+ export { compose, Secret, safeEqual, MessageBuilder, defineStaticProperty } from '@poppinss/utils';
41
41
  /**
42
42
  * Verification token utility for creating secure tokens.
43
43
  */
@@ -45,7 +45,7 @@ export { default as base64 } from '@poppinss/utils/base64';
45
45
  * Core utilities including function composition, secret management,
46
46
  * safe equality comparison, and message building.
47
47
  */
48
- export { compose, Secret, safeEqual, MessageBuilder } from '@poppinss/utils';
48
+ export { compose, Secret, safeEqual, MessageBuilder, defineStaticProperty } from '@poppinss/utils';
49
49
  /**
50
50
  * Verification token utility for creating secure tokens.
51
51
  */
@@ -92,7 +92,7 @@ export async function outputTransformerDataObjects(transformersList, buffer, wit
92
92
  const value = input[key];
93
93
  if (typeof value === 'string') {
94
94
  const importName = `${parents.join()}${key}Transformer`;
95
- importsBuffer.write(`import ${importName} from '${value}'`);
95
+ importsBuffer.write(`import type ${importName} from '${value}'`);
96
96
  buffer.write(`export type ${key} = InferData<${importName}>`);
97
97
  buffer.write(`export namespace ${key} {`).indent();
98
98
  buffer.write(`export type Variants = InferVariants<${importName}>`);
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.3",
4
+ "version": "7.0.0-next.4",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -84,7 +84,7 @@
84
84
  "index:commands": "node --import=@poppinss/ts-exec toolkit/main.js index build/commands"
85
85
  },
86
86
  "devDependencies": {
87
- "@adonisjs/assembler": "^8.0.0-next.10",
87
+ "@adonisjs/assembler": "^8.0.0-next.12",
88
88
  "@adonisjs/eslint-config": "^3.0.0-next.1",
89
89
  "@adonisjs/prettier-config": "^1.4.5",
90
90
  "@adonisjs/tsconfig": "^2.0.0-next.0",
@@ -132,7 +132,7 @@
132
132
  "@adonisjs/fold": "^11.0.0-next.2",
133
133
  "@adonisjs/hash": "^10.0.0-next.1",
134
134
  "@adonisjs/health": "^3.0.0-next.0",
135
- "@adonisjs/http-server": "^8.0.0-next.7",
135
+ "@adonisjs/http-server": "^8.0.0-next.8",
136
136
  "@adonisjs/http-transformers": "^1.4.0",
137
137
  "@adonisjs/logger": "^7.1.0-next.0",
138
138
  "@adonisjs/repl": "^5.0.0-next.0",