lucky v0.20.0 Release Notes

Release Date: 2020-04-09 // about 4 years ago
    • ➕ Added: support for Crystal 0.34.0
    • 🛠 Fixed: error on some generated pages from missing sourcemap #1019
    • Updated: options_for_select to accept more types #295
    • ➕ Added: ability to pass boolean attrs in link helper methods #1032
    • ✂ Removed: setting needs with ?. Lucky now generates a method ending in ? for you when the type is Bool #1034
    • ➕ Added: needs on pages can now be accessed by a method and not just instance variable #1034
    • ✂ Removed: link helper method with a String path. #1035
    • ➕ Added: new Lucky::CookieNotFoundError class. #1038
    • ➕ Added: cookies.deleted?() method for checking if a cookie has been deleted. #1040
    • ➕ Added: new Lucky::Paginator component with built-in styles for different different CSS frameworks. #1020
    • 🛠 Fixed: needs accidentally overwriting methods of the same name. #1046
    • ⚡️ Updated: label_for to be a little more flexible with nil text. #1047
    • ⚡️ Updated: resource generator to be a little easier to read and digest. #1050
    • ⚡️ Updated: development ENV now uses ENV["DEV_PORT"] instead of ENV["PORT"] to fix issues with process managers. #1051
    • ➕ Added: new Lucky::CatchUnpermittedAttribute mixin for Shared::Field component. #1052
    • Added: new methods in Actions for accessing params from different sources like from_json, from_query, from_form, and from_multipart. #1053
    • ⚡️ Updated: generated pages to have some default text pointing to the location of the file to edit. #1057
    • 🛠 Fixed: incorrect pluralization of resources on NewPage. #1058
    • ⚡️ Updated: all action "callbacks" are officially named "pipes". All pipes only log when halted by default. #1062
    • ⚡️ Updated: the lucky dev watcher does not print which file changes because you know you just changed that file. #1065
    • ➕ Added: a new HTTP handler to set the request.remote_address if the X-Forwarded-For header is set. #1059
    • ➕ Added: a current_page? helper method for pages. #1074
    • ➕ Added: FormFields component for generated resources. #1081
    • ⚡️ Updated: all HTML tag methods explicitly return Nil now. #1083
    • ⚡️ Updated: page markup to render directly to the IO instead of creating an additional string. #1084
    • ➕ Added: String#squish method. #1085
    • ⚡️ Updated: error message from returning invalid type in Actions. #1086
    • ➕ Added: ability to set custom directory when generating a new Lucky project See LuckyCli
    • ➕ Added: ability to set your postgres DB port with ENV var. See LuckyCli
    • ➕ Added: a robots.txt file to generated web apps by default. See LuckyCli
    • ➕ Added: new compiling spinner graphic for a cleaner UX. See LuckyCli
    • ⚡️ Updated: some comments on the generated main app file. See LuckyCli
    • ➕ Added: lots of internal documentation. (many small commits to LuckyCli)
    • ⚡️ Updated: generated UserSerializer to inherit from BaseSerializer. See LuckyCli
    • 👀 Updated: cookies to default to http_only. See LuckyCli
    • ⚡️ Updated: node dependencies in generated web apps. See LuckyCli
    • 🔨 Added: new system_check script along with some refactors to make checking that your app is setup a lot easier. See LuckyCli
    • ✂ Removed: ability to pass a raw hash to an Avram::SaveOperation. See Avram
    • Added: ability to skip_schema_enforcer for certain models. See Avram
    • ➕ Added: Avram::Model#reload to reload all of the attributes that may have been updated since the instance was created. See Avram
    • ➕ Added: Query#reset_where to reset the WHERE clause on a specific column. See Avram
    • ➕ Added: logging queries that fail. See Avram
    • Fixed: using fill_existing_with when you already had data in your table. See Avram
    • ➕ Added: bulk updating records straight from a query object. See Avram
    • ➕ Added: new "soft delete" feature. See Avram
    • 🛠 Fixed: saving empty array columns when the column can't be nil, but it can be []. See Avram
    • ⚡️ Updated: SaveOperation.new to set attributes directly. See Avram
    • ✂ Removed: the on option for needs in SaveOperation. See Avram
    • 🛠 Fixed: connecting to databases running on a unix domain socket. See Avram
    • ➕ Added: new shard for turning an Avram column in to a URL slug. AvramSlugify