Skip to content

Updates

Latest release

Melange v0.11.0

Run migrateBreakingSecurity fix FeaturesFixesPerformanceGenerated SQLGo runtimeTypeScriptCLIDocs

Melange v0.11.0 lets you choose which part of the generated SQL API a database gets, and adds per-relation accessible_* functions for filtering your own queries by access. Paged lists now do the work of one page, generated functions are planned once per session, and depth limits and cycles follow OpenFGA. It also fixes two ways a check or a migration could grant more than the model says.

  • Choose which relations and function families the SQL API installs, and filter your own queries with inlinable accessible_* functions
  • Paged lists read only the page: a first page of 50 contacts on the SaaS benchmark went from 3.5 s to 6 ms
  • Depth limits match OpenFGA, lists raise M2002 instead of truncating, and userset checks stop over-granting

v0.10 4 releases

  1. 6 min read Run migrate

    Melange v0.10.3

    FeaturesFixesCLIDocs

    Melange v0.10.3 is a tooling release. melange doctor gives index advice you can apply as written, melange migrate removes all of a deleted relation’s functions, and paths in melange.yaml work from any directory of your project. Studio gets …

    • melange doctor names the exact indexes a view’s source tables need, and stops asking for ones they don’t
    • Studio’s History page shows what each migration changed, with diffs and breaking changes marked
    • melange migrate cleans up every function of a removed relation
    Read more →
  2. 5 min read Run migrateSecurity fix

    Melange v0.10.2

    FixesPerformanceGenerated SQLGo runtimeDocs

    Melange v0.10.2 fixes list_accessible_objects and list_accessible_subjects in two families of models. Where a parent relation allows more than one type, such as parent: [folder, project], list_accessible_objects could miss every object …

    • List functions find objects under every parent type, and agree with check_permission when a relation links to its own type
    • Code generation is up to 64% faster on large models
    • The CLI and Go libraries need Go 1.26 instead of 1.27
    Read more →
  3. 6 min read

    Melange v0.10.1

    FeaturesFixesCLIDocs

    Melange v0.10.1 makes melange migrate safe to run on every application startup: concurrent runs are serialized, and an older melange no longer overwrites functions generated by a newer one. The CLI now warns when it, or the functions …

    • Concurrent melange migrate runs are serialized, and downgrades are refused
    • The CLI warns when it or your deployed functions match a security advisory
    • Windows install with Scoop, and every install channel tested on each release
    Read more →
  4. 6 min read Run migrateBreakingSecurity fix

    Melange v0.10.0

    FeaturesFixesPerformanceGenerated SQLGo runtimeCLIDocs

    Melange v0.10.0 compiles nested combinations of and, or and but not exactly. Earlier versions approximated some of them, and several approximations granted access that OpenFGA denies. It also fixes list functions that disagreed with …

    • Exact compilation of nested and / but not, fixing over-grants
    • List functions up to 2,700x faster on deep and intersection relations
    • Undefined relations rejected; coding-agent support in the CLI and docs
    Read more →

