Commit Graph
573 Commits
Author SHA1 Message Date
Sean Genabe 2d56f305e0 typings: add IChoo.hash (#691) 2020-01-23 16:30:43 +01:00
Will Heslam efb131c2ae Update README.md (#705)
Remove apostrophe from possessive "its"
2019-10-03 12:07:00 +02:00
Bret Comnes 75c6ed6d00 Fix travis stuff 2019-08-14 10:48:33 +02:00
Carl Törnqvist 11aa89d626 7.0.0 2019-08-05 15:46:42 +02:00
Carl Törnqvist 1323fe9bae Add changelog heading 2019-08-05 15:44:06 +02:00
Carl Törnqvist c153d180e3 Update changelog 2019-08-05 15:40:02 +02:00
Carl Törnqvist 60ed830828 7.0.0-0 2019-06-12 17:25:04 +02:00
Carl Törnqvist 842b7aaa5c Immutable state on SSR (toString) (#649)
* Init stores with state

* Reset state.components on toString
2019-06-12 15:13:33 +02:00
Carl Törnqvist a871818d32 Match route before init stores (#698) 2019-06-12 13:42:18 +02:00
Yoshua Wuyts b373c7ee06 more timings (#578)
* more timings

* Remove router timing
2019-06-12 13:41:09 +02:00
Carl Törnqvist d62691f207 Disable hash routing by default (#699) 2019-06-11 23:05:15 +02:00
Carl Törnqvist 0b4d578f01 Update nanorouter (#701) 2019-06-11 22:51:03 +02:00
alex 555ab4b5f9 Use Object.assign instead of xtend (#616)
As described by #563:

> https://polyfill.io provides a fallback for browsers that don't support it, so for most people this will be a strict improvement.
2019-06-11 22:50:34 +02:00
Carl Törnqvist 3d3b2280f4 6.13.3 2019-04-03 10:53:30 +02:00
Carl Törnqvist 4c15924308 Revert init order change 2019-04-03 10:51:41 +02:00
Carl Törnqvist a22fca69de Add browser tests (#696) 2019-04-02 14:55:21 +02:00
Carl Törnqvist 5879bdb404 6.13.2 2019-04-02 09:28:02 +02:00
Carl Törnqvist 6a2f14c292 Fix location missing on store init (#695) 2019-04-02 09:27:06 +02:00
Kiril 5921d27648 Typo Fix in Readme (#693)
The component class should be Map but not Button in the example.
2019-02-12 23:34:36 +01:00
Renée Kooi b9bb656b4c 6.13.1 2018-10-30 12:06:25 +01:00
Maximilian Antoni c9356a6837 Fix wrong this usage in nanohref integration (#689)
I currently see `TypeError: undefined is not an object (evaluating 'this._hashEnabled')` being thrown by clients. This should fix it.
2018-10-30 12:05:52 +01:00
İsmail Demirbilek f5f8ccf0cb Some spelling & typo fixes in readme (#688)
* fix typo

* spelling corrections

* update preposition to > from
2018-10-25 12:35:02 +02:00
Renée Kooi d6f6ddb884 Fix inspect script (#654)
`discify` is a different module than intended. discify is an alternative
to disc that works as a plugin, but we were using it as a separate
command line program. This switches it out for disc. The disc command
line program is called `discify` which is probably where the confusion
came from.

Also swapped out unassertify and uglifyify for tinyify, which adds tree
shaking.
2018-10-14 11:06:00 +02:00
Tim Wisniewski 0e7bd854cf Add v6 tests (#674)
Replaces #528. I was just going off the features listed in the readme. There are a handful more we should test but this is a start.

Note that this includes a readme change for `state.href` that I believe was incorrectly documented. Let me know if I got that wrong.

Also note that we should delete the original `v6-tests` branch once this is merged. Leaving it for now for reference.
2018-08-14 10:44:08 +02:00
Carl Törnqvist 5396036fe8 Remove references to bel (#678)
Fixes example todo app
2018-08-01 12:32:36 +02:00
Carl Törnqvist 48b19a6654 6.13.0 2018-07-12 12:36:36 +02:00
Carl Törnqvist 6513f4288f Add hash option (#667)
* Add hash option

* Avoid unecessary scroll into view-call

* Update readme with hash option

* Fix typo

* Remove nanolocation dep

* Default hash option to true
2018-07-12 11:29:31 +02:00
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