supafreeze 1.0.6 copy "supafreeze: ^1.0.6" to clipboard
supafreeze: ^1.0.6 copied to clipboard

Generate Freezed models from Supabase database schema automatically. Supports incremental generation, smart caching, and build_runner integration.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.6 - 2025-12-10 #

Fixed #

  • Added CHANGELOG.md entries for all versions to satisfy pub.flutter-io.cn validation

1.0.5 - 2025-12-10 #

Fixed #

  • Fixed Dart formatting issues for pub.flutter-io.cn static analysis compliance
  • All source files now pass dart format check

1.0.4 - 2025-12-10 #

Fixed #

  • Formatted Dart sources to satisfy pub.flutter-io.cn static analysis checks
  • Bumped package version to align with latest release tag

1.0.3 - 2025-12-10 #

Fixed #

  • Fixed analyzer compatibility for build_runner integration

1.0.2 - 2025-12-10 #

Fixed #

  • Loosened analyzer range to stay compatible with build_runner/freezed toolchains while still allowing latest releases
  • Updated example dependencies to resolve build_runner formatting errors caused by analyzer incompatibility

1.0.1 - 2025-12-10 #

Changed #

  • Renamed Supabase environment variable to SUPABASE_DATA_API_URL in docs and validations for clarity

1.0.0 - 2024-12-10 #

Added #

  • Initial release
  • Fetch table schema from Supabase via OpenAPI spec
  • Generate Freezed models with fromJson/toJson
  • build_runner integration (runs before freezed/json_serializable)
  • Per-table incremental caching with SHA256 hashes
  • Automatic file cleanup when tables are deleted
  • Configuration via supafreeze.yaml
  • Variable resolution from dart-define, .env, and environment variables
  • Fetch modes: always, if_no_cache, never
  • Table filtering with include/exclude options
  • Optional barrel file generation
  • Comprehensive PostgreSQL to Dart type mapping
  • Property sorting (required first, grouped by type)
  • snake_case to camelCase conversion with @JsonKey annotations
  • Support for nullable fields, primary keys, and default values
  • Relation embedding - Auto-detect FK from *_id columns and embed related models
  • Per-table relation configuration with relations option
  • Dart reserved word escaping for field and class names
  • Custom enum type detection from OpenAPI spec
  • CLI tool (dart run supafreeze:supafreeze) for manual schema sync
  • --force flag to regenerate all models regardless of cache
1
likes
150
points
185
downloads

Publisher

unverified uploader

Weekly Downloads

Generate Freezed models from Supabase database schema automatically. Supports incremental generation, smart caching, and build_runner integration.

Topics

#supabase #freezed #code-generation #build-runner #postgresql

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, crypto, http, path, recase, source_gen, yaml

More

Packages that depend on supafreeze