Skip to content

Commit 495f69a

Browse files
Merge commit '0aba2c30f84da8fdd894526611dbe36fcd1f029a'
2 parents e2d9a93 + 0aba2c3 commit 495f69a

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

‎clients/python/CHANGELOG.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
### Breaking Changes
6+
7+
- Split the signing key from the token policy: `SecretKey(kid, secret_key)` now only holds the EdDSA key, and `TokenGenerator(key, expiry_seconds=60, permissions=None)` wraps it with the token defaults and is what you pass to `Client(token=...)`. The deprecated `sign_for_scope()` alias is removed. by @sentry-junior in [#721](https://github.com/getsentry/objectstore/pull/721)
8+
- Replace `SecretKey(kid, secret_key, expiry_seconds, permissions)` or `TokenGenerator(kid, secret_key, ...)` with `TokenGenerator(SecretKey(kid, secret_key), expiry_seconds, permissions)`.
9+
```python
10+
# Before
11+
client = Client(url, token=SecretKey(kid, secret_key, expiry_seconds=300))
12+
13+
# After
14+
key = SecretKey(kid, secret_key)
15+
client = Client(url, token=TokenGenerator(key, expiry_seconds=300))
16+
```
17+
- Replace `.sign_for_scope(...)` with `.token_for_scope(...)`.
18+
- Remove the deprecated `compression` argument from `Session.put()` by @sentry-junior in [#718](https://github.com/getsentry/objectstore/pull/718)
19+
- Replace `session.put(..., compression=...)` with `session.put(..., compress=...)`.
20+
- Remove the deprecated `propagate_traces` argument from `Client` by @sentry-junior in [#714](https://github.com/getsentry/objectstore/pull/714)
21+
- Drop `propagate_traces=...` from `Client(...)` calls. Sentry's `StdlibIntegration`, enabled by default, already propagates traces on Objectstore requests.
22+
- Remove the multipart upload API (`Session::initiate_multipart_upload()`, `Session::resume_multipart_upload()`) and the `multipart` feature flag by @lcian in [#704](https://github.com/getsentry/objectstore/pull/704)
23+
- Use resumable uploads instead.
24+
- Remove `match` arms for the removed `Error::InvalidPartNumber`, `Error::InvalidUploadId` and `Error::MultipartComplete` variants.
25+
26+
### New Features
27+
28+
- Add a `response_content_disposition` option (`"inline"` or `"attachment"`) to `Session.object_url()` and `Session.presigned_object_url()`. Pre-signed URLs include it in their signature. by @jan-auer in [#696](https://github.com/getsentry/objectstore/pull/696)
29+
- Support gzip compression in server and clients by @sentry-junior in [#693](https://github.com/getsentry/objectstore/pull/693)
30+
331
## 0.2.10
432

533
### New Features

‎clients/python/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "objectstore-client"
3-
version = "0.2.10"
3+
version = "0.3.0"
44
description = "Client SDK for Objectstore, the Sentry object storage platform"
55
readme = "README.md"
66
authors = [{ name = "Sentry", email = "oss@sentry.io" }]

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)