0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-11 14:47:26 -04:00
deno/tests/registry/npm
Nathan Whitaker 08f5e797b6
fix(check/lsp): fall back to @types/* packages if npm package doesn't have types (#28185)
Fixes https://github.com/denoland/deno/issues/27569.
Fixes https://github.com/denoland/deno/issues/27215.

This PR makes it so type resolution falls back to looking for definitely
typed packages (`@types/foo`) if a given NPM package does not contain
type declarations.

One complication is choosing _which_ version of the `@types/*` package
to use, if the project depends on multiple versions. The heuristic here
is to try to match the major and minor versions, falling back to the
latest version. So if you have
```
@types/foo: 0.1.0, 0.2.0, 3.1.0, 3.1.2, 4.0.0
foo: 3.1.0
```
we would choose `@types/foo@3.1.2` when resolving types for `foo`.

---

Note that this only uses `@types/` packages if you _already_ depend on
them. So a follow up to this PR could be to add a diagnostic and
quickfix to install `@types/foo` if we don't find types for `foo`.
2025-02-19 23:55:06 +00:00
..
@babel/parser feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@denotest fix(check/lsp): fall back to @types/* packages if npm package doesn't have types (#28185) 2025-02-19 23:55:06 +00:00
@isaacs/cliui feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@ljharb/has-package-exports-patterns feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@npmcli feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@opentelemetry/api feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@pkgjs/parseargs feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
@types fix(check/lsp): fall back to @types/* packages if npm package doesn't have types (#28185) 2025-02-19 23:55:06 +00:00
@vue feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
abbrev feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
agent-base feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
aggregate-error feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ajv feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ajv-formats feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ansi-regex feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ansi-styles feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
asn1 feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
assertion-error feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
autoprefixer chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
balanced-match feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
bcrypt-pbkdf feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
brace-expansion feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
browserslist chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
bufferutil feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
buildcheck feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
cacache feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
camelcase feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
caniuse-lite chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
chai feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
chalk feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
check-error feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
chownr feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
clean-stack feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
cli.ts chore: trim registry.json files in tests/registry/npm (#27798) 2025-01-24 13:28:13 +09:00
cliui feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
color-convert feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
color-name feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
cowsay feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
cpu-features feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
cross-spawn feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
crypto-js feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
csstype feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
debug feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
decamelize feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
deep-eql feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
define-properties feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
eastasianwidth feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
electron-to-chromium chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
emoji-regex feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
encoding feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
env-paths feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
err-code feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
escalade chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
estree-walker feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
exponential-backoff feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
fast-deep-equal feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
find-up feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
foreground-child feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
fraction.js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fs-extra feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
fs-minipass feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
fsevents feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
function-bind feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
get-caller-file feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
get-func-name feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
get-intrinsic feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
get-stdin feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
glob feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
globals feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
graceful-fs feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
has feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
has-flag feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
has-package-exports feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
has-property-descriptors feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
has-symbols feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
http-cache-semantics feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
http-proxy-agent feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
https-proxy-agent feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
iconv-lite feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
imurmurhash chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
indent-string feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ip-address feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
is-fullwidth-code-point feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
is-lambda feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
isexe feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
jackspeak feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
js-tokens feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
jsbn feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
json-schema-traverse feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
jsonfile feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
locate-path feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
loose-envify feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
loupe feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
lru-cache feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
lz-string feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
magic-string feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
make-fetch-happen feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minimatch feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass-collect feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass-fetch feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass-flush feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass-pipeline feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minipass-sized feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
minizlib feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
mkdirp feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ms feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
nan feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
nanoid feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
negotiator feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
node-gyp feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
node-releases chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
nopt feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
normalize-range chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
npm-check-updates feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
object-keys feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
p-limit feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
p-locate feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
p-map feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
p-try feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
package-json-from-dist feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
path-exists feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
path-key feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
path-scurry feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
pathval feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
picocolors feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
playwright feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
playwright-core feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
postcss feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
postcss-value-parser chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
preact feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
preact-render-to-string feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
pretty-format feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
proc-log feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
promise-retry feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
punycode feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
react feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
react-dom feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
require-directory feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
require-from-string feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
require-main-filename feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
retry feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
safer-buffer feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
scheduler feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
semver feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
set-blocking feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
shebang-command feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
shebang-regex feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
signal-exit feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
smart-buffer feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
socks feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
socks-proxy-agent feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
source-map feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
source-map-js feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
sourcemap-codec feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
sprintf-js feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ssh2 feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ssri feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
string-width feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
strip-ansi feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
strip-final-newline feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
supports-color feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
supports-esm feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
tar feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
tweetnacl feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
type-detect feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
type-fest feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
undici-types feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
unique-filename feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
unique-slug feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
universalify feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
update-browserslist-db chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
uri-js feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
utf-8-validate feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
v8flags feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
vue feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
which feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
which-module feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
wrap-ansi feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
ws feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
y18n feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
yallist feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
yargs feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
yargs-parser feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
trim_registry_files.js feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00