Releases: fomkin/korolev
v0.8.0
Features
- New
access.eventData
method allows to read data from client side event object. - New
access.evalJs
method allows to execute arbitrary JavaScript on the client side. - Heartbeats now configurable.
window.resize
event now can be handled on body.elementId
now can be derived from name.
Bug fixes
- Connection now doesn't breaks by Google Cloud balancer
- Fixed session leaks
Breaking changes
- Static and dynamic routers now unified.
EvnConfigurator
now has access to browser.
v0.7.0
v0.6.0
Release notes
Features
Bugs
- Protocol breaks when string started with '[' char #149
Misc
- New protocol. Faster page initialization, lower memory and traffic consumption #15
Breaking changes
Scheduler
moved tokorolev.execution
packageStageManager
was removed.StageManager.Transition
moved to topkorolev
packageStateStorage
moved tokorolev.state
package. API was changed.- State now requires
StateSerialized
andStateDeserialized
typeclasses. You should importkorolev.state.javaSerialization._
or implement it by yourself.
v0.5.2
v0.5.1
v0.5.0
Release notes
This release contains a lot of improvements. New Levsha's optimisation algorithm gave better performance. Also now you can use SVG xmlns (see GameOfLifeExample). Starting 0.5 Korolev's client side will be optimised with Google Closure Compiler. Now it reduce size of Korolev's JavaScript to 8kB uncompressed.
As an alternative to Blaze network backend now you can use mature Akka-http. See documentation for details.
Features
- Use Levsha 0.5 with xmlns support #156
- Indexabilty helper #140
- Akka http support #136
- Send a text focus event to a DOM element #109
Misc
v0.4.3
v0.4.2
v0.4.1: Merge pull request #130 from fomkin/hotfix-129
Deferred transition can be applied after immediate #129
v0.4.0
Release notes
Features
Bugs
Misc
Migration guide
Effects
renamed to ApplicationContext
. Shtml
trait is no more available. Also korolev
package doesn't provide DSL too.
You need import symbolDsl._
from your application context.
val applicationContext = ApplicationContext[Future, MyState, Any]
import applicationContext.symbolDsl._
VDom
trait replaced with Document
trait from Levsha project. Render
and ElementId
types was simplified and moved to ApplicationContext
.
Features overview
New template and changes inferring engines
New template DSL and changes inferring engine based on Levsha project. It should provide same developer experience as before.
Connection lost widget
Now, on client connection lost, a small widget pops up. It's shown until connection is resumed. You can customize it in KorolevServiceConfig
.
val service = blazeService[Future, State, Any] from KorolevServiceConfig [Future, State, Any] (
...
connectionLostWidget = 'div(
'style /= "position: absolute; top: 0; left: 0; right: 0;" +
"background-color: yellow; border-bottom: 1px solid black; padding: 10px;",
"Connection lost. Waiting to resume."
)
)
Developer mode
Developer mode provides "hot reload" expirience. Run your application with korolev.dev=true
system property (or environment variable) and session will be kept alive after restart. We recommend to use sbt-revolver
plugin.
re-start --- -Dkorolev.dev=true
Make a change in the source code of your app. Save the file. Switch to a browser and wait for changes to deliver.
Also CSS files will be reloaded too.