Skip to content

PhoenixKit 1.7.17: mix phoenix_kit.update no longer damages config.exs

PhoenixKit 1.7.17 fixes a bug in mix phoenix_kit.update that could break config/config.exs.

While tidying the Oban configuration, the task replaced any comment line ending in ] or , with just that character, so valid commented-out config turned into syntax errors. That clean-up step is gone. The step that adds the db_sync queue to Oban now only looks at active config, not at commented-out lines.

Upgrading

If an earlier update left stray ] or , lines in config/config.exs, fix them by hand.

Full release notes: PhoenixKit 1.7.17

1.7.17 · 30 December 2025

Fixed

  • Critical: Greedy regex corrupting config files - Fixed cleanup_oban_config_syntax/0 function that was corrupting valid commented configuration in config/config.exs during mix phoenix_kit.update (#268)
    • Removed ~r/#[^\n]*\]\s*\n/ regex that matched ANY commented line ending with ]
    • Removed ~r/#[^\n]*,\s*\n(\s*)(\w)/ regex that matched ANY commented line ending with ,
    • These regexes would replace entire valid comment lines with just ] or ,, causing syntax errors
  • Inconsistent regex in ensure_db_sync_queue - Added missing ^ anchor and m multiline flag to match pattern used in other queue functions, preventing accidental matches on commented-out config

PhoenixKit 1.7.17. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.