You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes every option the client had deprecated for v3.
- `ActorVersionCollectionClient.list()` and
`ActorEnvVarCollectionClient.list()` take no arguments. Neither endpoint
ever read `offset`, `limit` or `desc`, and both return every item in one
response.
- `ActorCollectionCreateOptions.restartOnError`. Use
`defaultRunOptions.restartOnError`.
- `exclusiveStartId` on `listRequests()` and `paginateRequests()`. Use
`cursor`.
BREAKING CHANGE: `ActorVersionCollectionClient.list()` and
`ActorEnvVarCollectionClient.list()` take no arguments, and
`ActorVersionCollectionListOptions` and
`ActorEnvVarCollectionListOptions` are removed with the `offset`,
`limit`, `desc` and `chunkSize` they declared.
`ActorCollectionCreateOptions.restartOnError` is removed; use
`defaultRunOptions.restartOnError`. `exclusiveStartId` is removed from
`listRequests()` and `paginateRequests()`; use `cursor`.
Closes#799
*✍️ Drafted by Claude Code*
Copy file name to clipboardExpand all lines: docs/04_upgrading/upgrading_v3.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ This affects numeric options such as `waitSecs`, `timeout` and `memory`, and dat
86
86
87
87
Some options were declared in the TypeScript types but always rejected by the client's own validation before a request was ever sent: `chunkSize` on `DatasetClient.downloadItems()` and `createItemsPublicUrl()`, and `signature` on `createItemsPublicUrl()` and `createKeysPublicUrl()`. These are no longer part of the option types, so passing them is now a compile-time error instead of a runtime throw.
88
88
89
-
The reverse also happened: `chunkSize` now works on every paginating `list()` method. In v2 only `DatasetClient.listItems()` accepted it - everywhere else it type-checked and then threw.
89
+
The reverse also happened: `chunkSize` now works on every `list()` method that takes pagination options. In v2 only `DatasetClient.listItems()` accepted it - everywhere else it type-checked and then threw.
90
90
91
91
## API errors are thrown as subclasses of `ApifyApiError`
92
92
@@ -175,3 +175,15 @@ Two return types change as a result of describing what the endpoints really retu
175
175
176
176
- <ApiLinkto="class/ScheduleClient#getLog">`ScheduleClient.getLog()`</ApiLink> was typed as a `string`, even though the endpoint returns the log as a list of entries. It's now typed as <ApiLinkto="interface/ScheduleInvoked">`ScheduleInvoked[]`</ApiLink>, each entry carrying `message`, `level` and `createdAt`.
177
177
- <ApiLinkto="interface/TaskPublicConfig">`TaskPublicConfig`</ApiLink> now follows the specification: `publishedAt` is optional and read-only, and `categorization`, which the specification doesn't describe, is gone from the type.
178
+
179
+
## `versions().list()` and `envVars().list()` take no options
180
+
181
+
<ApiLinkto="class/ActorVersionCollectionClient#list">`ActorVersionCollectionClient.list()`</ApiLink> and <ApiLinkto="class/ActorEnvVarCollectionClient#list">`ActorEnvVarCollectionClient.list()`</ApiLink> now take no arguments. Neither endpoint reads `offset`, `limit` or `desc`, and both return every item in one response, so `chunkSize` had nothing to size either. The `ActorVersionCollectionListOptions` and `ActorEnvVarCollectionListOptions` types that declared those four options, deprecated since v2.21.0, are gone from the package. A call that passed an options object no longer compiles. Drop the argument and the call returns the same items as before.
182
+
183
+
## The last deprecated options are gone
184
+
185
+
Two options that carried a `@deprecated` marker throughout v2 have been removed.
186
+
187
+
`restartOnError` is gone from <ApiLinkto="interface/ActorCollectionCreateOptions">`ActorCollectionCreateOptions`</ApiLink>, so <ApiLinkto="class/ActorCollectionClient#create">`ActorCollectionClient.create()`</ApiLink> no longer accepts it at the top level. Pass it inside `defaultRunOptions` instead, as the deprecation notice advised.
188
+
189
+
`exclusiveStartId` is gone from <ApiLinkto="class/RequestQueueClient#listRequests">`listRequests()`</ApiLink> and <ApiLinkto="class/RequestQueueClient#paginateRequests">`paginateRequests()`</ApiLink>. Both paginate by `cursor` alone now, and passing `exclusiveStartId` throws an `ArgumentValidationError` about an unrecognized key. In v2 the two were mutually exclusive, so the error about combining them is gone as well. Responses are unaffected, since the API still echoes `exclusiveStartId` back in the request listing.
0 commit comments