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

ppx: remove string_to_json usage on js side #35

Merged
merged 5 commits into from
Nov 16, 2024
Merged

Conversation

jchavarri
Copy link
Member

Fixes #34.

The first commit adds a test that shows the error on JS side. The second commit fixes it.

@jchavarri jchavarri requested a review from andreypopp November 15, 2024 17:28
Copy link
Collaborator

@andreypopp andreypopp left a comment

Choose a reason for hiding this comment

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

Thanks!

(Looking at the output, we can also just Obj.magic it away as well)

@jchavarri
Copy link
Member Author

Ah good point. St like 1d93950?

@andreypopp
Copy link
Collaborator

Yes, looks good!

CHANGES.md Outdated
@@ -19,6 +19,8 @@
([#30](https://github.com/melange-community/melange-json/pull/30))
- PPX: add support for `int64` in the runtime
([#33](https://github.com/melange-community/melange-json/pull/33))
- PPX: qualify `string_to_json` usage on js side
Copy link
Member

Choose a reason for hiding this comment

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

in the end this isn't really what ended up happening 😬

@jchavarri jchavarri changed the title ppx: qualify string_to_json usage on js side ppx: remove string_to_json usage on js side Nov 16, 2024
@jchavarri jchavarri merged commit ac0f795 into main Nov 16, 2024
7 checks passed
@jchavarri jchavarri deleted the ppx-namespace-tojson branch November 16, 2024 08:57
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.

ppx: generated code for variants depends on runtime on Melange side, but not on OCaml side
3 participants