v0.9 6 releases

  1. 4 min read

    Melange v0.9.6

    FeaturesCLI

    Melange v0.9.6 adds melange studio, a local web console for inspecting a melange database. It shows the deployed model, explains and expands checks, tests a grant before you write it, browses the entities behind your tuples, and shows the …

    • melange studio, a local read-only web console
    • Explain, Expand, Matrix and Analyze in the browser
    • What-if tuples, relation pages and a tuples browser
    Read more →
  2. 6 min read Run migrateSecurity fix

    Melange v0.9.5

    FixesGenerated SQLGo runtimeCLI

    Melange v0.9.5 fixes an exclusion bypass in generated SQL: a user excluded by a but not relation was allowed through any relation that reached it via an alias or union. It also fixes contextual tuples in the Go runtime reading grants from …

    • Exclusion bypass through aliases and unions fixed
    • Go contextual tuples isolated per schema and session
    • Commands exit non-zero after a failed write
    Read more →
  3. 7 min read Run migrate

    Melange v0.9.3

    FeaturesCLI

    Melange v0.9.3 records the authorization model in the database at migrate time. melange_migrations previously stored only a checksum, so a mismatch told you that something differed but not what. With the model stored, melange status reports …

    • The deployed model is recorded in the database
    • melange status drift, melange diff and melange schema pull
    • Named environment profiles
    Read more →
  4. 3 min read Run migrate

    Melange v0.9.2

    FixesGenerated SQL

    Melange v0.9.2 fixes a correctness bug where ListSubjects could return subjects that Check denies — a but not exclusion was dropped for subjects reached through certain tuple-to-userset paths. It also adds a suite-wide parity test that pins …

    • ListSubjects no longer returns subjects Check denies
    • Parity test pinning list functions to Check
    Read more →
  5. 1 min read

    Melange v0.9.1

    FixesCLI

    Melange v0.9.1 is a build fix: go install github.com/pthm/melange@latest now resolves and builds cleanly. If you install the CLI from source, upgrade past v0.9.0.

    • go install github.com/pthm/melange@latest builds again
    Read more →
  6. 2 min read Breaking

    Melange v0.9.0

    CLI

    Melange v0.9.0 restructures the repository into a cleaner module layout and, as part of that, changes how the CLI is installed. There are no runtime or generated-SQL changes — your Check and List call sites, and the SQL melange migrate …

    • New install path: go install github.com/pthm/melange@latest
    • Cleaner module layout
    • No runtime or generated SQL changes
    Read more →

v0.8 7 releases

  1. 5 min read Run migrate

    Melange v0.8.6

    FixesPerformanceGenerated SQLDocs

    Melange v0.8.6 fixes six cases where ListObjects and ListSubjects returned the wrong set — over- or under-reporting subjects under exclusions, wildcards, and usersets — and trims another round of redundant SQL out of every generated …

    • Six ListObjects and ListSubjects fixes for exclusions, wildcards and usersets
    • Leaner generated SQL
    • Performance reference based on real measurements
    Read more →
  2. 5 min read Run migrate

    Melange v0.8.5

    FixesPerformanceGenerated SQL

    Melange v0.8.5 is a performance and correctness release for list_accessible_objects and list_accessible_subjects. It came out of #67, where a ~90k-tuple workload reported a 30-second list_accessible_objects and runtimes that grew with the …

    • list_accessible_objects from ~4s to ~12ms on a 90k-tuple workload
    • Dispatch no longer scales with schema size
    • Six list correctness fixes
    Read more →
  3. 6 min read Run migrate

    Melange v0.8.4

    FeaturesGenerated SQLGo runtimeTypeScriptCLI

    Melange v0.8.4 adds two new APIs: Explain, which returns the resolution trace for a single decision, and Expand, which returns an OpenFGA-shaped UsersetTree answering “who has access?”. Both ship as generated SQL functions, Go and …

    • Explain: the resolution trace for one decision
    • Expand: who has access, as a UsersetTree
    • melange explain and melange expand commands
    Read more →
  4. 6 min read Run migrate

    Melange v0.8.3

    FeaturesPerformanceGenerated SQLCLI

    Melange v0.8.3 lands a performance pass on generated check functions — branches now evaluate cheap-first and recursive callees carry an explicit COST hint — plus a schema-derived index recommender that surfaces the composite indexes your …

    • Cheap-first branch ordering and COST hints
    • Schema-derived index recommendations in melange doctor
    • Opt-in AS MATERIALIZED CTE hints
    Read more →
  5. 5 min read Run migrate

    Melange v0.8.2

    PerformanceGenerated SQLGo runtime

    Melange v0.8.2 is a performance release. Permission checks that carry contextual tuples are now 12–20× faster, the recursive list_*_sub codegen takes its cheap fast path on a wider class of parent relations, and the release pipeline is now …

    • 12-20x faster checks with contextual tuples
    • Wider fast path for recursive list_*_sub
    • Automated release pipeline
    Read more →
  6. 4 min read Run migrateSecurity fix

    Melange v0.8.1

    FixesGenerated SQLGo runtimeCLI

    Melange v0.8.1 is a patch release fixing contextual tuples being silently ignored with custom database schemas, along with several other custom schema bug fixes, SQL injection hardening, and expanded test coverage.

    • Contextual tuples no longer ignored with custom schemas
    • check_permission_bulk and melange doctor fixed for custom schemas
    • Hardened SQL quoting for schema names
    Read more →
  7. 5 min read Run migrateBreaking

    Melange v0.8.0

    FeaturesGenerated SQLCLIDocs

    Melange v0.8.0 adds modular model support (fga.mod / Schema 1.2) for splitting schemas across multiple files, configurable database schema for installing melange objects into a custom PostgreSQL schema, and safe identifier truncation to …

    • Modular models (fga.mod, Schema 1.2)
    • Install melange into a custom PostgreSQL schema
    • Safe truncation of long identifiers
    Read more →

