Skip to content

Replace deep-eql with node:assert.deepStrictEqual#18

Merged
silverbucket merged 1 commit into
masterfrom
deep-equal-update
Apr 17, 2026
Merged

Replace deep-eql with node:assert.deepStrictEqual#18
silverbucket merged 1 commit into
masterfrom
deep-equal-update

Conversation

@silverbucket

Copy link
Copy Markdown
Owner

Summary

  • deep-eql v5 is pure ESM, so const equal = require("deep-eql") no longer returns a callable function from CommonJS, causing TypeError: equal is not a function in the test suite (this is what blocked Renovate PR Update dependency deep-eql to v5 #6).
  • Replaces the 6 assert(equal(a, b)) call sites in test/irc-socket.js with Node's built-in assert.deepStrictEqual(a, b) and removes the deep-eql devDependency entirely.
  • Works uniformly on Node 18/20/22 and produces better error messages on mismatch.

Test plan

deep-eql v5 is pure ESM and can no longer be loaded via CommonJS require
(throws 'equal is not a function'). Dropping the dependency in favour of
Node's built-in assert.deepStrictEqual removes the CJS/ESM interop issue
and eliminates a devDependency.
@silverbucket
silverbucket merged commit 3ad4391 into master Apr 17, 2026
3 checks passed
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