Skip to content

Conversation

@mergify
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
@andrewkroh andrewkroh deleted the mergify/bp/8.x/pr-41541 branch November 6, 2024 23:44
@khushijain21 khushijain21 mentioned this pull request Jun 23, 2025
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.

2 participants