Skip to content

Commit 00c7c22

Browse files
Copilothotlong
andcommitted
Refactor @objectql/server as thin wrapper to @objectql/plugin-server
完全移除现有的 server 实现逻辑,按照新的插件方式重构。 - 删除 @objectql/server 中的所有实现文件 - 将 @objectql/server 改为仅从 @objectql/plugin-server 重新导出的兼容层 - 将所有测试移至 @objectql/plugin-server 包 - 更新示例使用新的 @objectql/plugin-server 包 - 所有 129 个测试仍然通过 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent dd37a06 commit 00c7c22

29 files changed

Lines changed: 138 additions & 2942 deletions

examples/integrations/express-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@objectql/core": "workspace:*",
30-
"@objectql/server": "workspace:*",
30+
"@objectql/plugin-server": "workspace:*",
3131
"@objectql/types": "workspace:*",
3232
"@objectql/driver-sql": "workspace:*",
3333
"@objectql/platform-node": "workspace:*",

examples/integrations/express-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import express from 'express';
1010
import { ObjectQL } from '@objectql/core';
1111
import { SqlDriver } from '@objectql/driver-sql';
1212
import { ObjectLoader } from '@objectql/platform-node';
13-
import { createNodeHandler, createMetadataHandler, createRESTHandler } from '@objectql/server';
13+
import { createNodeHandler, createMetadataHandler, createRESTHandler } from '@objectql/plugin-server';
1414
import * as path from 'path';
1515

1616
async function main() {
File renamed without changes.

packages/runtime/server/test/file-upload-integration.example.ts renamed to packages/plugins/server/test/file-upload-integration.example.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)