Skip to content

Migrate from 0.6 to 0.7

0.7 is a breaking release. Most of it removes the names that 0.6 kept as deprecated aliases. Each one forwarded to a replacement that already exists in 0.6, so you can migrate on 0.6 first: build against 0.6 with deprecation warnings turned into errors, replace every name the warnings point at, and then upgrade. Each warning names its replacement.

The other changes have no deprecation step in 0.6. Make them while upgrading; each language page lists them after the removed names.

Language Package Migration page
Rust fatoora-core = "0.7.0" Rust
Python pip install "fatoority==0.7.0" Python
JavaScript / TypeScript [email protected] on npm JavaScript / TypeScript
Kotlin / Java com.fatoority:fatoority:0.7.0 Kotlin / Java
C# / .NET Fatoority 0.7.0 C# / .NET
C / C++ fatoora.h and the C++ headers from the 0.7.0 release assets C / C++

Changes by language

A dash means the language is unaffected.

Change Rust Python JavaScript / TypeScript Kotlin / Java C# / .NET C / C++
Names deprecated in 0.6 are removed Yes Yes Yes Yes Yes - (none were deprecated)
One error hierarchy - FfiError → FatooraError, FfiErrorKind → ErrorKind ErrorCode → ErrorKind, TransportError → NetworkError BindingException → FatooraException FfiException → FatooraException, FfiErrorKind → ErrorKind -
Client timeout Zero is ZatcaError::InvalidTimeout - (ValueError, as in 0.6) - (no client timeout) Duration instead of Long ms TimeSpan instead of uint ms Zero returns FATOORA_INVALID_INPUT
Clearance mode - clearance=ClearanceMode... required ClearanceMode required, parameter clearanceMode Boolean coroutine overloads removed - -
Text handle removed; strings are plain or nullable - - Text export removed com.fatoora.Text removed Fatoora.Text removed C++ fatoora::Text removed
Binary output - - Bytes.asSlice() → Bytes.toUint8Array(), Uint8Array inputs Bytes.asSlice() → Bytes.toByteArray() Bytes.AsSlice() → Bytes.ToArray() -
InvoiceData stores document-level allowances and charges only as entries Yes - - - - -
Supported runtimes - Python 3.10 or newer - - - -
New features - AsyncZatcaClient - - - -

The CLI is unaffected. The bindings are now generated with Diplomat 0.17; that changes only the generated low-level layers listed above.

If you are still on 0.5, follow Migrate from 0.5 to 0.6 first, using the 0.6 replacement for every item marked deprecated there.

The full list of changes is in the changelog.