- (Enhancement) Fix warnings in Ecto 3.2 for custom types
- (Dependency Relax) Require
ecto >= 2.1.0 - (Enhancement) Add
allow_urlsas an an alternative toallow_pathsfor fetching remote files - (Bugfix) updated_at timestamps now truncate to the second
- (Bugfix) Fix Dialyzer warning
- (Bugfix) Add missing Dialyzer type
- (Dependency Update) Require
ecto ~> 2.1 or ~> 3.0
- (Dependency Update) Require
arc ~> 0.11.0
- (Dependency Update) Require
arc ~> 0.10.0
- (Dependency Update) Require
arc ~> 0.9.0
- (Enhancement) Use
NaiveDateTimeinstead ofEcto.DateTime. - (Dependency Update) Require
ecto ~> 2.1
- (Enhancement) Add
deleteoverride to the ArcEcto module. - (Dependency Update) Require
arc ~> 0.8.0
- (Dependency Update) Require
arc ~> 0.7.0
- (Dependency Update) Require
arc ~> 0.6.0 - (Behavior Change) Only allow casting a
%Plug.Upload{}by default. If you would like to cast local paths (take caution), you may pass inallow_paths: true. Note: This should be used with caution, as there are security implications with uploading local paths from a user-submitted form.
Example:
params = "/path/to/my/file.png"
cast_attachments(%User{}, params, ~w(avatar), allow_paths: true)- (Bugfix) Set column to
nilwhen casting anilavatar
- Relax Ecto dependency to
~> 2.0
- (Bugfix) Don't add version timestamp to signed urls
- (Enhancement) Allow database columns to be loaded without a timestamp. Useful for migrations from other image upload systems or formats.
- (Enhancement) Upgrade to Ecto 2.0rc-3
Upgrade instructions from 0.3.x to 0.4.x:
- ArcEcto follows Ecto in the renaming of
ModeltoSchema. In your definitions, wherever you haduse Arc.Ecto.Model, replace withuse Arc.Ecto.Schema - ArcEcto follows Ecto in the usage of a singular
paramshash tocast_attachmentsrather than a set ofoptionalandrequiredparams. ArcEcto encourages the usage of acast_attachmentscall followed by avalidate_required.
- (Bugfix) Relax Arc dependency to ~> 0.2 to support 0.3.0
- (Bugfix) Allow params objects with atom keys.
- (Dependency Update) Require v0.2.0 of arc.
- (Behavior Change)
arc_ectowill now apply all%Ecto.Changeset{}changes withincast_attachmentsto the root model prior to passing the model toarcas a scope.
- (Bugfix) Support the
:emptyvalue for given params
- Relax
ectodependency to>= 0.10.0to support Ecto v1.0.0