reachu_flutter_sdk 1.0.0 copy "reachu_flutter_sdk: ^1.0.0" to clipboard
reachu_flutter_sdk: ^1.0.0 copied to clipboard

A Dart/Flutter SDK to manage shopping carts and payments over GraphQL.

Changelog #

1.0.0 #

0.0.5 #

  • Fix gql_exec version.

0.0.4 #

  • Core: added typed exceptions (SdkException, ValidationException, AuthException, PermissionException, NotFoundException, RateLimitException, ServiceUnavailableException, TimeoutError, NetworkError, GraphQLFailure).
  • Core: centralized error mapping (error_mapper.dart) from OperationException (HTTP/GraphQL), parsing JSON bodies and attaching status/body/headers/url in details.
  • Core: null-safe GraphQL helpers pickPath<T> / pickPathRequired<T>.
  • Core: safe wrappers runQuerySafe / runMutationSafe (+ configured variants) with timeout and optional retry.
  • Client: introduced SdkClientConfig (auth token provider, custom headers, user agent, request id, timeout, retry, logging).
  • Client: new GraphQL client builder (AuthLink + dynamic headers link); SdkClient.basic(...) factory.
  • Modules: refactored Cart, Checkout, Payment, Discount, Product, Channel (Category/Info/Market) and global Market to use safe wrappers, input validations (ISO currency/country, non-empty ids/strings, ranges, date parsing), and EMPTY_RESPONSE guards.
  • Models: hardened Product DTOs (price fallback, robust casting for images/options/variants, shipping/return info) and aligned DTOs for Cart/Checkout/Discount/Channel/Market.
  • Exports: expanded reachu_flutter_sdk.dart to export client, config, core utils, modules, and models.
  • Tests: added fully mocked unit tests for all modules covering success mapping, validation short-circuits, EMPTY_RESPONSE, timeouts, HTTP 5xx mapping, and GraphQL BAD_USER_INPUT mapping.

0.0.3 #

  • Fix Cart querys.
  • Add Channel querys.
  • Fix Cart model.
  • Fix Product model.
  • Fix Cart module.

0.0.2 #

  • Fix Dto of the product.

0.0.1 #

  • Initial release.
  • Added Cart, Checkout, Payment, Market, Discount, Channel modules.
1
likes
120
points
360
downloads

Publisher

verified publisherreachu.io

Weekly Downloads

A Dart/Flutter SDK to manage shopping carts and payments over GraphQL.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, graphql, meta

More

Packages that depend on reachu_flutter_sdk