apify 4.0.0-beta.41 → 4.0.0-beta.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/actor.js +4 -3
  2. package/package.json +24 -25
package/dist/actor.js CHANGED
@@ -13,7 +13,7 @@ import { parseArgument } from '@apify/validations';
13
13
  import { ApifyFileSystemStorageBackend } from './apify_file_system_storage_backend.js';
14
14
  import { ApifyStorageBackend } from './apify_storage_backend.js';
15
15
  import { ChargingManager, DEFAULT_DATASET_ITEM_EVENT } from './charging.js';
16
- import { ChargingDatasetBackend, ChargingStorageBackend } from './charging_storage_backend.js';
16
+ import { ChargingStorageBackend } from './charging_storage_backend.js';
17
17
  import { Configuration } from './configuration.js';
18
18
  import { ActorInputError } from './errors.js';
19
19
  import { getDefaultsFromInputSchema, noActorInputSchemaDefinedMarker, readInputSchema } from './input-schemas.js';
@@ -701,8 +701,9 @@ export class Actor {
701
701
  const limit = this.#chargingManager.calculatePushDataLimit(items.length, {
702
702
  eventName,
703
703
  // Pushing one item charges the synthetic per-item event too when the dataset backend
704
- // is the charging one, so that price is part of what an item costs here.
705
- isDefaultDataset: dataset.backend instanceof ChargingDatasetBackend,
704
+ // is the charging one, so that price is part of what an item costs here. Only the Actor's
705
+ // own backend wraps the default dataset for charging, a caller-supplied one is left as is.
706
+ isDefaultDataset: serviceLocator.getStorageBackend() === this.#cachedStorageBackend,
706
707
  });
707
708
  if (limit === 0) {
708
709
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify",
3
- "version": "4.0.0-beta.41",
3
+ "version": "4.0.0-beta.43",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -55,45 +55,44 @@
55
55
  "dependencies": {
56
56
  "@apify/consts": "^3.0.1",
57
57
  "@apify/datastructures": "^3.0.1",
58
- "@apify/input_secrets": "^2.0.3",
58
+ "@apify/input_secrets": "^2.0.5",
59
59
  "@apify/log": "^3.0.1",
60
60
  "@apify/pseudo_url": "^3.0.1",
61
61
  "@apify/timeout": "^1.0.1",
62
- "@apify/utilities": "^3.0.1",
63
- "@apify/validations": "^1.1.0",
64
- "@crawlee/core": ">=4.0.0-beta.198 <4.0.0-rc.0 || >4.0.0-rc.0 <5.0.0",
65
- "@crawlee/fs-storage": ">=4.0.0-beta.198 <4.0.0-rc.0 || >4.0.0-rc.0 <5.0.0",
66
- "@crawlee/types": ">=4.0.0-beta.198 <4.0.0-rc.0 || >4.0.0-rc.0 <5.0.0",
67
- "@crawlee/utils": ">=4.0.0-beta.198 <4.0.0-rc.0 || >4.0.0-rc.0 <5.0.0",
68
- "apify-client": "^3.0.0-beta.26",
62
+ "@apify/utilities": "^3.1.0",
63
+ "@apify/validations": "^1.1.1",
64
+ "@crawlee/core": "4.0.0-beta.200",
65
+ "@crawlee/fs-storage": "4.0.0-beta.200",
66
+ "@crawlee/types": "4.0.0-beta.200",
67
+ "@crawlee/utils": "4.0.0-beta.200",
68
+ "apify-client": "^3.0.0-beta.28",
69
69
  "minimatch": "^10.2.6",
70
70
  "semver": "^7.8.5",
71
71
  "tslib": "^2.8.1",
72
- "ws": "^8.21.3",
73
- "zod": "^4.5.4"
72
+ "ws": "^8.22.0",
73
+ "zod": "^4.6.5"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@apify/oxlint-config": "^0.3.0",
77
77
  "@apify/tsconfig": "^0.2.0",
78
- "@commitlint/config-conventional": "^21.2.2",
79
- "@playwright/browser-chromium": "^1.62.1",
80
- "@types/node": "^26.2.0",
78
+ "@commitlint/config-conventional": "^21.2.3",
79
+ "@playwright/browser-chromium": "^1.63.0",
80
+ "@types/node": "^26.6.3",
81
81
  "@types/semver": "^7.8.0",
82
- "@types/tough-cookie": "^4.0.5",
83
82
  "@types/ws": "^8.18.1",
84
- "commitlint": "^21.2.2",
85
- "crawlee": ">=4.0.0-beta.198 <4.0.0-rc.0 || >4.0.0-rc.0 <5.0.0",
83
+ "commitlint": "^21.2.3",
84
+ "crawlee": "4.0.0-beta.200",
86
85
  "husky": "^9.1.7",
87
- "lint-staged": "^17.3.0",
88
- "oxfmt": "0.64.0",
89
- "oxlint": "1.79.0",
90
- "oxlint-tsgolint": "7.0.2001",
91
- "playwright": "^1.62.1",
92
- "puppeteer": "^25.8.0",
86
+ "lint-staged": "^17.6.0",
87
+ "oxfmt": "0.71.0",
88
+ "oxlint": "1.86.0",
89
+ "oxlint-tsgolint": "7.0.2003",
90
+ "playwright": "^1.63.0",
91
+ "puppeteer": "^25.12.0",
93
92
  "rimraf": "^6.1.3",
94
- "tsx": "^4.23.12",
93
+ "tsx": "^4.23.15",
95
94
  "typescript": "~7.0.2",
96
- "vitest": "^4.1.11"
95
+ "vitest": "^5.0.2"
97
96
  },
98
97
  "devEngines": {
99
98
  "packageManager": {