Releases: netglue/prismic-client
Releases · netglue/prismic-client
prismic-client 1.1.0-RC1
Added
- #68 adds the
Prismic\RetryingClient
. This proxy client decorates an existing client and retries queries that fail against a preview ref or a release ref against the master ref and stores the previous exception for inspection. The main use-case for this feature is so that you can more easily catchPreviewTokenExpired
exceptions when it is not possible to catch them in an HTTP request/response cycle. For example, when you are querying the repo in order to set up routes before a request has been dispatched. An example middleware might inspect the client for itslastRequestFailure()
and destroy the preview request cookie when the exception is of the typePreviewTokenExpired
.
Changed
- #66 - Removes dev requirement for
ext-apcu
by using an in-memory cache adapter
Deprecated
- #67 deprecates
ApiClient::findByBookmark()
, bookmark related methods inValue\ApiData
and theValue\Bookmark
class because the feature is being deprecated by Prismic as noted in issue #60
Removed
- Nothing.
Fixed
- Nothing.
prismic-client 1.0.0
Added
- Nothing. First stable is pretty much the same at
0.8.0
Changed
- Changes the PHP constraint so that it is not automatically assumed this will run on 8.2
Deprecated
- Nothing.
Removed
- Removes the constant
PreviewTokenExpired::EXPECTED_ERROR_MESSAGE
.
Fixed
- Nothing.
prismic-client 0.8.0
Added
- #49 ensures PHP 8.1 support by bumping the minimum versions of several, (mostly dev) dependencies
Changed
- Continued improvements with type annotations.
Deprecated
- #57 deprecates the constant
PreviewTokenExpired::EXPECTED_ERROR_MESSAGE
Removed
- Nothing.
Fixed
- #57 fixes detection of expired preview tokens that was broken by an API change by @prismicio - The error message has completely changed in this scenario without any warning… FFS.
prismic-client 0.7.0
Added
- Added Psalm static analysis to the code base.
Changed
- BC Break: Changed the return type of
\Prismic\ResultSet::getIterator()
fromiterable
toTraversable
. This is unlikely to cause any problems if you are using the shippedTypicalResultSetBehaviour
trait. - BC Break:
\Prismic\Document\Fragment\Embed
is now final - BC Break:
\Prismic\Document\Fragment\Span
is now final - BC Break: Changed return type of
\Prismic\Value\FormSpec::getIterator()
toTraversable
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
prismic-client 0.6.1
prismic-client 0.6.0
Added
- Pull #24: The
Stringable
interface has been added to a number of Types.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
prismic-client 0.5.0
Added
- Nothing.
Changed
- Nothing.
Deprecated
-
#19 Deprecates
ApiData::tags()
.
The list of tags returned by the remote has been deprecated and will start returning an empty set "soon" and later on, the property will be completely removed. This pull updates code for forward compatibility but that doesn't help you to get a list of used tags in your repository 🤷♂️There's a blog post about it here.
Removed
- Nothing.
Fixed
- Nothing.
prismic-client 0.4.4
Added
- Nothing.
Changed
- #18 makes some inconsequential changes to CS and migrates CI to use the ridiculously good Laminas CI matrix action.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
prismic-client 0.4.3
Added
- Nothing.
Changed
- Added PHP 8.0 to the build matrix and updated composer constraints to indicate PHP 8.0 support.
- Update PHPUnit config for compatibility with 9.x
- Removed coding standard customisations and fixed project wide so that CS is consistent with Doctrine/Slevomat
- Bump minimum http discovery lib to 1.11 and change usage of deprecated method
findUrlFactory
tofindUriFactory
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
prismic-client 0.4.2
Added
- Nothing.
Changed
- Because oEmbeds may have a string for width and height, the accessors for these properties will return null in the case where a string is present. The original attribute value can still be retrieved.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- An oEmbed with a string width or height such as "100%" will no longer cause an exception.