Releases: contentful-userland/contentful.ex
Releases · contentful-userland/contentful.ex
v0.6.0
What's Changed
- BREAKING Replace links in "fields" with linked to entites from "includes" by @WillRochaThomas in #181 - thanks @WillRochaThomas! (and sorry for the wait)
- various dependency upgrades
New Contributors
- @WillRochaThomas made their first contribution in #181
Full Changelog: v0.5.0...v0.6.0
Release 0.5.0
What's Changed
contentful.ex
now requires elixir~> 1.10
- Thanks to @OldhamMade, support for tesla has been added in #97, so people can replace their http adapter
- Dependency updates
Release v0.4.1
Fixes
- fixes a formatting error in the docs - thanks @OldhamMade
- lots of repo cleanup and dependency updates
Release v0.4.0
This release contains additions to the Query DSL.
Changes
Overview
Added by/2
by/2
allows you to add collection filters as described in the API Docs to your queries against Entries
and Assets
.
Example
import Contentful.Query
alias Contentful.Delivery.Entries
{:ok, entries, total: 1}
= Entries
|> content_type("dogs")
|> by(name: "Hasso", breed: "dalmatian")
|> fetch_all
The filters supported here are [:in, :nin, :ne, :lte, :gte, :lt, :gt, :match, :exist]
:
import Contentful.Query
alias Contentful.Delivery.Entries
{:ok, entries, total: 100}
= Entries
|> content_type("dogs")
|> by(name: [ne: "Hasso"], breed: "dalmatian")
|> fetch_all
You can use any field
to query, as well as the id
of an entry or asset.
Added search_full_text/2
Allows the addition of a query
to perform a search over all fields of an entry.
Example
{:ok, nyan_cats, total: 616}
= Entries
|> search_full_text("Nyancat")
|> fetch_all
Bugfix Release v.0.3.2
Bugfix Release v0.3.1
This release adds several bugfixes:
- #37 Fixed an error preventing corrent entity resolution for assets (thanks @OldhamMade)
- #44 Adds missing common properties to content types, assets entries (thanks @OldhamMade)
- #36 Added dependabot for keeping dependencies up to date
- #9 Added the ability to specify an endpoint other than the Delivery API
- Improved some README sections about how to query certain entities
Shoutouts go to @OldhamMade and @zaeemarshad who had to wait 4 years for a fix to #9.