Skip to content

chore(objectstack): upgrade to 7.5.0 + fix date-field save regression#63

Merged
xuyushun441-sys merged 1 commit into
mainfrom
chore/objectstack-7.5-upgrade
Jun 1, 2026
Merged

chore(objectstack): upgrade to 7.5.0 + fix date-field save regression#63
xuyushun441-sys merged 1 commit into
mainfrom
chore/objectstack-7.5-upgrade

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Summary

Upgrade all @objectstack/* packages 7.3.0 → 7.5.0 (mobile app + apps/server) and fix a date-field save regression surfaced by the upgrade.

Server metadata breaking changes (7.5.0)

  • @objectstack/spec/data no longer exports the Object type alias → use ServiceObjectInput
  • ownership: 'own' is no longer a top-level object property → removed
  • defineStack()'s inferred return type isn't portable under declaration: true → annotate export as ObjectStackDefinition

Client runtime fix

7.5.0 strictly validates date/datetime fields as ISO-8601 and rejects epoch-ms numbers (400 invalid_date). The mobile DatePicker emits epoch-ms, so Edit → Save on any record with a date failed. Normalize date/datetime values to ISO-8601 in FormViewRenderer before submit.

Verification

  • tsc --noEmit clean (mobile + server)
  • objectstack validate passes
  • ✅ Full jest suite unchanged from baseline (1119 pass; 20 pre-existing snapshot failures, unrelated)
  • ✅ End-to-end in browser against a local 7.5.0 server: login, apps/dashboards, list views, record detail, object action execution (POST /api/v1/actions/... → 200), and Edit → Save (PATCH 400 → 200, value persisted, close_date stored as ISO-8601)

Follow-ups (not in this PR)

  • Object-action route returns {success:true, data:{success:false,error}}; dispatchServerAction only checks the outer flag → failed actions can report as success.
  • FlowViewer / StateMachineViewer components exist + are unit-tested but aren't wired into any screen yet.

🤖 Generated with Claude Code

Bump all @objectstack/* packages from 7.3.0 to 7.5.0 across the mobile app
and apps/server.

Server metadata breaking changes (7.5.0):
- spec/data no longer exports the `Object` type alias -> use ServiceObjectInput
- `ownership: 'own'` is no longer a top-level object property -> removed
- defineStack()'s inferred return type isn't portable under declaration:true
  -> annotate the export as ObjectStackDefinition

Client runtime fix:
- 7.5.0 strictly validates date/datetime fields as ISO-8601 and rejects
  epoch-ms numbers (400 invalid_date). The DatePicker emits epoch-ms, so
  Edit -> Save on any record with a date failed. Normalize date/datetime
  values to ISO-8601 in FormViewRenderer before submit.

Verified: typecheck clean (mobile + server), `objectstack validate` passes,
full jest suite unchanged from baseline, and end-to-end in the browser
against a local 7.5.0 server (list, detail, action execution, edit+save).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys merged commit e141ce5 into main Jun 1, 2026
1 of 4 checks passed
@xuyushun441-sys xuyushun441-sys deleted the chore/objectstack-7.5-upgrade branch June 1, 2026 18:41
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.

2 participants