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

POC - Export query-string as @kbn/query-string #58948

Closed
wants to merge 1 commit into from

Conversation

lukeelmers
Copy link
Member

Partially addresses #58684.

In #56957 we consolidated usage of various query string utils by using
the query-string dependency everywhere. Unfortunately, this introduced
a regression where Kibana failed in IE11 due to dropped IE support as of
query-string v6.0.0. Downgrading is not an easy option due to changed
APIs and lack of type definitions.

One proposed solution was brought up in #58771, but we received feedback
that ops has put a hard stop to transpiling node_modules.

This POC experiments with the idea of requiring the original
query-string package, copying the files into a kibana package, and running
them through babel so that everything is built during kbn bootstrap.

As a result, plugins can use @kbn/query-string as a drop-in
replacement for query-string, the only difference being that the
upstream library has now been transpiled by the shell package.

@lukeelmers lukeelmers self-assigned this Feb 28, 2020
Fixes elastic#58684.

In elastic#56957 we consolidated usage of various query string utils by using
the `query-string` dependency everywhere. Unfortunately, this introduced
a regression where Kibana failed in IE11 due to dropped IE support as of
`query-string` v6.0.0. Downgrading is not an easy option due to changed
APIs and lack of type definitions.

This POC experiments with the idea of requiring the original
`query-string` package, copying the files into this package, and running
them through babel.

As a result, plugins can use `@kbn/query-string` as a drop-in
replacement for `query-string`, the only difference being that the
upstream library has now been transpiled.
@kibanamachine
Copy link
Contributor

💔 Build Failed

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@lukeelmers
Copy link
Member Author

Closing in favor of #58943

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukeelmers lukeelmers deleted the fix/query-string branch February 11, 2021 15:17
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