Releases: microsoftgraph/msgraph-sdk-php
Releases · microsoftgraph/msgraph-sdk-php
2.0.0 Release Candidate 16
What's Changed
- Add National Cloud customization sample by @Ndiritu in #1261
- Set correct base URL when custom request adapter is used by @Ndiritu in #1264
- Generated models and request builders by @andrueastman in #1267
Full Changelog: 2.0.0-RC15...2.0.0-RC16
2.0.0 Release Candidate 15
What's Changed
- Simplified
GraphServiceClient
instantiation experience
// Default client using the global endpoint (https://graph.microsoft.com) and default scopes
$graphServiceClient = new GraphServiceClient($tokenRequestContext);
// With custom scopes and custom National Cloud endpoint
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes, NationalCloud::CHINA);
// With a custom request adapter
$graphServiceClient = GraphServiceClient::createWithRequestAdapter($requestAdapter);
- Updated models and fluent request builders.
Full Changelog: 2.0.0-RC14...2.0.0-RC15
June 2023 Update (1.99.0)
What's Changed
- Merge pull request #1237 from microsoftgraph/dev by @Ndiritu in #1238
- Update CODEOWNERS with msgraph-devx-php-write by @MIchaelMainer in #1240
- Replace deprecated unwrap method in promises namespace by @Ndiritu in #1248
- Generated models and request builders by @andrueastman in #1252
- Generated beta models and request builders by @andrueastman in #1251
- chore: capture initial branch policy settings by @MIchaelMainer in #1257
- Generated beta models and request builders by @andrueastman in #1259
- Generated models and request builders by @andrueastman in #1258
- Release 1.99.0 by @Ndiritu in #1255
Full Changelog: 1.98.0...1.99.0
2.0.0 Release Candidate 14
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 fromMicrosoft\Graph\Core\Requests\BatchRequestBuilder
toMicrosoft\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 requestshttps://graph.microsoft.com/.default
scopes. This decouples the KiotaPhpLeagueAuthenticationProvider
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.
May 2023 Update (1.98.0)
What's Changed
- Merge pull request #1230 from microsoftgraph/dev by @Ndiritu in #1231
- Add request headers to $count requests by @lilHermit in #1232
- Generated models and request builders by @andrueastman in #1233
- Generated beta models and request builders by @andrueastman in #1234
- Update SDK version in GraphConstants.php by @Ndiritu in #1236
- Update psr/http-message requirement from ^1.0 to ^1.0 || ^2.0 by @dependabot in #1205
- Release 1.98.0 by @Ndiritu in #1237
New Contributors
- @lilHermit made their first contribution in #1232
Full Changelog: 1.97.0...1.98.0
May 2023 Update (1.97.0)
What's Changed
- Main by @Ndiritu in #1223
- Generated beta models and request builders by @andrueastman in #1226
- Generated models and request builders by @andrueastman in #1225
- Release 1.97.0 by @Ndiritu in #1230
Full Changelog: 1.96.0...1.97.0
May 2023 Update (1.96.0)
What's Changed
- Generated beta models and request builders by @andrueastman in #1220
- Generated models and request builders by @andrueastman in #1219
- Release 1.96.0 by @Ndiritu in #1222
Full Changelog: 1.95.0...1.96.0
April 2023 Update (1.95.0)
What's Changed
- Merge pull request #1201 from microsoftgraph/dev by @Ndiritu in #1202
- Generated models and request builders by @andrueastman in #1211
- Generated beta models and request builders by @andrueastman in #1212
- Release 1.95.0 by @Ndiritu in #1215
Full Changelog: 1.94.0...1.95.0
April 2023 Update (1.94.0)
What's Changed
- Main by @SilasKenneth in #1195
- Generated models and request builders by @andrueastman in #1198
- Generated beta models and request builders by @andrueastman in #1199
- Release 1.94.0 by @Ndiritu in #1201
Full Changelog: 1.93.0...1.94.0
April 2023 Update (1.93.0)
What's Changed
- Generated beta models and request builders by @andrueastman in #1188
- Generated models and request builders by @andrueastman in #1187
- Generated models and request builders by @andrueastman in #1192
- Generated beta models and request builders by @andrueastman in #1193
- Release 1.93.0 by @Ndiritu in #1190
Full Changelog: 1.92.0...1.93.0