suparepo 1.3.2
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_corelower bound to^1.1.0(fixes downgrade analysis) - Added example file for pub.dev scoring
- Updated README with
generate_providersandmodel_import_prefixdocumentation
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.dartfor SupabaseClient DI - Controlled by
generate_providers: trueinsuparepo.yaml
- Optionally generates
- Individual model import prefix (
model_import_prefix)- Import each model file individually instead of a barrel file
- e.g.
model_import_prefix: package:data/importspackage:data/categories.supafreeze.dart
Fixed #
- Fixed
count()method to use correct Supabase SDK API (.select().count(CountOption.exact)) - Added
ignore_for_filedirectives 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) andpackage:supabase/supabase.dartfor pure Dart packages - Applied to all generators: repository, RPC client, and Edge Function client
- Allows switching between
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 localsupabase/functions/directoryEdgeFunctionGenerator— 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
rpcandedgeFunctionsfields toSuparepoConfig