-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Use external pathval module #830
Conversation
Looks good but agreed on waiting for pathval version fix before merging. |
* Main exports | ||
*/ | ||
|
||
var exports = module.exports = {}; |
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.
Am I missing something or this line is extra?
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.
You are totally right! I messed up this file on the latest rebase.
I have just fixed this.
56dac5d
to
575c001
Compare
-318 lines 😎 |
LGTM! Great work @lucasfcosta |
@lucasfcosta As mentioned in chaijs/pathval#39 (comment), I think that we should manually update pathval to 1.0.0 and then update this PR to use that. |
575c001
to
4968213
Compare
This one is done! I also added the following note to our migration guide (just in case):
|
4968213
to
206c306
Compare
206c306
to
a33ab48
Compare
LGTM |
This includes a refactor for Chai to use the external
pathval
module as we discussed previously on #457 and #737.I also removed the old tests since they're now running at the separate module and removed an unused utility export (
.getPathValue
), if you guys want me to keep it just tell me, but since we were not using it I just removed that, which is also a breaking change if anyone is usingutils.getPathValue
. If you disagree let me know, I'd love to hear your opinions on this matter.Also, since we needed
pathval
's exports twice I added a new declaration at the top of ourutils/index.js
file for that, I thought it would be better to do it this way than thrusting Node would use its cache correctly to find the same module. If you think there's a better way to do this, share your ideas 😄At last, but not least, please take a look at this comment before merging this PR since the latest release of
pathval
has breaking changes but we just bumped theminor
version number, so if we decide to release a newmajor
version I'll have to changepackage.json
.Thanks guys! ❤️