Skip to content

Commit e5e0f01

Browse files
committed
refactor: remove gateway implementation and related tests from core package
1 parent c01145e commit e5e0f01

4 files changed

Lines changed: 1 addition & 290 deletions

File tree

packages/foundation/core/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@
3838
"@objectstack/objectql": "^2.0.6",
3939
"@objectstack/runtime": "^2.0.6",
4040
"@objectstack/spec": "^2.0.6",
41-
"js-yaml": "^4.1.0",
4241
"zod": "^4.3.6"
4342
},
4443
"devDependencies": {
45-
"@types/js-yaml": "^4.0.5",
4644
"typescript": "^5.3.0"
4745
}
4846
}

packages/foundation/core/src/gateway.ts

Lines changed: 0 additions & 105 deletions
This file was deleted.

packages/foundation/core/src/index.ts

Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -6,107 +6,13 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
// ── Re-export upstream canonical engine ──
10-
export type { ObjectKernel } from '@objectstack/runtime';
11-
export type { ObjectStackProtocolImplementation } from '@objectstack/objectql';
12-
13-
// Re-export new @objectstack/objectql 1.1.0 FQN (Fully Qualified Name) utilities
14-
export {
15-
computeFQN,
16-
parseFQN,
17-
RESERVED_NAMESPACES,
18-
DEFAULT_OWNER_PRIORITY,
19-
DEFAULT_EXTENDER_PRIORITY,
20-
SchemaRegistry,
21-
} from '@objectstack/objectql';
22-
export type { ObjectContributor } from '@objectstack/objectql';
23-
24-
// Re-export upstream types exported by @objectstack/objectql for plugin authors
25-
export type {
26-
ObjectQLHostContext,
27-
HookHandler as UpstreamHookHandler,
28-
HookEntry,
29-
OperationContext,
30-
EngineMiddleware,
31-
} from '@objectstack/objectql';
32-
33-
// Export ObjectStack spec types for driver development
34-
import { Data, Automation } from '@objectstack/spec';
35-
import { z } from 'zod';
36-
export { QueryAST } from '@objectql/types';
37-
export type DriverInterface = z.infer<typeof Data.DriverInterfaceSchema>;
38-
export type DriverOptions = z.infer<typeof Data.DriverOptionsSchema>;
39-
40-
// Re-export new @objectstack/spec 1.1.0 types
41-
export type StateMachineConfig = z.infer<typeof Automation.StateMachineSchema>;
42-
export type ObjectOwnership = z.infer<typeof Data.ObjectOwnershipEnum>;
43-
export type ObjectExtension = z.infer<typeof Data.ObjectExtensionSchema>;
44-
459
// ── Convenience factory ──
4610
export { createObjectQLKernel, type ObjectQLKernelOptions } from './kernel-factory';
4711

48-
// ── Gateway (kept in core — upstream server handles API layer) ──
49-
export * from './gateway';
50-
51-
// ── Core runtime components (backward compatibility) ──
12+
// ── Core runtime components ──
5213
export * from './repository';
5314
export * from './app';
5415
export * from './plugin';
5516

5617
// ── Utilities ──
5718
export * from './util';
58-
59-
// ── Re-export from @objectql/plugin-query (backward compatibility) ──
60-
// Import from '@objectql/plugin-query' directly for new code.
61-
62-
/** @deprecated Import from '@objectql/plugin-query' instead */
63-
export { QueryService } from '@objectql/plugin-query';
64-
/** @deprecated Import from '@objectql/plugin-query' instead */
65-
export { QueryBuilder } from '@objectql/plugin-query';
66-
/** @deprecated Import from '@objectql/plugin-query' instead */
67-
export { QueryAnalyzer } from '@objectql/plugin-query';
68-
/** @deprecated Import from '@objectql/plugin-query' instead */
69-
export { FilterTranslator } from '@objectql/plugin-query';
70-
/** @deprecated Import from '@objectql/plugin-query' instead */
71-
export { QueryPlugin } from '@objectql/plugin-query';
72-
73-
export type {
74-
QueryOptions,
75-
QueryResult,
76-
QueryProfile,
77-
} from '@objectql/plugin-query';
78-
export type {
79-
QueryPlan,
80-
ProfileResult,
81-
QueryStats,
82-
} from '@objectql/plugin-query';
83-
84-
// ── Re-export from @objectql/plugin-optimizations (backward compatibility) ──
85-
// Import from '@objectql/plugin-optimizations' directly for new code.
86-
87-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
88-
export { OptimizedMetadataRegistry } from '@objectql/plugin-optimizations';
89-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
90-
export { QueryCompiler } from '@objectql/plugin-optimizations';
91-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
92-
export { CompiledHookManager } from '@objectql/plugin-optimizations';
93-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
94-
export { GlobalConnectionPool } from '@objectql/plugin-optimizations';
95-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
96-
export { OptimizedValidationEngine } from '@objectql/plugin-optimizations';
97-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
98-
export { LazyMetadataLoader } from '@objectql/plugin-optimizations';
99-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
100-
export { DependencyGraph } from '@objectql/plugin-optimizations';
101-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
102-
export { SQLQueryOptimizer } from '@objectql/plugin-optimizations';
103-
/** @deprecated Import from '@objectql/plugin-optimizations' instead */
104-
export { OptimizationsPlugin } from '@objectql/plugin-optimizations';
105-
106-
export type { CompiledQuery } from '@objectql/plugin-optimizations';
107-
export type { Hook } from '@objectql/plugin-optimizations';
108-
export type { Connection, PoolLimits } from '@objectql/plugin-optimizations';
109-
export type { ValidatorFunction, ValidationSchema } from '@objectql/plugin-optimizations';
110-
export type { ObjectMetadata, MetadataLoader } from '@objectql/plugin-optimizations';
111-
export type { DependencyEdge, DependencyType } from '@objectql/plugin-optimizations';
112-
export type { IndexMetadata, SchemaWithIndexes, OptimizableQueryAST } from '@objectql/plugin-optimizations';

packages/foundation/core/test/gateway.test.ts

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)