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

Missing runtimelib urijs #60

Merged
merged 3 commits into from
Nov 3, 2020
Merged

Missing runtimelib urijs #60

merged 3 commits into from
Nov 3, 2020

Conversation

legander
Copy link
Collaborator

@legander legander commented Nov 2, 2020

Remove urijs and form-urlencoded dependencies in favor of URL/URLSearchParams web api.

url.js is a bundle with https://github.com/zloirock/core-js/blob/master/packages/core-js/web/url.js + https://github.com/zloirock/core-js/blob/master/packages/core-js/web/url-search-params.js and is intended to be hosted on https://jslib.k6.io

Fixes issue #59 the script tries to use a runtime dependency that is not available.
Resolves #4

Also addresses https://github.com/loadimpact/har-to-k6/pull/10/files.
Note that form-urlencoded serializes multi value query params differently than URLSearchParams.toString()

Copy link
Contributor

@allansson allansson left a comment

Choose a reason for hiding this comment

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

For to make great progress!

function nought(value) {
function isNil(value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nooooooo!

Copy link
Contributor

Choose a reason for hiding this comment

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

What's next? Removing const undef = void 0? This is a downward spiral!

@allansson
Copy link
Contributor

ESLint is puking a bunch of errors... better fix those before merging 😅

@legander
Copy link
Collaborator Author

legander commented Nov 2, 2020

Think it is because of the url.js bundle which is suppose to end up in jslib @allansson

@legander legander merged commit d3d9921 into master Nov 3, 2020
@legander legander deleted the fix/missing-runtimelib-urijs branch November 3, 2020 09:58
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.

Removal of form-urlencoded as direct dependency
2 participants