Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ composer.phar
composer.lock
/.idea/
.DS_Store
.phpunit.cache/
44 changes: 13 additions & 31 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
4.0.0

## 🚨 Breaking Changes
- Impact: update required only if you use PHP < 8.2 or relied on the positional `apiVersion` constructor argument.
- Bumped minimum supported PHP version to `>=8.2`.
- Simplified SDK constructor to a single optional `config` parameter:
- `apiVersion` (defaults to `v2`)
- `timeout` (seconds)
- `httpClient` (PSR-18 client, advanced)
- Removed support for the positional `apiVersion` constructor argument.

## Safe Update (No Migration Needed)
- You can update without code changes if:
- Your project already runs on PHP `>=8.2`.
- You instantiate the SDK as `new Facturapi($apiKey)` (single API key argument).
- If you use Composer, keep loading `vendor/autoload.php` as usual.
- If you do not use Composer, load `src/Facturapi.php` directly.

## Deprecations (Non-Breaking)
- Snake_case aliases remain functional in v4, but are deprecated and will be removed in v5.
- `Facturapi_Exception` remains functional in v4 through a compatibility alias, but is deprecated and will be removed in v5.

## Improvements
- Added camelCase method names for invoice/receipt/retention actions.
- Kept snake_case aliases for transition compatibility.
- Enabled strict TLS verification by default for HTTP requests.
- `Webhooks::validateSignature()` now verifies locally by default when payload includes `body`/`payload`, `signature`, and `webhookSecret`, with automatic fallback to API validation.
- Added `ComercioExteriorCatalogs` to the main `Facturapi` client.
- Standardized constructor argument names to camelCase.
- Standardized internal protected method names to camelCase.
- Renamed exception class to `FacturapiException` and kept `Facturapi_Exception` as a compatibility alias.
4.1.0

## Added
- Organization team/access management methods:
- `listTeamAccess`, `retrieveTeamAccess`, `removeTeamAccess`
- `listSentTeamInvites`, `inviteUserToTeam`, `cancelTeamInvite`
- `listReceivedTeamInvites`, `respondTeamInvite`
- `listTeamRoles`, `listTeamRoleTemplates`, `listTeamRoleOperations`
- `retrieveTeamRole`, `createTeamRole`, `updateTeamRole`, `deleteTeamRole`

## Changed
- `organizations.checkDomainAvailability($query)` is now the canonical method for domain checks.
- `organizations.checkDomainIsAvailable(...)` remains available as a deprecated alias for v4 compatibility.
Loading
Loading