Skip to content

Small encoder improvements#434

Open
adespawn wants to merge 2 commits intoscylladb:mainfrom
adespawn:random-stuff
Open

Small encoder improvements#434
adespawn wants to merge 2 commits intoscylladb:mainfrom
adespawn:random-stuff

Conversation

@adespawn
Copy link
Copy Markdown
Contributor

This includes removal of logic for deprecated node engines and type annotations improvements (necessary for #350)

Since engines not supporting bigint are long deprecated, this commit
removes some logic in encoder aimed at supporting those engines
@adespawn adespawn added this to the GA milestone Apr 14, 2026
@adespawn adespawn self-assigned this Apr 14, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the encoder implementation by removing legacy BigInt compatibility logic for deprecated Node.js engines and by improving JSDoc type annotations to support the gradual TypeScript migration discussed in #350.

Changes:

  • Removed runtime BigInt support detection and switched to BigInt literals / direct 32n and 8n shifts.
  • Added/expanded JSDoc annotations (@param, @returns, @private) across many encode/decode helpers.
  • Minor JSDoc cleanups and return type documentation updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/encoder.js
Comment thread lib/encoder.js
Comment thread lib/encoder.js
Comment thread lib/encoder.js Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants