Commit Graph
71 Commits
Author SHA1 Message Date
Stefan DobrevandMasahiro Wakame ce70e15ee4 [react-router] Update getComponents signatures (#11319)
Update `getComponent(s)` all over the place. See #9530 for more info.
2016-09-28 22:02:02 +09:00
AndyandGitHub be4a803ad0 Merge pull request #10697 from minodisk/update-react-router
Update react-router
2016-09-20 11:44:47 -07:00
AndyandGitHub e3c57dbe79 Merge pull request #11215 from thegaryroberts/patch-1
Update react-router.d.ts
2016-09-19 11:11:33 -07:00
Marcin KralandMasahiro Wakame 874a60bc68 Add Pure and Stateless components to withRouter definition (#10959)
* Add Pure and Stateless components to withRouter definition

* Add missing type parameter
2016-09-14 20:39:53 +09:00
Gary RobertsandGitHub feae95f169 Update react-router.d.ts
Changed react-router RouteComponentProps comment to properly reflect routeParams resolving to type string (not number). As per documentation here: 
https://github.com/ReactTraining/react-router/blob/master/docs/API.md#routeparams
2016-09-14 09:03:34 +01:00
Ryan CavanaughandGitHub e718ddaf48 Merge pull request #10869 from jtmthf/master
react-router: Fix for MatchState
2016-08-30 20:12:31 -07:00
Jan Bevers b83a05d335 Added missing method getCurrentLocation to react-router/history 2016-08-30 17:07:55 +02:00
Jack Moore 0bfbcce5f3 Added router and createElement to MatchState. Added tests to demonstrate SSR using match and RouterContext 2016-08-28 18:27:36 -05:00
minodisk 35324f1700 Add applyRouterMiddleware to react-router 2016-08-19 09:46:37 +09:00
minodisk 7a7510a12d Format react-router.d.ts 2016-08-19 09:46:30 +09:00
Alex Wendland be9ecbf1d9 Add withRouter to react-router 2016-08-13 16:30:16 -07:00
Mohamed HegazyandGitHub d5282ee8f1 Merge pull request #9530 from rogierschouten/react-router-getcomponents
getComponent/getComponents now takes state parameter instead of location
2016-06-21 14:53:00 -07:00
ephoton 93c443f2c1 Export type RouteProps 2016-06-21 00:46:37 +08:00
Artur EshenbrenerandMasahiro Wakame f20a05ba43 react-router: History.Location missed prop "hash" (#9567) 2016-06-08 19:27:30 +09:00
Artur EshenbrenerandMasahiro Wakame df9065dc6e react-router: export routerShape and historyShape (#9551)
https://github.com/reactjs/react-router/blob/0616f6e14337f68d3ce9f758aa73f83a255d6db3/modules/PropTypes.js#L9
https://github.com/reactjs/react-router/blob/0616f6e14337f68d3ce9f758aa73f83a255d6db3/modules/PropTypes.js#L19
2016-06-08 19:17:47 +09:00
François GuillotandMasahiro Wakame 1737fbff88 Typing Location.Query to K,V dictionary (#9524)
* Typing Location.Query to K,V dictionary

Location.Query is actually typed as 'Object', which forces to cast it to 'any' anytime you need to access one of your own query string parameter.

    const clientId = (this.props.location.query as any).clientId;

It should be typed as '{ [key: string]: string; }' since it's a dictionary where you can get your arbitrary named query string parameters.

* Fixing travis build
2016-06-03 00:49:05 +09:00
Rogier Schouten fceb0e37c0 getComponent/getComponents now takes state parameter instead of location
see
https://github.com/reactjs/react-router/commit/0cdee03a54aeb79f7c7e35628e3ba58bde54e2bd
2016-06-02 12:00:24 +02:00
ascodersandMasahiro Wakame 152fb904df update react-router.d.ts (#9066)
add basename to MatchArgs
2016-05-02 00:55:36 +09:00
Prasanna V. LoganatharandMasahiro Wakame b56b92096d MatchArgs can also take a string (#8221)
MatchArgs `location` is either a HistoryModule.Location, or a url string, which is converted to location automatically.
2016-04-23 15:21:33 +09:00
Thomas HourlierandMasahiro Wakame fa4c230580 Add createMemoryHistory to react-router. (#8728)
Since the version 2.0.0, react-router exports createMemoryHistory.
2016-04-23 15:19:41 +09:00
Giedrius Grabauskas e42fc3e471 Updated react-router 2.0
Added onchange hook.
Updated all hooks.
Params changed from object to dictionary.
Changed to use location descriptor.
2016-03-30 15:46:59 +03:00
vvakame 7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame 14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Tom Shen 735772cee9 Add useRouterHistory to react-router type definitions 2016-03-08 14:19:25 -05:00
Masahiro Wakame 94949214ef Merge pull request #8256 from ngbrown/react-router-v2
Updates for react-router v2.0.0
2016-03-04 22:14:24 +09:00
Giedrius Grabauskas 4bf9e262ab Removed module name 2016-03-02 17:39:58 +02:00
Giedrius Grabauskas c7b3b3c193 Added setRouteLeaveHook 2016-03-02 17:29:56 +02:00
Nathan Brown b3a2b98134 Export RouterOnContext from "react-router" module. 2016-02-28 12:24:19 -07:00
Nathan Brown 647734d252 Undo changes to react.d.ts. Update test to use static contextTypes and retype context. 2016-02-26 12:00:59 -07:00
Nathan Brown 156aee9c2e react-router has a new context type in v2.0.0, so added that. Updated tests. 2016-02-25 16:27:41 -07:00
Nathan Brown d89fabadf4 Update history to v2.0.0 and add tests. 2016-02-25 16:14:09 -07:00
Isman Usoh 07feae1178 Update react-router.d.ts 2016-01-30 17:29:23 +07:00
Isman Usoh 306df6f069 Rename RoutingContext -> RouterContext
https://github.com/rackt/react-router/commit/c0363abbe4f98c4534d226a0acebce88be4a41b5
2016-01-30 17:04:47 +07:00
Masahiro Wakame 62eff42bd8 Merge pull request #7688 from wereHamster/react-router-RouteProps
react-router: a React component supports get{Index,Child}Routes props
2016-01-24 00:29:44 +09:00
Tomas Carnecky bf904b5a58 react-router: a React component supports get{Index,Child}Routes props 2016-01-19 09:14:18 +01:00
Jason 3c1f12954a react-router.d.ts: add RouteComponentProps.children 2016-01-15 09:56:32 -08:00
Roger ChenandRoger Chen d9978a3c3c Update react-router typings for 2.0.0 2016-01-05 15:44:59 -08:00
vvakame 781e468d4b remove unused .tscparams 2015-12-23 18:23:35 +09:00
Michael Tiller 814e5ba4b1 Exposing additional types and interfaces 2015-11-27 12:06:21 -05:00
Sergey Buturlakin 99f6493ffb add push and replace methods 2015-11-20 11:31:28 +02:00
Sergey Buturlakin 51cd044cad update useRoutes history enhancer result interface 2015-11-20 11:20:02 +02:00
Sergey Buturlakin d0e0aacb36 add deprecated but supported methods 2015-11-20 11:18:51 +02:00
Sergey Buturlakin 8dedcf938a update tests 2015-11-19 19:45:21 +02:00
Sergey Buturlakin 3aa3970f22 Merge remote-tracking branch 'remotes/upstream/master'
Conflicts:
	react-router/react-router-tests.ts
2015-11-19 19:44:12 +02:00
Sergey Buturlakin 9962a6144e add IndexLink to the default export 2015-11-19 19:13:28 +02:00
Sergey Buturlakin 91e9c035e1 update to React Router v1.0.0 2015-11-19 14:15:44 +02:00
Sergey Buturlakin c5179cd689 update definitions to history v1.13.1 2015-11-16 19:02:38 +02:00
James Brantly 99443d33d5 Update tests for dependencies of React to work with v0.14 2015-11-11 09:47:20 -05:00
Tanguy Krotoff d8373f0a6f Rename from *-test.ts to *-tests.ts 2015-10-23 20:52:47 +02:00