Skip to content

build(deps): bump bencodec from 3.1.0 to 4.1.0#1054

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/bencodec-4.1.0
Open

build(deps): bump bencodec from 3.1.0 to 4.1.0#1054
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/bencodec-4.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Bumps bencodec from 3.1.0 to 4.1.0.

Release notes

Sourced from bencodec's releases.

v4.1.0

4.1.0

Features

  • New encodeToBytes function: Encodes JavaScript values into bencode format as a Uint8Array. Provides explicit, type-safe encoding to binary format.
  • New encodeToString function: Encodes JavaScript values into bencode format as a string. Supports all ByteEncoding types (utf8, utf-8, latin1, binary, ascii) for flexible string output.
import { encodeToBytes, encodeToString } from 'bencodec';
// Encode to Uint8Array
const bytes = encodeToBytes({ foo: 'bar' });
// Encode to string (default utf8)
const str = encodeToString({ foo: 'bar' });
// Encode to string with latin1 encoding for binary data
const latin1Str = encodeToString(data, { encoding: 'latin1' });

Deprecations

  • encode function deprecated: Use encodeToBytes for Uint8Array output or encodeToString for string output. The encode function will be removed in a future major version.

Types

  • Added IBencodeEncodeOptions interface for encode-specific options (includes encoding option for encodeToString)
  • Updated default export to include encodeToBytes and encodeToString

Documentation

  • Updated README with new encoding API documentation
  • Added deprecation notice for legacy encode function

v4.0.1

4.0.1

Features

  • Typed Interface Support for encode function: Added generic overloads for the encode function to allow encoding of typed interfaces without requiring type assertions. This improves the developer experience when working with strongly-typed data structures.
interface IData {
  name: string;
  value: number;
}
const data: IData = { name: 'test', value: 42 };
</tr></table>

... (truncated)

Commits
  • dbc15d3 feat: add encodeToBytes and encodeToString functions for bencode encoding
  • ebe3e12 chore: update release type from created to published
  • 4ca54cf chore: remove unused import of BencodeEncodableValue in tests
  • 430fd1d 4.0.1
  • 7da5485 feat: add overloads for encode function to support typed interfaces
  • b701052 ci: update Node.js version to 24 in CI/CD workflows
  • 7bb0e68 ci: remove NODE_AUTH_TOKEN from npm publish step
  • 09903ab chore: update version to 4.0.0 in package.json and package-lock.json
  • 2d67eae Merge pull request #33 from isolomak/upgrade
  • 1278184 ci: add permissions for OIDC and content access
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for bencodec since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 25, 2026
Bumps [bencodec](https://github.com/isolomak/bencodec) from 3.1.0 to 4.1.0.
- [Release notes](https://github.com/isolomak/bencodec/releases)
- [Commits](isolomak/bencodec@v3.1.0...v4.1.0)

---
updated-dependencies:
- dependency-name: bencodec
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/bencodec-4.1.0 branch from 64b12e8 to 88b46f5 Compare May 26, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants