Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date handling #1504

Merged
merged 6 commits into from
Oct 25, 2024
Merged

date handling #1504

merged 6 commits into from
Oct 25, 2024

Conversation

eandre
Copy link
Member

@eandre eandre commented Oct 18, 2024

  • runtimes/{core,js}: refactor schema encode/decode
  • Add date support

@encore-cla
Copy link

encore-cla bot commented Oct 18, 2024

All committers have signed the CLA.

fredr
fredr previously approved these changes Oct 21, 2024
Copy link
Member

@fredr fredr left a comment

Choose a reason for hiding this comment

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

looks great!

runtimes/core/src/pubsub/mod.rs Outdated Show resolved Hide resolved
Introduce a pair of types, `PValue` and `PValues`. The types
allow us to introduce dedicated semantic types that go beyond
plain JSON types.

As a result, since the wire protocol is still JSON, decoding JSON
into these types requires an API schema (so that we know e.g.
whether a string is "just a string" or should be a datetime.

This commit introduces the concept and refactors the runtimes
to use it. The next commit adds support for dates.
Copy link
Member

@fredr fredr left a comment

Choose a reason for hiding this comment

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

🕐

@eandre eandre merged commit c225d35 into encoredev:main Oct 25, 2024
4 checks passed
@eandre eandre deleted the date-handling branch October 25, 2024 09:28
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