Skip to content

Commit

Permalink
docs: update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Apr 23, 2024
1 parent 824b4aa commit b3431f5
Showing 1 changed file with 81 additions and 53 deletions.
134 changes: 81 additions & 53 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,87 +9,115 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- None

## [2.6.0] - 2022-08-13

### Added
## [3.0.0] - 2024-04-23

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

### Changed
Version 3 is a complete rewrite of query-registry.

- Updated dependencies and dev dependencies
This package is now a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and uses the [fetch global function](https://developer.mozilla.org/en-US/docs/Web/API/fetch) to perform network requests.

### Removed

- Removed dependency on `git-url-parse`

## [2.5.0] - 2022-05-28
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

- N/A
These are the current package's exports:

### Changed
- **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

- Fixed ESM export declarations in `package.json` (Thanks @mt-empty)
- Updated dependencies and dev dependencies
### Changed

### Removed
- **BREAKING CHANGE**: This package is now a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
- **BREAKING CHANGE**: Require Node.js 20 (latest LTS).
- **BREAKING CHANGE**: Use `fetch` for network requests.

- N/A

## [2.4.0] - 2022-05-11
## [2.6.0] - 2022-08-13

### Added

- N/A
- Added custom normalization for git urls; the normalized values for the `gitRepository` property may change with respect to previous releases.

### Changed

- Preserve subdomains in git repository URLs (`https://git.example.com/user/repo`) (Thanks @tomdyqin)
- Updated dependencies and dev dependencies
- Updated dependencies and dev dependencies.

### Removed

- N/A
- Removed dependency on `git-url-parse`.

## [2.3.0] - 2022-04-27
## [2.5.0] - 2022-05-28

### Added
### Changed

- N/A
- Fixed ESM export declarations in `package.json` (Thanks @mt-empty).
- Updated dependencies and dev dependencies.

## [2.4.0] - 2022-05-11

### Changed

- Preserve pathnames in registry URLs (`https://example.com/my/npm/registry`) (Thanks @tomdyqin)
- Updated dependencies and dev dependencies
- Preserve subdomains in git repository URLs (`https://git.example.com/user/repo`) (Thanks @tomdyqin).
- Updated dependencies and dev dependencies.

### Removed
## [2.3.0] - 2022-04-27

### Changed

- N/A
- Preserve pathnames in registry URLs (`https://example.com/my/npm/registry`) (Thanks @tomdyqin).
- Updated dependencies and dev dependencies.

## [2.2.0] - 2021-12-01

### Added

- [Abbreviated packuments](https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format) (`application/vnd.npm.install-v1+json`) can now be retrieved using `getAbbreviatedPackument()` or `getRawAbbreviatedPackument()`
- [Abbreviated packuments](https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format) (`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

### Removed

- N/A
- Responses are now cached based on headers and URL.
- Updated docs.
- Updated dependencies and dev dependencies.
- Moved `debug` package to dev dependencies.

## [2.0.0] - 2021-03-09

### Added

- Export named functions to query the npm registry
- **BREAKING CHANGE**: Added export map to `package.json`.
- Export named functions to query the npm registry:
- getDailyPackageDownloads()
- getDailyRegistryDownloads()
- getPackageDownloads()
Expand All @@ -100,23 +128,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- getRegistryDownloads()
- getRegistryMetadata()
- searchPackages()
- This package can now be used in a browser environment
- BREAKING CHANGE: Added export map to `package.json`
- This package can now be used in a browser environment.

### Changed

- Updated typing of registry responses
- Updated normalization of custom properties on `Packument` and `PackageManifest` interfaces
- Updated and reduced number of dependencies
- Updated typing of registry responses.
- Updated normalization of custom properties on `Packument` and `PackageManifest` interfaces.
- Updated and reduced number of dependencies.

### Removed

- BREAKING CHANGE: Removed `Registry` class; use the exported functions instead
- **BREAKING CHANGE**: Removed `Registry` class; use the exported functions instead.

[unreleased]: https://github.com/velut/node-query-registry/compare/v2.6.0...HEAD
[2.0.0]: https://github.com/velut/node-query-registry/compare/v1.2.0...v2.0.0
[2.2.0]: https://github.com/velut/node-query-registry/compare/v2.0.0...v2.2.0
[2.3.0]: https://github.com/velut/node-query-registry/compare/v2.2.0...v2.3.0
[2.4.0]: https://github.com/velut/node-query-registry/compare/v2.3.0...v2.4.0
[2.5.0]: https://github.com/velut/node-query-registry/compare/v2.4.0...v2.5.0
[2.6.0]: https://github.com/velut/node-query-registry/compare/v2.5.0...v2.6.0
[unreleased]: https://github.com/velut/query-registry/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/velut/query-registry/compare/v2.6.0...v3.0.0
[2.6.0]: https://github.com/velut/query-registry/compare/v2.5.0...v2.6.0
[2.5.0]: https://github.com/velut/query-registry/compare/v2.4.0...v2.5.0
[2.4.0]: https://github.com/velut/query-registry/compare/v2.3.0...v2.4.0
[2.3.0]: https://github.com/velut/query-registry/compare/v2.2.0...v2.3.0
[2.2.0]: https://github.com/velut/query-registry/compare/v2.0.0...v2.2.0
[2.0.0]: https://github.com/velut/query-registry/compare/v1.2.0...v2.0.0

0 comments on commit b3431f5

Please sign in to comment.