Skip to content

Commit 6521f54

Browse files
committed
Drop explicit support for non-maintained node versions
1 parent 5e81cdc commit 6521f54

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: node_js
22

33
node_js:
4-
- "6.5" # latest 6 is causing issues with travis.
4+
- "7"
5+
- "6"
56
- "5"
67
- "4"
7-
- "iojs"
8-
- "0.12"
9-
- "0.10"
108

119
before_install:
1210
- npm config set spin false --global

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,15 @@ First, install DataLoader using npm.
3939
npm install --save dataloader
4040
```
4141

42-
DataLoader assumes a JavaScript environment with global ES6 `Promise` and `Map`
43-
classes, available in the recent versions of node.js or when using
44-
[babel/polyfill][]. If your environment does not have these, provide them before
45-
using DataLoader.
46-
47-
```js
48-
global.Promise = require('es6-promise')
49-
global.Map = require('es6-map')
50-
```
51-
5242
To get started, create a `DataLoader`. Each `DataLoader` instance represents a
53-
unique cache. You might create each loader once for your whole application, or
54-
create new instances per request when used within a web-server like [express][]
55-
if different users can see different things. It's up to you.
43+
unique cache. Typically instances are created per request when used within a
44+
web-server like [express][] if different users can see different things.
45+
46+
> Note: DataLoader assumes a JavaScript environment with global ES6 `Promise`
47+
and `Map` classes, available in all supported versions of Node.js.
5648

5749

58-
### Batching
50+
## Batching
5951

6052
Batching is not an advanced feature, it's DataLoader's primary feature.
6153
Create loaders by providing a batch loading function.
@@ -130,7 +122,7 @@ with the original keys `[ 2, 9, 6, 1 ]`:
130122
```
131123

132124

133-
### Caching
125+
## Caching
134126

135127
DataLoader provides a cache for all loads which occur in a single request to
136128
your application. After `.load()` is called once with a given key, the resulting

0 commit comments

Comments
 (0)