Socket
Socket
Sign inDemoInstall

query-registry

Package Overview
Dependencies
13
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

3.0.0

Diff

Changelog

Source

[3.0.0] - 2024-04-23

Version 3 is a complete rewrite of query-registry.

This package is now a pure ESM package and uses the fetch global function to perform network requests.

Additionally, every response returned by the registry is now validated against its expected schema. This means that data can now be safely accessed according to the corresponding TypeScript type definition. Unexpected data will reject with an error; in this case open an issue to propose changes to the schemas.

Added

These are the current package's exports:

  • Variables:
    • cache
    • npmRegistryDownloadsApiUrl
    • npmRegistryUrl
  • Functions:
    • getAbbreviatedPackument()
    • getBulkDailyPackageDownloads()
    • getBulkPackageDownloads()
    • getDailyPackageDownloads()
    • getDailyRegistryDownloads()
    • getPackageDownloads()
    • getPackageManifest()
    • getPackageVersionsDownloads()
    • getPackument()
    • getRegistryDownloads()
    • getRegistryMetadata()
    • getRegistrySigningKeys()
    • searchPackages()
  • Zod schemas / TypeScript types:
    • AbbreviatedPackument
    • BulkDailyPackageDownloads
    • BulkPackageDownloads
    • DailyPackageDownloads
    • DailyRegistryDownloads
    • DownloadPeriod
    • PackageDownloads
    • PackageJson
    • PackageManifest
    • PackageVersionsDownloads
    • Packument
    • RegistryDownloads
    • RegistryMetadata
    • RegistrySigningKeys
    • SearchCriteria
    • SearchResults

Changed

  • BREAKING CHANGE: This package is now a pure ESM package.
  • BREAKING CHANGE: Require Node.js 20 (latest LTS).
  • BREAKING CHANGE: Use fetch for network requests.
velut
published 3.0.0-1 •

velut
published 3.0.0-0 •

velut
published 2.6.0 •

Changelog

Source

[2.6.0] - 2022-08-13

Added

  • Added custom normalization for git urls; the normalized values for the gitRepository property may change with respect to previous releases

Changed

  • Updated dependencies and dev dependencies

Removed

  • Removed dependency on git-url-parse
velut
published 2.5.0 •

Changelog

Source

[2.5.0] - 2022-05-28

Changed

  • Fixed ESM export declarations in package.json (Thanks @mt-empty).
  • Updated dependencies and dev dependencies.
velut
published 2.5.0-0 •

velut
published 2.4.0 •

Changelog

Source

[2.4.0] - 2022-05-11

Changed

  • Preserve subdomains in git repository URLs (https://git.example.com/user/repo) (Thanks @tomdyqin).
  • Updated dependencies and dev dependencies.
velut
published 2.3.0 •

Changelog

Source

[2.3.0] - 2022-04-27

Changed

  • Preserve pathnames in registry URLs (https://example.com/my/npm/registry) (Thanks @tomdyqin).
  • Updated dependencies and dev dependencies.
velut
published 2.3.0-0 •

velut
published 2.2.0 •

Changelog

Source

[2.2.0] - 2021-12-01

Added

  • Abbreviated packuments (application/vnd.npm.install-v1+json) can now be retrieved using getAbbreviatedPackument() or getRawAbbreviatedPackument().

Changed

  • Responses are now cached based on headers and URL.
  • Updated docs.
  • Updated dependencies and dev dependencies.
  • Moved debug package to dev dependencies.
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc