Skip to content

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

Closed
lukeelmers wants to merge 1 commit intoelastic:masterfrom
lukeelmers:fix/query-string
Closed

POC - Export query-string as @kbn/query-string#58948
lukeelmers wants to merge 1 commit intoelastic:masterfrom
lukeelmers:fix/query-string

Conversation

@lukeelmers
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

💔 Build Failed

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

@lukeelmers
Copy link
Copy Markdown
Contributor Author

Closing in favor of #58943

@elasticmachine
Copy link
Copy Markdown
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