From 9f15bb2cde5b6f1340ea1e240e4972853c84d4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Doeraene?= Date: Wed, 6 May 2020 16:02:49 +0200 Subject: [PATCH] Update the readme for version 1.1.0. These changes were forgotten in 73b4ca9f3967821006210ef98dfa0f18a2ae1466. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d04a017..595f274 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ `scalajs-env-jsdom-nodejs` is a JavaScript environment for Scala.js (a `JSEnv`) running [Node.js](https://nodejs.org/) with -[jsdom](https://github.com/tmpvar/jsdom). +[jsdom](https://github.com/jsdom/jsdom). This repository contains `scalajs-env-jsdom-nodejs` for Scala.js 1.x. In Scala.js 0.6.x, the Node.js with jsdom environment is part of the core @@ -13,7 +13,7 @@ distribution. Add the following line to `project/plugins.sbt`: ```scala -libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.0.0" +libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0" ``` and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` of Scala.js projects): @@ -22,4 +22,11 @@ and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` o jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv() ``` +Finally, make sure that [jsdom](https://github.com/jsdom/jsdom) 10.0.0 or later is avilable in your project. +You can install it with + +```bash +$ npm install jsdom +``` + See [the Scaladoc](https://javadoc.io/doc/org.scala-js/scalajs-env-jsdom-nodejs_2.13/latest/org/scalajs/jsenv/jsdomnodejs/index.html) for other configuration options.