lucky v0.24.0 Release Notes

Release Date: 2020-09-05 // over 3 years ago
    • Fixed: send_text_response default status to nil #1214
    • ➕ Added: data method for Actions to return file contents #1220
    • ⚡️ Updated: Component m is renamed to mount #1226
    • ⚡️ Updated: Components with UrlHelpers like current_page? #1228
    • ➕ Added: optional param routing #1229
    • ⚡️ Updated: docs on accept_format #1234
    • ⚡️ Updated: generator templates to use getter methods over instance variables #1236
    • ⚡️ Updated: our community to use Discord for community chat room #1237
    • ⚡️ Updated: compile-time error when path params are defined with dashes #1238
    • ⚡️ Updated: path helpers to render query params even if default value is passed #1239
    • ⚡️ Updated: redirect_back to disallow external referrers by default with config option #1241
    • 0️⃣ Updated: generated api apps will use disable_cookies by default #535 in Lucky CLI
    • 🛠 Fixed: generating an app with the name "app" will raise an error #543 in Lucky CLI
    • ⚡️ Updated: AppClient renamed to ApiClient #534 in Lucky CLI
    • 🚀 Updated: generated projects to use --ignore-crystal-version flag when running shards install. NOTE: this is a temporary update, and will be reverted in a future release. Read Crystal Blog See commit
    • ➕ Added: ability to set default values on model columns #424 in Avram
    • ➕ Added: file_attribute for operations to specify a file from params #428 in Avram
    • ➕ Added: new Database.delete strategy for cleaning up data in specs #426 in Avram
    • Added: create_function and drop_function to create SQL functions #427 in Avram
    • ⚡️ Updated: Avram::PostgresURL renamed to Avram::Credentials with a new interface #433 in Avram
    • Added: create_trigger and drop_trigger to create SQL triggers #436 in Avram
    • Added: association _count method to easily return a count of a has_many association #392 in Avram
    • ➕ Added: new Pulsar shard for pub/sub style communication in Lucky See Pulsar
    • ➕ Added: Pulsar instrumentation to Avram for subscribing to queries #441 in Avram
    • ➕ Added: support for Array(Float64) in databases #443 in Avram
    • Updated: fill_existing_with option on add_belongs_to in migrations #444 in Avram
    • ➕ Added: Box.build_attributes method to build the attributes of a model in specs #449 in Avram
    • 🛠 Fixed: blank strings causing parse exceptions in save operations #448 in Avram
    • Updated: LuckyRouter with many performance and structural refactors #28, #30, #31, #32