Uh oh!
There was an error while loading. Please reload this page.
Update package.json to point to htmlparser2 fork - #126
Conversation
acjh
commented
Jan 26, 2018
Can you share the link of the article that you showed me? |
acjh
commented
Jan 26, 2018
I'm not sure how versioning would work with Maybe we should use commits (or tags; both mentioned in your link) to target specific versions. @Gisonrg Your thoughts? |
danielbrzn
commented
Jan 26, 2018
I think it would pull the latest version of the master instead of a specific version which I feel is more ideal as we don't have to keep updating the link in package.json. |
acjh
commented
Jan 26, 2018
That's not ideal. It will be hard to debug errors if an earlier version of MarkBind is used with a later version of htmlparser2 (or any other library). There's a reason why packages are always published with a package.json that points to specific known-working versions of other packages. |
Gisonrg
commented
Jan 26, 2018
Even though it might work in some cases, this is not an ideal practice in general :) |
danielbrzn
commented
Feb 1, 2018
I see. Should we tag a version of our htmlparser2 fork and use it in our |
Sure. Let's use pre-release versioning as per the Semantic Versioning guidelines. Note: We can consider versioning MarkBind/vue-strap too. |
acjh
commented
Feb 1, 2018
Can you add "Follows MarkBind/htmlparser2#1" in the PR description? |
acjh
commented
Feb 3, 2018
Can you add "Resolves #101" in the PR description? |
Added. Just to clarify, the version number in |
acjh
commented
Feb 3, 2018
No, that's if you publish as htmlparser2 in the npm registry. |
eab9a18 to
53b9fc8Compare| "cheerio": "^0.22.0", | ||
| "highlight.js": "^9.10.0", | ||
| "htmlparser2": "^3.9.2", | ||
| "htmlparser2": "https://github.com/MarkBind/htmlparser2/archive/v3.10.0-markbind.1.tar.gz", |
There was a problem hiding this comment.
I believe if we push a new tag (like the v3.10 here) to the head of repo, we can do something like:
"htmlparser2": "MarkBind/htmlparser2#v3.10.0",
There was a problem hiding this comment.
Yep that works! The tag is v3.10.0-markbind.1, will be changing it.
53b9fc8 to
0c4a62eCompareacjh
commented
Feb 3, 2018
Commit package-lock.json too. |
| "cheerio": "^0.22.0", | ||
| "highlight.js": "^9.10.0", | ||
| "htmlparser2": "^3.9.2", | ||
| "htmlparser2": "https://github.com/MarkBind/htmlparser2#v3.10.0-markbind.1", |
There was a problem hiding this comment.
Can we get rid of the https://github.com/ part?
The "author/repo" format should be supported by npm
0c4a62e to
fc8b038Comparefc8b038 to
50e4fe4Compareacjh
commented
Feb 4, 2018
@danielbrzn Thanks for your contribution! |
acjh
commented
Feb 4, 2018
@danielbrzn I just noticed the bad integrity checksum changes (fixed). You may need to upgrade npm. |
danielbrzn
commented
Feb 4, 2018
Odd. What version of npm are you running? I have v5.6.0. |
acjh
commented
Feb 4, 2018
v5.6.0 as well. See npm/npm#16938 (comment). |
Change the dependency in package.json to point to Markbind's fork of htmlparser2 that includes fixes for Markdown-in-HTML parsing.
Follows MarkBind/htmlparser2#1
Resolves#101