quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

[BUG]: your dependency on @YousefED/typescript-json-schema depends on old/buggy packages

Open robogeek opened this issue 1 year ago • 0 comments

Issue Type

This is about packages pulled in by using Quicktype

Context (Environment, Version, Language)

This is about output from npm install

CLI, npm, or app.quicktype.io: npm install Version: 23.0.170

Description

When running npm install I get this output

$ npm install
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported

The warnings are due to a dependency on @mark.probst/[email protected]:

$ npm ls glob
[email protected] /home/david/Projects/Evoke-mac/esx-core/server
├─┬ [email protected]
│ └─┬ @anttiviljami/[email protected]
│   └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ @mark.probst/[email protected]
│     └── [email protected]
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected] deduped

$ npm ls inflight
[email protected] /home/david/Projects/Evoke-mac/esx-core/server
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ @mark.probst/[email protected]
      └─┬ [email protected]
        └── [email protected]

Input Data

A dependency in npm package.json

    "quicktype": "^23.0.170",

Expected Behaviour / Output

There should be zero warnings or errors from npm

Current Behaviour / Output

See above

Steps to Reproduce

As noted above, create a project, depend on Quicktype, and run npm install

Possible Solution

Two issues exist against the offending package:

  • https://github.com/YousefED/typescript-json-schema/issues/605
  • https://github.com/YousefED/typescript-json-schema/issues/608

Failing any attention from the typescript-json-schema package maintainer, there is another package that might be of interest...? Maybe? I only know about that because of a link in the typescript-json-schema repository:

https://github.com/vega/ts-json-schema-generator

robogeek avatar Jun 27 '24 13:06 robogeek