-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Deps] [breaking] update cheerio
to v1
#1093
Conversation
@ljharb test suite seems to be failing
|
Yes, I can't get them running locally yet to fix :-/ |
For your purposes here, could you try exposing simply |
What's the functional difference? Is the fragment not jquery-like? What about |
Here again, my explanation is more confusing than helpful. "jQuery-like" can The return value of The return value of My apologies for making this more confusing than it needs to be. If it's any |
That sounds great; I'll add you to my fork today so you can add to this PR. |
.travis.yml
Outdated
@@ -3,12 +3,12 @@ node_js: | |||
- "8" | |||
- "6" | |||
- "4" | |||
before_install: | |||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this and the install
script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It ensures npm doesn't break, and deps can be installed on any node version. This will be rebased out tho; only the latest commit on the PR matters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but we dont use versions of node in travis other than 8, 6 and 4, so why test for 0.6 and 0.4, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because then I can copy paste my known-correct Travis config lines from all my other repos :-)
.travis.yml
Outdated
@@ -19,7 +19,7 @@ sudo: false | |||
matrix: | |||
fast_finish: true | |||
include: | |||
- node_js: "6" | |||
- node_js: "node" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no benefit to pinning the linter on node 6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a benefit to pinning the karma tests, seeing as they run in a browser?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if the karma tools are c deps. I don't know much about karma.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think it makesany difference, but no point in changing it now
The effective breaking change is that now `render` returns a wrapper around the *rendered thing*, like shallow and mount - instead of a “root” that requires you dive into `.children()` See cheeriojs/cheerio#1047 (comment)
79f47ee
to
d6918c4
Compare
OK, got this working :-) The effective breaking change is that now |
I discovered the same thing last night, but I didn't have the time/imagination ...so I'm glad that not only is the breaking change acceptable, but that you On the Cheerio side, I plan on updating the migration guide with information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ljharb are we compiling a list of breaking changes for v3? |
@nfcampos i believe leland has one in progress. |
8339ced
to
f7c5a15
Compare
See cheeriojs/cheerio#1047 (comment) for context.
Hoping to merge this ASAP so it can be part of v3.
cc @jugglinmike
This semver range also will include
^1.0.0
once it's released, verified on https://semver.npmjs.com/