From 0a8a7a47c17bc4cda19e583fb77dd18093ea88af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hanu=C5=A1?= Date: Sun, 5 Jul 2026 01:03:24 +0200 Subject: [PATCH] fix(ts-empty): stop deprecated lodash.isequal warning on npm install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every `npm install` in a freshly-scaffolded `ts-empty` Actor prints: npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. The dependency arrives transitively via `ow`: apify@3.7.2 → ow@0.28.2 → lodash.isequal@4.5.0 @crawlee/cheerio → @crawlee/http → got-scraping@4.2.1 → ow@1.1.1 → lodash.isequal@4.5.0 `ow` dropped `lodash.isequal` in favor of `fast-equals` starting in v2 (v2/v3 both have `node: >=18` engines, matching this template). Pinning `ow` to `^2.0.0` via npm `overrides` removes the deprecated package from the tree and silences the warning without any code change. Verified locally: $ npm install # no lodash.isequal deprecation warning $ npm run build && node dist/main.js INFO System info {"apifyVersion":"3.7.2", ...} INFO Hello from the Actor! The same override applies to every other ts-* template that pulls in `apify` and/or `@crawlee/*` — this PR only patches `ts-empty` as the canonical minimal scaffold; a follow-up sweep across the other ts-* templates makes sense once maintainers agree the shape is right. The permanent fix is upstream in `apify-sdk-js` and `crawlee` (bump `ow` in `apify` and in `got-scraping`); that is out of scope here. Surfaced during an evaluation of Apify surfaces for agent-driven Actor development. Co-Authored-By: Claude Opus 4.7 --- templates/ts-empty/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/ts-empty/package.json b/templates/ts-empty/package.json index 209367b16..4a1a09689 100644 --- a/templates/ts-empty/package.json +++ b/templates/ts-empty/package.json @@ -10,6 +10,9 @@ "apify": "^3.7.0", "@crawlee/cheerio": "^3.15.3" }, + "overrides": { + "ow": "^2.0.0" + }, "devDependencies": { "@apify/eslint-config": "^2.0.0", "@apify/tsconfig": "^0.1.1",