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
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ The Microsoft Graph JavaScript client library is a lightweight wrapper around th
59
59
60
60
## Node version requirement
61
61
62
-
Node.js 10 LTS or higher.
62
+
Node.js 12 LTS or higher. The active Long Term Service (LTS) version of Node.js is used for on-going testing of existing and upcoming product features.
- Microsoft Graph JS SDK requires Node.js 10 LTS or higher.
10
-
- Updated to TypeScript 4.x.
11
10
12
-
### LargeFileUploadTask
13
-
- Modified the `FileObject` interface which now contains the `sliceFile` function. Learn more [LargeFileUploadTask](../docs/tasks/LargeFileUploadTask.md).
14
-
- The `FileObject` instance passed on creation of the `LargeFileUploadTask` object should contain the implementation of the `sliceFile` function.
15
-
- Added new classes `FileUpload` and `StreamUpload` implementing the `FileObject` interface.
11
+
- Microsoft Graph JS SDK requires Node.js 12 LTS or higher. The active Long Term Service (LTS) version of Node.js is used for on-going testing of existing and upcoming product features.
12
+
- Updated to TypeScript 4.x.
13
+
14
+
### LargeFileUploadTask
15
+
16
+
- Modified the `FileObject` interface which now contains the `sliceFile` function. Learn more [LargeFileUploadTask](../docs/tasks/LargeFileUploadTask.md).
17
+
- The `FileObject` instance passed on creation of the `LargeFileUploadTask` object should contain the implementation of the `sliceFile` function.
18
+
- Added new classes `FileUpload` and `StreamUpload` implementing the `FileObject` interface.
16
19
17
20
### Removed `timeout` option from `FetchOptions` interface
18
-
- Recommended way is to [cancel a request](../docs/CancellingAHTTPRequest.md) by passing a signal.
21
+
22
+
- Recommended way is to [cancel a request](../docs/CancellingAHTTPRequest.md) by passing a signal.
-`graph-es-sdk.js` - the bundled file in ES format will not be shipped anymore as the ES modules are being shipped.
32
-
-`graph-js-sdk.js` will be shipped as is.
37
+
38
+
-`graph-es-sdk.js` - the bundled file in ES format will not be shipped anymore as the ES modules are being shipped.
39
+
-`graph-js-sdk.js` will be shipped as is.
33
40
34
41
## Changed folder paths
35
-
- Files in `lib/es` have been moved to `lib/es/src`. The `lib` folder contains the transpiled `src` files.
36
-
- The `lib` contains the ES and CJS modules as follows:
37
-
```
38
-
lib
39
-
│
40
-
└─── src (CJS modules)
41
-
|
42
-
│
43
-
└─── es
44
-
|___ src (ES modules)
45
-
```
46
-
-`Range`: `src/Range` changed to `src/tasks/FileUploadTask/Range`.
47
-
-`ImplicitMSALAuthenticationProvider`:
48
-
- `src/ImplicitMSALAuthenticationProvider` changed to `src/authentication/msal/ImplicitMSALAuthenticationProvider`.
49
-
- Alternatively, `ImplicitMSALAuthenticationProvider` can be imported or required from `@microsoft/microsoft-graph-client/authProviders/msal`.
50
-
-`MSALAuthenticationProviderOptions`:
51
-
- `src/MSALAuthenticationProviderOptions` changed to `src/authentication/msal/MSALAuthenticationProviderOptions`.
52
-
- Alternatively, `MSALAuthenticationProviderOptions` can be imported or required from `@microsoft/microsoft-graph-client/authProviders/msal`.
42
+
43
+
- Files in `lib/es` have been moved to `lib/es/src`. The `lib` folder contains the transpiled `src` files. - The `lib` contains the ES and CJS modules as follows: `lib │ └─── src (CJS modules) | │ └─── es |___ src (ES modules)`
44
+
-`Range`: `src/Range` changed to `src/tasks/FileUploadTask/Range`.
45
+
-`ImplicitMSALAuthenticationProvider`: - `src/ImplicitMSALAuthenticationProvider` changed to `src/authentication/msal/ImplicitMSALAuthenticationProvider`. - Alternatively, `ImplicitMSALAuthenticationProvider` can be imported or required from `@microsoft/microsoft-graph-client/authProviders/msal`.
46
+
-`MSALAuthenticationProviderOptions`: - `src/MSALAuthenticationProviderOptions` changed to `src/authentication/msal/MSALAuthenticationProviderOptions`. - Alternatively, `MSALAuthenticationProviderOptions` can be imported or required from `@microsoft/microsoft-graph-client/authProviders/msal`.
47
+
53
48
## Enhancements
54
49
55
50
### Introducing support for `@azure/identity TokenCredentials`
56
-
- Added a `TokenCredentialAuthenticationProvider` enabling the use of `@azure/identity``credential classes` for authentication purposes.
57
-
- The `TokenCredentialAuthenticationProvider` enables server-side authentication using `credential classes` such as `ClientSecretCredential` or `ClientCertificateCredential`.
58
-
- Find the samples on how to use `TokenCredentialAuthenticationProvider` here - [TokenCredentialAuthenticationProvider samples](../samples/tokenCredentialSamples)
51
+
52
+
- Added a `TokenCredentialAuthenticationProvider` enabling the use of `@azure/identity``credential classes` for authentication purposes.
53
+
- The `TokenCredentialAuthenticationProvider` enables server-side authentication using `credential classes` such as `ClientSecretCredential` or `ClientCertificateCredential`.
54
+
- Find the samples on how to use `TokenCredentialAuthenticationProvider` here - [TokenCredentialAuthenticationProvider samples](../samples/tokenCredentialSamples)
59
55
60
56
### LargeFileUploadTask
61
57
62
-
- Added support for Node.js Stream upload. Learn more [LargeFileUploadTask](../docs/tasks/LargeFileUploadTask.md).
63
-
- Added capabilities to track the upload progress using `UploadEventHandlers`.
64
-
- Resolved a bug to enable large file uploads to Outlook and Print APIs.
58
+
-Added support for Node.js Stream upload. Learn more [LargeFileUploadTask](../docs/tasks/LargeFileUploadTask.md).
59
+
-Added capabilities to track the upload progress using `UploadEventHandlers`.
60
+
-Resolved a bug to enable large file uploads to Outlook and Print APIs.
65
61
66
62
### Added `browser` field in package.json.
67
-
- The `browser` field indicates the entry point for client applications using Microsoft Graph JS SDK library.
63
+
64
+
- The `browser` field indicates the entry point for client applications using Microsoft Graph JS SDK library.
68
65
69
66
### Added `customHosts` options
70
-
- The `AuthenticationHandler` and `TelemetryHandler` will add or update the request headers only if the request URL is a Graph endpoint or a custom endpoint.
71
-
-`customHosts` property in `IOptions`, `IClientOptions` takes in a `Set` of custom hosts.
67
+
68
+
- The `AuthenticationHandler` and `TelemetryHandler` will add or update the request headers only if the request URL is a Graph endpoint or a custom endpoint.
69
+
-`customHosts` property in `IOptions`, `IClientOptions` takes in a `Set` of custom hosts.
72
70
73
71
```typescript
74
72
// Consider the custom request url is https://CUSTOM_HOST.com
-`GraphClientError` handles client-side errors encountered within the JavaScript Client SDK whereas, `GraphError` class should be used to handle errors in the response from the Graph API.
79
+
80
+
-`GraphClientError` handles client-side errors encountered within the JavaScript Client SDK whereas, `GraphError` class should be used to handle errors in the response from the Graph API.
- Use of `ImplicitMSALAuthenticationProvider`, that is,using the implicit authorization flow is not recommended any more. [OAuth 2.0 Implicit Grant](https://oauth.net/2/grant-types/implicit/).
87
-
- Alternatively, you can implement a `CustomAuthenticationProvider` with an auth library of your choice. Learn more using the [samples](https://github.com/microsoftgraph/msgraph-sdk-javascript#samples-and-tutorials).
- Use of `ImplicitMSALAuthenticationProvider`, that is,using the implicit authorization flow is not recommended any more. [OAuth 2.0 Implicit Grant](https://oauth.net/2/grant-types/implicit/).
87
+
- Alternatively, you can implement a `CustomAuthenticationProvider` with an auth library of your choice. Learn more using the [samples](https://github.com/microsoftgraph/msgraph-sdk-javascript#samples-and-tutorials).
88
88
89
89
### Deprecating the `sliceFile` function of the `LargeFileUploadTask` class.
90
-
- The `sliceFile` function has been moved to the `FileObject` interface.
90
+
91
+
- The `sliceFile` function has been moved to the `FileObject` interface.
0 commit comments