Skip to content

Upgrade @objectstack/client to v2.0.1 — all SDK gaps resolved#24

Merged
hotlong merged 4 commits intomainfrom
copilot/update-to-latest-version
Feb 9, 2026
Merged

Upgrade @objectstack/client to v2.0.1 — all SDK gaps resolved#24
hotlong merged 4 commits intomainfrom
copilot/update-to-latest-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 9, 2026

v2.0.1 completes implementation of all 13 API namespaces with full TypeScript type exports, unblocking Phase 4B and 5B development.

Package Upgrade

  • @objectstack/client and @objectstack/client-react: ^2.0.0^2.0.1
  • All 346 tests pass, fully backward compatible

What v2.0.1 Unlocks

Previously missing APIs now available at runtime with typed exports:

Namespace Methods Unblocks
client.permissions.* check, getObjectPermissions, getEffectivePermissions Phase 4B.2
client.workflow.* getConfig, getState, transition, approve, reject Phase 4B.3
client.realtime.* connect, subscribe, setPresence, etc. Phase 4B.4
client.notifications.* registerDevice, list, markRead, etc. Phase 4B.5
client.ai.* nlq, chat, suggest, insights Phase 5B.1
client.i18n.* getLocales, getTranslations, getFieldLabels Phase 5B.2
client.views.* list, get, create, update, delete (now fully typed) Phase 4B.1

Documentation Updates

  • ROADMAP.md: Phase 4B/5B status changed from ⛔ Blocked → ✅ SDK Ready. Timeline reduced from 11-14 weeks to 6-8 weeks.
  • PROJECT-STATUS.md: Reflected unblocked status across all phases
  • SDK-GAP-ANALYSIS.md: All 7 critical gaps (1-6, 9) marked resolved
  • SDK-V2-UPGRADE.md: Rewrote for v2.0.1 (removed stale "NOT IMPLEMENTED" warnings from v2.0.0)
  • V2-UPGRADE-SUMMARY.md: Updated assessment and timeline

Code Change

  • hooks/useViewStorage.ts: Updated viewsApi comment. Workaround retained because the hook's data model (name/visibility/filters) doesn't align with SDK's typed schema (list/form view configs) — proper refactor tracked as Phase 4B.1.
// v2.0.1: all namespaces available
client.permissions.check({ object: 'contact', action: 'create' })
client.workflow.transition({ object: 'approval', recordId, transition: 'submit' })
client.realtime.subscribe({ channel: 'contact', event: 'update' })
client.ai.nlq({ query: 'show high priority tasks due this week' })

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

Copilot AI and others added 3 commits February 9, 2026 12:13
…2.0.1

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…resolved

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to the latest version and update roadmap Upgrade @objectstack/client to v2.0.1 — all SDK gaps resolved Feb 9, 2026
Copilot AI requested a review from hotlong February 9, 2026 12:53
@hotlong hotlong marked this pull request as ready for review February 9, 2026 12:54
Copilot AI review requested due to automatic review settings February 9, 2026 12:54
@hotlong hotlong merged commit 97cb508 into main Feb 9, 2026
Copy link
Copy Markdown

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

Upgrades the ObjectStack SDK dependencies to v2.0.1 and updates project documentation to reflect that all previously missing SDK namespaces are now available and typed, unblocking Phase 4B/5B work.

Changes:

  • Bump @objectstack/client and @objectstack/client-react from ^2.0.0 to ^2.0.1 (plus lockfile updates).
  • Update docs to mark SDK gaps as resolved and adjust roadmap/status/timelines accordingly.
  • Refresh useViewStorage commentary to reflect the new SDK typing reality while keeping the workaround for now.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm-lock.yaml Locks @objectstack/* packages to v2.0.1 artifacts.
package.json Updates direct dependency ranges to ^2.0.1.
hooks/useViewStorage.ts Updates rationale comment about the views API typing/workaround.
docs/V2-UPGRADE-SUMMARY.md Updates upgrade summary to v2.0.1 and revised timelines/gaps.
docs/SDK-V2-UPGRADE.md Rewrites upgrade guide for v2.0.1 and lists newly available namespaces.
docs/SDK-GAP-ANALYSIS.md Marks gaps as resolved in v2.0.1 and updates API inventory/priorities.
docs/ROADMAP.md Updates roadmap to reflect v2.0.1 readiness and unblocked phases.
docs/PROJECT-STATUS.md Updates status narrative from “SDK-blocked” to “SDK-ready” for Phase 4B/5B.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/SDK-GAP-ANALYSIS.md
Comment on lines +919 to 921
- **总计**: ~6-8 周(无上游阻塞)
- **总计**: ~6-8 周(无上游阻塞,可并行开发缩短周期

Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

The total estimate is listed twice with nearly identical wording. Please remove one of these bullets (or combine them) to avoid redundancy and potential confusion about whether they represent different totals.

Suggested change
- **总计**: ~6-8 周(无上游阻塞)
- **总计**: ~6-8 周(无上游阻塞,可并行开发缩短周期)
- **总计**: ~6-8 周(无上游阻塞;各 Phase 可并行开发以缩短实际日历周期)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants