suparepo 1.3.2 copy "suparepo: ^1.3.2" to clipboard
suparepo: ^1.3.2 copied to clipboard

Generate repository/data access layer code from Supabase database schema. Automatically creates CRUD operations, queries, and type-safe API clients.

Changelog #

1.3.2 - 2026-02-18 #

Fixed #

  • RPC client: void 戻り値の関数で未使用の response 変数を除去
  • RPC client: rpc() に明示的な型引数を追加し inference_failure_on_function_invocation を解消

1.3.1 - 2026-02-18 #

Fixed #

  • Tightened supabase_schema_core lower bound to ^1.1.0 (fixes downgrade analysis)
  • Added example file for pub.dev scoring
  • Updated README with generate_providers and model_import_prefix documentation

1.3.0 - 2026-02-18 #

Added #

  • Riverpod provider generation (generate_providers)
    • Optionally generates @Riverpod(keepAlive: true) providers for each repository and RPC client
    • Generates supabase_client_provider.dart for SupabaseClient DI
    • Controlled by generate_providers: true in suparepo.yaml
  • Individual model import prefix (model_import_prefix)
    • Import each model file individually instead of a barrel file
    • e.g. model_import_prefix: package:data/ imports package:data/categories.supafreeze.dart

Fixed #

  • Fixed count() method to use correct Supabase SDK API (.select().count(CountOption.exact))
  • Added ignore_for_file directives to suppress lint warnings in generated code
  • Fixed required parameters ordering in RPC client methods

1.2.0 - 2026-02-12 #

Added #

  • Configurable Supabase import (supabase_import)
    • Allows switching between package:supabase_flutter/supabase_flutter.dart (default) and package:supabase/supabase.dart for pure Dart packages
    • Applied to all generators: repository, RPC client, and Edge Function client

1.1.0 - 2026-02-11 #

Added #

  • RPC client generation (RpcGenerator)
    • Detects RPC functions from OpenAPI spec and generates type-safe Dart methods
    • Automatic snake_case to camelCase conversion with reserved word escaping
  • Edge Function client generation
    • EdgeFunctionDetector — scans local supabase/functions/ directory
    • EdgeFunctionGenerator — generates clients with or without typed models
    • YAML-based request/response model definitions
  • Configuration extensions (RpcConfig, EdgeFunctionConfig)
    • RPC: enabled, output, include/exclude filters
    • Edge Functions: enabled, output, functions_path, include/exclude, model definitions
  • CLI (bin/suparepo.dart)
    • dart run suparepo — generate all enabled outputs
    • --repo / --rpc / --edge — generate specific targets
    • --force — force regenerate all

Changed #

  • Added rpc and edgeFunctions fields to SuparepoConfig

1.0.0 - 2025-12-11 #

Added #

  • Initial release
  • Repository code generation from Supabase schema
  • CRUD operations (getAll, getById, create, update, delete)
  • Pagination support
  • Count queries
  • Relation embedding with foreign key detection
  • Type-safe mode when used with supafreeze models
0
likes
0
points
676
downloads

Publisher

unverified uploader

Weekly Downloads

Generate repository/data access layer code from Supabase database schema. Automatically creates CRUD operations, queries, and type-safe API clients.

Homepage
Repository (GitHub)
View/report issues

Topics

#supabase #repository #code-generation #data-access #postgresql

License

unknown (license)

Dependencies

http, path, recase, supabase_schema_core, yaml

More

Packages that depend on suparepo