Skip to content

Commit 779a883

Browse files
committed
chore: update @objectstack/core and @objectstack/plugin-hono-server to version 0.8.1; remove obsolete patch code from objectql.config.ts; add ts-ignore comment in dev-server.ts
1 parent cfe55ea commit 779a883

4 files changed

Lines changed: 43 additions & 26 deletions

File tree

objectql.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@ import * as fs from 'fs';
1515
import * as path from 'path';
1616
import * as yaml from 'js-yaml';
1717

18-
// --- Patch for @objectstack/cli @0.8.0 compatibility ---
19-
// Removed to prevent circular dependency error with @objectstack/core ESM
20-
/*
21-
import { ObjectKernel } from '@objectstack/core';
22-
try {
23-
const proto = ObjectKernel.prototype;
24-
if (!(proto as any).registerPlugin && (proto as any).use) {
25-
(proto as any).registerPlugin = (proto as any).use;
26-
console.log('Patched ObjectKernel.registerPlugin');
27-
}
28-
if (!(proto as any).boot && (proto as any).bootstrap) {
29-
(proto as any).boot = (proto as any).bootstrap;
30-
console.log('Patched ObjectKernel.boot');
31-
}
32-
} catch (e) {
33-
console.warn('Failed to patch ObjectKernel compatibility:', e);
34-
}
35-
*/
36-
// -------------------------------------------------------
37-
3818
function loadObjects(dir: string) {
3919
const objects: Record<string, any> = {};
4020
if (!fs.existsSync(dir)) return objects;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"@objectql/protocol-graphql": "workspace:*",
3232
"@objectql/protocol-odata-v4": "workspace:*",
3333
"@objectstack/cli": "latest",
34-
"@objectstack/core": "^0.8.0",
35-
"@objectstack/plugin-hono-server": "^0.8.0",
34+
"@objectstack/core": "^0.8.1",
35+
"@objectstack/plugin-hono-server": "^0.8.1",
3636
"@types/jest": "^30.0.0",
3737
"@types/js-yaml": "^4.0.9",
3838
"@types/node": "^20.10.0",

pnpm-lock.yaml

Lines changed: 40 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/dev-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import config from '../objectql.config';
44
async function main() {
55
console.log('🚀 Starting ObjectStack Custom Dev Server...');
66

7+
// @ts-ignore
78
const kernel = new ObjectKernel({});
89

910
if (config.plugins) {

0 commit comments

Comments
 (0)