Skip to content

v0.6.0

Latest

Choose a tag to compare

@s3cur3 s3cur3 released this 09 Oct 17:30
· 4 commits to main since this release
954dee7
  • Added Jump.CredoChecks.AvoidModifyingStructBeforeChangeset, which flags structs that are modified (via %{struct | field: value}, Map.put/3, struct/2, a local helper function, etc.) before being passed into a changeset function. Values set this way aren't tracked as changes, so they bypass all changeset validation, and an update silently won't save them. (#43, #45, #46)
  • Two big improvements to Jump.CredoChecks.UseObanProWorker:
    • Flag process/1 callbacks that expect string keys in the job args when the worker declares an args_schema. (The args_schema ensures the worker will only ever be called with atom keys in the args.)
    • Add supported_worker_modules (default: [Oban.Pro.Worker]) so project-specific wrappers can be treated as equivalent to use Oban.Pro.Worker. (#35)
  • Jump.CredoChecks.UndeclaredExternalResource no longer treats an aliased module bound to the name File (alias MyApp.Files.File) as Elixir's File, so File.t() in a @spec no longer reports a missing @external_resource (#38, courtesy of new contributor @ck-work00).
  • Fixed a bug in Jump.CredoChecks.VacuousTest around as: aliases (#42, courtesy of first-time contributor @mrezentes)
  • Improvements to Jump.CredoChecks.AssertReceiveTimeout:
    • It now resolves a timeout held in a module attribute (@timeout 5_000) when the attribute is assigned once with an integer literal, instead of flagging it as unverifiable (#37, courtesy of new contributor @ck-work00).
    • Its max_refute_receive_timeout now also flags PhoenixTest refute_has calls that pass an explicit :timeout longer than the configured maximum. (#41)
  • Miscellaneous chores and deps updates
    • Bump ex_doc from 0.40.3 to 0.40.4 by @dependabot[bot] in #34
    • Bump igniter from 0.8.3 to 0.8.4 by @dependabot[bot] in #36
    • test (Igniter): Ensure Igniter install task is always up to date by @s3cur3 in #44

Full Changelog: v0.5.0...v0.6.0