Skip to content

Releases: nrempel/sleek

v0.5.0

25 May 16:10

Choose a tag to compare

[0.5.0] - 2025-01-25

Fixed

  • BREAKING: Fixed check mode bug where --check with multiple files would incorrectly succeed if the first file was formatted, even when subsequent files were unformatted
  • Check mode now properly validates ALL files before returning success
  • This may cause existing CI/CD scripts to fail if they were unknowingly relying on the buggy behavior

Added

  • Comprehensive integration test suite with 16 new tests covering:
    • Command line flag combinations and edge cases
    • Error handling for invalid inputs and file operations
    • Complex SQL formatting scenarios
    • Multiple file operations with glob patterns
    • Check mode validation with various file states
  • Test for check mode with multiple files (both mixed and all-formatted cases)
  • Tests for lines-between-queries flag with different values
  • Tests for short flag aliases (-i, -U, -l, -n)
  • Tests for combining all CLI flags together
  • Tests for SQL with comments preservation
  • Tests for files without .sql extension
  • Tests for read-only file error handling
  • Tests for empty and whitespace-only input handling

Infrastructure

  • Added regression protection: tests verified to fail with buggy code and pass with fix
  • Improved test coverage from 21 to 37 integration tests

VS Code Extension 0.2.3

25 May 16:21

Choose a tag to compare

[0.2.3] - 2024-12-19

Fixed

  • Fixed extension breaking when latest GitHub release is a VSCode extension release
  • Extension now correctly filters CLI releases from mixed release types
  • Improved release detection logic to handle repositories with both CLI and extension releases
  • Added comprehensive test coverage for release filtering functionality

Technical Changes

  • Modified fetchReleaseData to fetch all releases instead of just latest
  • Added findLatestCliRelease method to identify and sort CLI releases
  • Enhanced error handling for mixed release scenarios

VS Code Extension 0.2.2

25 May 06:24

Choose a tag to compare

[0.2.2] - 2024-12-19

Added

  • Automatic CLI download functionality - extension now downloads Sleek CLI automatically if not found
  • Auto-update checking - checks for Sleek CLI updates every 24 hours
  • Version management commands for viewing current version and update notifications
  • Debug info command for troubleshooting
  • Enhanced error handling and user feedback
  • Improved executable selection logic with version prioritization

Enhanced

  • Better status bar integration with real-time updates
  • Improved configuration handling
  • Enhanced cross-platform support
  • More robust error handling and recovery

Commands Added

  • Sleek: Download CLI - Manually download/update Sleek CLI
  • Sleek: Check for Updates - Check for available CLI updates
  • Sleek: Show Version Info - Display current Sleek CLI version
  • Sleek: Debug Info - Show debugging information

v0.4.0

24 May 15:34

Choose a tag to compare

[0.4.0] - 2025-01-11

⚠️ MAJOR BREAKING RELEASE
This is a significant breaking release with changes across the entire codebase. Users upgrading from v0.3.x should expect:

  • Minimum Rust 1.85+ required (due to Edition 2024 upgrade)
  • CLI behavior changes (boolean flags now require explicit values)
  • Major dependency updates with breaking changes (thiserror 2.x, sqlformat 0.3.x)
  • Runtime behavior changes (stdin processing, newline handling)
  • Build system changes (new clap syntax, modernized toolchain requirements)

Please review the changes below carefully and test thoroughly before upgrading in production environments.

Added

  • Comprehensive integration test suite covering all CLI functionality (c006a77, 5a2941b, ff58275)
  • Support for Rust Edition 2024 (1cb51a0)
  • rust-version specification in Cargo.toml requiring Rust 1.85+ (1cb51a0)
  • New --trailing-newline option to control whether files end with a newline (393a0dd, 2c3071d, ed3ad3a)

Changed

  • BREAKING: Updated to Rust Edition 2024, requires Rust 1.85+ (1cb51a0)
  • BREAKING: Boolean CLI flags now require explicit values (e.g., --uppercase=true instead of --uppercase) (dc5293a)
  • BREAKING: Updated major dependencies with breaking changes: thiserror 1.x → 2.0.12, sqlformat 0.2.x → 0.3.5, clap 4.4.x → 4.5.4
  • BREAKING: Enhanced stdin processing behavior may affect existing scripts (ed3ad3a)
  • Modernized CLI argument definitions to use new clap syntax (3209e1a)
  • Refactored main.rs for better error handling and streamlined file processing (903269b)
  • Simplified file I/O using fs::read_to_string and fs::write (b8629f1, 39f1053)
  • Replaced writeln! with push('\n') for newline handling (685c0b7)

Fixed

  • Fixed typo in error enum: 'Patter' → 'Pattern' (49b9227)
  • Handle uppercase false formatting (aa29cb8)

Infrastructure

  • Enhanced CI/CD configuration and security workflows
  • Updated development tooling and VS Code settings

v0.3.0

30 Apr 14:10

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.3...v0.3.0