Skip to content

Commit 9ee7ac7

Browse files
committed
Move to rrtr (#155)
1 parent b4feff7 commit 9ee7ac7

12 files changed

+18
-21
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# react-router-bootstrap
2-
Integration between [React Router](https://github.com/rackt/react-router) and [React-Bootstrap](https://github.com/react-bootstrap/react-bootstrap).
2+
Integration between [rrtr](https://github.com/taion/rrtr) and [React-Bootstrap](https://github.com/react-bootstrap/react-bootstrap).
33

44
[![Build Status](https://travis-ci.org/react-bootstrap/react-router-bootstrap.svg?branch=master)](https://travis-ci.org/react-bootstrap/react-router-bootstrap)
55
[![npm version](https://badge.fury.io/js/react-router-bootstrap.svg)](http://badge.fury.io/js/react-router-bootstrap)
@@ -20,16 +20,14 @@ As with React Router's `Link`, returning `false` from an `onClick` handler on `L
2020

2121
## Installation
2222

23-
**Note:** Releases from v0.20.0 onward only support React Router v2.x. For React Router 1.x support, use v0.19.3 or earlier.
24-
2523
```
2624
npm install react-router-bootstrap
2725
```
2826

2927
You will also want to have React Router and React-Bootstrap.
3028

3129
```
32-
npm install react-router react-bootstrap
30+
npm install rrtr react-bootstrap
3331
```
3432

3533
## Contributing

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"homepage": "https://github.com/react-bootstrap/react-router-bootstrap",
3434
"peerDependencies": {
3535
"react": ">=0.14.0",
36-
"react-router": ">=2.0.0"
36+
"rrtr": ">=2.1.2"
3737
},
3838
"devDependencies": {
3939
"babel": "^5.8.38",
@@ -72,9 +72,9 @@
7272
"react": "^15.0.0",
7373
"react-bootstrap": "^0.28.5",
7474
"react-dom": "^15.0.0",
75-
"react-router": "^2.0.1",
7675
"release-script": "^1.0.2",
7776
"rimraf": "^2.5.2",
77+
"rrtr": "^2.1.2",
7878
"shelljs": "^0.6.0",
7979
"sinon": "^1.17.3",
8080
"sinon-chai": "^2.8.0",

src/LinkContainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// This is largely taken from react-router/lib/Link.
1+
// This is largely taken from rrtr/lib/Link.
22

33
import React from 'react';
4-
import { Link } from 'react-router';
4+
import Link from 'rrtr/lib/Link';
55

66
export default class LinkContainer extends React.Component {
77
constructor(props, context) {

tests/IndexLinkContainer.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ReactTestUtils from 'react/lib/ReactTestUtils';
33
import * as ReactBootstrap from 'react-bootstrap';
44
import ReactDOM from 'react-dom';
5-
import { createMemoryHistory, IndexRoute, Route, Router } from 'react-router';
5+
import { createMemoryHistory, IndexRoute, Route, Router } from 'rrtr';
66

77
import IndexLinkContainer from '../src/IndexLinkContainer';
88

tests/LinkContainer.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ReactTestUtils from 'react/lib/ReactTestUtils';
33
import * as ReactBootstrap from 'react-bootstrap';
44
import ReactDOM from 'react-dom';
5-
import { createMemoryHistory, Route, Router } from 'react-router';
5+
import { createMemoryHistory, Route, Router } from 'rrtr';
66

77
import LinkContainer from '../src/LinkContainer';
88

tests/visual/ButtonVisual.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar';
33
import Button from 'react-bootstrap/lib/Button';
4-
import { Link } from 'react-router';
4+
import { Link } from 'rrtr';
55

66
import LinkContainer from '../../src/LinkContainer';
77

tests/visual/Home.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Link } from 'react-router';
2+
import { Link } from 'rrtr';
33

44
export default () => (
55
<div>

tests/visual/ListGroupItemVisual.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ListGroup from 'react-bootstrap/lib/ListGroup';
33
import ListGroupItem from 'react-bootstrap/lib/ListGroupItem';
4-
import { Link } from 'react-router';
4+
import { Link } from 'rrtr';
55

66
import LinkContainer from '../../src/LinkContainer';
77

tests/visual/MenuItemVisual.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar';
33
import MenuItem from 'react-bootstrap/lib/MenuItem';
44
import SplitButton from 'react-bootstrap/lib/SplitButton';
5-
import { Link } from 'react-router';
5+
import { Link } from 'rrtr';
66

77
import LinkContainer from '../../src/LinkContainer';
88

tests/visual/NavItemVisual.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Nav from 'react-bootstrap/lib/Nav';
33
import NavItem from 'react-bootstrap/lib/NavItem';
4-
import { Link } from 'react-router';
4+
import { Link } from 'rrtr';
55

66
import LinkContainer from '../../src/LinkContainer';
77

tests/visual/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react';
22
import Grid from 'react-bootstrap/lib/Grid';
33
import ReactDOM from 'react-dom';
4-
import { IndexRedirect, Route, Router } from 'react-router';
5-
import hashHistory from 'react-router/lib/hashHistory';
4+
import { hashHistory, IndexRedirect, Route, Router } from 'rrtr';
65

76
import ButtonVisual from './ButtonVisual';
87
import Home from './Home';

webpack.config.babel.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export default {
2929
}
3030
},
3131
{
32-
'react-router': {
32+
'rrtr': {
3333
root: 'ReactRouter',
34-
commonjs2: 'react-router',
35-
commonjs: 'react-router',
36-
amd: 'react-router'
34+
commonjs2: 'rrtr',
35+
commonjs: 'rrtr',
36+
amd: 'rrtr'
3737
}
3838
}
3939
],

0 commit comments

Comments
 (0)