Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Upgrades @objectstack/spec dependency to v0.6.1 across core packages and exposes new protocol namespaces through @object-ui/types.

Changes

Dependency Updates

  • @object-ui/types: v0.3.3 → v0.6.1
  • @object-ui/core: v0.4.1 → v0.6.1
  • @object-ui/react: v0.3.3 → v0.6.1

Protocol Namespace Exports

Added namespace re-exports in @object-ui/types/src/index.ts to expose the full ObjectStack protocol:

export type { 
  Data,        // Field, Object, Schema
  UI,          // Component definitions
  System,      // Environment, Configuration
  AI,          // Model, Agent
  API,         // Endpoint, Contract
  Auth,        // User, Session
  Hub,         // Tenant, Space
  Automation,  // Workflow, Trigger
  Permission,  // PermissionSet, RLS
  Shared       // ObjectId, Identifiers
} from '@objectstack/spec';

Consumers can now use:

import { Data, UI, Auth } from '@object-ui/types';

const field: Data.Field = { name: 'email', type: 'text' };
const user: Auth.User = { id: 'u1', email: 'user@example.com' };

Testing

Added namespace export verification tests covering all 10 protocol namespaces.

Backward Compatibility

No breaking changes. All existing code continues to work unchanged.

Original prompt

🔥 Phase 1: 协议升级 (Q1 2026 - Week 1-2) - CRITICAL

目标: 将所有包升级到 ObjectStack Spec v0.6.1

任务清单:

1.1: 升级 @object-ui/types 依赖

更新 package.json: @objectstack/spec 从 v0.3.3 → v0.6.1
重新导出所有协议命名空间 (Data, UI, System, AI, API)
添加类型重导出: export type { Data, UI, System, AI, API }
1.2: 更新 @object-ui/core 依赖

升级到 v0.4.1 → v0.6.1
验证 Schema 验证器与新协议兼容性
1.3: 更新 @object-ui/react 依赖

升级到 v0.3.3 → v0.6.1
验证渲染器与新协议兼容性
1.4: 运行完整测试套件

修复所有破坏性变更
确保 100% 测试通过
1.5: 更新文档

更新 API 文档引用
成功标准:

✅ 所有包使用 @objectstack/spec v0.6.1
✅ 所有测试通过
✅ 零破坏性变更 (向后兼容)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Jan 30, 2026 0:13am
objectui-components Ready Ready Preview, Comment Jan 30, 2026 0:13am
objectui-crm-app Error Error Jan 30, 2026 0:13am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@github-actions
Copy link

📦 Bundle Size Report

