File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @plutojl/rainbow" ,
3- "version" : " 0.6.11 " ,
3+ "version" : " 0.6.12 " ,
44 "description" : " TypeScript/JavaScript API for programmatically interacting with Pluto notebooks" ,
55 "type" : " module" ,
66 "main" : " dist/standalone/index.js" ,
5656 "@rollup/plugin-json" : " ^6.1.0" ,
5757 "@rollup/plugin-node-resolve" : " ^15.2.3" ,
5858 "@rollup/plugin-typescript" : " ^12.1.4" ,
59- "@types/jsdom" : " ^21.1.7" ,
6059 "@types/lodash-es" : " ^4.17.6" ,
6160 "@types/node" : " ^20.11.0" ,
6261 "@types/react" : " ^19.1.10" ,
6362 "@types/ws" : " ^8.18.1" ,
6463 "@web/rollup-plugin-copy" : " ^0.5.1" ,
65- "jsdom" : " ^26.1.0" ,
6664 "memfs" : " ^4.36.0" ,
6765 "path-browserify" : " ^1.0.1" ,
6866 "rollup" : " ^4.46.2" ,
9896 "dependencies" : {
9997 "@observablehq/stdlib" : " ^3.3.1" ,
10098 "immer" : " ^10.1.1" ,
99+ "linkedom" : " ^0.18.12" ,
101100 "lodash-es" : " ^4.17.21" ,
102101 "msgpack-lite" : " github:fonsp/msgpack-lite#0.1.27-es.1" ,
103102 "requestidlecallback-polyfill" : " ^1.0.2" ,
Original file line number Diff line number Diff line change 66 */
77
88import { webcrypto } from "crypto"
9+ import { parseHTML } from "linkedom"
910import { WebSocket as NodeWebSocket } from "ws"
10- import { JSDOM } from "jsdom"
1111
12- const dom = new JSDOM ( "<!DOCTYPE html><html><body></body></html>" , {
13- url : "http://localhost:1234" ,
14- pretendToBeVisual : true ,
15- } )
12+ // Simplified way for HTML
13+ const dom = parseHTML ( `
14+ <!doctype html>
15+ <html lang="en">
16+ </html>
17+ ` )
1618
1719// Copy jsdom globals to Node.js global scope
1820Object . assign ( global , {
You can’t perform that action at this time.
0 commit comments