Skip to content

Releases: contentful-userland/contentful.ex

v0.6.0

25 Jun 17:26
85adb3e
Compare
Choose a tag to compare

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

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

Release 0.5.0

02 Feb 14:56
83949c6
Compare
Choose a tag to compare

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

16 May 18:00
71d3c38
Compare
Choose a tag to compare

Fixes

  • fixes a formatting error in the docs - thanks @OldhamMade
  • lots of repo cleanup and dependency updates

See https://hex.pm/packages/contentful/0.4.1

Release v0.4.0

13 Jul 12:44
cde53cd
Compare
Choose a tag to compare

This release contains additions to the Query DSL.

Changes

  • [#49] by @floriank adds more options to compose your queries against the CDA and CPA.

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

02 Jul 08:22
dd71b88
Compare
Choose a tag to compare

This release contains one bugfix:

  • #47 - Handle bitstring case when resolving assets (thank you, @aspala)

Bugfix Release v0.3.1

17 Jun 13:56
24f7876
Compare
Choose a tag to compare

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.