Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit db988e1

Browse files
mikeb-stripecharliecruzan-stripe
authored andcommitted
Add deprecation notices to: library, readme, docs, CLI (#1)
* Add deprecation notices to: library, readme, docs, CLI * rm yarn.lock from .gitignore * Update README.md Co-authored-by: charliecruzan-stripe <[email protected]> * Update postinstall.js Co-authored-by: charliecruzan-stripe <[email protected]> * Update src/index.js Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs-md/index.md Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs-md/start.md Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs-md/start.md Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs-md/index.md Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs/pages/en/index.js Co-authored-by: charliecruzan-stripe <[email protected]> * Update website/docs/pages/en/index.js Co-authored-by: charliecruzan-stripe <[email protected]> Co-authored-by: charliecruzan-stripe <[email protected]>
1 parent 4c993b9 commit db988e1

File tree

10 files changed

+118
-95
lines changed

10 files changed

+118
-95
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# tipsi-stripe
2-
3-
This library isn't actively maintained now. Please, consider usage of Stripe's official library:
1+
# 🚨 This library is no longer maintained 🚨
42

5-
https://github.com/stripe/stripe-react-native
3+
If you're building apps with React Native, please use [Stripe's official React Native library](https://github.com/stripe/stripe-react-native).
64

5+
# tipsi-stripe
76

87
If for some reason you cannot migrate to it now. And you can offer with testing new beta versions, please reach me in [discord](https://discord.gg/vmBxnBw) (name: cybergrind#4625). Just PM with github account name + platforms you can check will be enough.
98
I will ping you when we have something to check.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint": "eslint",
1212
"lint:fix": "eslint --fix",
1313
"prettier": "prettier",
14-
"prettier:js": "prettier --write src/*.{js,jsx} src/**/*.{js,jsx} example/src/*.{js,jsx} example/src/**/*.{js,jsx}"
14+
"prettier:js": "prettier --write src/*.{js,jsx} src/**/*.{js,jsx} example/src/*.{js,jsx} example/src/**/*.{js,jsx}",
15+
"postinstall": "node postinstall.js"
1516
},
1617
"repository": {
1718
"type": "git",

postinstall.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* eslint-disable no-console */
2+
console.warn(
3+
'🚨 [tipsi-stripe] Deprecation notice: tipsi-stripe is no longer maintained. Please migrate your project to @stripe/stripe-react-native: https://github.com/stripe/stripe-react-native'
4+
);

src/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ import errorCodes from './errorCodes'
55
export { PaymentCardTextField, errorCodes }
66

77
export default Stripe
8+
9+
// eslint-disable-next-line no-console
10+
console.warn(
11+
'🚨 [tipsi-stripe] Deprecation notice: tipsi-stripe is no longer maintained. Please migrate your project to @stripe/stripe-react-native: https://github.com/stripe/stripe-react-native'
12+
)

website/docs-md/index.md

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
11
---
22
id: index
3-
title: Start here
4-
sidebar_label: Start here
3+
title: Deprecation Notice
4+
sidebar_label: Deprecation Notice
55
---
66

7-
## Library requirements
8-
### iOS
9-
10-
* Xcode 8+
11-
12-
* iOS 11+
13-
14-
* [CocoaPods](https://cocoapods.org) 1.1.1+
15-
16-
### Android
17-
18-
* SDK 17+
19-
20-
## Testing Payments
21-
22-
**Credit Cards**: you can use real cards for payments on test environment without hesitation. You won't be charged on test environment for card payments.
23-
24-
Or you can use [test cards provided by stripe](https://stripe.com/docs/testing#cards).
25-
26-
**Google Pay**: will charge you for $1 but return money soon (~1hr).
7+
## 🚨 Deprecation notice: please use `@stripe/stripe-react-native` 🚨
278

9+
This library is no longer maintained. Please update your project to use [`@stripe/stripe-react-native`](https://github.com/stripe/stripe-react-native)

website/docs-md/start.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
id: start
3+
title: (Deprecated) Start here
4+
sidebar_label: (Deprecated) Start here
5+
---
6+
7+
## 🚨 Deprecation notice: please use `@stripe/stripe-react-native` 🚨
8+
9+
This library is no longer maintained. Please update your project to use [`@stripe/stripe-react-native`](https://github.com/stripe/stripe-react-native)
10+
11+
## Library requirements
12+
13+
### iOS
14+
15+
- Xcode 8+
16+
17+
- iOS 11+
18+
19+
- [CocoaPods](https://cocoapods.org) 1.1.1+
20+
21+
### Android
22+
23+
- SDK 17+
24+
25+
## Testing Payments
26+
27+
**Credit Cards**: you can use real cards for payments on test environment without hesitation. You won't be charged on test environment for card payments.
28+
29+
Or you can use [test cards provided by stripe](https://stripe.com/docs/testing#cards).
30+
31+
**Google Pay**: will charge you for \$1 but return money soon (~1hr).

website/docs/i18n/en.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"localized-strings": {
44
"next": "Next",
55
"previous": "Previous",
6-
"tagline": "Stripe support for React-Native",
6+
"tagline": "(Deprecated) Stripe support for React-Native",
77
"docs": {
88
"cancelapplepayrequest": {
99
"title": ".cancelApplePayRequest() -> Promise",
@@ -82,8 +82,8 @@
8282
"sidebar_label": "Google Pay"
8383
},
8484
"index": {
85-
"title": "Start here",
86-
"sidebar_label": "Start here"
85+
"title": "Deprecation Notice",
86+
"sidebar_label": "Deprecation Notice"
8787
},
8888
"installation": {
8989
"title": "Installation",
@@ -145,6 +145,10 @@
145145
"title": "Source",
146146
"sidebar_label": "Source"
147147
},
148+
"start": {
149+
"title": "(Deprecated) Start here",
150+
"sidebar_label": "(Deprecated) Start here"
151+
},
148152
"tests-local-ci": {
149153
"title": "Local CI",
150154
"sidebar_label": "Local CI"
@@ -179,8 +183,7 @@
179183
}
180184
},
181185
"links": {
182-
"Docs": "Docs",
183-
"Blog": "Blog"
186+
"Docs": "Docs"
184187
},
185188
"categories": {
186189
"Overview": "Overview",

website/docs/pages/en/index.js

+49-42
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const React = require('react')
9-
const PropTypes = require('prop-types')
10-
const { Container, GridBlock } = require('../../core/CompLibrary')
8+
const React = require('react');
9+
const PropTypes = require('prop-types');
10+
const { Container, GridBlock } = require('../../core/CompLibrary');
1111

12-
const siteConfig = require(process.cwd() + '/siteConfig') // eslint-disable-line
12+
const siteConfig = require(process.cwd() + '/siteConfig'); // eslint-disable-line
1313

1414
function imgUrl(img) {
15-
return `${siteConfig.baseUrl}img/${img}`
15+
return `${siteConfig.baseUrl}img/${img}`;
1616
}
1717

1818
function pageUrl(page, language) {
19-
return `${siteConfig.baseUrl}${language ? `${language}/` : ''}${page}`
19+
return `${siteConfig.baseUrl}${language ? `${language}/` : ''}${page}`;
2020
}
2121

2222
class Button extends React.Component {
@@ -27,50 +27,50 @@ class Button extends React.Component {
2727
{this.props.children}
2828
</a>
2929
</div>
30-
)
30+
);
3131
}
3232
}
3333

3434
Button.propTypes = {
3535
href: PropTypes.string.isRequired,
3636
children: PropTypes.any.isRequired,
37-
target: PropTypes.string,
38-
}
37+
target: PropTypes.string
38+
};
3939

4040
Button.defaultProps = {
41-
target: '_self',
42-
}
41+
target: '_self'
42+
};
4343

4444
const SplashContainer = props => (
4545
<div className="homeContainer">
4646
<div className="homeSplashFade">
4747
<div className="wrapper homeWrapper">{props.children}</div>
4848
</div>
4949
</div>
50-
)
50+
);
5151

5252
SplashContainer.propTypes = {
53-
children: PropTypes.any.isRequired,
54-
}
53+
children: PropTypes.any.isRequired
54+
};
5555

5656
const ProjectTitle = () => (
5757
<h2 className="projectTitle">
5858
{siteConfig.title}
5959
<small>{siteConfig.tagline}</small>
6060
</h2>
61-
)
61+
);
6262

6363
const PromoSection = props => (
6464
<div className="section promoSection">
6565
<div className="promoRow">
6666
<div className="pluginRowBlock">{props.children}</div>
6767
</div>
6868
</div>
69-
)
69+
);
7070

7171
PromoSection.propTypes = {
72-
children: PropTypes.any.isRequired,
73-
}
72+
children: PropTypes.any.isRequired
73+
};
7474

7575
class HomeSplash extends React.Component {
7676
render() {
@@ -79,32 +79,32 @@ class HomeSplash extends React.Component {
7979
<div className="inner">
8080
<ProjectTitle />
8181
<PromoSection>
82-
<Button href="https://github.com/tipsi/tipsi-stripe/tree/master/example">
83-
Sample Project
82+
<Button href="https://github.com/stripe/stripe-react-native">
83+
Official library: @stripe/stripe-react-native
8484
</Button>
8585
</PromoSection>
8686
</div>
8787
</SplashContainer>
88-
)
88+
);
8989
}
9090
}
9191

9292
const Block = props => (
9393
<Container padding={['bottom', 'top']} id={props.id} background={props.background}>
9494
<GridBlock align="center" contents={props.children} layout={props.layout} />
9595
</Container>
96-
)
96+
);
9797

9898
Block.propTypes = {
9999
id: PropTypes.string.isRequired,
100100
background: PropTypes.string.isRequired,
101101
children: PropTypes.any.isRequired,
102-
layout: PropTypes.string.isRequired,
103-
}
102+
layout: PropTypes.string.isRequired
103+
};
104104

105-
const Showcase = (props) => {
105+
const Showcase = props => {
106106
if ((siteConfig.users || []).length === 0) {
107-
return null
107+
return null;
108108
}
109109

110110
const showcase = siteConfig.users
@@ -113,29 +113,36 @@ const Showcase = (props) => {
113113
<a href={user.infoLink} key={user.caption}>
114114
<img src={user.image} title={user.caption} alt={user.caption} />
115115
</a>
116-
))
116+
));
117117

118118
return (
119-
<div className="productShowcaseSection paddingBottom">
119+
<div className="productShowcaseSection paddingBottom">
120120
<h2>Quick navigation</h2>
121-
<a href="/tipsi-stripe/docs/index.html">Start reading docs</a>
121+
<p>
122+
<a href="https://github.com/stripe/stripe-react-native">
123+
Official library: @stripe/stripe-react-native
124+
</a>
125+
</p>
126+
<p>
127+
<a href="/tipsi-stripe/docs/index.html">(Deprecated) Start reading docs</a>
128+
</p>
122129

123130
<div className="logos">{showcase}</div>
124131
</div>
125-
)
126-
}
132+
);
133+
};
127134

128135
Showcase.propTypes = {
129-
language: PropTypes.string,
130-
}
136+
language: PropTypes.string
137+
};
131138

132139
Showcase.defaultProps = {
133-
language: undefined,
134-
}
140+
language: undefined
141+
};
135142

136143
class Index extends React.Component {
137144
render() {
138-
const { language = '' } = this.props
145+
const { language = '' } = this.props;
139146

140147
return (
141148
<div>
@@ -144,16 +151,16 @@ class Index extends React.Component {
144151
<Showcase language={language} />
145152
</div>
146153
</div>
147-
)
154+
);
148155
}
149156
}
150157

151158
Index.propTypes = {
152-
language: PropTypes.string,
153-
}
159+
language: PropTypes.string
160+
};
154161

155162
Index.defaultProps = {
156-
language: undefined,
157-
}
163+
language: undefined
164+
};
158165

159-
module.exports = Index
166+
module.exports = Index;

website/docs/sidebars.json

+3-9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"docs": {
33
"Overview": [
44
"index",
5+
"start",
56
"compatibility",
67
"installation",
78
"linking",
@@ -14,11 +15,7 @@
1415
"migrationIssues",
1516
"changelog"
1617
],
17-
"Objects": [
18-
"token",
19-
"source",
20-
"paymentMethod"
21-
],
18+
"Objects": ["token", "source", "paymentMethod"],
2219
"Native Pay -  & G": [
2320
"canMakeNativePayPayments",
2421
"deviceSupportsNativePay",
@@ -32,10 +29,7 @@
3229
"Create Source Object With Params": ["createsourcewithparamsparams"],
3330
"Components": ["paymentcardtextfield"],
3431
"Error Codes": ["errorcodes"],
35-
"Tests": [
36-
"tests-local-ci",
37-
"tests-manual"
38-
],
32+
"Tests": ["tests-local-ci", "tests-manual"],
3933
"Troubleshooting": [
4034
"troubleshooting-android",
4135
"troubleshooting-jest",

0 commit comments

Comments
 (0)