<commit_before># Changelog

## 0.5.0

* New shiny docs.
* Renamed `cherrytree/location/history_location` to `cherrytree/locations/history`
* Renamed `cherrytree/location/none_location` to `cherrytree/locations/none`

## 0.4.0

* Simplified how route contexts are handled. Route's context should now be set using the new `route.setContext` method. It can then be retrieved using `route.getContext` or individual fields can be accessed by using `route.get`. `route.get` also traverses all parent routes when looking for a context field. The context is also passed into the activate hook as the first argument. Breaking changes:
  * `route.get` no longer looks at route attributes when looking up fields
  * the return value of `route.model` hook is not set as context any longer, it's only used to block the loading of children routes
* Made update hook simple for common cases by flipping the meaning of the return value - returning false now continues with reactivating the route, returning anything else assumes update handled the reactivation.

## 0.3.0

* Global and per route/resource resolvers allow loading in each route asyncronously on demand. Read more about it in the "Custom resolvers" section. `addRoute` and `addRoutes` methods have been removed. The default global resolver expects the routes to be added to the `router.routes` hash.

## 0.2.1

* Fix: don't exit the loading route during redirects<commit_msg>Update changelog with info about the default location<commit_after># Changelog

## 0.6.0

* HistoryLocation is now the default location - this simplifies typical usage of Cherrytree.
* Parameters to HistoryLocation cab be passed in to the router directly, e.g. `new Router({pushState: true})`

## 0.5.0

* New shiny docs.
* Renamed `cherrytree/location/history_location` to `cherrytree/locations/history`
* Renamed `cherrytree/location/none_location` to `cherrytree/locations/none`

## 0.4.0

* Simplified how route contexts are handled. Route's context should now be set using the new `route.setContext` method. It can then be retrieved using `route.getContext` or individual fields can be accessed by using `route.get`. `route.get` also traverses all parent routes when looking for a context field. The context is also passed into the activate hook as the first argument. Breaking changes:
  * `route.get` no longer looks at route attributes when looking up fields
  * the return value of `route.model` hook is not set as context any longer, it's only used to block the loading of children routes
* Made update hook simple for common cases by flipping the meaning of the return value - returning false now continues with reactivating the route, returning anything else assumes update handled the reactivation.

## 0.3.0

* Global and per route/resource resolvers allow loading in each route asyncronously on demand. Read more about it in the "Custom resolvers" section. `addRoute` and `addRoutes` methods have been removed. The default global resolver expects the routes to be added to the `router.routes` hash.

## 0.2.1

* Fix: don't exit the loading route during redirects
{'fraction_non_alphanumeric': 0.06516129032258064, 'fraction_numerical': 0.008709677419354838, 'mean_word_length': 4.577338129496403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4171076', 'n_tokens_mistral': 830, 'n_tokens_neox': 797, 'n_words': 420}