@objectstack/types 1.0.4 → 1.0.5

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.
@@ -0,0 +1,22 @@
1
+
2
+ > @objectstack/types@1.0.5 build /home/runner/work/spec/spec/packages/types
3
+ > tsup --config ../../tsup.config.ts
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /home/runner/work/spec/spec/tsup.config.ts
9
+ CLI Target: es2020
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ CJS Build start
13
+ ESM dist/index.mjs 34.00 B
14
+ ESM dist/index.mjs.map 71.00 B
15
+ ESM ⚡️ Build success in 34ms
16
+ CJS dist/index.js 791.00 B
17
+ CJS dist/index.js.map 845.00 B
18
+ CJS ⚡️ Build success in 33ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 1145ms
21
+ DTS dist/index.d.mts 363.00 B
22
+ DTS dist/index.d.ts 363.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @objectstack/types
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - b1d24bd: refactor: migrate build system from tsc to tsup for faster builds
8
+ - Replaced `tsc` with `tsup` (using esbuild) across all packages
9
+ - Added shared `tsup.config.ts` in workspace root
10
+ - Added `tsup` as workspace dev dependency
11
+ - significantly improved build performance
12
+ - Updated dependencies [b1d24bd]
13
+ - @objectstack/spec@1.0.5
14
+
3
15
  ## 1.0.4
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,15 @@
1
+ interface IKernel {
2
+ ql?: any;
3
+ start(): Promise<void>;
4
+ [key: string]: any;
5
+ }
6
+ interface RuntimeContext {
7
+ engine: IKernel;
8
+ }
9
+ interface RuntimePlugin {
10
+ name: string;
11
+ install?: (ctx: RuntimeContext) => void | Promise<void>;
12
+ onStart?: (ctx: RuntimeContext) => void | Promise<void>;
13
+ }
14
+
15
+ export type { IKernel, RuntimeContext, RuntimePlugin };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- export interface IKernel {
1
+ interface IKernel {
2
2
  ql?: any;
3
3
  start(): Promise<void>;
4
4
  [key: string]: any;
5
5
  }
6
- export interface RuntimeContext {
6
+ interface RuntimeContext {
7
7
  engine: IKernel;
8
8
  }
9
- export interface RuntimePlugin {
9
+ interface RuntimePlugin {
10
10
  name: string;
11
11
  install?: (ctx: RuntimeContext) => void | Promise<void>;
12
12
  onStart?: (ctx: RuntimeContext) => void | Promise<void>;
13
13
  }
14
- //# sourceMappingURL=index.d.ts.map
14
+
15
+ export type { IKernel, RuntimeContext, RuntimePlugin };
package/dist/index.js CHANGED
@@ -1,2 +1,19 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Placeholder for Kernel interface to avoid circular dependency\n// The actual Kernel implementation will satisfy this interface.\nexport interface IKernel {\n // We can add specific methods here that plugins are allowed to call\n // forcing a stricter contract than exposing the whole class.\n ql?: any; // ObjectQL instance (optional to support initialization phase)\n start(): Promise<void>;\n // ... expose other needed public methods\n [key: string]: any; \n}\n\nexport interface RuntimeContext {\n engine: IKernel;\n}\n\nexport interface RuntimePlugin {\n name: string;\n install?: (ctx: RuntimeContext) => void | Promise<void>;\n onStart?: (ctx: RuntimeContext) => void | Promise<void>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@objectstack/types",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Shared interfaces describing the ObjectStack Runtime environment",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "@objectstack/spec": "1.0.4"
9
+ "@objectstack/spec": "1.0.5"
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "^5.0.0"
13
13
  },
14
14
  "scripts": {
15
- "build": "tsc"
15
+ "build": "tsup --config ../../tsup.config.ts"
16
16
  }
17
17
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IAGpB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D"}