Skip to content

Conversation

@coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented Oct 22, 2025

Description of Changes

Resolves #3433. The issue was caused by the fact we were calling serialize_to_js with a full Timestamp struct, not just an i64. In the future I'd like to move away from the use of serialize_to_js to avoid problems like this.

API and ABI breaking changes

Technically a breaking change, but fixes a bug.

Expected complexity level and risk

1

Testing

  • Checked to ensure ctx.timestamp is correct.

@coolreader18 coolreader18 requested a review from Centril October 22, 2025 20:04
Copy link
Collaborator

@joshua-spacetime joshua-spacetime left a comment

Choose a reason for hiding this comment

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

A regression test will be added as part of the quickstart smoketest

@coolreader18 coolreader18 added this pull request to the merge queue Oct 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 22, 2025
@coolreader18 coolreader18 added this pull request to the merge queue Oct 22, 2025
Merged via the queue into master with commit dd94991 Oct 22, 2025
27 of 29 checks passed
@coolreader18 coolreader18 deleted the noa/fix-timestamp-serialization branch October 23, 2025 02:26
bfops pushed a commit that referenced this pull request Oct 27, 2025
# Description of Changes

Resolves #3433. The issue was caused by the fact we were calling
`serialize_to_js` with a full `Timestamp` struct, not just an `i64`. In
the future I'd like to move away from the use of `serialize_to_js` to
avoid problems like this.

# API and ABI breaking changes

Technically a breaking change, but fixes a bug.

# Expected complexity level and risk

1

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [x] Checked to ensure `ctx.timestamp` is correct.
- [ ] <!-- maybe a test you want a reviewer to do, so they can check it
off when they're satisfied. -->
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2025
# Description of Changes

Based on #3461, which fixes a bug encountered in the quickstart.

# API and ABI breaking changes

<!-- If this is an API or ABI breaking change, please apply the
corresponding GitHub label. -->
n/a

# Expected complexity level and risk

<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.

This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->
1

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [x] Yes
- [ ] <!-- maybe a test you want a reviewer to do, so they can check it
off when they're satisfied. -->
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.

TypeScript SDK timestamps are mistyped or improperly serialized

3 participants