Commit Graph
29 Commits
Author SHA1 Message Date
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
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
Yoshua Wuyts 586cdf9ae9 update nanohref (#522) 2017-07-03 10:48:38 +02:00
Yoshua Wuyts 38a875a0d6 add DOMTitleChange event (#525) 2017-07-03 10:43:44 +02:00
Yoshua Wuyts 711f92a7c1 use nanolocation (#523) 2017-07-01 13:50:14 +02:00
Yoshua Wuyts 5d2104963c remove default route, parse qs (#521) 2017-06-29 17:20:00 +02:00
Yoshua Wuyts eb9b7fd59f v6 beta branch (#489)
* become prototype based

upgrade to new nanobus

remove nanohistory

add nanotiming

remove nanomount

move newTree to next tick

upgrade timing API

add more node warnings to .start/.mount

add morph timing

pass app instance to .use()

self-clearing async-timing

clean up timings

better mount error

fix mount bug

de-prototype helper functions

update to latest nanotiming

upgrade to nanotiming 5

update nanotiming

add toString asserts

more assertions

add event based tracing

expose createlocation

assert return types from render to always be the same

add navigate event

expose route on state

expose events

update uglify

use scroll-to-anchor

update nanobus

document events

update docs

more docs

changelog v6

upgrade nanomorph

fixup! neatify morph assertions

update bel dep

add popstate docs to changelog

* expose events on state

* upgrade deps
2017-06-28 15:53:37 +02:00
Yoshua Wuyts 6bd9a39cee fix .toString() (#510)
Closes GH-509. Thanks!
2017-06-02 12:33:51 +02:00
Yoshua Wuyts 8ff7deea3c add server tests (#501)
* add server tests

* remove node 4 tests
2017-05-24 13:02:33 +02:00
Yoshua Wuyts 6cf13af5ce warn on unmount (#485) 2017-04-26 13:52:34 +02:00
Yoshua Wuyts f45e1646ec expose router (#482)
In preparation for GH-480, but also because choo 4 exposed the router, and we need it for server rendering
2017-04-25 02:50:58 +02:00
Yoshua Wuyts 305d0a1ce5 run choo event handlers first (#479) 2017-04-19 13:02:43 +02:00
Yoshua Wuyts 30429d5970 Unlib (#477)
* use nanohref

* use nanohistory
2017-04-14 17:10:21 +02:00
Yoshua Wuyts 16d15d0e88 optimize example further (#462) 2017-04-02 01:19:59 +02:00
Yoshua Wuyts 96c0d1bc29 remove deopts from example (#460) 2017-04-01 17:51:27 +02:00
Yoshua Wuyts 9827a97db2 add scripts (#459) 2017-03-31 22:17:53 +02:00
Yoshua Wuyts 2bbcb53f4a restore document-ready dep (#454) 2017-03-30 12:20:57 +02:00
Yoshua Wuyts b7b85261eb Remove unused variables (#453)
Closes https://github.com/yoshuawuyts/choo/issues/451
2017-03-30 11:48:21 +02:00
Yoshua Wuyts 6c0a847d68 4kb now (#452) 2017-03-30 11:38:50 +02:00
Yoshua Wuyts 4ef1f411b5 add timing API support (#448)
* add timing API support

* fixup! bump package.json
2017-03-29 10:43:42 +02:00
Yoshua Wuyts 4f8bd24169 fix server render (#443) 2017-03-25 10:45:44 +01:00
Yoshua Wuyts dd15104985 remove the global dep (#436) 2017-03-23 17:51:18 +01:00
Yoshua Wuyts a976672bca v5 changelog (#437)
* v5 changelog

* fixup! review
2017-03-23 17:43:40 +01:00
Yoshua Wuyts c2e4bb4963 fix pushState event (#434) 2017-03-22 20:42:53 +01:00
Yoshua Wuyts 9aba28c57a more API docs for choo v5 (#432)
* more API docs for choo v5

* change handbook link
2017-03-21 16:56:33 +01:00
Yoshua Wuyts 8e8e870d45 implement choo v5 API (#425)
* implement choo v5 API

* fix tests

* 5.0.0-3

* 4kb now

* bump nanomorph

* 5.0.0-4

* fix missing deps stuff

* 5.0.0-5

* fix travis

* fixup! oops standard

* chooexpose

* fix state passing

* fixup! update example

* fixup! incorporate feedback

* fixup! more docs

* fixup! even more docs
2017-03-21 03:00:45 +01:00
Yoshua Wuyts 7639acedcc docs: document choo/mount (#391) 2017-02-07 13:59:18 +01:00
Yoshua Wuyts b84189dd25 Fix docs about params (#377) 2017-01-07 02:26:28 +01:00
Yoshua Wuyts a7916ec3f9 [major] choo v4 (#352)
* location: change url on location:setLocation

- [ ] don't break hashing
- [ ] allow not changing the url

fixup! move fns around

fixup! add search string

* app.start: clean

* walk: add

* location: update arg calls

* fixup! location: update

* uri-wrap: fix thunking

* router: update to latest sheet-router (#239)

* router: update to latest sheet-router

* tests: fix for latest version

* tests: fix SSR

* tests: fix history

* tests: spruce up

* docs: update example

* examples: update

* deps: bump sheet-router

* 4.0.0-0

* chore(changelog): 4.0.0 (#211)

* feat(api:) arg order (#268)

* s/data, state/state, data/

* feat(api): swap arguments

* fix(href): fix routing (#271)

* feat(http): remove (#269)

* feat(router): enable hash routing (#273)

* deps: fix mount

* 4.0.0-1

* feat(mount): copy {script,link} tags

* 4.0.0-2

* fix(mount): forEach -> for

Lol can't use forEach

* fix(router): use state.location.href (#282)

* fix(mount): use deep node clone

* 4.0.0-3

* fix(deps): remove hash-match

* 4.0.0-4

* fix(mount): return node

* 4.0.0-5

* fix(router): check if a hash is a valid selector (#339)

* 4.0.0-6

* fix(router): pass params on newstate (#343)

* 4.0.0-7

* feat(docs): update for 4.0.0 (#320)

* feat(docs): update for 4.0.0

* docs: update router example in readme (#337)

* chore(changelog): update for v4 (#351)
2016-12-11 19:35:29 +01:00