Skip to content

v3.0.0

Compare
Choose a tag to compare
@JulianVennen JulianVennen released this 21 Dec 18:23
· 15 commits to master since this release
b1e2758

Version 3.0.0 continues the transition from namespaces to unique slugs and also fixes the name of a parameter that was changed.

Breaking Changes

  • Methods that previously accepted a ProjectNamespace now only accept the project slug.This includes:
    • getProjectWatchers
    • getProjectStarGazers
    • getProjectMembers
  • The following methods previously accepted a Project or ProjectNamespace and now accept a Project or slug:
    • getProjectVersions
    • getProjectVersion
  • VersionSearchOptions->projectNamespace has also been replaced with the projectSlug
  • The project search option 'order with relevance' was renamed to 'prioritize exact match'. Version 2.0.0 already changed the option passed to the hangar API and this change makes the name in our code base match the behaviour.

New Features

  • Add shorthand getSlug() to Project and CompactProject
  • Add setter for a custom HTTPClient
  • Add constructor parameters for api key and user agent