Skip to content

Commit

Permalink
Update jsdom to v10, but for now, use old API
Browse files Browse the repository at this point in the history
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
  • Loading branch information
molant authored and alrra committed Apr 27, 2017
1 parent 1df8351 commit 666fe30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"iconv-lite": "^0.4.15",
"is-my-json-valid": "^2.15.0",
"is-resolvable": "^1.0.0",
"jsdom": "^9.11.0",
"jsdom": "^10.0.0",
"json-stable-stringify": "^1.0.1",
"lockfile": "^1.0.3",
"lodash": "^4.17.4",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/collectors/jsdom/jsdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import * as path from 'path';
import * as url from 'url';

import * as jsdom from 'jsdom';
import * as jsdom from 'jsdom/lib/old-api';

import { debug as d } from '../../utils/debug';
/* eslint-disable no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/utils/location-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as path from 'path';

import test from 'ava';
import * as jsdom from 'jsdom';
import * as jsdom from 'jsdom/lib/old-api';
import * as pify from 'pify';

import { readFile } from '../../../src/lib/utils/misc';
Expand Down

0 comments on commit 666fe30

Please sign in to comment.