-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove node-fetch dependency #20
Conversation
With this PR, does a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For symmetry, I'm fine removing the node-fetch and explicitly having the client provide it.
Otherwise, we could consider modifying the two builds (one for browser and one for server). But I think for now it's important we move the Kibana NP work forward as quickly as possible, so whatever gets us there quickest is the way to go.
Yeah. I also considered throwing if no function was provided. Maybe smarter than a warning "slap on the wrist" here. Thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of nits.
This is a breaking change for ems-client. But I'm not sure if we really need to document it further? ems-client "should" only be used by Kibana and ems-landing-page. ems-landing-page is client only and should not be affected. Since it appears to be breaking Kibana, perhaps it's more of a breaking bug fix? And since we're matching the stack release, it wouldn't make sense to publish a new major version anyways.
wrt
I think that's fine. We don't guarantee any compatibility across minors, neither for ems-client or in Kibana even (in Kibana, we don't want to break at config or end-user experience, but no guarantees in code). This will also get bumped to 7.8, so there's no real issue for existing users. And possible bug-fixes for older branches would get patched on those (7.7.x, 7.6.x, ...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks.
be047c4
to
ad8fabc
Compare
Follow up to elastic/kibana#61846. Another step to unblocking elastic/kibana#60942. This PR accomplishes the following:
node-fetch
fetchFunction
providedFeel free to suggest any revisions you think are necessary!