Carl Törnqvist
65d124b352
Add documentation on components ( #673 )
...
* Add documentation on components
* Fix typo
2018-07-10 14:40:51 +02:00
Ayush Gupta
0650e642d4
Update README.md ( #669 )
2018-06-25 12:48:57 -07:00
Renée Kooi
c3a640182c
6.12.1
2018-06-13 15:46:09 +02:00
Renée Kooi
ac92939c84
6.12.0
2018-06-13 15:43:19 +02:00
Sean Genabe
61ff2978c3
typings: add app to app.use cb ( #665 )
2018-06-11 10:51:56 +02:00
Yerko Palma
1d9b544626
update dependencies ( #663 )
2018-06-05 10:44:46 -04:00
Renée Kooi
ffd41dfbcd
ci: Node 7 → Node 10 ( #661 )
2018-06-05 16:04:57 +02:00
Renée Kooi
983f33637f
Update bel and yo-yoify references in docs to nanohtml. ( #660 )
2018-06-05 15:58:08 +02:00
alex
b0cdb6cd63
Build for UMD ( #617 )
...
* Build for UMD
8 characters. See choojs/choo#537
* Export UMD as 'Choo' instead, export choo/html also
* Don't export choo/html in all circumstances
2018-05-23 10:28:38 +02:00
Yoshua Wuyts
4ee1e774d3
6.11.0
2018-05-22 10:58:41 +02:00
Renée Kooi
948a4f8a26
Use nanoassert in the browser ( #651 )
2018-04-04 12:29:01 +02:00
Renée Kooi
4f50c0ae34
Switch to nanohtml ( #644 )
2018-04-04 12:28:49 +02:00
Yoshua Wuyts
4c6985c819
v6.11.0-preview1
2018-03-30 18:49:08 +02:00
Yoshua Wuyts
bddcfbe838
choo components ( #639 )
...
* add components
* example: componentize header
* fix choo SSR
* example: componentize footer
* example: fix footer
* update component cache asserts
* componentize todos
* reorder example dir
* fix example tests
* fix dep check test
* Add garbage collection of unused components
* Apply args when calling identity
* update to new component preview
* update nanocomponent
* fix cache err name
* remove static methods from example
* restore app.emit() function
* public API tests
* offset component cache iteration by 2
* whitelist contents of component folder (#643 )
* allow lru number arg
* fix lint typo
2018-03-30 18:19:06 +02:00
Yoshua Wuyts
357d50871e
6.10.3
2018-03-14 12:25:47 +01:00
Yoshua Wuyts
b1fa6f19af
move ._handler off state ( #637 )
2018-03-14 12:25:26 +01:00
Yoshua Wuyts
74b5f9418e
6.10.2
2018-03-14 12:21:30 +01:00
Yoshua Wuyts
52ec4f3ad3
assert for arrays on .toString() ( #642 )
2018-03-14 12:21:05 +01:00
Renée Kooi
3e95bbdf3c
6.10.1
2018-03-08 23:31:41 +01:00
Renée Kooi
bfb31f475b
Add gitignore inside example/ ( #641 )
...
* Add gitignore inside example/
`"example"` is in the `"files"` key in our package.json, which overrides
the root .gitignore and ends up including the entire examples folder,
including its dist/ and node_modules/. That means a fresh install of
choo comes in at over 100MB of unused code.
Nested .gitignores still apply to folders that are specified in the
`files` key, so this pushes choo back down to a <500KB installed size :)
The example code itself is still included so folks can use it as
offline documentation.
* also ignore package-lock.json
2018-03-08 23:31:31 +01:00
Yoshua Wuyts
5610b78505
show total downloads ( #640 )
2018-03-08 20:11:32 +01:00
Yoshua Wuyts
7a86ae8155
6.10.0
2018-03-07 13:21:15 +01:00
Yoshua Wuyts
f20deb69e7
create stores lazily ( #638 )
2018-03-07 13:20:47 +01:00
Nate Goldman
4251a14015
6.9.0
2018-03-05 15:56:04 -08:00
Nate Goldman
cf1f99b94a
add support for hyperscript in choo.toString ( #635 )
...
* add failing test for hyperscript (#634 )
* add support for hyperscript in choo.toString (#634 )
2018-03-05 08:11:07 -08:00
Renée Kooi
6bee7086bc
Use new mount() functionality in example ( #630 )
...
No more mucking around with `module.parent` ✌️
2018-02-23 19:39:28 +01:00
Arve Knudsen
a685d4ee36
Fix typos in the README ( #629 )
2018-02-15 12:02:21 +01:00
Renée Kooi
8937832d5f
6.8.0
2018-02-14 12:52:44 +01:00
Renée Kooi
a23dc51397
server: Store mount selector and return this ( #625 )
...
* Store mount selector and return `this`
This allows `.mount('body')` to be used on the server like so:
```js
module.exports = app.mount('body')
```
Then, when server rendering you can do:
```js
var app = require('./app')
fillServerTemplate(html, app.selector, app.toString('/'))
```
Where `fillServerTemplate` is a function that replaces the HTML at a
CSS selector with some string.
This way you do not need to check for `typeof window` in your
application entry point to do server rendering, and it allows tools like
bankai to automatically inline server rendered html in the correct place.
* docs
* better words
2018-02-13 22:09:08 +01:00
Nick Nikolov
658a399e18
Update nanotiming ( #628 )
...
In order to resolve https://github.com/choojs/nanotiming/issues/13 in
choo
2018-02-13 22:08:38 +01:00
alex
3bb4c1571c
Fix docs for popState ( #626 )
...
Resolves https://github.com/choojs/choo/issues/621
2018-02-13 10:43:02 +01:00
Yoshua Wuyts
796d41a51b
6.7.0
2018-01-18 00:01:11 +01:00
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