Commit 68c45fe
chore: migrate to pnpm and enable minimum release age (#175)
## Summary
Part of the org-wide supply-chain hardening + pnpm migration. Migrates
got-scraping from npm to pnpm and adds a 1-day minimum release age guard
at two layers:
- **pnpm layer** — `minimumReleaseAge: 1440` in `pnpm-workspace.yaml`
blocks installs of versions < 1 day old
- **Renovate layer** — `minimumReleaseAge: "1 day"` delays PR creation
- **Internal allowlist** — `@apify/*` and `@crawlee/*` excluded at both
layers
This repo previously had no Renovate config; a standard one is added.
## Changes
- `package.json`: `packageManager: pnpm@10.24.0`; `engines.node >= 18`
(pnpm 10 requires Node 18+, was `>=16`); `npm run` → `pnpm` in scripts
- `pnpm-workspace.yaml`: non-monorepo minimum release age settings only
- `.npmrc`: `node-linker=hoisted`, `link-workspace-packages=true`,
`prefer-workspace-packages=true`, `public-hoist-pattern[]=*` (the last
one mirrors npm's transitive-type hoisting so tsc sees the same types)
- `tsconfig.json`: `skipLibCheck: true` (standard; suppresses
ow/quick-lru `.d.ts` incompatibilities with TS 5.9's `MapIterator` lib
types)
- `src/agent/wrapped-agent.ts` + `src/index.ts`: two small casts — same
runtime behavior, satisfy stricter type resolution under pnpm that npm's
hoisting happened to hide
- New `.github/actions/pnpm-install` composite action (cached pnpm
store, keyed by year-month + lockfile hash — pattern from
apify/apify-cli#1068)
- CI workflows: delegate install to composite; switch to `pnpm publish
--no-git-checks`; Node matrix now 18/20/22/24
- New `renovate.json` with `minimumReleaseAge "1 day"`,
`internalChecksFilter "strict"`, `@apify/*` + `@crawlee/*` whitelist
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7577a65 commit 68c45fe
13 files changed
Lines changed: 6705 additions & 8393 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
This file was deleted.
0 commit comments