Skip to content

Releases: choojs/choo

v7.0.0 beta

12 Jun 15:28
60ed830

Choose a tag to compare

v7.0.0 beta Pre-release
Pre-release

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

23 Apr 06:21
3d3b228

Choose a tag to compare

  • Revert changes to store init order

v6.13.2

02 Apr 07:32
5879bdb

Choose a tag to compare

  • Fix href, query, route and params missing on state during store init (#695)

v6.13.1

30 Oct 11:08
b9bb656

Choose a tag to compare

v6.13.0

12 Jul 11:03
48b19a6

Choose a tag to compare

Changes

  • Added documentation on components
  • Added hash option for disabling hash routing

Related Pull Requests

v6.12.1

13 Jun 13:47
c3a6401

Choose a tag to compare

Republishing to npm to remove unrelated files that were accidentally included in the package.

v6.12.0

13 Jun 13:45
ac92939

Choose a tag to compare

The 💯th release tag!

v6.8.0

14 Feb 11:57
8937832

Choose a tag to compare

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 as app.selector for templating

Related Pull Requests

v6.7.0

17 Jan 23:05
796d41a

Choose a tag to compare

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

20 Sep 19:55

Choose a tag to compare

  • Exporting bel/raw via choo/html/raw