docs: update advanced-imessage-ts documentation for v0.4.0#8
docs: update advanced-imessage-ts documentation for v0.4.0#8photon-action-bot[bot] wants to merge 6 commits intomainfrom
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Resolved conflicts: - docs-src/advanced-kits/imessage/messages.mdx.vel: kept Vellum template syntax from main for MessageListOptions table (auto-generated), preserved PR's content changes (cursor fields, Stream catch-up section) - pnpm-lock.yaml: accepted main's generated lockfile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Resolved merge conflicts after merging origin/main into this branch. docs-src/advanced-kits/imessage/messages.mdx.vel: Main rewrote the file to use Vellum template syntax for the MessageListOptions table, while this PR had a hardcoded row for the new afterCursor field. Kept the Vellum template approach from main (auto-generates table from SDK types). All other PR content changes (cursor? fields in event types, new Stream catch-up section with fetchMissed()) were incorporated by git auto-merge. pnpm-lock.yaml: Main's lockfile referenced @photon-ai/advanced-imessage@^0.1.0, but this PR's package.json uses ^0.4.0. Regenerated with pnpm install --no-frozen-lockfile. Verified: pnpm lint and pnpm typecheck:docs both pass. |
Resolve conflicts in package.json and pnpm-lock.yaml by preferring main's dependency versions (@antfu/eslint-config ^4.19.0, @photon-ai/advanced-imessage ^0.4.2) and lockfile. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Resolved merge conflicts between Conflicts found:
Resolution strategy: Preferred main's versions for dependency/lockfile files. No content files had conflicts. Verification: pnpm install --frozen-lockfile ✅ | pnpm lint ✅ | pnpm typecheck:docs ✅ |
Merge conflict resolutionStatus: The branch was already up to date with The resolved state has:
|
Resolved conflict in messages.mdx.vel: kept origin/main's dynamic Velocity template (SDK symbol-driven Accordion) for the event types section rather than the PR's hardcoded table, as the template approach is consistent with the rest of the file and auto-reflects SDK changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge conflict resolvedConflicted file: Conflict: The "Event types" section under "Real-time events" had diverged between the PR and
Resolution: Kept All checks passed after resolution: |
Both branches added declarations at the end of declarePreamble. Merged by keeping all unique declarations from both sides: - persistCursor (needed by PR's messages.mdx.vel) - updateMapPin (needed by main's locations.mdx.vel) Dropped the PR's duplicate `declare let cursor` (already declared as `const cursor: string | undefined` earlier in the preamble). Also fixed type error: added non-null assertion on cursor in the fetchMissed options example, since cursor is string | undefined in the preamble but fetchMissed expects string. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Merge conflict resolved One conflict in
Bonus fix: After merging,
|
Documentation Update: advanced-imessage-ts v0.4.0
This PR updates documentation for advanced-imessage-ts based on the v0.4.0 release.
Release Notes
New Features
495612f): stream events now include a cursor you can store, andmessages.fetchMissed(cursor)lets you replay messages that arrived while you were disconnected in chronological order 🚀.messages.list({ afterCursor }), plus exportedFetchMissedOptions, so resuming from a known position is simpler and doesn’t require custom catch-up logic.Improvement
DESIGN.mdwith a practical reconnect/catch-up example so teams can implement cursor persistence and recovery faster.Version: 0.4.0