Skip to content

Commit 31b6048

Browse files
authored
Release v4.8.0 (#1395)
2 parents d36fa48 + 78d2d50 commit 31b6048

4 files changed

Lines changed: 46 additions & 36 deletions

File tree

changelog.d/20260501_170758_sirosen_define_orjson_encoder.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

changelog.d/20260605_135304_aaschaer_remove_pinned.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,51 @@ to a major new version of the SDK.
1212

1313
.. scriv-insert-here
1414
15+
.. _changelog-4.8.0:
16+
17+
v4.8.0 (2026-06-10)
18+
===================
19+
20+
Added
21+
-----
22+
23+
- The SDK now supports use of ``orjson`` as an alternative JSON encoder and decoder.
24+
When ``orjson`` is installed, the SDK will automatically use it in place of
25+
the stdlib ``json`` module. (:pr:`1385`)
26+
27+
- ``RequestsTransport`` objects are now visible via
28+
``RequestsTransport.get_current_transport()``, a staticmethod, while the
29+
transport is sending a request or being used to handle a response. This
30+
method raises a ``LookupError`` if there is no currently active transport.
31+
(:pr:`1385`)
32+
33+
- The request encoders defined in ``globus_sdk.transport`` have been
34+
refactored into ``RequestsRepresentationProvider``\s, objects responsible
35+
for encoding and decoding ``requests`` data in specific formats. In order to
36+
retain compatibility, they are still available aliased under their previous
37+
names, as "encoders".
38+
(:pr:`1385`)
39+
40+
Removed
41+
-------
42+
43+
- The ``pinned`` field was removed from the experimental
44+
``BookmarkCreateDocument`` and ``BookmarkUpdateDocument`` classes to align
45+
with the API, which does not support the field.
46+
47+
Deprecated
48+
----------
49+
50+
- The ``RequestsTransport`` class supports configuration of request encoding
51+
via a class-variable mapping, ``encoders``. This limits the ability of the
52+
SDK to apply per-object customizations, as in the case of ``orjson``
53+
support. The class variable ``encoders`` is deprecated. Users who wish to
54+
customize request encoding and response decoding should leverage the new
55+
``representation_providers`` instance variable instead.
56+
57+
- The ``globus_sdk.transport.encoders`` module is deprecated. Use
58+
``globus_sdk.transport.representation_providers`` instead.
59+
1560
.. _changelog-4.7.0:
1661

1762
v4.7.0 (2026-05-20)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "globus-sdk"
7-
version = "4.7.0"
7+
version = "4.8.0"
88
authors = [
99
{ name = "Globus Team", email = "support@globus.org" },
1010
]

0 commit comments

Comments
 (0)