Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robogeek opened this issue Jun 27, 2024 · 0 comments
Labels

Comments

@robogeek
Copy link

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

@robogeek robogeek added the bug label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant