Skip to content

Releases: netglue/prismic-client

prismic-client 1.1.0-RC1

22 Nov 12:57
1.1.0-RC1
5180bbf
Compare
Choose a tag to compare
Pre-release

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 catch PreviewTokenExpired 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 its lastRequestFailure() and destroy the preview request cookie when the exception is of the type PreviewTokenExpired.

Changed

  • #66 - Removes dev requirement for ext-apcu by using an in-memory cache adapter

Deprecated

  • #67 deprecates ApiClient::findByBookmark(), bookmark related methods in Value\ApiData and the Value\Bookmark class because the feature is being deprecated by Prismic as noted in issue #60

Removed

  • Nothing.

Fixed

  • Nothing.

prismic-client 1.0.0

08 Oct 15:27
1.0.0
f8f1a7b
Compare
Choose a tag to compare

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

01 Oct 12:17
0.8.0
035e267
Compare
Choose a tag to compare

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

05 Jul 08:55
0.7.0
57ce43a
Compare
Choose a tag to compare

Added

  • Added Psalm static analysis to the code base.

Changed

  • BC Break: Changed the return type of \Prismic\ResultSet::getIterator() from iterable to Traversable. This is unlikely to cause any problems if you are using the shipped TypicalResultSetBehaviour 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() to Traversable

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

prismic-client 0.6.1

25 Jun 22:42
0.6.1
131900d
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Pull #37 fixes an issue where GeoPoint coordinates would get decoded as integers and cause a type error.
  • #37 also fixes passing non-strings to htmlspecialchars via Laminas Escaper

prismic-client 0.6.0

24 Mar 15:18
0.6.0
9570c39
Compare
Choose a tag to compare

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

03 Mar 10:43
0.5.0
b442526
Compare
Choose a tag to compare

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

02 Mar 12:57
2d7128a
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

prismic-client 0.4.3

24 Nov 13:47
0.4.3
82ff97f
Compare
Choose a tag to compare

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 to findUriFactory

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #16 is fixed via #17 - Ignores preview cookie payloads that contain only tracking information.

prismic-client 0.4.2

01 Jul 10:38
0.4.2
eee9198
Compare
Choose a tag to compare

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.