New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cherrytree

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cherrytree - npm Package Versions

13

2.0.0-rc2

Diff

Changelog

Source

v2.0.0-rc2

  • Fix: query params were stringified incorrectly when more than 2 params and when some of params were undefined. router.generate('/a/b/c', {}, { id: 'def', foo: 'bar', baz: undefined }) results in /a/b/c?id=def&foo=bar now as in the older versions of cherrytree.
kidkarolis
published 2.0.0-rc1 •

Changelog

Source

v2.0.0-rc1

Breaking changes:

  • Every route is now routable. Previously it was only possible to generate links and transition to leaf routes. This simplifies the typical usage of the router and opens up new use cases as well. For example, if you want to redirect from '/' to '/some/:id', it's now easier to implement this kind of redirect behaviour without needing to create many reduntant '.index' routes.
  • The special .index treatment has been removed. Previously, if the route name ended with .index, the path was automatically set to ''. Now, such path will default to 'index' as with all other routes. Set path: '' on your index routes when upgrading.
  • An exception is now thrown when multiple routes have the same URL pattern.
  • Given all the above changes - a new route option abstract: true was introduced for making non leaf routes non routable. This also solves the problem where using path: '' would result in multiple routes with the same path.
  • The paramNames array (e.g. ['id', 'filter']) was replaced with params object (e.g. {id: 1, filter: 'foo'}) in the route descriptor on the transition object.
  • The ancestors attribute was removed from the route descriptor.
  • Switching between using history and memory locations has been simplified. Previously, you'd need to pass new MemoryLocation(path) when calling listen. Now, specify the location to use with location: 'memory' when creating the router and pass the path when calling listen.
  • The qs module was removed from dependencies and was replaced with a tiny, simple query string parser. This can be sufficient for a lot of applications and saves a couple of kilobytes. If you want to use qs or any other query parsing module, pass it as qs: require('qs') option to the router.
  • params, query and route array are now immutable between transitions, i.e. modifying those directly on the transition only affects that transition
  • Drop out-of-the-box support for ES3 environments (IE8). To use Cherrytree in older environments - es5 polyfills for native map, reduce and forEach need to be used now.
  • An undocumented, noop function reset was removed from the router.

New features:

  • Support for custom click intercept handlers

Under the hood improvements:

  • Update all dependencies to the latest versions
  • Tests are being run in more browsers now
  • Replaced co with babel-creed-async in tests
  • Removed the dependency on lodash

Documentation:

kidkarolis
published 2.0.0-alpha.12 •

Changelog

Source

v2.0.0-alpha.12

  • BYOP - Cherrytree now requires a global Promise implementation to be available or a Promise constructor passed in as an option
kidkarolis
published 2.0.0-alpha.11 •

Changelog

Source

v2.0.0-alpha.11

  • Add transition.redirectTo so that middleware could initiate redirects without having the router
kidkarolis
published 2.0.0-alpha.10 •

Changelog

Source

v2.0.0-alpha.10

  • Log errors by default (i.e. options.logError: true by default)
kidkarolis
published 2.0.0-alpha.9 •

Changelog

Source

v2.0.0-alpha.9

  • Fix router.destroy() - DOM click events for link interception are now cleaned up when router.destroy() is called
  • Add server side support
    • events.js now exports an {} object on the server instead of crashing due to missing window
    • MemoryLocation correctly handles option flags and can be instantiated with a starting path
  • Add a server-side-react example
  • When transition is rejected with a TransitionRedirected error - the err.nextPath is now available)
kidkarolis
published 2.0.0-alpha.8 •

Changelog

Source

v2.0.0-alpha.8

  • Fix dependencies - lodash was declared as a devDependency
kidkarolis
published 2.0.0-alpha.7 •

Changelog

Source

v2.0.0-alpha.7

  • Fix the URL generation when pushState: true and root !== '/'
kidkarolis
published 2.0.0-alpha.6 •

kidkarolis
published 2.0.0-alpha.5 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc