| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This is still semver-major, correct? |
Sorry, something went wrong.
|
no there should not be breaking changes |
Sorry, something went wrong.
|
Let's CI this, also npm tests should pass. |
Sorry, something went wrong.
Sorry, something went wrong.
|
make test-npm is happy. |
Sorry, something went wrong.
|
I'd be fine landing this in a patch release. @petkaantonov can you outline what's changed from the original implementation? |
Sorry, something went wrong.
|
The parsing has been rewritten (.parse()). Some minor changes in formatting (.format()) Some micro optimization in resolution (.resolveObject()). |
Sorry, something went wrong.
|
rebased |
Sorry, something went wrong.
|
Thanks, got a few linter errors concerning this rule: http://eslint.org/docs/rules/comma-spacing lib/url.js
31:22 error There should be no space before ',' comma-spacing
32:22 error There should be no space before ',' comma-spacing
33:14 error There should be no space before ',' comma-spacing
33:28 error There should be no space before ',' comma-spacing
228:48 error There should be no space before ',' comma-spacing
636:40 error There should be no space before ',' comma-spacing
941:48 error There should be no space before ',' comma-spacing
950:46 error There should be no space before ',' comma-spacing |
Sorry, something went wrong.
|
Those are not spaces but comments like 0x3A/*':'*/, 0x3F/*'?'*/, ... |
Sorry, something went wrong.
|
Yeah, it's kind of bullshit that this gets interpreted as a space. |
Sorry, something went wrong.
|
should we open issue in eslint? |
Sorry, something went wrong.
|
Already been done: eslint/eslint#2408 |
Sorry, something went wrong.
|
Probably best to disable the comma-spacing linter rule until that one is resolved. |
Sorry, something went wrong.
|
How about this ?? const _protocolCharacters = makeAsciiTable([
[0x61, 0x7A], /*a-z*/
[0x41, 0x5A], /*A-Z*/
0x2E, /*'.'*/ 0x2B, /*'+'*/ 0x2D /*'-'*/
]); |
Sorry, something went wrong.
|
@yosuke-furukawa that's just confusing. also doesn't work in cases like if (!containsCharacter2(search, 0x23 /*'#'*/, -1)) |
Sorry, something went wrong.
|
Hm... I think this is not so weird. if (!containsCharacter2(search, 0x23, /*'#'*/ -1))But +1 for suppress the warnings if you want. |
Sorry, something went wrong.
|
@yosuke-furukawa would you suggest setting the setting to 1 or 0? Both seem to make make lint pass. |
Sorry, something went wrong.
|
1 is warn, 0 is silence. 1 is better. When we will re-consider the eslint rules, we can detect the rule violation easily. |
Sorry, something went wrong.
|
@petkaantonov the PR should pass eslint now. I'd advice changing lines like 0x2E /*'.'*/, 0x2B /*'+'*/, 0x2D /*'-'*/to 0x2E/*'.'*/, 0x2B/*'+'*/, 0x2D/*'-'*/because I assume eslint will still warn on these after the fix. |
Sorry, something went wrong.
|
done |
Sorry, something went wrong.
|
@petkaantonov thanks. May I ask to add a small test for the delete uri.prop case (#1591)? |
Sorry, something went wrong.
|
One additional bit to note, the IANA registry for URI schemes lists a few more permanent schemes that require the slash (coap, for instance, http://tools.ietf.org/html/rfc7252) that are currently not listed in the _slashProtocols. Definitely do not need to add those in here but we'll likely want to revisit and add them in later. |
Sorry, something went wrong.
|
@petkaantonov thank you for persisting with this btw. The improvements look very good on an initial review |
Sorry, something went wrong.
|
It'll be great to see this finally land. Great work @petkaantonov |
Sorry, something went wrong.
|
Hey everybody - what's the status, what's keeping us from merging this? :) |
Sorry, something went wrong.
|
There are still a few outstanding comments, including the request to port the tests from the previous PR. Plus, it needs to be rebased, since it no longer merges cleanly. |
Sorry, something went wrong.
|
I am really lacking the time at the moment |
Sorry, something went wrong.
|
No worries @petkaantonov |
Sorry, something went wrong.
|
Out of interest, is this still going places? |
Sorry, something went wrong.
|
Ah thanks, better close this one then I guess? |
Sorry, something went wrong.
|
I think its left open in case petka has time to resume. |
Sorry, something went wrong.
|
Going to cloes this, Petka said he's likely not going to resume, the changes live in another PR and this can be reopend anyway if anyone disagrees. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
There is no compatibility breakage and using eager .href is only 33% slower in url parse benchmark, and it could be made lazy again since nobody deletes .href anyway.