Skip to content

Releases: sultaniman/every

Cookies

10 Nov 11:20
Compare
Choose a tag to compare

Updates

This release has only minor updates

  • Update packages,
  • Remove unused config,
  • Cleanup mixfile.

✨πŸͺ✨

SpΓ€tkauf

26 Apr 12:27
Compare
Choose a tag to compare

Updates

This release is small and has incremental improvements

  • Update packages,
  • Cleanup unused code,
  • Add community related papers like contributing, code of conduct,
  • Add credo and inch to inspect and analyse code.

βœ¨πŸ—½βœ¨

Tidyverse

14 Dec 12:10
7c0e1b0
Compare
Choose a tag to compare

Improvements

  • Added code of conduct.

Breaking changes

  • Removed deprecated functions minutes(interval, nil) and hours(interval, nil).

Happy holidays!

🌟 πŸŽ„ 🌟

Hello Every!

31 Oct 07:10
Compare
Choose a tag to compare

Improvements

This release has only minor adjustments in documentation and examples.
Also makes return values Process.send_after/3 friendly.

Breaking changes

Now default resolution is in milliseconds so you don't have to manually convert seconds into milliseconds.

# Lets say we want to trigger our task every 5 minutes and current time is 12:02
# so next calls will be at 12:05, 12:10 ... 12:55 ...
Process.send_after(self(), :work, Every.minutes(5))

# If we want to trigger every minute
Process.send_after(self(), :work, Every.minute())

# If we want to trigger every hour
Process.send_after(self(), :work, Every.hour())

# If we want to trigger every 2 hours
Process.send_after(self(), :work, Every.hours(2))

# If we want to trigger every day
Process.send_after(self(), :work, Every.day())

πŸŒŸπŸŽƒ 🌟

Hacktoberfest!

26 Oct 17:41
Compare
Choose a tag to compare

Thanks for @janpieper for awesome refactoring and bug fixing!

Improvements

  • Drop use Timex to avoid unnecessary third party module aliasing,
  • Clean up @moduledoc and @doc,
  • Use Timex for calculations instead of doing it manually,
  • Fix a bug with calculating the interval in hour/1 and hours/2,
  • Parse datetime in setup and pass as context into tests to parse only once,
  • Test hours/2 instead of hour/1 in doctest for hours/2 πŸ˜‰.

Deprecations

  • minutes(interval, nil) and hours(interval, nil) are deprecated and using them will log warnings.

#hacktoberfest

🌟 🍰 🌟

Every.day

20 Oct 09:07
Compare
Choose a tag to compare

Improvements

  1. Documentation fixes,
  2. Credo as a linter,
  3. Hound to run linter.

Features

Now you can calculate intervals until next day using Every.day/1

Process.send_after(self(), :work, Every.day() * 1000)

✨🍰✨

Catch bugs

15 Oct 06:49
Compare
Choose a tag to compare

This version is bug fix for wrong hour interval calculation.

πŸš€πŸžπŸš€

Every time do ... X

14 Oct 16:32
Compare
Choose a tag to compare

This is initial release published on hex.pm.

✨🍰✨

Initial release

14 Oct 16:03
Compare
Choose a tag to compare

✨🍰✨