2.2.0 • Published 4 years ago

@optimizely/nuclear-router v2.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

NuclearJS Router

API

Router

new Router( opts : Object )

Instatiates a new Router

Router#go( location : String ) : void

Router#registerRoutes( routes : Route[] ) : void

Router#registerCatchallPath( path : String ) : void

Router#getLocation() : String

Router#replace( location : String )

Router#windowNavigate( location : String )

Router#reset()

Type: Route

match : String|RegExp

handle : Function[]

TODO

  • Deprecate the hashbang use cases - we dont need this and it adds complexity
  • Deprecate the basepath option and just assume the basepath is /
  • Add no-op functionality to next() calls that happen async after Router.go is called again

Causes a real page navigation by using window.location

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.7

5 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.0

6 years ago