Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Description

Upgraded @objectstack/spec from 0.6.0 to 0.6.1 across all packages. Added @objectstack/runtime dependencies (core, runtime, objectql, driver-memory) to server package, though ESM compatibility issues in published packages prevent immediate runtime adoption.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • CI/CD update

Changes Made

Dependency Upgrades

  • @objectstack/spec: ^0.6.0 → ^0.6.1 (core, crm, support, products, finance, ui packages)
  • Added to server: @objectstack/core, @objectstack/runtime, @objectstack/objectql, @objectstack/driver-memory at ^0.6.1

Documentation

  • Added UPGRADE_NOTES.md documenting ESM compatibility issues in @objectstack/runtime@0.6.1 (missing .js extensions in imports)
  • Updated README.md to reflect v0.6.1
  • Added inline documentation in server.ts explaining current state and future migration path

Runtime Integration Readiness

Server architecture prepared for kernel-based initialization when upstream packages are fixed:

// Future implementation (blocked by ESM issues)
const kernel = new ObjectKernel();
kernel.use(new ObjectQLPlugin());
kernel.use(new DriverPlugin(new InMemoryDriver(), 'default'));
await kernel.bootstrap();

Current implementation continues using local ObjectQL from @hotcrm/core until upstream resolves ESM compatibility.

Testing

  • Unit tests pass (npm test)
  • Linting passes (npm run lint)
  • Build succeeds (npm run build)
  • Manual testing completed
  • New tests added (if applicable)

Screenshots

N/A - Infrastructure upgrade with no UI changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

ESM Compatibility Blocker: @objectstack/runtime@0.6.1 and @objectstack/objectql@0.6.1 have missing .js extensions in their ES module imports, causing Node.js runtime errors. Dependencies are installed and ready; migration to official runtime requires upstream package fixes. See UPGRADE_NOTES.md for details.

Migration Impact: None. Server continues using existing ObjectQL implementation. Future migration to kernel-based runtime will be seamless once upstream packages are fixed.

Original prompt

@objectstack 升级到最新版,并使用官方发布的 @objectack/runtime 启动服务。


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 29, 2026

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

Project Deployment Review Updated (UTC)
hotcrm Canceled Canceled Jan 29, 2026 0:35am

Request Review

Copilot AI and others added 3 commits January 29, 2026 00:23
…encies

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>
@hotlong hotlong marked this pull request as ready for review January 29, 2026 00:36
Copilot AI review requested due to automatic review settings January 29, 2026 00:36
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 29, 2026
Copilot AI changed the title [WIP] Upgrade to latest version of @objectstack and use official runtime Upgrade @objectstack to v0.6.1 and add runtime dependencies Jan 29, 2026
Copilot AI requested a review from hotlong January 29, 2026 00:37
Copy link

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 HotCRM monorepo to use @objectstack v0.6.1 across domain packages, adds the official runtime-related dependencies to the server package, and documents the current limitation around using @objectstack/runtime in an ESM environment.

Changes:

  • Bumped @objectstack/spec from ^0.6.0 to ^0.6.1 in all domain packages and lockfile.
  • Added @objectstack/core, @objectstack/runtime, @objectstack/objectql, and @objectstack/driver-memory ^0.6.1 dependencies to the server package and updated server banner/documentation to reflect the upgrade and current runtime status.
  • Added UPGRADE_NOTES.md and updated README.md to describe the 0.6.1 upgrade, known ESM issues with @objectstack/runtime, and the future migration path.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-lock.yaml Locks all upgraded @objectstack packages and new runtime-related dependencies at version 0.6.1, ensuring reproducible installs with the new stack.
packages/core/package.json Updates @objectstack/spec dependency to ^0.6.1 for the core domain, aligning it with the new protocol version.
packages/crm/package.json Bumps @objectstack/spec to ^0.6.1 so the CRM package uses the latest spec definitions.
packages/support/package.json Updates @objectstack/spec to ^0.6.1 for the support domain to keep protocol versions consistent.
packages/products/package.json Aligns the products package with @objectstack/spec ^0.6.1.
packages/finance/package.json Moves the finance package to @objectstack/spec ^0.6.1 to match other domains.
packages/ui/package.json Updates UI package to depend on @objectstack/spec ^0.6.1, ensuring UI metadata uses the latest spec.
packages/server/package.json Adds @objectstack/core, @objectstack/runtime, @objectstack/objectql, and @objectstack/driver-memory as ^0.6.1 dependencies to prepare the server for using the official runtime.
packages/server/src/server.ts Adds comments documenting the current use of the local ObjectQL implementation and the ESM issues with @objectstack/runtime@0.6.1, plus a banner line indicating the upgrade to v0.6.1.
UPGRADE_NOTES.md Introduces detailed upgrade notes for @objectstack 0.6.1, including known ESM issues, migration path to the official runtime, and current testing status.
README.md Updates the public-facing description to explicitly reference @objectstack/spec v0.6.1, reflecting the new protocol version used by the project.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@hotlong hotlong merged commit bfd1a88 into main Jan 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants