Skip to content

chore(dependencies): Remove jschardet from the frontend dependency graph#4475

Merged
bobbai00 merged 3 commits into
mainfrom
xinyuan-remove-jschardet
Apr 22, 2026
Merged

chore(dependencies): Remove jschardet from the frontend dependency graph#4475
bobbai00 merged 3 commits into
mainfrom
xinyuan-remove-jschardet

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

Strip transitive jschardet (LGPL-2.1, ASF Category X) declared by @codingame/monaco-vscode-api. It is only referenced by a dynamic await import('jschardet') inside the VS Code textfile encoding service, a code path Texera never exercises. Removing the declaration keeps it out of yarn.lock, node_modules, and the production bundle.

Any related issues, documentation, discussions?

Closes #4461

How was this PR tested?

Tested manually.

Was this PR authored or co-authored using generative AI tooling?

No.

@aglinxinyuan aglinxinyuan requested a review from bobbai00 April 22, 2026 23:02
@aglinxinyuan aglinxinyuan self-assigned this Apr 22, 2026
@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Apr 22, 2026

@bobbai00 bobbai00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@bobbai00 bobbai00 enabled auto-merge (squash) April 22, 2026 23:04
@bobbai00 bobbai00 merged commit 16fde90 into main Apr 22, 2026
11 checks passed
@bobbai00 bobbai00 deleted the xinyuan-remove-jschardet branch April 22, 2026 23:15
@aglinxinyuan

Copy link
Copy Markdown
Contributor Author

@bobbai00, please double-check if jschardet is removed in the final binary.

bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 23, 2026
…nt deps

Removes entries that are no longer bundled after the following upstream PRs:
- apache#4463 drop `twittered` (and its Sonar/jtidy/Maven-tooling transitive chain)
- apache#4474 drop `python-lsp-server` (and its pylint/rope/astroid chain + extras)
- apache#4475 drop `jschardet` from the frontend
- apache#4473 pin torch to CPU wheel on Linux x86_64 (removes nvidia-*-cu12)
- apache#4386 drop `mysql-connector-java`

Adds entries for newly-bundled deps surfaced by the reconciliation:
- `org.eclipse.collections` + `-api` under EDL-1.0
- Python `imageio` under BSD-2-Clause
- Python `lazy-loader`, `scikit-image`, `tifffile` under BSD-3-Clause

Also drops the now-redundant NOTICE-binary W3C block for xml-apis, the
entire NVIDIA CUDA section in LICENSE-binary, and the Java HTML Tidy
License section.

Verified: the checker reports zero STALE/ADDED across JVM, Python, and
npm ecosystems against a fresh `sbt dist` / frontend build / pip install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 23, 2026
PR apache#4475 was intended to remove jschardet via a `packageExtensions` rule,
but the rule targets `@codingame/monaco-vscode-api@*` while package.json
aliases that package as `vscode`. Yarn resolves the aliased ident in
yarn.lock and never fires the rule — see the reopened apache#4461 for details.

Dropping the LICENSE-binary entry here since jschardet is no longer
declared in the desired bundle. The actual removal from the shipped
artifact is tracked in apache#4461 and will be fixed separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bobbai00 added a commit that referenced this pull request Apr 23, 2026
#4480)

### What changes were proposed in this PR?
Attempt to fix the PR #4475

### Any related issues, documentation, discussions?
Closes #4461

### How was this PR tested?
```
rm -rf frontend/node_modules
yarn --cwd frontend install
find frontend/node_modules -maxdepth 2 -name 'jschardet*' -type d
grep -c 'jschardet' frontend/yarn.lock
grep -B1 -A1 'jschardet' frontend/yarn.lock | head
```

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.7)

---------

Co-authored-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 23, 2026
…nt deps

Removes entries that are no longer bundled after the following upstream PRs:
- apache#4463 drop `twittered` (and its Sonar/jtidy/Maven-tooling transitive chain)
- apache#4474 drop `python-lsp-server` (and its pylint/rope/astroid chain + extras)
- apache#4475 drop `jschardet` from the frontend
- apache#4473 pin torch to CPU wheel on Linux x86_64 (removes nvidia-*-cu12)
- apache#4386 drop `mysql-connector-java`

Adds entries for newly-bundled deps surfaced by the reconciliation:
- `org.eclipse.collections` + `-api` under EDL-1.0
- Python `imageio` under BSD-2-Clause
- Python `lazy-loader`, `scikit-image`, `tifffile` under BSD-3-Clause

Also drops the now-redundant NOTICE-binary W3C block for xml-apis, the
entire NVIDIA CUDA section in LICENSE-binary, and the Java HTML Tidy
License section.

Verified: the checker reports zero STALE/ADDED across JVM, Python, and
npm ecosystems against a fresh `sbt dist` / frontend build / pip install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 23, 2026
PR apache#4475 was intended to remove jschardet via a `packageExtensions` rule,
but the rule targets `@codingame/monaco-vscode-api@*` while package.json
aliases that package as `vscode`. Yarn resolves the aliased ident in
yarn.lock and never fires the rule — see the reopened apache#4461 for details.

Dropping the LICENSE-binary entry here since jschardet is no longer
declared in the desired bundle. The actual removal from the shipped
artifact is tracked in apache#4461 and will be fixed separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…aph (apache#4475)

Strip transitive `jschardet` (LGPL-2.1, ASF Category X) declared by
`@codingame/monaco-vscode-api`. It is only referenced by a dynamic
`await import('jschardet')` inside the VS Code textfile encoding
service, a code path Texera never exercises. Removing the declaration
keeps it out of yarn.lock, node_modules, and the production bundle.

### Any related issues, documentation, discussions?
Closes apache#4461

### How was this PR tested?
Tested manually.

### Was this PR authored or co-authored using generative AI tooling?
No.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
apache#4480)

### What changes were proposed in this PR?
Attempt to fix the PR apache#4475

### Any related issues, documentation, discussions?
Closes apache#4461

### How was this PR tested?
```
rm -rf frontend/node_modules
yarn --cwd frontend install
find frontend/node_modules -maxdepth 2 -name 'jschardet*' -type d
grep -c 'jschardet' frontend/yarn.lock
grep -B1 -A1 'jschardet' frontend/yarn.lock | head
```

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.7)

---------

Co-authored-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Category X: jschardet pulled in by @codingame/monaco-vscode-api

2 participants