From 09bb044c6112fad52417fc87404ac1f5ee01703a Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Mon, 23 Dec 2019 18:13:34 -0800 Subject: [PATCH] Drop support for Node 6 --- .travis.yml | 1 - README.md | 25 ------------------------- package.json | 2 +- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8688147ac6..f02edc2358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ cache: directories: - node_modules node_js: - - '6' - '8' - '10' sudo: false diff --git a/README.md b/README.md index d55567e768..666d3e9207 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,6 @@ const stripe = Stripe('sk_test_...'); //… ``` -On older versions of Node, you can use [promises](#using-promises) -or [callbacks](#using-callbacks) instead of `async`/`await`. - ## Initialize with config object The package can be initialized with several options: @@ -135,28 +132,6 @@ stripe.customers }); ``` -### Using callbacks - -On versions of Node.js prior to v7.9: - -```js -var stripe = require('stripe')('sk_test_...'); - -stripe.customers.create( - { - email: 'customer@example.com', - }, - function(err, customer) { - if (err) { - // Deal with an error (will be `null` if no error occurred). - } - - // Do something with created customer object - console.log(customer.id); - } -); -``` - ### Configuring Timeout Request timeout is configurable (the default is Node's default of 120 seconds): diff --git a/package.json b/package.json index 20498946ad..e226041628 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "bugs:": "https://github.com/stripe/stripe-node/issues", "engines": { - "node": "^6 || ^8.1 || >=10.*" + "node": "^8.1 || >=10.*" }, "main": "lib/stripe.js", "devDependencies": {