packagist microsoft/microsoft-graph 2.0.0-RC14
2.0.0 Release Candidate 14

latest releases: dev-chore/branch-normalization, dev-dev, dev-main...
12 months ago

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
  • BatchRequestBuilder has now changed namespaces from Microsoft\Graph\Core\Requests\BatchRequestBuilder to Microsoft\Graph\Beta\BatchRequestBuilder to allow deserialization of errors during batch requests. See how to make batch requests using the SDK.
  • The ApiException thrown during failed requests no longer contains the raw HTTP/PSR response. Only the response status code and headers are available.

New Features

  • Includes a LargeFileUpload task which automatically uploads files larger than 3MB in chunks using an upload session.
  • Introduces a GraphPhpLeagueAuthenticationProvider which by default requests https://graph.microsoft.com/.default scopes. This decouples the Kiota PhpLeagueAuthenticationProvider from Graph-specific defaults.
  • Code samples for the PageIterator task 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

  • PATCH requests for /content endpoints now return the expected object. Previously the request succeeded but response body would not be deserialized.
  • Various serialization and deserialization issues with the BatchRequest task have been fixed.

Don't miss a new microsoft-graph release

NewReleases is sending notifications on new releases.