Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boring-router-react

Package Overview
Dependencies
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boring-router-react - npm Package Versions

1245

0.3.1

Diff

Changelog

Source

[0.3.13] - 2020-7-6

Changes

  • Added hooks $before/will/afterEnter, $before/will/afterUpdate, $before/will/afterLeave; added $before/will/afterEnterOrUpdate as shortcut for $before/will/afterEnter and $before/will/afterUpdate.
  • Added service $service.
  • Added parallel routes.
  • Added RouteBuilder.
  • Added $metadata support.

Breaking changes

  • Router.create() is removed in favor of new Router().$route().
  • Names related to fragment has been changed to segment.
  • The router will no longer match parent if it has no matching child.
  • By default, the router will no longer match a route if it has children but the path is ended at the route itself. For example, if the path is /account, and route account has $children, account will not be matched by default. An option $exact is added for this scenario, and applies only to route schema with $children.
  • RouteMatch#$action has been removed, see hooks for alternatives.
  • The second argument RouteMatch#$ref(), RouteMatch#$push(), RouteMatch#$replace() methods is now an option object.
  • Route match ref option preserveQuery is now removed, but the behavior has changed to preserve query defined with $query (and its parents).
  • The return value of route hooks (such as RouteMatch#$beforeEnter, RouteMatch#$afterLeave) is now a removal callback.
  • <Redirect> component has been removed.`
vilic
published 0.3.0-alpha.50 •

vilic
published 0.3.0-alpha.49 •

vilic
published 0.3.0-alpha.48 •

yggdrasilqh
published 0.3.0-alpha.46 •

vilic
published 0.3.0-alpha.45 •

vilic
published 0.3.0-alpha.44 •

yggdrasilqh
published 0.3.0-alpha.43 •

vilic
published 0.3.0-alpha.40 •

vilic
published 0.3.0-alpha.39 •

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