All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- #273 Allow users to provide a
credentials
parameter to the underlying[Request
](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials) made byShlinkClient
s.
- #238 Enable
erasableSyntaxOnly
when typechecking.
- Nothing
- Nothing
- Nothing
- #4 Add an integration test suite that tests the SDK against all supported versions
- #3 Add extended documentation with docsify and publish via GitHub Pages
- #23 Change
FetchHttpClient
entry point from@shlinkio/shlink-js-sdk/browser
to@shlinkio/shlink-js-sdk/fetch
, and decouple it fromwindow
object. - #228 When any method of the
ShlinkApiClient
can receive both ashortCode
and adomain
, they are now together in a newShortUrlIdentifier
object. - #227 Update all
ShlinkApiClient
methods so that the abort signal is part of the last optional object param of every public method. - #226 This package is now built as ES module only.
- #230 This library now uses TypeScript erasable syntax only.
- Nothing
- #229 Drop support for Shlink older than 3.5.0.
- Nothing
-
#8 Allow an
AbortSignal
to be provided as the last optional argument to all publicShlinkApiClient
methods.This will let consumers control if a request should be aborted, via
AbortController
.
- Rearrange
exports
order, as suggested by vitest.
- Nothing
- Nothing
- Nothing
- Add support for
geolocation-country-code
andgeolocation-city-name
redirect condition types. - Add support for
domain
to filter short URL lists. - Update API contracts for Shlink 4.3.0
- Update dependencies.
- Nothing
- Nothing
- Nothing
- Add support for
ip-address
redirect condition type.
- Update JS coding standard and migrate to ESLint flat config.
- Nothing
- Nothing
- Nothing
- Add optional
visitedUrl
prop inShlinkRegularVisit
, to fulfil what Shlink 4.1.0 now supports.
- Update JS coding standard
- Nothing
- Nothing
- Nothing
-
#72 Add support for Shlink 4.0.0
- Add support to list and set short URL redirect conditions.
- Add
type
param toShlinkApiClient.getOrphanVisits
.
-
Update dependencies.
-
#22 Consolidate exposed types, making them more consistent.
- Types no longer couple with HTTP terminology, removing references to body, query, request, response, etc.
- All types that wrap a list of entities are now suffixed with
List
(ShlinkShortUrlsList
,ShlinkVisitsList
, etc.) - Arguments passed to the API client frequently use the
Params
suffix when representing filters (likeShlinkVisitsParams
) orData
suffix when wrapping props to be mutated (likeShlinkEditShortUrlData
). - Methods returning entities, just use the name of the entity itself, regardless of the method's nature (fetch or mutation).
- Methods returning the result of a mutation when it is not an entity, will return types using the
Result
suffix (likeShlinkDeleteVisitsResult
).
- Nothing
- #74 Drop support for Shlink older than 3.3.0. This version introduced the API v3, so this allows to remove the logic to fall back to v2, and remove the error types used in v2.
- Nothing
- Nothing
- Nothing
- Nothing
- Nothing
- Fix API client contract definition.
- Export different types for short URL visits params and other visits params.
- Export API contract as TypeScript types instead of interfaces.
- Nothing
- Nothing
- Nothing
- #2 Implement node.js
HttpClient
. - Add support for orphan and short URL visits deletion methods.
- Nothing
- Nothing
- Nothing
- Nothing
- Nothing
- First release
- Nothing
- Nothing
- Nothing
- Nothing