Package Size Gzipped
components (index.js) 1760.07KB 416.42KB
core (index.js) 0.51KB 0.28KB
data-objectstack (index.js) 4.72KB 1.57KB
fields (index.js) 75.69KB 15.58KB
layout (index.js) 12.63KB 3.91KB
plugin-aggrid (AgGridImpl-Dc3XYk0w.js) 5.09KB 1.84KB
plugin-aggrid (ObjectAgGridImpl-C1tFMTyP.js) 11.43KB 3.51KB
plugin-aggrid (index-CizWUWQR.js) 19.13KB 4.88KB
plugin-aggrid (index.js) 0.22KB 0.16KB
plugin-calendar (index.js) 33.12KB 8.29KB
plugin-charts (AdvancedChartImpl-DPXnchtJ.js) 69.51KB 16.23KB
plugin-charts (BarChart-RKJxvg5Y.js) 535.74KB 134.11KB
plugin-charts (ChartImpl-DZGXB6YY.js) 8.78KB 3.11KB
plugin-charts (index-A3NiI95J.js) 12.59KB 3.90KB
plugin-charts (index.js) 0.21KB 0.16KB
plugin-chatbot (index.js) 18.36KB 5.21KB
plugin-dashboard (index.js) 11.92KB 3.81KB
plugin-editor (MonacoImpl-B7ZgZJJG.js) 18.15KB 5.59KB
plugin-editor (index-Dl3HAAqu.js) 10.07KB 3.31KB
plugin-editor (index.js) 0.19KB 0.15KB
plugin-form (index.js) 14.43KB 4.64KB
plugin-gantt (index.js) 18.00KB 5.26KB
plugin-grid (index.js) 15.94KB 5.02KB
plugin-kanban (KanbanImpl-CUWM-JC-.js) 76.50KB 20.46KB
plugin-kanban (index-BV3FWhCb.js) 11.86KB 3.67KB
plugin-kanban (index.js) 0.18KB 0.15KB
plugin-map (index.js) 16.75KB 5.11KB
plugin-markdown (MarkdownImpl-BRkYjVWf.js) 256.79KB 64.50KB
plugin-markdown (index-D_CdfEXQ.js) 9.59KB 3.16KB
plugin-markdown (index.js) 0.19KB 0.15KB
plugin-timeline (index.js) 23.90KB 5.95KB
plugin-view (index.js) 16.64KB 4.92KB
react (SchemaRenderer.js) 2.58KB 1.04KB
react (index.js) 0.36KB 0.23KB
react (index.test.js) 0.34KB 0.26KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 0.20KB 0.18KB
types (base.js) 0.20KB 0.18KB
types (complex.js) 0.20KB 0.18KB
types (crud.js) 0.20KB 0.18KB
types (data-display.js) 0.20KB 0.18KB
types (data.js) 0.20KB 0.18KB
types (disclosure.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (index.js) 0.34KB 0.25KB
types (layout.js) 0.20KB 0.18KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (registry.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

@hotlong hotlong marked this pull request as ready for review January 29, 2026 23:26
Copilot AI review requested due to automatic review settings January 29, 2026 23:26
Copilot AI and others added 2 commits January 29, 2026 23:26
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the @objectstack/spec dependency from various earlier versions (v0.3.3, v0.4.1) to v0.6.1 across three core packages (@object-ui/types, @object-ui/core, @object-ui/react) and exposes the full ObjectStack protocol through namespace re-exports.

Changes:

  • Updated @objectstack/spec dependency to v0.6.1 in @object-ui/types, @object-ui/core, and @object-ui/react
  • Added namespace re-exports in @object-ui/types for all 10 ObjectStack protocol namespaces (Data, UI, System, AI, API, Auth, Hub, Automation, Permission, Shared)
  • Added comprehensive test coverage for all namespace exports

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/types/package.json Updated @objectstack/spec dependency from ^0.3.3 to ^0.6.1
packages/core/package.json Updated @objectstack/spec dependency from ^0.4.1 to ^0.6.1
packages/react/package.json Updated @objectstack/spec dependency from ^0.3.3 to ^0.6.1
packages/types/src/index.ts Added namespace re-exports for all 10 ObjectStack protocol namespaces with documentation
packages/types/src/tests/namespace-exports.test.ts Added test coverage verifying all namespace exports are accessible
pnpm-lock.yaml Updated lock file entries for new @objectstack/spec version, removed old v0.3.3 references
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@hotlong hotlong merged commit e3179b3 into main Jan 30, 2026
9 of 14 checks passed
@github-actions
Copy link

📦 Bundle Size Report

Package Size Gzipped
components (index.js) 1760.07KB 416.42KB
core (index.js) 0.51KB 0.28KB
data-objectstack (index.js) 4.72KB 1.57KB
fields (index.js) 75.69KB 15.58KB
layout (index.js) 12.63KB 3.91KB
plugin-aggrid (AgGridImpl-Dc3XYk0w.js) 5.09KB 1.84KB
plugin-aggrid (ObjectAgGridImpl-C1tFMTyP.js) 11.43KB 3.51KB
plugin-aggrid (index-CizWUWQR.js) 19.13KB 4.88KB
plugin-aggrid (index.js) 0.22KB 0.16KB
plugin-calendar (index.js) 33.12KB 8.29KB
plugin-charts (AdvancedChartImpl-DPXnchtJ.js) 69.51KB 16.23KB
plugin-charts (BarChart-RKJxvg5Y.js) 535.74KB 134.11KB
plugin-charts (ChartImpl-DZGXB6YY.js) 8.78KB 3.11KB
plugin-charts (index-A3NiI95J.js) 12.59KB 3.90KB
plugin-charts (index.js) 0.21KB 0.16KB
plugin-chatbot (index.js) 18.36KB 5.21KB
plugin-dashboard (index.js) 11.92KB 3.81KB
plugin-editor (MonacoImpl-B7ZgZJJG.js) 18.15KB 5.59KB
plugin-editor (index-Dl3HAAqu.js) 10.07KB 3.31KB
plugin-editor (index.js) 0.19KB 0.15KB
plugin-form (index.js) 14.43KB 4.64KB
plugin-gantt (index.js) 18.00KB 5.26KB
plugin-grid (index.js) 15.94KB 5.02KB
plugin-kanban (KanbanImpl-CUWM-JC-.js) 76.50KB 20.46KB
plugin-kanban (index-BV3FWhCb.js) 11.86KB 3.67KB
plugin-kanban (index.js) 0.18KB 0.15KB
plugin-map (index.js) 16.75KB 5.11KB
plugin-markdown (MarkdownImpl-BRkYjVWf.js) 256.79KB 64.50KB
plugin-markdown (index-D_CdfEXQ.js) 9.59KB 3.16KB
plugin-markdown (index.js) 0.19KB 0.15KB
plugin-timeline (index.js) 23.90KB 5.95KB
plugin-view (index.js) 16.64KB 4.92KB
react (SchemaRenderer.js) 2.58KB 1.04KB
react (index.js) 0.36KB 0.23KB
react (index.test.js) 0.34KB 0.26KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 0.20KB 0.18KB
types (base.js) 0.20KB 0.18KB
types (complex.js) 0.20KB 0.18KB
types (crud.js) 0.20KB 0.18KB
types (data-display.js) 0.20KB 0.18KB
types (data.js) 0.20KB 0.18KB
types (disclosure.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (index.js) 0.34KB 0.25KB
types (layout.js) 0.20KB 0.18KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (registry.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants