@layerzerolabs/context-node 0.2.6 → 0.2.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.
@@ -4,15 +4,15 @@
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.4.0
7
+ CLI tsup v8.5.1
8
8
  CLI Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/definitions/context-node/tsup.config.ts
9
9
  CLI Target: ES2023
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- ESM dist/index.js 460.00 B
14
- ESM dist/index.js.map 714.00 B
15
- ESM ⚡️ Build success in 106ms
16
- CJS dist/index.cjs 508.00 B
17
- CJS dist/index.cjs.map 717.00 B
18
- CJS ⚡️ Build success in 108ms
13
+ CJS dist/index.cjs 538.00 B
14
+ CJS dist/index.cjs.map 807.00 B
15
+ CJS ⚡️ Build success in 170ms
16
+ ESM dist/index.js 490.00 B
17
+ ESM dist/index.js.map 804.00 B
18
+ ESM ⚡️ Build success in 170ms
@@ -2,3 +2,7 @@
2
2
  > @layerzerolabs/context-node@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/definitions/context-node
3
3
  > eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)
4
4
 
5
+ (node:28445) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/eslint.config.js?mtime=1766427679294 is not specified and it doesn't parse as CommonJS.
6
+ Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
7
+ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
8
+ (Use `node --trace-warnings ...` to show where the warning was created)
package/dist/index.cjs CHANGED
@@ -8,6 +8,7 @@ var ContextDefinition = class extends baseDefinitions.ObjectDefinition {
8
8
  static {
9
9
  __name(this, "ContextDefinition");
10
10
  }
11
+ type = "ContextDefinition";
11
12
  constructor({ ...args }) {
12
13
  super(args);
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","args"],"mappings":";;;;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gCAAAA,CAAAA;EALV;;;EAMI,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.cjs","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","type","args"],"mappings":";;;;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gCAAAA,CAAAA;EALV;;;EAMoBC,IAAAA,GAAO,mBAAA;EACvB,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.cjs","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n public readonly type = 'ContextDefinition' as const;\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import { ObjectDefinition } from '@layerzerolabs/base-definitions';
3
3
  export declare class ContextDefinition<Name extends string, Schema extends z.ZodSchema> extends ObjectDefinition<Name, Schema, {}> {
4
+ readonly type: "ContextDefinition";
4
5
  constructor({ ...args }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>);
5
6
  }
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,qBAAa,iBAAiB,CAC1B,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,CAAC,CAAC,SAAS,CAC5B,SAAQ,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;gBAC5B,EACR,GAAG,IAAI,EACV,EAAE,IAAI,CAAC,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC;CAG/F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,qBAAa,iBAAiB,CAC1B,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,CAAC,CAAC,SAAS,CAC5B,SAAQ,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;IACxC,SAAgB,IAAI,EAAG,mBAAmB,CAAU;gBACxC,EACR,GAAG,IAAI,EACV,EAAE,IAAI,CAAC,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC;CAG/F"}
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ var ContextDefinition = class extends ObjectDefinition {
6
6
  static {
7
7
  __name(this, "ContextDefinition");
8
8
  }
9
+ type = "ContextDefinition";
9
10
  constructor({ ...args }) {
10
11
  super(args);
11
12
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","args"],"mappings":";;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gBAAAA,CAAAA;EALV;;;EAMI,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.js","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","type","args"],"mappings":";;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gBAAAA,CAAAA;EALV;;;EAMoBC,IAAAA,GAAO,mBAAA;EACvB,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.js","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n public readonly type = 'ContextDefinition' as const;\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/context-node",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,12 +15,12 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "dependencies": {
17
17
  "zod": "3.25.56",
18
- "@layerzerolabs/base-definitions": "0.2.6"
18
+ "@layerzerolabs/base-definitions": "0.2.8"
19
19
  },
20
20
  "devDependencies": {
21
21
  "tsup": "^8.4.0",
22
- "@layerzerolabs/tsup-configuration": "0.2.6",
23
- "@layerzerolabs/typescript-configuration": "0.2.6"
22
+ "@layerzerolabs/tsup-configuration": "0.2.8",
23
+ "@layerzerolabs/typescript-configuration": "0.2.8"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "restricted",
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsup",
31
- "clean": "rm -rf ./node_modules .turbo ./dist",
32
31
  "lint": "eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)"
33
32
  }
34
33
  }
package/src/index.ts CHANGED
@@ -6,6 +6,7 @@ export class ContextDefinition<
6
6
  Name extends string,
7
7
  Schema extends z.ZodSchema,
8
8
  > extends ObjectDefinition<Name, Schema, {}> {
9
+ public readonly type = 'ContextDefinition' as const;
9
10
  constructor({
10
11
  ...args
11
12
  }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {