glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.76k stars 1.04k forks source link

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

Open robogeek opened 1 week ago

robogeek commented 1 week ago

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 inflight@1.0.6: 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 glob@7.2.3: Glob versions prior to v9 are no longer supported

The warnings are due to a dependency on @mark.probst/typescript-json-schema@0.55.0:

$ npm ls glob
esx-core-server@1.0.0 /home/david/Projects/Evoke-mac/esx-core/server
├─┬ openapi-client-axios-typegen@7.6.2
│ └─┬ @anttiviljami/dtsgenerator@3.20.0
│   └── glob@10.4.2
├─┬ quicktype@23.0.170
│ └─┬ quicktype-typescript-input@23.0.170
│   └─┬ @mark.probst/typescript-json-schema@0.55.0
│     └── glob@7.2.3
└─┬ typescript-cp@0.1.9
  └─┬ rimraf@5.0.7
    └── glob@10.4.2 deduped

$ npm ls inflight
esx-core-server@1.0.0 /home/david/Projects/Evoke-mac/esx-core/server
└─┬ quicktype@23.0.170
  └─┬ quicktype-typescript-input@23.0.170
    └─┬ @mark.probst/typescript-json-schema@0.55.0
      └─┬ glob@7.2.3
        └── inflight@1.0.6

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:

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