Choo Versions Save

:steam_locomotive::train: - sturdy 4kb frontend framework

v7.0.0-0

4 years ago

Install

$ npm install choo@next

Hash routing has been disabled by default (https://github.com/choojs/choo/pull/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 (https://github.com/choojs/choo/pull/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 (https://github.com/choojs/choo/pull/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 (https://github.com/choojs/choo/pull/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

5 years ago
  • Revert changes to store init order

v6.13.2

5 years ago

v6.13.1

5 years ago
  • Remove references to bel from documentation (@tornqvist in #678)
  • Add v6 tests (@timwis in #674)
  • Fix inspect npm script (@goto-bus-stop in #654)
  • Some spelling & typo fixes in readme (@dbtek in #688)
  • Fix wrong this usage in nanohref integration (@mantoni in #689)

v6.13.0

5 years ago

Changes

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

v6.12.1

5 years ago

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

v6.12.0

5 years ago

The :100: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 to app.use callback (@seangenabe in #665)

v6.8.0

6 years ago

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

v6.7.0

6 years ago

We upgraded our router to fix some inconsistencies in routing, courtesy of @marcbachmann! :tada:

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

6.1.0

6 years ago
  • Exporting bel/raw via choo/html/raw