Skip to content

chore(renovate): pin p-limit to v3 (CommonJS)#73

Merged
yumike merged 1 commit into
mainfrom
chore/pin-p-limit-v3
Jun 24, 2026
Merged

chore(renovate): pin p-limit to v3 (CommonJS)#73
yumike merged 1 commit into
mainfrom
chore/pin-p-limit-v3

Conversation

@yumike

@yumike yumike commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What

Pin p-limit to <4.0.0 in renovate.json.

Why

p-limit v4+ is pure ESM ("type": "module", no CommonJS entry). The rw-backend plugin is a CommonJS backend-plugin, and Backstage's CLI Jest config does not include p-limit in its transform allowlist. So bumping to v4+ breaks runWorker.test.ts at load time with:

SyntaxError: Cannot use import statement outside a module

Backstage's own backend packages stay on the v3 line for the same reason:

Backstage package p-limit
@backstage/backend-defaults ^3.1.0
@backstage/plugin-catalog-backend ^3.0.2

Our only usage (runWorker.ts) is pLimit(CONCURRENCY) + limit(fn), which v3 covers fully — there's no feature in v4–v7 we need.

Effect

  • Closes the open Renovate PR proposing p-limit v7 (#72).
  • Prevents future v4+ bumps; patch/minor updates within v3 still flow.

🤖 Generated with Claude Code

p-limit v4+ is pure ESM with no CommonJS entry. The rw-backend plugin
compiles to CommonJS and Backstage's CLI Jest setup does not transform
p-limit, so a v4+ bump breaks `runWorker.test.ts` with
"Cannot use import statement outside a module". Backstage's own backend
packages (backend-defaults, plugin-catalog-backend) also stay on p-limit
v3 for the same reason.

This closes the Renovate PR proposing p-limit v7 and prevents future v4+
bumps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yumike yumike force-pushed the chore/pin-p-limit-v3 branch from 6e7053a to 6fc313d Compare June 24, 2026 11:21
@yumike yumike merged commit bed016e into main Jun 24, 2026
1 check passed
@yumike yumike deleted the chore/pin-p-limit-v3 branch June 24, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant