All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
7.3.1 (2023-10-11)
7.3.0 (2023-10-09)
- add
@prismicio/client/richtext
entry (#318) (fb555fd) - helpers: support attribute shorthand for map serializer (#321) (b43557d)
- support expired and not-found ref API errors (#327) (26d5b0f)
- support extended media API response (#326) (5e5d057)
7.2.0 (2023-08-25)
7.1.1 (2023-08-11)
- reduce the return type of
unstable_mapSliceZone()
to only include necessary properties (#308) (d52cdfd) - throw
NotFoundError
when a document cannot be found (#316) (74fce89)
7.1.0 (2023-06-07)
- add
unstable_mapSliceZone()
(#302) (9e604d3) - customtype: support new format property (#295) (c68a557)
7.0.1 (2023-05-22)
7.0.0 (2023-05-17)
Check out the migration guide for how to migrate to @prismicio/client
v7
6.8.0 (2023-05-15)
- release: 6.8.0 (4a3773e)
6.7.3 (2022-12-19)
6.7.2 (2022-12-19)
- wrong example (7dababc)
7.0.0-alpha.5 (2023-05-16)
- rename config
htmlRichTextSerializer
toserializer
- rename config
htmlRichTextSerializer
toserializer
(b4bdf7f)
7.0.0-alpha.4 (2023-05-09)
- add
fetchOptions
parameter to controlfetch()
(#289) (88bb32d) - client: warn when non-.cdn endpoints are used #284 (81ab2bf)
- support Web API
Request
s containing partial URLs (#286) (f2e8895)
- mark
optimize
option as[@experimental](https://github.com/experimental)
(343534f) - wording and style (0801785)
7.0.0-alpha.3 (2023-04-28)
7.0.0-alpha.2 (2023-04-22)
- export
AsLinkAttrsConfig
(3957ab5)
7.0.0-alpha.1 (2023-04-20)
- change
LinkResolver
's default return type tostring | null | undefined
- add
asLinkAttrs()
helper (#282) (a520aa4) - add
getToolbarSrc()
helper (#281) (f0e768c) - add
HTMLRichTextSerializer
export (014f15e) - change
LinkResolver
's default return type tostring | null | undefined
(3e1fc53), closes #273 - optimize concurrent queries via shared network requests (7b72988)
- port downstream changes from
@prismicio/helpers
and@prismicio/types
(409a6d6)
- delete
fetch
job even if the network request rejects (92dd2e7) - export helper types from the correct locations (21375d1)
- organize types, errors, and imports (#275) (90245e2)
- rename
HTMLSerializer
toHTMLRichTextSerializer
(84088d6) - rename
predicate
tofilter
(6e45c28) - replace nullish coalescing with
||
or ternaries (#280) (d4720ad) - use backwards compatible
||=
syntax (b021748)
- add comment about
fetchJobs
strategy (3fcdb42) - port #271 fix (a3a6609)
- update documentation links (af81b62)
- add "custom" header to
.prettierignore
(325505d) - deprecate
orderings
string values, resolves #269 (#279) (25b9019) - deps: inline
escape-html
(530e49b) - deps: maintain dependencies (4a25c66)
- deps: update all dependencies (0b0eaee)
- update
.prettierrc
import order (74ddbe9) - update LICENSE (d94a9e8)
7.0.0-alpha.0 (2022-10-14)
- refactor
ImageField
for betterisFilled.image()
compatibility (44369fa)
- merge
helpers
andtypes
, remove deprecated APIs (3201188) - remove deprecated APIs (610ddbc)
- update
.github
(9600113)
- fix comment typos (9b8aee0)
6.7.1 (2022-09-08)
6.7.0 (2022-08-23)
6.6.4 (2022-08-06)
6.6.3 (2022-07-26)
6.6.2 (2022-07-21)
6.6.1 (2022-06-22)
6.6.0 (2022-06-17)
- deps: upgrade dependencies (ed571d7)
6.5.1 (2022-05-31)
6.5.0 (2022-05-26)
6.4.3 (2022-04-15)
- add
limit
to allgetAll*()
methods (fixes #233) (#234) (7d3e4c3) - optimize
pageSize
when alimit
less thanpageSize
is given (#236) (3bec394)
6.4.2 (2022-03-23)
6.4.1 (2022-03-10)
6.4.0 (2022-03-10)
- rename
graphqlFetch()
tographQLFetch()
(c1651ba)
- return default URL
resolvePreviewURL()
does not resolve a string URL (#226) (8b5a689) - use
pageSize
fromdefaultParams
if given when callingdangerouslyGetAll()
(0787631)
6.3.0 (2022-02-16)
- add
getRepositoryEndpoint()
,getRepositoryName()
,isRepositoryName()
,isRepositoryEndpoint()
; deprecategetEndpoint()
(#222) (27bf0ee) - support providing a repository name to
createClient()
in place of an API endpoint (#224) (8c88382)
6.2.0 (2022-02-04)
- minify GraphQL queries by removing whitespace (#219) (96cad0b)
- resolve
'document.tags' expected a [list] of 'string' literals
error when using tag methods with a single tag (50c78f7)
- fix caching example by using
.clone()
method (#218) (52b455c) - remove version-specific docs link (b141ba7)
- deps: update dependencies (5452f87)
- remove
type-fest
dependency (f1d8124)
6.1.1 (2022-01-28)
6.1.0 (2022-01-18)
- add
getGraphQLEndpoint
andClient.prototype.graphqlFetch
(9b5a126)
- simplify graphqlFetch by unsupporting
RequestInfo
andRequestInit
(580c4d5)
- add build step to test script (1d0a8a7)
- add custom-timeout example (#205) (d4e55d4)
- add size limit (8eb5170)
- deps: maintain dependencies (2f337a3)
- deps: update dependencies (7e1746a)
6.0.0 (2022-01-05)
Check out the migration guide for how to migrate to @prismicio/client
v6
6.0.0-beta.5 (2021-12-21)
- ensure Prismic Rest API V2 endpoint is used (#203) (18faf65)
- throw NotFoundError if repository does not exist (bf7b862)
- update README links [skip ci] (298e062)
- deps: update dependencies (3c8414d)
6.0.0-beta.4 (2021-12-03)
- add predicate aliases for smoother upgrade path (4a1f49c)
- deps: maintain dependencies (6250df3)
6.0.0-beta.3 (2021-11-09)
6.0.0-beta.2 (2021-10-30)
- revert to providing access token via URL parameter (7a5140e)
6.0.0-beta.1 (2021-10-25)
- add
getBySomeTags
, renamegetByTags
togetByEveryTag
(#194) (37385dc) - extend all custom errors from PrismicError (c4be6ce)
- use authorization header for access token (#192) (42af240)
6.0.0-beta.0 (2021-09-29)
6.0.0-alpha.15 (2021-09-14)
- update @prismicio/types and @prismicio/helpers (c4e00a1)
6.0.0-alpha.14 (2021-09-14)
- update dependencies (a383ec7)
6.0.0-alpha.13 (2021-09-10)
6.0.0-alpha.12 (2021-09-09)
- use API types from
@prismicio/types
(632c2ae)
6.0.0-alpha.11 (2021-08-24)
- provide routes as top-level client options (69f2002)
- update dependencies (d70c228)
6.0.0-alpha.10 (2021-08-19)
- update dependencies (1d7723f)
6.0.0-alpha.9 (2021-08-17)
- allow optional Link Resolver in resolvePreviewURL (4321921), closes #183
- mark
resolvers
as optional in Routes (d84658a) - use "main" as primary branch (c4c02e6)
- revert previous commit (a0cf5cb)
- update dotfiles per standard template (5f4dee0)
- update pull request template (f618d62)
6.0.0-alpha.8 (2021-07-06)
- support unauthorized repository response (022d278)
- use access_token URL parameter over Authorization header (#182) (4c44109)
- deps: update examples dependencies (1c8f2b2)
6.0.0-alpha.7 (2021-07-03)
- use
in
predicate for getByIDs (fc522a2)
6.0.0-alpha.6 (2021-07-03)
6.0.0-alpha.5 (2021-06-27)
- use @prismicio/helpers for resolvePreviewURL (2db45d2)
5.1.0 (2021-06-11)
6.0.0-alpha.4 (2021-06-23)
- support global fetch if provided explicitly (d22ae21)
6.0.0-alpha.3 (2021-06-23)
- support Route Resolver with routes param (063b5ee)
- resolve issue using global fetch (83c6290), closes #180
- throw if an invalid fetch function is given (ec01c59)
- simplify SimpleTTLCache and add internal docs (f255a27)
6.0.0-alpha.2 (2021-06-11)
- rename license file (f496697)
6.0.0-alpha.1 (2021-06-07)
- use cjs export to support non-esm (63219e8)
- add test dir format script (e4594f5)
- add internal comments (61d4c14)
5.0.0 (2021-05-27)
- release: 5.0.0 fix (ed15e96)
6.0.0-alpha.0 (2021-05-27)
5.0.0-alpha.1 (2021-05-27)
- fix release script (23bcc88)
5.0.0-alpha.0 (2021-05-27)
- add "query from" methods and replace ref with release (7d894a5)
- add getAllByIDs (297a70c)
- add getTags (164c8d5)
- add initial client (ee886bd)
- add release-specific methods (wip) [skip ci] (4f66405)
- add resolvePreviewUrl (53ed409)
- export HttpRequestLike (96f1e1e)
- export predicates under root package (18d742c)
- expose HTTPError (fdf370a)
- restore form type (c38e067)
- restore ref methods and scope release methods (1ff8f72)
- use normalized HTTPError (0eb9fab)
- asc orderings direction should not be included in query (46431fd)
- clone responses for better cache support (67ef2ba)
- correct typings and predicate generation fn (c81da44)
- export types using
export type
(a1fad4a) - getByIds should return paginated results (fb94561)
- ignore nullish ordering param (51e53b7)
- use correct uid predicate for getByUID (5735d28)
- widen types of fetch-related APIs (412205b)
- add comment to server-usage example (b04d359)
- add custom-caching README (ec26d6a)
- add examples (62004a0)
- add multiple-languages example (9d9592d)
- add server-usage example (c4b2e2f)
- add TSDoc for all client methods (01cd9d9)
- add TSDocs for client instance properties (15d0187)
- add TSDocs to remaining functions (38052d2)
- add with-typescript example (5c7f396)
- describe internal predicate functions [skip ci] (e4fed22)
- fix badges (7fd6541)
- fix orderings parameter sketch (0f43762)
- more descriptive getResolvedRefString comment [skip ci] (d9ae04b)
- new kit name typos fixes #152 (873bd58)
- refactor custom-caching example (9dd2daa)
- remove inaccurate docs (974d160)
- replace remaining usage of @see with @link (02feadc)
- update comment wording (3535c32)
- update README (1a9c5b8)
- use {@link} and @typeParam (2d2a2c5)
- assume the cookie store is always a string (5d563b0)
- client (f0c5206)
- explicitly export types (b5b34fe)
- export all in root (2bdfd3f)
- internal predicate fns for readability (731a444)
- remove ref methods (a333921)
- remove unnecessary abstraction (d976a11)
- revert tags refactor (0240a18)
- share code among tags and ref fns (5c9e7ea)
- share fetch types (a91a6c3)
- use @prismicio/types where possible (bb2b514)
- deps: bump @prismicio/types (a21a8fd)
- add .editorconfig (535206a)
- add code coverage via nyc (7c2643b)
- add commitlint for conventional commits (81107c0)
- add examples (4163944)
- add LICENSE.md (b5e77a6)
- add release scripts (515722d)
- add simple example to README [skip ci] (a384c8f)
- add status to README [skip ci] (865362e)
- add test CI (5856481)
- add TODO to migrate to @prismicio/types when ready (5f2c580)
- add TODO to widen fetch type (f8dcee9)
- bootstrap v5 (107ca1b)
- fix nyc (5bb1f23)
- fix package.json version (757a46d)
- maintain dependencies (0482128)
- mirror @prismicio/helpers project config (155065e)
- move git-simple-hooks config (c17d070)
- new README (5694f3b)
- update dependencies (508df11)
- update dotfiles to match repo (79017f4)
- update IDEAS based on feedback (8bd6754)
- upgrade dependencies (7cb449a)
- upgrade dev dependencies (cb167e4)