v0.7 5 releases

  1. 3 min read Run migrate

    Melange v0.7.4

    FeaturesCLI

    Melange v0.7.4 adds the melange generate migration command for integrating with external migration frameworks, introduces two-phase skip detection to the built-in migrator, and includes new unit tests and documentation improvements.

    • melange generate migration for external migration frameworks
    • Two-phase skip detection in the built-in migrator
    • Simpler configuration
    Read more →
  2. 5 min read Run migrate

    Melange v0.7.3

    FeaturesFixesGenerated SQLCLI

    Melange v0.7.3 adds the new melange init command for interactive project scaffolding, fixes four bugs where list_objects and list_users returned incorrect results, and adds several improvements to melange doctor including table index …

    • melange init project scaffolding
    • Four list function fixes
    • melange doctor index recommendations and orphaned tuple detection
    Read more →
  3. 3 min read Run migrate

    Melange v0.7.2

    FeaturesFixesGenerated SQLCLI

    Melange v0.7.2 adds performance linting to the melange doctor command and fixes two bugs reported by community contributors.

    • Performance linting in melange doctor
    • list_objects fix for closure userset patterns
    • Uppercase relation names no longer break re-migration
    Read more →
  4. 3 min read Run migrate

    Melange v0.7.1

    FixesGenerated SQLTypeScript

    Melange v0.7.1 is a patch release fixing two bugs reported by community contributors, along with security dependency upgrades and testing improvements.

    • list_accessible_subjects fix for TTU with implied parent relations
    • TypeScript listObjects and listSubjects pagination fix
    • TypeScript dev dependency upgrades
    Read more →
  5. 5 min read Run migrate

    Melange v0.7.0

    FeaturesFixesGenerated SQLGo runtimeTypeScript

    Melange v0.7.0 introduces the Bulk Check API for batching multiple permission checks into a single SQL call, alongside multi-driver testing, module layout improvements, and a bug fix for intersection parsing.

    • Bulk Check API: many checks in one SQL call
    • Fix for intersections with tuple-to-userset unions
    • Multi-driver integration tests
    Read more →

v0.6 1 release

  1. 7 min read

    Melange v0.6.4

    FeaturesPerformanceTypeScriptDocs

    The first project-ready preview of Melange is here, featuring major performance optimizations (2-5x faster list operations), comprehensive testing, and TypeScript support.

    • 2-5x faster list operations
    • TypeScript client
    • Expanded test infrastructure and developer tools
    Read more →

v0.5 1 release

  1. 3 min read Pre-release

    Melange v0.5.1 - Preview

    FeaturesFixesGenerated SQL

    This is likely the final preview release, featuring a complete SQL generation architecture refactoring and cursor-based pagination.

    Read more →

v0.4 1 release

  1. 2 min read Pre-release

    Melange v0.4.3 - Preview

    FeaturesTypeScriptCLI

    Restructuring the project for language-agnostic use and multi-language client support.

    Read more →

v0.3 1 release

  1. 1 min read Pre-release

    Melange v0.3.0 - Preview

    FeaturesPerformanceGenerated SQL

    Fully generated SQL functions, removing the need for runtime model tables and delivering significant performance improvements.

    Read more →

v0.2 1 release

  1. 1 min read Pre-release

    Melange v0.2.0 - Preview

    FeaturesPerformanceGenerated SQL

    Major feature additions including comprehensive OpenFGA pattern support, performance optimizations, and documentation.

    Read more →

v0.1 1 release

  1. 1 min read Pre-release

    Melange v0.1.0 - Preview

    FeaturesGenerated SQLGo runtime

    The first pre-release of Melange, an OpenFGA-compatible authorization library that runs entirely in PostgreSQL.

    Read more →