rerout 0.5.0
rerout: ^0.5.0 copied to clipboard
Official Dart SDK for the Rerout branded-link API.
Changelog #
All notable changes to the rerout Dart package are documented in this file.
This project adheres to Semantic Versioning.
0.5.0 - 2026-06-20 #
Added #
tagsnamespace —tags.list(),tags.create(...),tags.update(tagId, ...), andtags.delete(tagId)against/v1/projects/me/tags(API-key auth).listreturns aTagSummaryper tag (TagpluslinkCount);create/updatereturn a plainTag. NewCreateTagRequest,UpdateTagRequest,TagSummary, andListTagsResultmodels.updatemirrorslinks.update: only set fields are sent and an empty patch is rejected client-side.
0.4.0 - 2026-06-04 #
Added #
- Smart Links support on
ShortLink:passwordProtected,maxClicks,clickCount,trackConversions,routingRules(RoutingRule), andabVariants(AbVariant). Parsed leniently (sensible defaults when absent). CreateLinkRequestgainspassword,maxClicks,trackConversions,routingRules, andabVariants(AbVariantInput).UpdateLinkRequestgains the same fields, withclearPassword/clearMaxClicksflags to send explicit nulls, androutingRules/abVariantsperforming a full replace.conversionsnamespace —conversions.record(...)posts to/v1/conversionsand returns aRecordedConversion(recorded,duplicate).Links.createBatch(...)posts to/v1/links/batchand returns aBatchCreateLinksResult(created,total,results) for partial-success bulk creation.- New webhook event type
conversion.recordedis delivered by the server.
0.3.0 - 2026-06-03 #
Added #
- Webhook endpoint management via the
webhooksnamespace —create,list, anddeleteagainst/v1/projects/me/webhooks(API-key auth). The signing secret returned bycreateis shown once.
0.2.0 - 2026-06-02 #
0.1.0 - 2026-05-20 #
Added #
- Initial public release.
Rerout.initializefactory with default + custombaseUrland injectableDiofor tests.- Link operations:
create,list,get,update,delete,stats. - Project operations:
stats,me. - QR helpers: pure URL builder (
Rerout.qr.url) and authenticated SVG fetch (Rerout.qr.svg). ReroutWebhookSignature.verify— HMAC-SHA256 webhook signature verification with configurable timestamp tolerance and constant-time comparison.- Sealed
Result<T>type (Success/Error) withmap,flatMap,when. ReroutExceptionwithcode,statusCode,message,path,timestampplusisServerError/isRateLimitedflags.