chore(objectstack): upgrade to 7.5.0 + fix date-field save regression#63
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/datano longer exports theObjecttype alias → useServiceObjectInputownership: 'own'is no longer a top-level object property → removeddefineStack()'s inferred return type isn't portable underdeclaration: true→ annotate export asObjectStackDefinitionClient runtime fix
7.5.0 strictly validates
date/datetimefields as ISO-8601 and rejects epoch-ms numbers (400 invalid_date). The mobileDatePickeremits epoch-ms, so Edit → Save on any record with a date failed. Normalize date/datetime values to ISO-8601 inFormViewRendererbefore submit.Verification
tsc --noEmitclean (mobile + server)objectstack validatepassesPOST /api/v1/actions/...→ 200), and Edit → Save (PATCH 400 → 200, value persisted,close_datestored as ISO-8601)Follow-ups (not in this PR)
{success:true, data:{success:false,error}};dispatchServerActiononly checks the outer flag → failed actions can report as success.FlowViewer/StateMachineViewercomponents exist + are unit-tested but aren't wired into any screen yet.🤖 Generated with Claude Code