Releases: choojs/choo
v7.0.0 beta
Install
$ npm install choo@next
Hash routing has been disabled by default (#699)
Hashes are by default ignored when routing. To enable hash routing, set the hash option to true choo({ hash: true })
.
Match route before intializing stores (#698)
This means that href
, query
, param
and route
are exposed on state before stores are initialized. This can be usefull while setting up the initial state.
State is not mutated during server side render (#649)
Prior to this change, when calling toString
, changes to state would persist in-between renders. This could lead to a polluted state. This change also clears all event listeners before initializing stores, meaning your listeners are ensured to only trigger once, even on consecutive calls of toString
.
If you were doing server side rendering prior to this update, you were probably plucking at the application state after rendering to get at the generated state. You can now be assured that it is only the state that is passed in to toString
that is mutated and can e.g. be used to expose initialState
to the client.
var html = app.toString('/', state)
- var title = app.state.title
+ var title = state.title
Use Object.assign instead of xtend (#616)
This change has an effect on browser support. By removing the dependency xtend
, bundle size is reduced but support for IE11 is dropped. We recommend the polyfill service https://polyfill.io which will detect legacy browsers and load the appropiate polyfills.
Note: The dependency xtend
has been dropped in all other tools in the choo universe, i.e. choo-devtools and choo-service-worker etc.
v6.13.3
v6.13.2
v6.13.1
v6.13.0
v6.12.1
Republishing to npm to remove unrelated files that were accidentally included in the package.
v6.12.0
The 💯th release tag!
- Add UMD build (@heyitsmeuralex in #617)
- Update bel and yo-yoify references in docs to nanohtml (@goto-bus-stop in #660)
- ci: Test on Node 10 (@goto-bus-stop in #661)
- Update dependencies (@YerkoPalma in #663)
- typings: Add
app
argument toapp.use
callback (@seangenabe in #665)
v6.8.0
Thanks everyone that helped on this release!
Changes
- Fixed documentation for the
popState
event - Updates nanotiming to v7, fixing issues with many timings in Safari 11
- Allows using
app.mount(selector)
when server rendering, exposing the target selector asapp.selector
for templating
Related Pull Requests
v6.7.0
We upgraded our router to fix some inconsistencies in routing, courtesy of @marcbachmann! 🎉
Thanks everyone that helped on this release!
Changes
- Fixes the routing to modify the state before the navigate event happens. This means you can access the updated state within the
navigate
event. Modifies the state before the render event is triggered. Therefore this fixes #530, #553, #549, #610, #463 - Exposes
.emit
as an alias to.emitter.emit
Related Pull Requests
v6.1.0
- Exporting
bel/raw
viachoo/html/raw