Commit Graph
564 Commits
Author SHA1 Message Date
Marc Bachmann cf8c316189 Separate route matching from rendering (#613)
- This fixes https://github.com/choojs/choo/issues/530
- Adds support for wayfarer/nanorouter subrouters
2018-01-17 23:58:42 +01:00
Marc Bachmann 5a6bf802ce Fix TodoMVC example (#618)
In choo-devtools@2.0.0 there were some conflicting methods.
On https://github.com/choojs/choo-devtools/blob/v2.0.0/index.js#L37
`window.choo.log` was set, which was a getter defined in
https://github.com/choojs/choo-devtools/blob/v2.0.0/lib/log.js#L21

This basically broke the whole app.
2018-01-15 20:06:59 +01:00
Yoshua Wuyts 2dab1b593d 6.6.1 2017-12-28 22:18:16 +01:00
Yerko Palma 73b1a82684 handle multiple arguments for emitter in views (#615)
* handle multiple arguments for emitter in views

* fix emit call
2017-12-28 22:17:47 +01:00
Utwo 50a2c73ce5 Update .gitignore (#599) 2017-11-24 13:44:11 +01:00
Yoshua Wuyts 3c41236669 6.6.0 2017-11-15 12:45:16 +01:00
Moszeed 242128bb8c add support for HTMLElement on choo.mount (#597)
* add support for HTMLElement on choo.mount

- removed explicit "string" test and for selector variable, replaced by
"is available and filled" test
- add "if" to separate by incoming "string" or "HTMLElement"

* remove semicolons and white spaces

* add "is in Browser" check for HTMLElement

* add window to HTMLElement

* optimizing "mount" commit

* remove window.HTMLElement check

* change .mount documentation

- add info that selector can be also a DOM element
- remove "nanomount" infos

* add missing line
2017-11-15 12:44:45 +01:00
Jeff Wainwright ec38a5ce58 🚂 Readme tweaks (#598) 2017-11-13 11:14:04 +01:00
Yoshua Wuyts ae02900184 use tinyify (#595) 2017-11-01 15:35:03 +01:00
Renée Kooi 2576e2d9ed update repo url (#594) 2017-10-31 12:36:06 +01:00
Yerko Palma d1c845cbe6 fix docs (#592) 2017-10-31 12:24:43 +01:00
Yoshua Wuyts b4e561cba1 6.5.1 2017-10-22 15:24:53 +02:00
Carl Törnqvist b0754869fc Fix missing underscore in _hasWindow (#589) 2017-10-22 15:24:19 +02:00
Yoshua Wuyts 4cc3d2eff6 bump devtools (#588) 2017-10-21 01:48:01 +02:00
Yoshua Wuyts 606bfbf0bb 6.5.0 2017-10-20 16:31:23 +02:00
Yoshua Wuyts 5561566dd5 add initial state support (#574)
* add initial state support

* clean up initial state from window

* fix initial state if none
2017-10-20 16:30:58 +02:00
Yoshua Wuyts 2f970403d5 6.4.4 2017-10-20 15:45:46 +02:00
Seiya IZUMI 77b2dc4cae Add html/index.d.ts (#586)
* Add html/index.d.ts

* Import bel

* Fix typo
2017-10-20 15:30:13 +02:00
Yoshua Wuyts a3c2e0cae0 update example (#583) 2017-10-18 14:07:57 +02:00
Yoshua Wuyts 0bedc6cd34 6.4.3 2017-10-18 13:45:24 +02:00
Seiya IZUMI b317abc3f9 Add optionality to 'opts' in Choo constructor (#584) 2017-10-18 13:44:59 +02:00
Yoshua Wuyts ae6de94896 6.4.2 2017-10-10 11:57:55 -04:00
Takashi Fujita bfb9ed7625 add index.d.ts into files field on package.json (#576) 2017-10-10 11:56:41 -04:00
Yoshua Wuyts 5305fe6dfe 6.4.1 2017-10-08 13:58:44 -04:00
Simon Lawrence 8595f1f765 Populate state.query before calling router (#575)
Ensure querystring parameters are available to views.
2017-10-08 13:58:27 -04:00
Todd Kennedy 04973020c1 6.4.0 2017-10-05 16:51:37 -04:00
Todd Kennedy 8615c9b481 Add typescript definition (#545) 2017-10-05 16:51:09 -04:00
Yoshua Wuyts 2e4c76eca8 6.3.0 2017-10-03 17:44:25 -04:00
Johan Bergström b66d7de71c package: prepublish -> prepublishOnly (#573)
`prepublish` is deprecated in favor of `prepare` and `prepublishOnly`.
Seeing how we want `npm run build` invoked only prior to publishing,
opt for `prepublishOnly`.

Refs: https://github.com/npm/npm/issues/10074
2017-10-03 17:40:06 -04:00
Johan Bergström fcd08d737c deps: update bel to 5.1.3 (#571)
Fixes dependency issues for some setups.
2017-10-03 17:39:36 -04:00
Johan Bergström 626fb9a3f3 travis: add node 8 the list of runners (#572) 2017-10-03 15:06:19 -04:00
Yoshua Wuyts 5254946f77 6.2.0 2017-10-03 12:35:20 -04:00
Yoshua Wuyts 92372b9bff use .storeName during tracing (#560) 2017-10-03 12:34:36 -04:00
Maciej Sitko db07336845 Update README.md (#569)
* Update README.md

* Update README.md
2017-09-26 20:31:25 +01:00
Maciej Sitko 57cd1223f2 6.1.0 2017-09-20 20:53:15 +01:00
Nate Goldman 91e74fa2dc chore(pkg): banish lock file (#568)
* chore(pkg): banish lock file

* chore(gitignore): ignore lock files
2017-09-20 21:12:37 +02:00
Hendrik fd22637318 Add link to Reddit. (#566) 2017-09-20 16:55:46 +02:00
Maciej Sitko ef3b372e23 exporting bel/raw via choo/html/raw (#565) 2017-09-19 19:43:37 +01:00
Yoshua Wuyts 5a5723561b 6.0.1 2017-09-11 23:42:01 +02:00
Carl Törnqvist fccb408a8c Fix toString remove last letter in href (#559) 2017-09-11 23:36:03 +02:00
Yoshua Wuyts 41e4697af9 v6.0.0 2017-08-09 18:54:09 +02:00
Daijiro Wachi 643daf54b1 update transferred repository links (#540) 2017-08-02 14:06:47 +02:00
Yoshua Wuyts [taking a vacation, back 31/07] 681bb4a39a don't rerender before load (#541) 2017-08-01 02:08:12 +02:00
Yoshua Wuyts 30fcdf9bf6 6.0.0-4 2017-07-26 19:32:23 +02:00
LOUIS b23183137e fix .toString() state (#531) (#533)
* fix .toString() state (#531)

* updated .toString() state fix (#531)

* updated .toString() state fix (#531)
2017-07-26 19:32:05 +02:00
Yoshua Wuyts 9c8c5b3c85 Save location (#534)
* add location

* remove zopfli from build

* state.location -> state.href

* add state.href docs
2017-07-26 19:31:15 +02:00
Takashi Fujita 4684f5ef1a add files field into package.json (#539)
resolve #537
2017-07-26 19:30:48 +02:00
Johan Bergström b157fba413 test: trim whitespace before matching (#532)
Avoid testing whitespace in strictEquals.
2017-07-20 17:40:53 +02:00
Yoshua Wuyts 011fb735d2 6.0.0-3 2017-07-12 14:24:00 +02:00
Yoshua Wuyts a703ac5c56 State in tostring (#529)
* add state to toString

* set initial state if possible

* add window assertion for tostring
2017-07-11 15:07:53 +02:00