@objectstack/objectql 1.0.2 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @objectstack/objectql
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d13533: refactor: fix service registration compatibility and improve logging
8
+ - plugin-hono-server: register 'http.server' service alias to match core requirements
9
+ - plugin-hono-server: fix console log to show the actual bound port instead of configured port
10
+ - plugin-hono-server: reduce log verbosity (moved non-essential logs to debug level)
11
+ - objectql: automatically register 'metadata', 'data', 'and 'auth' services during initialization to satisfy kernel contracts
12
+ - cli: fix race condition in `serve` command by awaiting plugin registration calls (`kernel.use`)
13
+ - @objectstack/spec@1.0.4
14
+ - @objectstack/core@1.0.4
15
+ - @objectstack/types@1.0.4
16
+
17
+ ## 1.0.3
18
+
19
+ ### Patch Changes
20
+
21
+ - 22a48f0: refactor: fix service registration compatibility and improve logging
22
+ - plugin-hono-server: register 'http.server' service alias to match core requirements
23
+ - plugin-hono-server: fix console log to show the actual bound port instead of configured port
24
+ - plugin-hono-server: reduce log verbosity (moved non-essential logs to debug level)
25
+ - objectql: automatically register 'metadata', 'data', 'and 'auth' services during initialization to satisfy kernel contracts
26
+ - Updated dependencies [fb2eabd]
27
+ - @objectstack/core@1.0.3
28
+ - @objectstack/spec@1.0.3
29
+ - @objectstack/types@1.0.3
30
+
3
31
  ## 1.0.2
4
32
 
5
33
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1D,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AAEtC,qBAAa,cAAe,YAAW,MAAM;IAC3C,IAAI,SAAqC;IACzC,IAAI,EAAG,UAAU,CAAU;IAC3B,OAAO,SAAW;IAElB,OAAO,CAAC,EAAE,CAAuB;IACjC,OAAO,CAAC,WAAW,CAAC,CAAsB;gBAE9B,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAS5D,IAAI,GAAU,KAAK,aAAa,mBAgB/B;IAED,KAAK,GAAU,KAAK,aAAa,mBAmBhC;CACF"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1D,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AAEtC,qBAAa,cAAe,YAAW,MAAM;IAC3C,IAAI,SAAqC;IACzC,IAAI,EAAG,UAAU,CAAU;IAC3B,OAAO,SAAW;IAElB,OAAO,CAAC,EAAE,CAAuB;IACjC,OAAO,CAAC,WAAW,CAAC,CAAsB;gBAE9B,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAS5D,IAAI,GAAU,KAAK,aAAa,mBAoB/B;IAED,KAAK,GAAU,KAAK,aAAa,mBAmBhC;CACF"}
package/dist/plugin.js CHANGED
@@ -9,12 +9,15 @@ export class ObjectQLPlugin {
9
9
  if (!this.ql) {
10
10
  this.ql = new ObjectQL(this.hostContext);
11
11
  }
12
+ // Register as provider for Core Kernel Services
12
13
  ctx.registerService('objectql', this.ql);
13
- ctx.logger.info('ObjectQL engine registered as service');
14
+ ctx.registerService('metadata', this.ql);
15
+ ctx.registerService('data', this.ql); // ObjectQL implements IDataEngine
16
+ ctx.registerService('auth', this.ql);
17
+ ctx.logger.info('ObjectQL engine registered as service', {
18
+ provides: ['objectql', 'metadata', 'data', 'auth']
19
+ });
14
20
  // Register Protocol Implementation
15
- if (!this.ql) {
16
- throw new Error('ObjectQL engine not initialized');
17
- }
18
21
  const protocolShim = new ObjectStackProtocolImplementation(this.ql);
19
22
  ctx.registerService('protocol', protocolShim);
20
23
  ctx.logger.info('Protocol service registered');
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@objectstack/objectql",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Isomorphic ObjectQL Engine for ObjectStack",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "@objectstack/core": "1.0.2",
10
- "@objectstack/spec": "1.0.2",
11
- "@objectstack/types": "1.0.2"
9
+ "@objectstack/core": "1.0.4",
10
+ "@objectstack/spec": "1.0.4",
11
+ "@objectstack/types": "1.0.4"
12
12
  },
13
13
  "devDependencies": {
14
14
  "typescript": "^5.0.0",
package/src/plugin.ts CHANGED
@@ -26,13 +26,17 @@ export class ObjectQLPlugin implements Plugin {
26
26
  this.ql = new ObjectQL(this.hostContext);
27
27
  }
28
28
 
29
+ // Register as provider for Core Kernel Services
29
30
  ctx.registerService('objectql', this.ql);
30
- ctx.logger.info('ObjectQL engine registered as service');
31
+ ctx.registerService('metadata', this.ql);
32
+ ctx.registerService('data', this.ql); // ObjectQL implements IDataEngine
33
+ ctx.registerService('auth', this.ql);
34
+
35
+ ctx.logger.info('ObjectQL engine registered as service', {
36
+ provides: ['objectql', 'metadata', 'data', 'auth']
37
+ });
31
38
 
32
39
  // Register Protocol Implementation
33
- if (!this.ql) {
34
- throw new Error('ObjectQL engine not initialized');
35
- }
36
40
  const protocolShim = new ObjectStackProtocolImplementation(this.ql);
37
41
 
38
42
  ctx.registerService('protocol', protocolShim);