v4.8.0
Added
-
The SDK now supports use of
orjsonas an alternative JSON encoder and decoder. Whenorjsonis installed, the SDK will automatically use it in place of the stdlibjsonmodule. (#1385) -
RequestsTransportobjects are now visible viaRequestsTransport.get_current_transport(), a staticmethod, while the transport is sending a request or being used to handle a response. This method raises aLookupErrorif there is no currently active transport. (#1385) -
The request encoders defined in
globus_sdk.transporthave been refactored intoRequestsRepresentationProvider\s, objects responsible for encoding and decodingrequestsdata in specific formats. In order to retain compatibility, they are still available aliased under their previous names, as "encoders". (#1385)
Removed
- The
pinnedfield was removed from the experimentalBookmarkCreateDocumentandBookmarkUpdateDocumentclasses to align with the API, which does not support the field.
Deprecated
-
The
RequestsTransportclass supports configuration of request encoding via a class-variable mapping,encoders. This limits the ability of the SDK to apply per-object customizations, as in the case oforjsonsupport. The class variableencodersis deprecated. Users who wish to customize request encoding and response decoding should leverage the newrepresentation_providersinstance variable instead. -
The
globus_sdk.transport.encodersmodule is deprecated. Useglobus_sdk.transport.representation_providersinstead.