You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2026/05/20 22:54:00 UTC

[jira] [Resolved] (THRIFT-6016) lib/ts: jsdoc incorrectly listed under dependencies instead of devDependencies

     [ https://issues.apache.org/jira/browse/THRIFT-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-6016.
--------------------------------
    Fix Version/s: 0.24.0
       Resolution: Fixed

> lib/ts: jsdoc incorrectly listed under dependencies instead of devDependencies
> ------------------------------------------------------------------------------
>
>                 Key: THRIFT-6016
>                 URL: https://issues.apache.org/jira/browse/THRIFT-6016
>             Project: Thrift
>          Issue Type: Bug
>          Components: TypeScript - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.24.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In lib/ts/package.json, jsdoc is listed under "dependencies" instead of "devDependencies". jsdoc is a documentation generator and has no business being a runtime dependency of the Thrift TypeScript library.
> The practical consequence is that when npm resolves the package, jsdoc (and its transitive dependencies, notably taffydb and lodash) are classified as production dependencies. This is incorrect and causes Dependabot to report taffydb (CVE-2019-10790, HIGH) and lodash (CVE-2026-4800, HIGH) as vulnerabilities in the shipped library, not merely in dev tooling.
> Fix: move jsdoc from "dependencies" to "devDependencies" in lib/ts/package.json.
> Related: upgrading jsdoc from 3.6 to 4.x (see companion issue) will eliminate the taffydb dependency entirely, since jsdoc 4.x no longer depends on taffydb.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)