2020.12.06
- Fixed a problem where an unknown version inside a known version range (like "2.3.8-dev") caused an exception.
- Fixed Android 4 compatibility (
NoSuchMethodError
withexists
methods). - Updated dependencies.
2020.04.25
- Initial request without auth headers is no longer performed:
the token refresh procedure is performed right away if no auth token is provided by theParameterHandler
. - Auth headers no longer set on requests that don't require authorization.
2020.04.17
- Fixed Android compatibility (
NoSuchMethodError
withexists
methods). - Updated dependencies.
2020.01.09
- Fixed
BatchExistQueryBuilder.addUrl(String)
which never returnedtrue
.
2019.12.26
- A
CachedVersionHandler
is introduced, which allows to alter the behavior ofWallabagService.getCachedVersion()
. - The default behavior of
WallabagService.getCachedVersion()
is changed, seeSimpleCachedVersionHandler
. - A breaking change: a new parameter is added to
WallabagService.instance(String, ParameterHandler, OkHttpClient)
.
2019.12.08
- A
NotFoundPolicy
is introduced, which allows for a betterNotFoundException
handling through its (recommended)NotFoundPolicy.SMART
policy. - Many methods, that were previously throwing
NotFoundException
s in case of not found entities, are now using thatNotFoundPolicy.SMART
policy by default and returning default values (null
,false
, etc.) instead of throwing theNotFoundException
. - Java 8 is now the lowest supported Java version. Java 8 APIs are not used, so the library is usable with Android.
2019.12.08
- New 2.4.0 features:
exists
by URL hash.- New
Article
fields:givenUrl
,hashedGivenUrl
,archivedAt
. - New
ArticlesQueryBuilder.SortCriterion
:ARCHIVED
. ArticlesQueryBuilder.DetailLevel
allows load articles without content.- New method
WallabagService.getInfo()
. - New search endpoint support (available through
WallabagService.searchArticlesBuilder()
).
WallabagService.delete(int)
is improved.
Breaking changes:
BatchExistQueryBuilder.addUrl(String)
throwsIllegalArgumentException
if theurl
is empty.WallabagService.deleteArticle(int)
renamed toWallabagService.deleteArticleWithObject(int)
,WallabagService.deleteArticleCall(int)
renamed toWallabagService.deleteArticleWithObjectCall(int)
; an improvedWallabagService.deleteArticle(int)
is introduced instead (with different return type).
2019.11.30
- Added
ArticleIterator
. - Internal changes:
- Simplified
ArticlesPageIterator
. - Removed unneeded optimization attempts in abstract builders.
- Simplified
2019.11.14
- Add a convenience-constructor to
Annotation.Range
. - Some documentation clarifications.
2019.10.28
- Some refactoring.
- Added decent javadocs.
- Improved README, added CHANGELOG.
Breaking changes:
ArticlesQueryBuilder#since(long)
now accepts milliseconds instead of seconds.ArticlesPageIterator
now starts from the page set in theArticlesQueryBuilder
.ParameterHandler
logic change: ifaccess token
is not provided, no auth headers are added to initial request.
As a result, thegetVersion()
method works without any credentials (so it is not suitable for auth testing).
If a method does require auth, the token update procedure is performed and the request is retried with a new token.- Obvious relocations and renaming.
Other notable changes:
ParameterHandler
is now allowed to return empty values.- Builders now accept
null
s, so the values can be reset and the builders reused.
2019.08.22
Add some new fields and features available in server versions 2.3.7 and 2.3.8.
ages ago
The first usable version.