Skip to content

Commit e1faa47

Browse files
authored
Release notes for 0.20.0 (#208)
1 parent 5856129 commit e1faa47

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CHANGES.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
Changes
22
=======
33

4+
0.20.0 (2024-06-26)
5+
-------------------
6+
7+
* If the :setting:`AUTOTHROTTLE_ENABLED <scrapy:AUTOTHROTTLE_ENABLED>` setting
8+
is ``False``, the delay of download slots for Zyte API requests no longer
9+
resets to zero, and instead scrapy-zyte-api respects the
10+
:setting:`DOWNLOAD_DELAY <scrapy:DOWNLOAD_DELAY>` setting and
11+
``zyte-api@``-prefixed entries in the :setting:`DOWNLOAD_SLOTS
12+
<scrapy:DOWNLOAD_SLOTS>` setting.
13+
14+
A new :setting:`ZYTE_API_PRESERVE_DELAY` setting allows overriding this
15+
behavior, i.e. enabling delay resetting even if
16+
:setting:`AUTOTHROTTLE_ENABLED <scrapy:AUTOTHROTTLE_ENABLED>` is ``False`` or
17+
disabling delay resetting even if :setting:`AUTOTHROTTLE_ENABLED
18+
<scrapy:AUTOTHROTTLE_ENABLED>` is ``True``.
19+
20+
* The :reqmeta:`zyte_api_session_location` and
21+
:reqmeta:`zyte_api_session_params` request metadata keys, if present in a
22+
request that triggers a session initialization request, will be copied into
23+
the session initialization request, so that they are available when
24+
:setting:`ZYTE_API_SESSION_CHECKER` or :meth:`SessionConfig.check
25+
<scrapy_zyte_api.SessionConfig.check>` are called for a session
26+
initialization request.
27+
28+
* The new :meth:`SessionConfig.enabled <scrapy_zyte_api.SessionConfig.enabled>`
29+
method allows configuring whether session management should be enabled or
30+
disabled for any given request.
31+
32+
* A new stat, ``scrapy-zyte-api/sessions/use/disabled``, indicates the number
33+
of requests for which session management was disabled.
34+
435
0.19.0 (2024-06-19)
536
-------------------
637

0 commit comments

Comments
 (0)