Skip to content

Releases: ThoughtWorksInc/Binding.scala

v11.0.0-M1

18 Jan 08:29
Compare
Choose a tag to compare
v11.0.0-M1 Pre-release
Pre-release
  • Make fxml.show implementation more sophisticated

v11.0.0-M0

18 Jan 08:26
Compare
Choose a tag to compare
v11.0.0-M0 Pre-release
Pre-release
  • Support @fxml
  • Optimize performance on Scala.js

v10.0.2

01 Jan 01:03
Compare
Choose a tag to compare

Support empty attributes in XHTML literal.

v10.0.1

23 Dec 00:57
Compare
Choose a tag to compare

Improve the performance when initialize a big Vars

v10.0.0

23 Dec 00:56
Compare
Choose a tag to compare

Changes from Binding.scala 8.0.x/9.0.x:

New Features

  • Added route library.
    See this example for its usage.

  • Supported referencing HTML DOM elements by id attributes.

    @dom showInput(v: Vars[String]) = <div>
      <!-- any Scala code inside the div element is able to access `myInput` -->
      <input id="myInput" onclick={_: Event => v := myInput.value />
    </div>

Performance improvements

  • Avoided re-rendering in some complicated cases.
  • Reduced about 30% generated JavaScript code size for @dom methods.
  • Resolved some other minor performance issues.

Backward incompatible changes and deprecated functions

  • oldSeq/oldValue in MultiMountPoint/SingleMountPoint has been removed.
  • SingleMountPoint is deprecated, in favor of simply Binding[Unit] block. See this example for usage.
  • dom.currentTarget is deprecated, in favor of id attribute.

Requirements

  • Scala versions:
    • 2.10.x
    • 2.11.x
    • 2.12.x
  • Scala.js version
    • 0.6.13

Future plan

In the next major version (Binding 11.0), we will support JavaFX and FXML. Afterwards, we will also launch the development of Android support. Binding.scala will become an universal solution for GUI on all platforms in 2017.

Contributors

Thanks to all the contributors who create Pull Requests, report bugs and discuss the design for Binding.scala on Gitter and other forums.

Special thanks to @Psycho7, who created an amazing Chinese translation of README,
and @Algomancer, who created a full stack Scala example application showing how to integrate Binding.scala into a Play project with a Scala.js,
and @williamho, who fixed a critical bug,
and @MarisaKirisame, @OlivierBlanvillain, @maowug, @kitsudog, @bbarker, and all of you.

v10.0.0-M9

22 Nov 16:32
Compare
Choose a tag to compare
v10.0.0-M9 Pre-release
Pre-release

Don't generate data-binding code for constant XHTML attributes

v10.0.0-M8

08 Nov 15:14
Compare
Choose a tag to compare
v10.0.0-M8 Pre-release
Pre-release
  • Reset state on Route.watchHash

v10.0.0-M7

08 Nov 02:01
Compare
Choose a tag to compare
v10.0.0-M7 Pre-release
Pre-release

v9.0.4

04 Nov 10:53
Compare
Choose a tag to compare

Build with Scala 2.12.0

v10.0.0-M6

19 Oct 07:37
Compare
Choose a tag to compare
v10.0.0-M6 Pre-release
Pre-release

Allow changing state managed by Route.hash