Skip to content

[4.6] [optimizer] move to querystring-browser package for up-to-date api#9751

Merged
kobelb merged 1 commit intoelastic:4.6from
kobelb:backport-4.6-8209
Jan 5, 2017
Merged

[4.6] [optimizer] move to querystring-browser package for up-to-date api#9751
kobelb merged 1 commit intoelastic:4.6from
kobelb:backport-4.6-8209

Conversation

@kobelb
Copy link
Contributor

@kobelb kobelb commented Jan 5, 2017

Backports #8209

Commit 1:
[optimizer] move to querystring-browser package for up-to-date api

Webpack automatically injects libraries to support many node.js APIs in the browser using the https://github.com/webpack/node-libs-browser package. This package uses https://github.com/mike-spainhower/querystring for the querystring module, but that module hasn't been updated in 4 years and doesn't support the modern querystring api.

This change points to the https://github.com/mathiasvr/querystring package instead, which is up to date (specifically it supports the encodeURIComponent option of querystring.stringify.

**Commit 1:**
[optimizer] move to querystring-browser package for up-to-date api

Webpack automatically injects libraries to support many node.js APIs in the browser using the https://github.com/webpack/node-libs-browser package. This package uses https://github.com/mike-spainhower/querystring for the querystring module, but that module hasn't been updated in 4 years and doesn't support the modern querystring api.

This change points to the https://github.com/mathiasvr/querystring package instead, which is up to date (specifically it supports the `encodeURIComponent` option of [`querystring.stringify`](https://nodejs.org/api/querystring.html#querystring_querystring_stringify_obj_sep_eq_options).

* Original sha: 1030689
* Authored by spalger <spalger@users.noreply.github.com> on 2016-09-09T21:10:50Z
@epixa epixa changed the title Backport PR #8209 [4.6] [optimizer] move to querystring-browser package for up-to-date api Jan 5, 2017
@kobelb
Copy link
Contributor Author

kobelb commented Jan 5, 2017

jenkins, test this

@kobelb kobelb added backport This PR is a backport of another PR review v4.6.4 labels Jan 5, 2017
Copy link

@stacey-gammon stacey-gammon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kobelb kobelb removed the review label Jan 5, 2017
@kobelb kobelb merged commit 8e77d00 into elastic:4.6 Jan 5, 2017
@kobelb kobelb deleted the backport-4.6-8209 branch January 5, 2017 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR v4.6.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments