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

[8.x](backport #41541) go.mod - use elastic/goja fork #41543

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 6, 2024

Proposed commit message

Move to the elastic/goja fork instead of andrewkroh/goja. This is the same code just moved into the elastic org and tagged with v2019-01-28+beats.

For background, this fork contains a small change to goja that allows arbitrary map types (such as elastic's "MapStr" type) to be treated as javascript objects without requiring any conversion.

Also note that since the time of the fork in 2019, there is now a path to accomplish this without a fork by implementing a toValue(r *goja.Runtime) goja.Value method on MapStr. It would mean introducing a direct dependency on goja. A tested example of can be found in the linked gist.


This is an automatic backport of pull request #41541 done by [Mergify](https://mergify.com).

Move to the elastic/goja fork instead of andrewkroh/goja.
This the same code just moved into the elastic org and tagged
with v2019-01-28+beats.

For background, this fork contains a small change to goja that
allows arbitrary map types (such as elastic's "MapStr" type) to
be treated as javascript objects without requiring any conversion.

Also note that since the time of the fork in 2019, there is now
a path to accomplish this without a fork by implementing a
`toValue(r *goja.Runtime) goja.Value` method on MapStr. It would
mean introducing a direct dependency on goja. A tested example of
can be found in the linked gist.

https://gist.github.com/andrewkroh/19eccc0844bb935222914234c9510aa1

https://github.com/elastic/goja/releases/tag/v2019-01-28%2Bbeats
(cherry picked from commit 8a7e9cf)
@mergify mergify bot requested a review from a team as a code owner November 6, 2024 22:06
@mergify mergify bot added the backport label Nov 6, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 6, 2024
@botelastic
Copy link

botelastic bot commented Nov 6, 2024

This pull request doesn't have a Team:<team> label.

@andrewkroh andrewkroh enabled auto-merge (squash) November 6, 2024 22:07
@andrewkroh andrewkroh merged commit 5411403 into 8.x Nov 6, 2024
141 checks passed
@andrewkroh andrewkroh deleted the mergify/bp/8.x/pr-41541 branch November 6, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant