You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Two output js files, one with polyfills for Fetch-API and ES6-Promises ([lib/graph-js-sdk-web.js](./lib/graph-js-sdk-web.js)) and one without ([lib/graph-js-sdk-core.js](./lib/graph-js-sdk-core.js))
7
+
[Refer [README.md](https://github.com/microsoftgraph/msgraph-sdk-javascript#browser) for usage]
8
+
* Enum for ResponseType, which lists down the available ResponseType options in autocomplete
9
+
10
+
Bug Fix
11
+
* Cannot access the property "request-id" of undefined in GraphError handling
12
+
13
+
### 1.1.0
14
+
New Features
15
+
* Support for Multipart POST request
16
+
17
+
Updates
18
+
* Light weight FetchAPI dependency (in replacement for SuperAgent)
19
+
20
+
Bug Fixes
21
+
* Updated putStream and getStream to work for all sized files
22
+
* Added obfuscation for output js file (graph-js-sdk-web.js)
23
+
* Updated versions of mocha and chai to 5.2.0 and 4.1.2 to fix security vulnerability in growl (which is a dependency of mocha)
24
+
* Running unit test files under types directory
25
+
* Compiling ts files
26
+
27
+
#### 1.0.0
28
+
* Added tests for new Graph functionality - Delta query, Extensibility, OneNote, and more.
29
+
30
+
#### 0.4.0
31
+
* Add support for ES5. Make sure to use `graph-js-sdk-web.js` for web apps
32
+
* Removed iterator helper method.
33
+
34
+
#### 0.3.1
35
+
* Support for Node.js versions 4 and 5
36
+
37
+
#### 0.3.0
38
+
* Migrated away from typings in client library core and TypeScript sample
39
+
40
+
#### 0.2.2
41
+
* Updated SuperAgent to version ``` 3.3.0 ```
42
+
43
+
#### 0.2.0
44
+
***Breaking change for existing apps** - Initialize the client library with `MicrosoftGraph.Client.init({...})`. See the updated usage section below for code samples.
45
+
* Added response handling tests to simulate Graph calls
46
+
* Added type declarations file for core client library, which adds intellisense for chained methods.
Copy file name to clipboardExpand all lines: README.md
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,14 @@ The Microsoft Graph JavaScript client library is a lightweight wrapper around th
18
18
19
19
### Browser
20
20
21
-
Include [lib/graph-js-sdk-web.js](https://github.com/microsoftgraph/msgraph-sdk-javascript/raw/master/lib/graph-js-sdk-web.js) in your page.
21
+
The library comes with two varieties of options, you can pick one based on your use case
22
+
23
+
1. If your application has polyfills for **Fetch-API** and **ES6-Promise**, then can just include [lib/graph-js-sdk-core.js](./lib/graph-js-sdk-core.js) in your page.
2. If your application does not have polyfills for **Fetch-API** and **ES6-Promise**, then you have to include [lib/graph-js-sdk-web.js](./lib/graph-js-sdk-web.js) in your page.
@@ -241,7 +248,19 @@ You can pass in additional request headers, either individually or in a dictiona
241
248
````
242
249
243
250
### .responseType()
244
-
To set a custom response type, use the `.responseType(string)` method. To see an example, check the [browser sample](samples/browser/index.html) that downloads an image and displays it in an `<img>` element.
251
+
To set a custom response type, use the `.responseType(<ResponseType>)` method. Refer [ResponseType.ts](./src/ResponseType.ts) for available options.
You can run and debug the node samples found under [./samples/node/node-sample.js](./samples/node/node-sample.js) by running the *Run node samples* configuration from the **Debug** (Ctrl + Shift + D) menu in Visual Studio Code. Alternately, you can run the node samples from the CLI by entering `node ./samples/node/node-sample.js` (assuming you are at the root of this repo). You'll need to rename the *secrets.example.json* file to *secrets.json* and add a valid access token to it. You can get an access token by doing the following:
@@ -313,28 +332,6 @@ We'd love to get your feedback about the Microsoft Graph JavaScript client libra
313
332
314
333
## Contributing
315
334
Please see the [contributing guidelines](CONTRIBUTING.md).
316
-
## Changelog
317
-
318
-
#### 1.0.0
319
-
* Added tests for new Graph functionality - Delta query, Extensibility, OneNote, and more.
320
-
321
-
#### 0.4.0
322
-
* Add support for ES5. Make sure to use `graph-js-sdk-web.js` for web apps
323
-
* Removed iterator helper method.
324
-
325
-
#### 0.3.1
326
-
* Support for Node.js versions 4 and 5
327
-
328
-
#### 0.3.0
329
-
* Migrated away from typings in client library core and TypeScript sample
330
-
331
-
#### 0.2.2
332
-
* Updated SuperAgent to version ``` 3.3.0 ```
333
-
334
-
#### 0.2.0
335
-
***Breaking change for existing apps** - Initialize the client library with `MicrosoftGraph.Client.init({...})`. See the updated usage section below for code samples.
336
-
* Added response handling tests to simulate Graph calls
337
-
* Added type declarations file for core client library, which adds intellisense for chained methods.
0 commit comments