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
-`Endpoints` class gained `changeClientUrl()` method to create new instance with updated client URL (immutable)
51
+
-`RenewedAuthToken` gained `getEndpoints()` method to create `Endpoints` object from server response
52
+
-`CoreBuilder` gained `withEndpoints()` and `withOauthServerUrl()` methods for explicit endpoint configuration
53
+
- OAuth server URL is automatically extracted from `server_endpoint` field in API responses
54
+
- Default OAuth server remains `https://oauth.bitrix.info` for backward compatibility
55
+
- Added comprehensive unit tests for `Endpoints` class with 29 test cases covering:
56
+
- Constructor validation for client and auth server URLs
57
+
-`getClientUrl()` and `getAuthServerUrl()` methods
58
+
-`changeClientUrl()` method with immutability checks
59
+
-`initFromArray()` static factory method with validation
60
+
- URL format validation (HTTP/HTTPS, ports, paths, subdomains)
61
+
- Error handling for invalid URLs and missing required fields
62
+
- Automatic addition of `https://` protocol when missing from client URL
63
+
- Added automatic protocol fallback in `Endpoints` constructor: if client URL is provided without protocol (e.g., `example.bitrix24.com`), `https://` is automatically added
64
+
65
+
### Changed
66
+
67
+
-**Breaking changes** in `ContactPersonInterface` method signatures:
68
+
-`changeEmail(?string $email)` - removed second parameter `?bool $isEmailVerified`. Migration path: call `markEmailAsVerified()` separately after
- Changed base OS from Alpine to Debian Bookworm for better compatibility
83
+
- Implemented multi-stage Docker build for optimized image size
84
+
- Added proper user/group ID mapping for www-data user (UID/GID 10001)
85
+
- Set proper working directory ownership and non-root user execution
86
+
-**PHP 8.4 compatibility improvements**:
87
+
- Rector configuration updated to use `LevelSetList::UP_TO_PHP_84` for PHP 8.4 feature detection
88
+
- PHPUnit configuration updated to PHPUnit 11.0 attribute set (`PHPUnitSetList::PHPUNIT_110`)
89
+
- Fixed all implicitly nullable parameter deprecation warnings (8 occurrences)
90
+
- Fixed PHPStan internal errors with `random_int()` range handling
91
+
-**OAuth server selection made dynamic**:
92
+
-`ApiClient` now uses `Credentials::getOauthServerUrl()` instead of hardcoded constant
93
+
-`Core` automatically updates endpoints in credentials when receiving renewed auth tokens
94
+
- OAuth server URL is preserved and updated from `server_endpoint` in token refresh responses
95
+
- Existing code continues to work without changes (backward compatible)
96
+
97
+
### Fixed
98
+
99
+
- Fixed wrong offset in `ItemsResult`[see details](https://github.com/bitrix24/b24phpsdk/issues/279)
100
+
- Fixed wrong exception for method `crm.item.get`, now it `ItemNotFoundException`[see details](https://github.com/bitrix24/b24phpsdk/issues/282)
101
+
- Fixed added type `project` in enum `PortalLicenseFamily`[see details](https://github.com/bitrix24/b24phpsdk/issues/286)
102
+
- Fixed errors in `ContactPersonRepositoryInterfaceTest`, [see details](https://github.com/bitrix24/b24phpsdk/issues/294)
103
+
-**Breaking change**: Fixed method signature `Credentials::createFromOAuth()` - third parameter changed from `string $domainUrl` to `Endpoints $endpoints`
104
+
object
105
+
- Migration: Replace `Credentials::createFromOAuth($authToken, $appProfile, 'https://example.com')` with
106
+
`Credentials::createFromOAuth($authToken, $appProfile, new Endpoints('https://example.com', 'https://oauth.bitrix.info/'))`
107
+
- Updated all unit and integration tests to use new signature
108
+
- Fixed bug in `Endpoints` class constructor (line 35) - validation should check `$this->authServerUrl` instead of `$authServerUrl` parameter
109
+
- Fixed unit tests in `CredentialsTest.php` to properly instantiate `Endpoints` objects
110
+
- Fixed unit tests in `CoreTest.php` integration test to use `Endpoints` object
111
+
112
+
### Deprecated
113
+
114
+
- Method `RemoteEventsFactory::createEvent` marked as deprecated, use `RemoteEventsFactory::create` and `RemoteEventsFactory::validate` instead
115
+
116
+
### Statistics
117
+
118
+
```
119
+
Bitrix24 API-methods count: 1162
120
+
Supported in bitrix24-php-sdk methods count: 639
121
+
Coverage percentage: 54.99% 🚀
122
+
Supported in bitrix24-php-sdk methods with batch wrapper count: 91
123
+
```
124
+
3
125
## 1.7.0 - 2025.10.08
4
126
5
127
### Added
@@ -207,6 +329,7 @@
207
329
-`list` retrieves a list of property bindings
208
330
-`deleteByFilter` removes the property relation
209
331
-`getFields` returns the available fields for property binding
332
+
210
333
### Fixed
211
334
212
335
- Fixed Incorrect data loading in `Core\Batch::getTraversableList()` with desc sorting by ID [see details](https://github.com/bitrix24/b24phpsdk/issues/246)
@@ -219,7 +342,6 @@ Supported in bitrix24-php-sdk methods count: 632
219
342
Coverage percentage: 54.39% 🚀
220
343
```
221
344
222
-
223
345
## 1.6.0 – 2025.09.01
224
346
225
347
### Added
@@ -400,7 +522,6 @@ Supported in bitrix24-php-sdk methods count: 476
400
522
Coverage percentage: 41.03% 🚀
401
523
```
402
524
403
-
404
525
## 1.5.0 – 2025.08.01
405
526
406
527
### Added
@@ -1060,6 +1181,7 @@ Supported in bitrix24-php-sdk methods with batch wrapper count: 22
1060
1181
- Fixed variable names in `Bitrix24\SDK\Services\ServiceBuilderFactory::initFromRequest`,
1061
1182
see [wrong variable name](https://github.com/bitrix24/b24phpsdk/issues/30).
1062
1183
- Fixed some corner cases in `Bitrix24\SDK\Core\ApiLevelErrorHandler`
1184
+
- Fixed getting entity by its code, see [entity.get issue](https://github.com/bitrix24/b24phpsdk/issues/285)
0 commit comments