-
Couldn't load subscription status.
- Fork 148
Release 0.5.1 #58
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
Merged
Merged
Release 0.5.1 #58
Changes from all commits
Commits
Show all changes
2 commits Select commit Hold shift + click to select a range
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
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| --- | ||
| layout: post | ||
| title: Announcing Scala.js 0.5.1 | ||
| category: news | ||
| tags: [releases] | ||
| --- | ||
| {% include JB/setup %} | ||
| | ||
| We are excited to announce the release of Scala.js 0.5.1! | ||
| | ||
| This version features bug fixes and improvements while remaining binary compatible with Scala.js 0.5.0. Therefore, Scala.js libraries may, but need not be republished with Scala.js 0.5.1. | ||
| | ||
| Please report any issues [on GitHub](https://github.com/scala-js/scala-js/issues). | ||
| | ||
| ## Improvements in the 0.5.1 release | ||
| | ||
| For changes introduced in 0.5.0, how to upgrade, getting started etc. have a look at the [0.5.0 announcement](./2014-06-13-announcing-scalajs-0.5.0.html). | ||
| | ||
| #### Additions to the Java library | ||
| | ||
| The following two are now implemented according to spec: | ||
| | ||
| - `java.util.Date` | ||
| - `java.util.Random` | ||
| | ||
| #### Wrappers for JavaScript Arrays and Dictionaries | ||
| | ||
| Thanks to `js.WrappedArray` and `js.WrappedDictionary` (and some implicit conversions), `js.Array` and `js.Dictionary` can now be passed to Scala code that expects `mutable.Seq` and `mutable.Map` respectively: | ||
| | ||
| {% highlight scala %} | ||
| def setHead(x: mutable.Seq[Int]): Unit = x(0) = 42 | ||
| val array = js.Array(1, 2, 3) | ||
| setHead(array) | ||
| println(array) // -> 42,2,3 | ||
| {% endhighlight %} | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should also mention that this allows to use | ||
| | ||
| Further, this allows to call methods defined on `Map` on `js.Dictionary` (`foreach`, `map`, `filter`, etc.) | ||
| | ||
| #### Filter `jsDependencies` when executing JavaScript code | ||
| | ||
| The new sbt setting `jsDependencyFilter` can be used to modify the dependencies used when running/testing: | ||
| | ||
| jsDependencyFilter := (_.filter(_.resourceName != "jquery.js")) | ||
| | ||
| The above would prevent "jquery.js" from being included by the sbt runners. See [FlatJSDependency]({{ BASE_PATH }}/api/scalajs-tools/0.5.1/#scala.scalajs.tools.jsdep.FlatJSDependency) for fields that you can use. | ||
| | ||
| #### Ordered testing output | ||
| | ||
| When testing in the `fastOptStage` or the `fullOptStage`, test output sometimes appeared interleaved. This has been fixed this release. | ||
| | ||
| ## Contributors | ||
| | ||
| Thanks to all the code contributors: | ||
| | ||
| - [Sébastien Doeraene](https://github.com/sjrd/) | ||
| - [Tobias Schlatter](https://github.com/gzm0/) | ||
| - [Alexander Myltsev](https://github.com/alexander-myltsev) | ||
| - [Matt Seddon](https://github.com/mseddon) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That link is dead. Should be
{{ BASE_PATH }}/news/2014/06/13/announcing-scalajs-0.5.0/There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Fixing right now.