- Updated protobuf to 3.7.1 and regenerated code from .proto files
- Added specific errors for missing minor or patch versions.
-
Added
add_owner_request
,add_owner_response
transfer_owner_request
,transfer_owner_response
, -
revert_package_request
, andrevert_package_response
are renamed toremove_package_request
, andremove_package_response
to accurately describe what they do.
- Fixed a bug where prerelease versions would not
bump
correctly. This caused a panic in the Gleam compiler.
- Added the
revert_release_request
,revert_release_response
,revert_package_request
, andrevert_package_response
functions.
- Updated all dependencies.
- Updated for latest version of Reqwest.
- Fixed a bug where the package name validation regex was too strict.
- Updated for latest Hex API.
- The
publish_package_request
now takes an additional argument signifying whether an existing package can be replaced for now.
- Fixed a bug where locked versions would discard incompatible requirements during version resolution.
- The HTTP client has been removed from this library in favour of request building and response parsing functions. Bring your own HTTP client of choice.
Version
andRequirement
structs have been added for representing information about requests versions of packages.- Protobuf code updated to use
cfg_attr
rather than deprecated attributes. - The
get_repository_versions
method [email protected]:gleam-lang/hexpm-rust.gitsVersion
s rather than strings. - The
get_package
uses theversion::Range
type to representrequirement
s. - A pubgrub based dependency resolver has been added.
- Fixed a bug where a forbidden error was returned for a not-found package by the get-package API.
- Swapped the word "token" for "key" to match Hex.
- Added
unretire_release_*
,retire_release_*
,remove_api_key_*
andpublish_package_*
functions.
- The
get_package_tarball
method has been added.
- The
get_package
method has been added. - Update tokio to 1.0
- Update reqwest to 0.11
- Update url to 2.2
- Update bytes to 1.0
- The generated protobuf code has been regenerated.
- Updated generated protobuffer deserialisation code.
- The
get_repository_versions
method has been added. - The
repository_base
field has been added to both authenticated and unauthenticated clients.
- Initial release