Skip to content

Releases: luckyframework/habitat

v0.4.8

16 Sep 01:27
0b03148
Compare
Choose a tag to compare

This release is mainly just code cleanup.

v0.4.7

23 Mar 23:31
Compare
Choose a tag to compare

This release widens the version constraint for Crystal allowing it to be installed with Crystal 1.0

v0.4.6

09 Mar 16:23
1716596
Compare
Choose a tag to compare

This release contains a new feature for extending Habitat by reopening a configured container:

# defined in some shard
class Server
  Habitat.create do
    # some setttings
  end
end

# defined in your code
class Server
  Habitat.extend do
    # some more settings you need
  end
end

v0.4.4

26 Jun 20:09
9e71caf
Compare
Choose a tag to compare

This release adds a new validation option to your settings.

Habitat.create do
  setting pin : String, validation: :validate_pin_format
end

def self.validate_pin_format(value : String)
  value.match(your_special_format) || Habitat.raise_validation_error("Nope.. try again")
end

We have also renamed the Settings class to HabitatSettings for less chance of naming conflicts in your apps. Lastly, this release will now catch your default value if it raises an exception.