2.0.0 Release Candidate 14
Pre-release
Pre-release
Breaking Changes
- Fluent request builder pattern has changed where you'll need to access the resource first then filter it e.g.
// previously
$message = $graphServiceClient->usersById('userId')->messagesById('messageId')->get()->wait();
// now
$message = $graphServiceClient->users()->byUserId('userId')->messages()->byMessageId('messageId')->get()->wait();- Passing custom response handlers is now done via a
ResponseHandlerOption BatchRequestBuilderhas now changed namespaces fromMicrosoft\Graph\Core\Requests\BatchRequestBuildertoMicrosoft\Graph\Beta\BatchRequestBuilderto allow deserialization of errors during batch requests. See how to make batch requests using the SDK.- The
ApiExceptionthrown during failed requests no longer contains the raw HTTP/PSR response. Only the response status code and headers are available.
New Features
- Includes a
LargeFileUploadtask which automatically uploads files larger than 3MB in chunks using an upload session. - Introduces a
GraphPhpLeagueAuthenticationProviderwhich by default requestshttps://graph.microsoft.com/.defaultscopes. This decouples the KiotaPhpLeagueAuthenticationProviderfrom Graph-specific defaults. - Code samples for the
PageIteratortask which enables you to page through a collection while applying a callback that is executed against each item in the collection. - Supports Continuous Access Evaluation. See samples
Bug Fixes
PATCHrequests for/contentendpoints now return the expected object. Previously the request succeeded but response body would not be deserialized.- Various serialization and deserialization issues with the
BatchRequesttask have been fixed.