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

Prep for TinyGo's v0.28 encoding/json Support #9

Merged
merged 8 commits into from
Oct 8, 2023

Conversation

syke99
Copy link
Contributor

@syke99 syke99 commented May 26, 2023

This PR removes the fastjson dependency in favor of using the stdlib's encoding/json package as it will be fully supported by TinyGo's v0.28 release

@nilslice
Copy link
Member

thanks @syke99! we just updated our CI for this repo to use the latest tinygo, so we'll take a look at this and get back to you asap.

Copy link

@wikiwong wikiwong left a comment

Choose a reason for hiding this comment

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

Thanks for this @syke99, looks great! Just a minor change requested (in addition to merge conflicts)

internal/models/req_meta_data.go Outdated Show resolved Hide resolved
extism_pdk.go Outdated
type HTTPRequestMeta struct {
Url string `json:"url"`
Method string `json:"method"`
Headers map[string]string `json:"header"`
Copy link
Member

Choose a reason for hiding this comment

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

technically we support this json field name in the Rust runtime, but for consistency and long-term support I think we should change the JSON struct tag to headers here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops, yeah. was a copy paste error lol. one sec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there we go 😋

Copy link
Member

@nilslice nilslice left a comment

Choose a reason for hiding this comment

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

LGTM!

@wikiwong
Copy link

wikiwong commented Oct 8, 2023

Great update, thanks @syke99 !

@wikiwong wikiwong merged commit 5ad87d4 into extism:main Oct 8, 2023
2 checks passed
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.

3 participants