Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ colors: #in hex code if not noted else

### VERSIONS ###
versions:
scalaJS: 0.6.32
scalaJSBinary: 0.6
scalaJSDev: 1.0.0-RC2
scalaJSDevBinary: 1.0-RC2
scalaJSDOM: 0.9.8
scalaJS: 1.0.0
scalaJSBinary: 1
scalaJS06x: 0.6.32
scalaJS06xBinary: 0.6
scalaJSDOM: 1.0.0
2 changes: 2 additions & 0 deletions _data/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
subitems:
- text: Basic tutorial
url: /doc/tutorial/basic/
- text: Basic tutorial (0.6.x)
url: /doc/tutorial/basic/0.6.x.html
- text: Scala.js for JavaScript developers
url: /doc/sjs-for-js/
subitems:
Expand Down
591 changes: 591 additions & 0 deletions _posts/news/2020-02-25-announcing-scalajs-1.0.0.md

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions doc/all-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ title: All previous versions of the Scala.js API

## All previous versions of the API

### Scala.js 1.0.0
* [1.0.0 scalajs-library]({{ site.production_url }}/api/scalajs-library/1.0.0/scala/scalajs/js/index.html)
* [1.0.0 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/1.0.0/)
* [1.0.0 scalajs-ir]({{ site.production_url }}/api/scalajs-ir/1.0.0/org/scalajs/ir/index.html)
* [1.0.0 scalajs-logging]({{ site.production_url }}/api/scalajs-logging/1.0.0/org/scalajs/logging/index.html)
* [1.0.0 scalajs-linker-interface]({{ site.production_url }}/api/scalajs-linker-interface/1.0.0/org/scalajs/linker/interface/index.html) ([Scala.js version]({{ site.production_url }}/api/scalajs-linker-interface-js/1.0.0/org/scalajs/linker/interface/index.html))
* [1.0.0 scalajs-linker]({{ site.production_url }}/api/scalajs-linker/1.0.0/org/scalajs/linker/index.html) ([Scala.js version]({{ site.production_url }}/api/scalajs-linker-js/1.0.0/org/scalajs/linker/index.html))
* [1.0.0 scalajs-js-envs]({{ site.production_url }}/api/scalajs-js-envs/1.0.0/org/scalajs/jsenv/index.html)
* [1.0.0 scalajs-env-nodejs]({{ site.production_url }}/api/scalajs-env-nodejs/1.0.0/org/scalajs/jsenv/nodejs/index.html)
* [1.0.0 scalajs-js-envs-test-kit]({{ site.production_url }}/api/scalajs-js-envs-test-kit/1.0.0/org/scalajs/jsenv/test/index.html)
* [1.0.0 scalajs-test-adapter]({{ site.production_url }}/api/scalajs-sbt-test-adapter/1.0.0/org/scalajs/testadapter/index.html)
* [1.0.0 sbt-scalajs]({{ site.production_url }}/api/sbt-scalajs/1.0.0/#org.scalajs.sbtplugin.package)

### Scala.js 0.6.32
* [0.6.32 scalajs-library]({{ site.production_url }}/api/scalajs-library/0.6.32/#scala.scalajs.js.package)
* [0.6.32 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/0.6.32/)
Expand Down
34 changes: 10 additions & 24 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,18 @@ title: Scala.js API

### Latest version ({{ site.versions.scalaJS }})

* [scalajs-library]({{ site.production_url }}/api/scalajs-library/latest/#scala.scalajs.js.package)
* [sbt-scalajs]({{ site.production_url }}/api/sbt-scalajs/latest/#org.scalajs.sbtplugin.package)
* [scalajs-library]({{ site.production_url }}/api/scalajs-library/latest/scala/scalajs/js/index.html)
* [scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/latest/)
* [scalajs-stubs]({{ site.production_url }}/api/scalajs-stubs/latest/)
* [scalajs-ir]({{ site.production_url }}/api/scalajs-ir/latest/#org.scalajs.core.ir.package)
* [scalajs-tools]({{ site.production_url }}/api/scalajs-tools/latest/#org.scalajs.core.tools.package) ([Scala.js version]({{ site.production_url }}/api/scalajs-tools-js/latest/#org.scalajs.core.tools.package))
* [scalajs-js-envs]({{ site.production_url }}/api/scalajs-js-envs/latest/#org.scalajs.jsenv.package)
* [scalajs-js-envs-test-kit]({{ site.production_url }}/api/scalajs-js-envs-test-kit/latest/#org.scalajs.jsenv.test.package)
* [scalajs-test-adapter]({{ site.production_url }}/api/scalajs-sbt-test-adapter/latest/#org.scalajs.testadapter.package)
* [scalajs-ir]({{ site.production_url }}/api/scalajs-ir/latest/org/scalajs/ir/index.html)
* [scalajs-logging]({{ site.production_url }}/api/scalajs-logging/latest/org/scalajs/logging/index.html)
* [scalajs-linker-interface]({{ site.production_url }}/api/scalajs-linker-interface/latest/org/scalajs/linker/interface/index.html) ([Scala.js version]({{ site.production_url }}/api/scalajs-linker-interface-js/latest/org/scalajs/linker/interface/index.html))
* [scalajs-linker]({{ site.production_url }}/api/scalajs-linker/latest/org/scalajs/linker/index.html) ([Scala.js version]({{ site.production_url }}/api/scalajs-linker-js/latest/org/scalajs/linker/index.html))
* [scalajs-js-envs]({{ site.production_url }}/api/scalajs-js-envs/latest/org/scalajs/jsenv/index.html)
* [scalajs-env-nodejs]({{ site.production_url }}/api/scalajs-env-nodejs/latest/org/scalajs/jsenv/nodejs/index.html)
* [scalajs-js-envs-test-kit]({{ site.production_url }}/api/scalajs-js-envs-test-kit/latest/org/scalajs/jsenv/test/index.html)
* [scalajs-test-adapter]({{ site.production_url }}/api/scalajs-sbt-test-adapter/latest/org/scalajs/testadapter/index.html)
* [sbt-scalajs]({{ site.production_url }}/api/sbt-scalajs/latest/#org.scalajs.sbtplugin.package)

### Previous versions

[See APIs for previous versions of Scala.js](all-api.html)

## JavaScript APIs

### DOM API

* [0.9.5 scalajs-dom]({{ site.production_url }}/api/scalajs-dom/0.9.5/#org.scalajs.dom.package)
* [0.9.0 scalajs-dom]({{ site.production_url }}/api/scalajs-dom/0.9.0/#org.scalajs.dom.package)
* [0.8.x scalajs-dom]({{ site.production_url }}/api/scalajs-dom/0.8/#org.scalajs.dom.package)
* [0.7.x scalajs-dom]({{ site.production_url }}/api/scalajs-dom/0.7/#org.scalajs.dom.package)
* [0.6 scalajs-dom]({{ site.production_url }}/api/scalajs-dom/0.6/#org.scalajs.dom.package)

### jQuery API

* [0.8.x scalajs-jquery]({{ site.production_url }}/api/scalajs-jquery/0.8/#org.scalajs.jquery.package)
* [0.7.x scalajs-jquery]({{ site.production_url }}/api/scalajs-jquery/0.8/#org.scalajs.jquery.package)
* [0.6 scalajs-jquery]({{ site.production_url }}/api/scalajs-jquery/0.6/#org.scalajs.jquery.package)
8 changes: 8 additions & 0 deletions doc/internals/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ We strongly recommend using the SBT plugin, as shown in the [bootstrapping skele

The CLI distribution requires `scala` and `scalac` (of the right major version) to be on the execution path. Unpack it wherever you like and add the `bin/` folder to your execution path.

#### Scala.js 1.0.0
* [1.0.0, Scala 2.13 (tgz, 21MB)]({{ site.production_url }}/files/scalajs_2.13-1.0.0.tgz)
* [1.0.0, Scala 2.13 (zip, 21MB)]({{ site.production_url }}/files/scalajs_2.13-1.0.0.zip)
* [1.0.0, Scala 2.12 (tgz, 27MB)]({{ site.production_url }}/files/scalajs_2.12-1.0.0.tgz)
* [1.0.0, Scala 2.12 (zip, 27MB)]({{ site.production_url }}/files/scalajs_2.12-1.0.0.zip)
* [1.0.0, Scala 2.11 (tgz, 20MB)]({{ site.production_url }}/files/scalajs_2.11-1.0.0.tgz)
* [1.0.0, Scala 2.11 (zip, 20MB)]({{ site.production_url }}/files/scalajs_2.11-1.0.0.zip)

#### Scala.js 0.6.32
* [0.6.32, Scala 2.13 (tgz, 22MB)]({{ site.production_url }}/files/scalajs_2.13-0.6.32.tgz)
* [0.6.32, Scala 2.13 (zip, 22MB)]({{ site.production_url }}/files/scalajs_2.13-0.6.32.zip)
Expand Down
1 change: 1 addition & 0 deletions doc/internals/version-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Version history

## Version history of Scala.js

- [1.0.0](/news/2020/02/25/announcing-scalajs-1.0.0/)
- [0.6.32](/news/2020/01/24/announcing-scalajs-0.6.32/)
- [1.0.0-RC2](/news/2019/12/13/announcing-scalajs-1.0.0-RC2/)
- [1.0.0-RC1](/news/2019/11/26/announcing-scalajs-1.0.0-RC1/)
Expand Down
8 changes: 6 additions & 2 deletions doc/project/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ Some Scala.js core libraries (such as the Scala.js library itself) do not need t

Note that you can also use `%%%` in a Scala/JVM project, in which case it will be the same as `%%`. This allows you to use the same `libraryDependencies` settings when cross compiling Scala/JVM and Scala.js.

## Depending on JavaScript libraries
## Deprecated: Depending on JavaScript libraries

The `jsDependencies` mechanism should be considered deprecated.
Use [scalajs-bundler](https://scalacenter.github.io/scalajs-bundler/) instead.

**Scala.js 1.x note:** since Scala.js 1.x, this functionality is not part of the core Scala.js sbt plugin.
Instead, it is provided by [sbt-jsdependencies](https://github.com/scala-js/jsdependencies).
You will need to add `addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.0-M1")` to `project/plugins.sbt`, as well as `enablePlugins(JSDependenciesPlugin)` to your Scala.js projects.

The rest of this section applies to Scala.js 0.6.x only.

Thanks to [WebJars](http://www.webjars.org/), you can easily fetch a JavaScript library like so:

Expand Down
8 changes: 5 additions & 3 deletions doc/project/js-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You will need to `npm install jsdom` for the above environment to work.
**Scala.js 1.x:** The above setting requires the following line in your `project/plugins.sbt`:

{% highlight scala %}
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.0.0-M1"
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.0.0"
{% endhighlight %}

**Scala.js 0.6.x:** This environment is selected by default if your application or one of its libraries declares a dependency on the DOM, with `jsDependencies += RuntimeDOM`.
Expand All @@ -60,11 +60,13 @@ jsEnv := PhantomJSEnv().value
**Scala.js 1.x:** The above setting requires the following line in your `project/plugins.sbt`:

{% highlight scala %}
addSbtPlugin("org.scala-js" % "sbt-scalajs-env-phantomjs" % "1.0.0-M1")
addSbtPlugin("org.scala-js" % "sbt-scalajs-env-phantomjs" % "1.0.0")
{% endhighlight %}

### <a name="phantomjs-no-auto-terminate"></a> Disabling auto-termination of PhantomJS

**Scala.js 0.6.x only**

By default, the PhantomJS interpreter terminates itself as soon as the `main()` method returns.
This may not be what you want, if for example you register time-outs or use WebSockets.
You can disable this behavior with the following setting:
Expand All @@ -88,7 +90,7 @@ jsEnv := PhantomJSEnv(args = Seq("arg1", "arg2")).value
{% endhighlight %}

For more options of the PhantomJS environment, see
[the Scaladoc of `PhantomJSEnv`]({{ site.production_url }}/api/sbt-scalajs/{{ site.versions.scalaJS }}/#org.scalajs.sbtplugin.ScalaJSPlugin$$AutoImport$).
[the Scaladoc of `PhantomJSEnv`]({{ site.production_url }}/api/sbt-scalajs-env-phantomjs/1.0.0/org/scalajs/jsenv/phantomjs/sbtplugin/PhantomJSEnvPlugin$$autoImport$.html).

## Selenium

Expand Down
Loading