Skip to content

deps: move @peculiar/x509 to 3.x - #221

Merged
mastacontrola merged 3 commits into
masterfrom
deps/x509-3
Nov 24, 2026
Merged

mastacontrola merged 3 commits into
masterfrom
deps/x509-3

Conversation

@mastacontrola

@mastacontrola mastacontrola commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #219. Replaces Dependabot PR #215, which failed every job.

3.x is ESM-only; Node 22.13+ (fog-node's engines floor) loads it with require(). Two other changes make it load:

  • reflect-metadata: 1.x loaded this polyfill itself; 3.x does not, and tsyringe throws at require time without it. The new api/lib/x509.js loads it, then re-exports the package. All nine require sites use that module. An eslint no-restricted-syntax rule rejects a direct require('@peculiar/x509') elsewhere. I checked that the rule errors on a direct require.
  • Peers: @peculiar/asn1-schema and asn1js are peers of the 3.x packages. npm ci --legacy-peer-deps skips peers, so both are now direct dependencies.

I generated the lockfile without --legacy-peer-deps, the way Dependabot does, so it keeps the @popperjs/core entry. npm ci --legacy-peer-deps installs it cleanly. npm test: 611 passing.

It also removes the Dependabot ignore rule that #220 added for this package.

Docs: none — internal dependency change, no visible change.

🤖 Generated with Claude Code

@mastacontrola
mastacontrola marked this pull request as ready for review November 24, 2026 12:43
@fog-workflows
fog-workflows Bot enabled auto-merge November 24, 2026 12:45
@fog-workflows
fog-workflows Bot added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 24, 2026
mastacontrola and others added 3 commits November 24, 2026 06:59
3.x is ESM-only; Node 22.13+ loads it with require(). Two changes make
it load:

- 3.x no longer loads the reflect-metadata polyfill that tsyringe
  needs. api/lib/x509.js loads it, then re-exports the package. Every
  require site now uses that module. An eslint rule rejects a direct
  require('@peculiar/x509') outside it.
- 3.x lists @peculiar/asn1-schema and asn1js as peers. npm ci
  --legacy-peer-deps skips peers, so both are direct dependencies.

Refs #219.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lists each peer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola added this pull request to the merge queue Nov 24, 2026
Merged via the queue into master with commit 972b188 Nov 24, 2026
5 checks passed
@mastacontrola
mastacontrola deleted the deps/x509-3 branch November 24, 2026 13:17
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.

Move @peculiar/x509 to 3.x

1 participant