Skip to content

Commit 86f6a93

Browse files
B4nanvdusek
authored andcommitted
chore(deps): update @apify/* packages to the new majors (#1023)
Bumps the `@apify/*` shared packages to the new stable majors (ESM-only, Node 22+, matching the v3 requirements): `consts`, `log` and `utilities` to v3. Replaces the Renovate PRs (#1020, #1021, #1022) that target master, where the ESM-only majors cannot land. The vendored zod error formatter and its test suite moved to `@apify/validations` (apify/apify-shared-js#703, released as 1.1.0), so this now depends on it and re-exports `ArgumentValidationError` from there. The shared formatter keeps all of the client's improvements and its message shapes follow the crawlee style, which no client test pinned outside the moved suite.
1 parent 2e28a11 commit 86f6a93

7 files changed

Lines changed: 372 additions & 651 deletions

File tree

docs/public-api/apify-client.api.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import type { ACT_JOB_STATUSES } from '@apify/consts';
88
import { ACTOR_JOB_STATUSES } from '@apify/consts';
99
import { ACTOR_PERMISSION_LEVEL } from '@apify/consts';
10+
import { ArgumentValidationError } from '@apify/validations';
1011
import type { AxiosInstance } from 'axios';
1112
import type { AxiosInterceptorManager } from 'axios';
1213
import type { AxiosRequestConfig } from 'axios';
@@ -27,7 +28,6 @@ import { STORAGE_OWNERSHIP_FILTER } from '@apify/consts';
2728
import type { ValueOf } from '@apify/consts';
2829
import type { ValueOf as ValueOf_2 } from 'type-fest';
2930
import type { WEBHOOK_EVENT_TYPES } from '@apify/consts';
30-
import type { z } from 'zod';
3131

3232
// @public
3333
export interface AccountAndUsageLimits extends Omit<Schemas['AccountLimits'], keyof AccountAndUsageLimitsRePointed>, AccountAndUsageLimitsRePointed {
@@ -651,11 +651,7 @@ interface ApifyResponse<T = any> extends AxiosResponse<T> {
651651
config: ApifyRequestConfig & InternalAxiosRequestConfig;
652652
}
653653

654-
// @public
655-
export class ArgumentValidationError extends Error {
656-
constructor(error: z.ZodError, value: unknown, label?: string);
657-
readonly issues: z.ZodError['issues'];
658-
}
654+
export { ArgumentValidationError }
659655

660656
// @public
661657
export interface BaseActorVersion<SourceType extends ActorSourceType> extends Omit<GeneratedVersion, keyof ActorVersionClientNarrowings | keyof ActorVersionRePointed | ActorVersionSourceLocation>, ActorVersionRePointed {

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@
7878
}
7979
},
8080
"dependencies": {
81-
"@apify/consts": "^2.58.1",
82-
"@apify/log": "^2.5.54",
83-
"@apify/utilities": "^2.35.11",
81+
"@apify/consts": "^3.0.1",
82+
"@apify/log": "^3.0.1",
83+
"@apify/utilities": "^3.0.1",
84+
"@apify/validations": "^1.1.0",
8485
"@crawlee/types": "^3.18.1",
8586
"ansi-colors": "^4.1.3",
8687
"async-retry": "^1.3.3",
@@ -89,12 +90,12 @@
8990
"proxy-agent": "^6.5.0",
9091
"tslib": "^2.8.1",
9192
"type-fest": "^4.41.0",
92-
"zod": "^4.0.0"
93+
"zod": "^4.5.4"
9394
},
9495
"devDependencies": {
9596
"@apify/oxlint-config": "^0.3.0",
9697
"@apify/tsconfig": "^0.2.0",
97-
"@crawlee/puppeteer": "^3.18.1",
98+
"@crawlee/puppeteer": "4.0.0-beta.165",
9899
"@rsbuild/core": "^2.2.3",
99100
"@rsbuild/plugin-node-polyfill": "^1.4.6",
100101
"@rspack/cli": "^2.2.2",

0 commit comments

Comments
 (0)