Skip to content

build(deps): bump jschardet from 3.1.4 to 4.0.0 - #30

Merged
Kikobeats merged 2 commits into
masterfrom
dependabot/npm_and_yarn/jschardet-4.0.0
Sep 30, 2026
Merged

Kikobeats merged 2 commits into
masterfrom
dependabot/npm_and_yarn/jschardet-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 30, 2026

Copy link
Copy Markdown
Contributor

Bumps jschardet from 3.1.4 to 4.0.0.

Release notes

Sourced from jschardet's releases.

Version 4.0.0

jschardet 4 is a ground-up TypeScript rewrite, ported from Python's chardet 7. It detects correctly far more often than jschardet 3 and is several times faster, with the same detect() / detectAll() API.

Based on chardet e9603fad69cd (7.6.0 + 32 commits, 2026-08-30)

Highlights

  • 99.4% accuracy on 3,138 test files, up from 43.1% in jschardet 3
  • ~6× the throughput and ~10× lower peak memory
  • Language and MIME type reported with every result
  • Licensed 0BSD (previously LGPL)
  • Ships ESM, CommonJS, and a browser bundle (<script> / AMD), with TypeScript types

The trade-off is size: the bundle grows from 119 to 691 KiB gzipped, and the first detect() call takes about 110 ms while the model decompresses. See the performance comparison.

Upgrading from jschardet 3

Most code keeps working unchanged, but results and confidence values differ, and a few behaviours changed. Most notably, detect() no longer returns null below minimumThreshold, and encoding names follow chardet's spelling (utf-8 rather than UTF-8). Read Upgrading from jschardet 3 before upgrading.

Requires Node.js 20 or later.

Bundle size changes since v3.1.4:

  • dist/jschardet.js +786,791 +167.31% (470,248 -> 1,257,039)
  • dist/jschardet.min.js +826,408 +241.84% (341,716 -> 1,168,124)
  • dist/jschardet.esm.js (new, 1,246,295 bytes)
  • dist/jschardet.esm.min.js (new, 1,167,542 bytes)

Version 4.0.0-rc.4

Based on chardet e9603fad69cd (7.6.0 + 32 commits, 2026-08-30)

Changes since v4.0.0-rc.3:

  • 009c94e Print a UserWarning once per process, as Python does
  • 9ee2e5a Declare Node >=20 in engines and test on Node 20, 22 and 24
  • 941c9fd Check package entry points with publint and attw before publishing
  • 8f8bf1f Document what behaves differently from jschardet 3
  • 7bbdc7b Pin the jschardet 3.x public API surface in tests
  • dee4c92 Bump vitest from 4.1.10 to 4.1.11
  • 24bc4c5 Gate deprecation notices behind enableDebug()
  • dc09837 Make the publish workflow summary distinguish dry run from real publish

Bundle size changes since v4.0.0-rc.3:

  • dist/jschardet.js +284 +0.02% (1,256,760 -> 1,257,044)
  • dist/jschardet.min.js +54 +0.00% (1,168,075 -> 1,168,129)
  • dist/jschardet.esm.js +262 +0.02% (1,246,038 -> 1,246,300)
  • dist/jschardet.esm.min.js +54 +0.00% (1,167,493 -> 1,167,547)

Version 4.0.0-rc.3

... (truncated)

Commits
  • ae1c265 Version 4.0.0 (final release)
  • 0ae9065 Show how far past a chardet release the pin is in release notes
  • b398013 Version 4.0.0-rc.4 (prerelease update)
  • 009c94e Print a UserWarning once per process, as Python does
  • 9ee2e5a Declare Node >=20 in engines and test on Node 20, 22 and 24
  • 941c9fd Check package entry points with publint and attw before publishing
  • 8f8bf1f Document what behaves differently from jschardet 3
  • 7bbdc7b Pin the jschardet 3.x public API surface in tests
  • dee4c92 Bump vitest from 4.1.10 to 4.1.11
  • 24bc4c5 Gate deprecation notices behind enableDebug()
  • Additional commits viewable in compare view
Maintainer changes

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


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 30, 2026
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: f559bd3d-9937-4d50-87c8-4ffa7b2d52f4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Bumps [jschardet](https://github.com/aadsm/jschardet) from 3.1.4 to 4.0.0.
- [Release notes](https://github.com/aadsm/jschardet/releases)
- [Commits](aadsm/jschardet@v3.1.4...v4.0.0)

---
updated-dependencies:
- dependency-name: jschardet
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@Kikobeats
Kikobeats force-pushed the dependabot/npm_and_yarn/jschardet-4.0.0 branch from 9e7ce1a to af59bb6 Compare September 30, 2026 06:54
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 83.784% — dependabot/npm_and_yarn/jschardet-4.0.0 into master. No base build found for master.

@Kikobeats
Kikobeats merged commit 2e6fdda into master Sep 30, 2026
3 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/jschardet-4.0.0 branch September 30, 2026 07:01
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.

2 participants