Skip to content
Browse files

Remove global resources variable, and cut the 2.1.0 release. Fixes #72

  • Loading branch information...
1 parent cea7cd5 commit 3cd3c17379f1cf62d69f6bd9b6a333be8f91c99a @SlexAxton SlexAxton committed Nov 7, 2013
Showing with 8 additions and 7 deletions.
  1. +2 −1 CHANGELOG
  2. +1 −1 README.md
  3. +1 −1 VERSION
  4. +3 −3 lib/stripe.js
  5. +1 −1 package.json
View
3 CHANGELOG
@@ -1,8 +1,9 @@
-2.1.0 October 21st, 2013 (Impending)
+2.1.0 Nov 7th, 2013
- Support single key/value setting on setMetadata method
- Fix Windows url-path issue
- Add missing stripe.charges.update method
- Support setting auth_token per request (useful in Connect)
+ - Remove global 'resources' variable
2.0.0 October 18th, 2013
- API overhaul and refactor, including addition of promises.
View
2 README.md
@@ -2,7 +2,7 @@
## Version 2 Update Notice
-This repo has just been transferred to Stripe. Alongside this transfer, Stripe has released version 2.0.0 of the bindings. **[Read about Version 2 here](https://github.com/stripe/stripe-node/wiki/Version-2)**. We'll be going through the backlogged issues in the next few days.
+This repo has just been transferred to Stripe. Alongside this transfer, Stripe has released version 2.x of the bindings. **[Read about Version 2 here](https://github.com/stripe/stripe-node/wiki/Version-2)**. We'll be going through the backlogged issues in the next few days.
## Installation
View
2 VERSION
@@ -1 +1 @@
-2.1.0-rc3
+2.1.0
View
6 lib/stripe.js
@@ -21,7 +21,7 @@ Stripe.USER_AGENT_SERIALIZED = null;
var exec = require('child_process').exec;
-var resources = global.resources = {
+var resources = {
Account: require('./resources/Account'),
Balance: require('./resources/Balance'),
@@ -49,7 +49,7 @@ function Stripe(key, version) {
if (!(this instanceof Stripe)) {
return new Stripe(key);
}
-
+
this._api = {
auth: null,
host: Stripe.DEFAULT_HOST,
@@ -79,7 +79,7 @@ Stripe.prototype = {
setPort: function(port) {
this._setApiField('port', port);
},
-
+
setApiVersion: function(version) {
this._setApiField('version', version);
},
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "stripe",
- "version": "2.1.0-rc3",
+ "version": "2.1.0",
"description": "Stripe API wrapper",
"homepage": "https://github.com/stripe/stripe-node",
"author": "Stripe <james@stripe.com> (https://stripe.com/)",

0 comments on commit 3cd3c17

Please sign in to comment.
Something went wrong with that request. Please try again.