refactor!: remove deprecated APIs#918
Merged
Merged
Conversation
Removes deprecated APIs as part of the v4 major release: - `api_public_base_url` argument of `ApifyDatasetClient.__init__` and `ApifyKeyValueStoreClient.__init__` (closes #635). It had no effect already and only emitted a `DeprecationWarning`. The public base URL is taken from `Configuration.api_public_base_url`, which is unchanged. - `RemainingTime` value of the `timeout` argument of `Actor.start()` and `Actor.call()` — replaced by `inherit`. - Deprecated `Configuration` fields `latest_sdk_version`, `log_format`, and `standby_port` (use `web_server_port` instead). Also drops the now-unused `warnings` and `deprecated` imports and the associated unit tests for the removed deprecation warnings.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #918 +/- ##
==========================================
- Coverage 87.00% 86.94% -0.07%
==========================================
Files 48 48
Lines 2956 2942 -14
==========================================
- Hits 2572 2558 -14
Misses 384 384
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
szaganek
reviewed
Jun 1, 2026
janbuchar
approved these changes
Jun 1, 2026
Combine before/after examples into single code blocks with inline comments for consistency with the keyword-only arguments section, and restructure the Configuration fields removal note as a bulleted list.
Contributor
Author
|
All suggestions were applied, thanks @szaganek 🙂 |
vdusek
added a commit
that referenced
this pull request
Jun 3, 2026
Adds the 3.4 docs snapshot that the release pipeline failed to create for v3.4.0 and v3.4.1 — the `Version docs` job was broken until #928, so `versions.json` and the version dropdown on the docs website are still stuck at 3.3. - Replaces the 3.3 snapshot with 3.4 (the workflow keeps one minor per major), updating `versioned_docs`, `versioned_sidebars`, and `versions.json`. - Generated from the `release-v3` branch (v3.4.1) using the exact commands the fixed workflow runs (`uv run pnpm exec docusaurus docs:version 3.4` + `api:version 3.4`), so the API reference documents the released v3 API rather than the v4-dev code on master. Verified: the snapshot still contains the `RemainingTime` timeout literal that was removed on master in #918. Merging this with the `docs:` prefix triggers a docs deploy from master, which updates the version dropdown and the "Version: 3.x" badge on the website.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes deprecated APIs as part of the v4 major release.
api_public_base_urlargument of storage clients (closes #635)Removed the deprecated
api_public_base_url__init__argument fromApifyDatasetClientandApifyKeyValueStoreClient(and theopen()call sites that passed''). It had no effect already in v3 — passing it only emitted aDeprecationWarning. The public base URL is taken fromConfiguration.api_public_base_url, which is unchanged.RemainingTimetimeout literalRemoved the deprecated
'RemainingTime'value of thetimeoutargument fromActor.start()andActor.call(). Use'inherit'instead — the behavior is identical.Deprecated
ConfigurationfieldsRemoved the
@deprecatedconfig fieldslatest_sdk_version,log_format, andstandby_port(useweb_server_portinstead).Also drops the now-unused
warnings/deprecatedimports and the obsolete deprecation-warning unit tests, and documents all removals in the v4 upgrade guide.Mirrors apify/apify-client-python#799 for this repository.