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

Update jsdom to new API #163

Closed
3 tasks done
molant opened this issue Apr 27, 2017 · 4 comments
Closed
3 tasks done

Update jsdom to new API #163

molant opened this issue Apr 27, 2017 · 4 comments

Comments

@molant
Copy link
Member

molant commented Apr 27, 2017

jsdom's new version has a new and shiny API 🎉

PR #144 updates to v10 but it uses the old API so #161 gets unblocked once it is merged.

We should update to the new way of doings things asap (although there seems to be a few features that are not yet supported.

Sub-tasks:

@molant molant self-assigned this Apr 27, 2017
alrra pushed a commit that referenced this issue Apr 27, 2017
From https://github.com/tmpvar/jsdom/blob/b2bfc3d056a5af1f8305720abd70cb1a218a9509/lib/old-api.md:

 " The old jsdom API, from before v10, is hard to use and understand,
   and has bad defaults. But for now, it still has more features
   than the new API introduced in v10. As such, it is still supported,
   until we can port over all important features (notably custom
   resource loading) to the new API. "

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref #163
Close #144
alrra pushed a commit that referenced this issue Apr 27, 2017
From https://github.com/tmpvar/jsdom/blob/b2bfc3d056a5af1f8305720abd70cb1a218a9509/lib/old-api.md:

 " The old jsdom API, from before v10, is hard to use and understand,
   and has bad defaults. But for now, it still has more features
   than the new API introduced in v10. As such, it is still supported,
   until we can port over all important features (notably custom
   resource loading) to the new API. "

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref #163
Close #144
@molant
Copy link
Member Author

molant commented Apr 27, 2017

I have a branch with the current work in progress.
Unfortunately we cannot migrate to v10 just yet because resourceLoader is missing so I'll submit separate PRs for #96 and #129 for the old api.

@molant molant changed the title Update jsdom to v10 Update jsdom to v11 May 22, 2017
@molant
Copy link
Member Author

molant commented May 22, 2017

JSDOM got updated to v11

@molant molant changed the title Update jsdom to v11 Update jsdom to new API Oct 24, 2017
@molant
Copy link
Member Author

molant commented Nov 8, 2017

We still need resourceLoader to migrate to the new API. We should evaluate adding that feature so we can migrate to the new API. The new API seems to be more reliable as we can see in #521 and #589 so this might be worth trying to improve our success rate in the online scanner.

@alrra
Copy link
Contributor

alrra commented Aug 19, 2018

resourceLoader

New resource loader API is now available in v12, see: https://github.com/jsdom/jsdom/blob/master/Changelog.md#1200 🎉

Great work @sarvaje!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants