rerout 0.5.0 copy "rerout: ^0.5.0" to clipboard
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 #

  • tags namespace — tags.list(), tags.create(...), tags.update(tagId, ...), and tags.delete(tagId) against /v1/projects/me/tags (API-key auth). list returns a TagSummary per tag (Tag plus linkCount); create / update return a plain Tag. New CreateTagRequest, UpdateTagRequest, TagSummary, and ListTagsResult models. update mirrors links.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), and abVariants (AbVariant). Parsed leniently (sensible defaults when absent).
  • CreateLinkRequest gains password, maxClicks, trackConversions, routingRules, and abVariants (AbVariantInput). UpdateLinkRequest gains the same fields, with clearPassword / clearMaxClicks flags to send explicit nulls, and routingRules / abVariants performing a full replace.
  • conversions namespace — conversions.record(...) posts to /v1/conversions and returns a RecordedConversion (recorded, duplicate).
  • Links.createBatch(...) posts to /v1/links/batch and returns a BatchCreateLinksResult (created, total, results) for partial-success bulk creation.
  • New webhook event type conversion.recorded is delivered by the server.

0.3.0 - 2026-06-03 #

Added #

  • Webhook endpoint management via the webhooks namespace — create, list, and delete against /v1/projects/me/webhooks (API-key auth). The signing secret returned by create is shown once.

0.2.0 - 2026-06-02 #

Added #

  • Read-only tags field on ShortLink — a list of Tag ({id, name, color}) returned by get, list, and update. Empty on create. Parsed leniently (defaults to an empty list when absent).
  • Tag model.

Notes #

  • The project stats endpoint /v1/projects/me/stats is now live.

0.1.0 - 2026-05-20 #

Added #

  • Initial public release.
  • Rerout.initialize factory with default + custom baseUrl and injectable Dio for 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) with map, flatMap, when.
  • ReroutException with code, statusCode, message, path, timestamp plus isServerError / isRateLimited flags.
0
likes
150
points
313
downloads

Documentation

API reference

Publisher

verified publisheriamngoni.co.zw

Weekly Downloads

Official Dart SDK for the Rerout branded-link API.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

crypto, dio, meta

More

Packages that depend on rerout