Skip to content

Commit 48dce8e

Browse files
committed
Added 0.4 release notes
1 parent d5d0224 commit 48dce8e

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

README.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Include [lib/graph-js-sdk-web.js](https://github.com/microsoftgraph/msgraph-sdk-
2121
<script type="text/javascript" src="graph-js-sdk-web.js"></script>
2222
```
2323
## Changelog
24+
#### 0.4.0
25+
* Add support for ES5. Make sure to use `graph-js-sdk-web.js` for web apps
26+
* Removed iterator helper method.
27+
2428
#### 0.3.1
2529
* Support for Node.js versions 4 and 5
2630

@@ -232,26 +236,6 @@ client
232236

233237
## Other API methods
234238

235-
### Iterating results
236-
We provide a helper method for iterating through results so you don't have to handle paging with skip tokens. Instead of calling `.get()`, use `.getResultIterator()`. Call `.next()` on the iterator to get the next value and fetch the next page if necessary.
237-
> **Note:** This feature requires ES6 generators, so it is not available on all platforms yet. Check [this compatibility info table](http://kangax.github.io/compat-table/es6/#test-generators) for details.
238-
239-
````javascript
240-
let iter = client
241-
.api('/me/messages')
242-
.getResultIterator();
243-
244-
// Example function that prints the subject of your messages
245-
function getNextMessage() {
246-
iter.next().value((err, res) => {
247-
console.log(res.subject);
248-
getNextMessage();
249-
})
250-
}
251-
252-
getNextMessage();
253-
````
254-
255239
### .version()
256240
Passing in a version through `.version()` has the highest priority. It overrides the Microsoft Graph client default version from `.init()` and the global library default (currently v1.0).
257241

0 commit comments

Comments
 (0)