From 40d0e0be3ce8038cd36e8cdf3350ffa9893ada98 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:06:24 +0200 Subject: [PATCH 01/17] feat: add text property to link models --- src/types/model/contentRelationship.ts | 2 ++ src/types/model/link.ts | 3 +++ src/types/model/linkToMedia.ts | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/types/model/contentRelationship.ts b/src/types/model/contentRelationship.ts index 09f06294..4e172240 100644 --- a/src/types/model/contentRelationship.ts +++ b/src/types/model/contentRelationship.ts @@ -1,5 +1,6 @@ import type { CustomTypeModelFieldType } from "./types" +import type { CustomTypeModelKeyTextField } from "./keyText" import type { CustomTypeModelLinkSelectType } from "./link" /** @@ -18,5 +19,6 @@ export interface CustomTypeModelContentRelationshipField< select: typeof CustomTypeModelLinkSelectType.Document customtypes?: readonly CustomTypeIDs[] tags?: readonly Tags[] + text?: CustomTypeModelKeyTextField } } diff --git a/src/types/model/link.ts b/src/types/model/link.ts index aa29c8d0..3867f377 100644 --- a/src/types/model/link.ts +++ b/src/types/model/link.ts @@ -1,5 +1,7 @@ import type { CustomTypeModelFieldType } from "./types" +import type { CustomTypeModelKeyTextField } from "./keyText" + /** * A link custom type field. * @@ -13,6 +15,7 @@ export interface CustomTypeModelLinkField { select?: | null | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType] + text?: CustomTypeModelKeyTextField allowTargetBlank?: boolean } } diff --git a/src/types/model/linkToMedia.ts b/src/types/model/linkToMedia.ts index 2b447dbd..c8c3f062 100644 --- a/src/types/model/linkToMedia.ts +++ b/src/types/model/linkToMedia.ts @@ -1,5 +1,6 @@ import type { CustomTypeModelFieldType } from "./types" +import type { CustomTypeModelKeyTextField } from "./keyText" import type { CustomTypeModelLinkSelectType } from "./link" /** @@ -13,5 +14,6 @@ export interface CustomTypeModelLinkToMediaField { label?: string | null placeholder?: string select: typeof CustomTypeModelLinkSelectType.Media + text?: CustomTypeModelKeyTextField } } From 8459d75608c1af8319adafd2b3bf73555569a434 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:06:51 +0200 Subject: [PATCH 02/17] feat: add text to link value models --- src/types/value/contentRelationship.ts | 1 + src/types/value/link.ts | 1 + src/types/value/linkToMedia.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/types/value/contentRelationship.ts b/src/types/value/contentRelationship.ts index 00438e44..18919c3a 100644 --- a/src/types/value/contentRelationship.ts +++ b/src/types/value/contentRelationship.ts @@ -44,4 +44,5 @@ export interface FilledContentRelationshipField< slug?: string isBroken?: boolean data?: DataInterface + text?: string } diff --git a/src/types/value/link.ts b/src/types/value/link.ts index 2c2439f4..d0a67791 100644 --- a/src/types/value/link.ts +++ b/src/types/value/link.ts @@ -33,6 +33,7 @@ export interface FilledLinkToWebField { link_type: typeof LinkType.Web url: string target?: string + text?: string } /** diff --git a/src/types/value/linkToMedia.ts b/src/types/value/linkToMedia.ts index cc43ebb6..85d1a92c 100644 --- a/src/types/value/linkToMedia.ts +++ b/src/types/value/linkToMedia.ts @@ -24,4 +24,5 @@ export interface FilledLinkToMediaField { size: string height?: string | null width?: string | null + text?: string } From 577fa7ae65d167b5f0b60efd9d68dff15b87ea0d Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:07:58 +0200 Subject: [PATCH 03/17] test: add tests for text in links --- test/types/customType-contentRelationship.types.ts | 14 ++++++++++++++ test/types/customType-link.types.ts | 13 +++++++++++++ test/types/customType-linkToMedia.types.ts | 14 ++++++++++++++ test/types/fields-contentRelationship.types.ts | 3 +++ test/types/fields-link.types.ts | 5 +++++ test/types/fields-linkToMedia.types.ts | 3 +++ 6 files changed, 52 insertions(+) diff --git a/test/types/customType-contentRelationship.types.ts b/test/types/customType-contentRelationship.types.ts index 2789c2be..00f51093 100644 --- a/test/types/customType-contentRelationship.types.ts +++ b/test/types/customType-contentRelationship.types.ts @@ -96,6 +96,20 @@ expectType>({ }, }) +/** + * Supports optional `text` property. + */ +expectType({ + type: prismic.CustomTypeModelFieldType.Link, + config: { + label: "string", + select: prismic.CustomTypeModelLinkSelectType.Document, + text: { + type: prismic.CustomTypeModelFieldType.Text, + }, + }, +}) + /** * `@prismicio/types` extends `@prismicio/types-internal` */ diff --git a/test/types/customType-link.types.ts b/test/types/customType-link.types.ts index a44fcd91..a6acd23d 100644 --- a/test/types/customType-link.types.ts +++ b/test/types/customType-link.types.ts @@ -60,6 +60,19 @@ expectType({ }, }) +/** + * Supports optional `text` property. + */ +expectType({ + type: prismic.CustomTypeModelFieldType.Link, + config: { + label: "string", + text: { + type: prismic.CustomTypeModelFieldType.Text, + }, + }, +}) + /** * `@prismicio/types` extends `@prismicio/types-internal` */ diff --git a/test/types/customType-linkToMedia.types.ts b/test/types/customType-linkToMedia.types.ts index dae8e2af..9553ad2b 100644 --- a/test/types/customType-linkToMedia.types.ts +++ b/test/types/customType-linkToMedia.types.ts @@ -40,6 +40,20 @@ expectType({ }, }) +/** + * Supports optional `text` property. + */ +expectType({ + type: prismic.CustomTypeModelFieldType.Link, + config: { + label: "string", + select: prismic.CustomTypeModelLinkSelectType.Media, + text: { + type: prismic.CustomTypeModelFieldType.Text, + }, + }, +}) + /** * `@prismicio/types` extends `@prismicio/types-internal` */ diff --git a/test/types/fields-contentRelationship.types.ts b/test/types/fields-contentRelationship.types.ts index 352cf78f..1b8f49c0 100644 --- a/test/types/fields-contentRelationship.types.ts +++ b/test/types/fields-contentRelationship.types.ts @@ -32,6 +32,7 @@ expectType({ slug: "string", isBroken: true, data: undefined, + text: "string", }) expectType>({ link_type: prismic.LinkType.Document, @@ -44,6 +45,7 @@ expectType>({ slug: "string", isBroken: true, data: undefined, + text: "string", }) expectType>({ link_type: prismic.LinkType.Document, @@ -57,6 +59,7 @@ expectType>({ slug: "string", isBroken: true, data: undefined, + text: "string", }) /** diff --git a/test/types/fields-link.types.ts b/test/types/fields-link.types.ts index 813eea01..65e4e019 100644 --- a/test/types/fields-link.types.ts +++ b/test/types/fields-link.types.ts @@ -41,6 +41,7 @@ expectType({ link_type: prismic.LinkType.Web, url: "string", target: "string", + text: "string", }) // Content relationship link expectType({ @@ -54,6 +55,7 @@ expectType({ slug: "string", isBroken: true, data: undefined, + text: "string", }) // Media link expectType({ @@ -64,17 +66,20 @@ expectType({ size: "string", height: "string", width: "string", + text: "string", }) expectType>({ link_type: prismic.LinkType.Web, url: "string", target: "string", + text: "string", }) expectType>({ link_type: prismic.LinkType.Web, // @ts-expect-error - Empty fields cannot contain a filled value. url: "string", target: "string", + text: "string", }) /** diff --git a/test/types/fields-linkToMedia.types.ts b/test/types/fields-linkToMedia.types.ts index 44a10d15..873b0ed4 100644 --- a/test/types/fields-linkToMedia.types.ts +++ b/test/types/fields-linkToMedia.types.ts @@ -30,6 +30,7 @@ expectType({ size: "string", height: "string", width: "string", + text: "string", }) expectType>({ id: "string", @@ -40,6 +41,7 @@ expectType>({ size: "string", height: "string", width: "string", + text: "string", }) expectType>({ link_type: prismic.LinkType.Media, @@ -51,6 +53,7 @@ expectType>({ size: "string", height: "string", width: "string", + text: "string", }) /** From c06b383ff41f01e253641c7852a4e9701725bdba Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:38:51 +0200 Subject: [PATCH 04/17] chore: update package version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 407e3ca2..ddca4202 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.8.0", + "version": "7.9.0-alpha.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.8.0", + "version": "7.9.0-alpha.0", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index 53f906f7..28108261 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.8.0", + "version": "7.9.0-alpha.0", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript", From f2021c053b9aac1c17b7bbd1845c91eab7b0d176 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:47:19 +0200 Subject: [PATCH 05/17] chore(release): 7.9.0-alpha.0 --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2fab63e..8094ac69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.9.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.8.0...v7.9.0-alpha.0) (2024-08-14) + + +### Features + +* add text property to link models ([40d0e0b](https://github.com/prismicio/prismic-client/commit/40d0e0be3ce8038cd36e8cdf3350ffa9893ada98)) +* add text to link value models ([8459d75](https://github.com/prismicio/prismic-client/commit/8459d75608c1af8319adafd2b3bf73555569a434)) + + +### Chore + +* update package version ([c06b383](https://github.com/prismicio/prismic-client/commit/c06b383ff41f01e253641c7852a4e9701725bdba)) + ## [7.8.0](https://github.com/prismicio/prismic-client/compare/v7.7.4...v7.8.0) (2024-08-01) From 50fc797372726c0abc575b9f1b0a56d5db939bb1 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Thu, 22 Aug 2024 07:54:46 +0200 Subject: [PATCH 06/17] chore: remove changelog for alpha --- CHANGELOG.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8094ac69..c2fab63e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,19 +2,6 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. -## [7.9.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.8.0...v7.9.0-alpha.0) (2024-08-14) - - -### Features - -* add text property to link models ([40d0e0b](https://github.com/prismicio/prismic-client/commit/40d0e0be3ce8038cd36e8cdf3350ffa9893ada98)) -* add text to link value models ([8459d75](https://github.com/prismicio/prismic-client/commit/8459d75608c1af8319adafd2b3bf73555569a434)) - - -### Chore - -* update package version ([c06b383](https://github.com/prismicio/prismic-client/commit/c06b383ff41f01e253641c7852a4e9701725bdba)) - ## [7.8.0](https://github.com/prismicio/prismic-client/compare/v7.7.4...v7.8.0) (2024-08-01) From 1a4c51a389ed4d06cf69c3edcb215559ba91fe99 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:59:44 +0200 Subject: [PATCH 07/17] feat: use KeyTextField for link text value definition --- src/types/value/contentRelationship.ts | 3 ++- src/types/value/link.ts | 3 ++- src/types/value/linkToMedia.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/types/value/contentRelationship.ts b/src/types/value/contentRelationship.ts index 18919c3a..073c22a5 100644 --- a/src/types/value/contentRelationship.ts +++ b/src/types/value/contentRelationship.ts @@ -1,6 +1,7 @@ import type { AnyRegularField, FieldState } from "./types" import type { GroupField } from "./group" +import type { KeyTextField } from "./keyText" import type { EmptyLinkField, LinkType } from "./link" import type { SliceZone } from "./sliceZone" @@ -44,5 +45,5 @@ export interface FilledContentRelationshipField< slug?: string isBroken?: boolean data?: DataInterface - text?: string + text?: KeyTextField } diff --git a/src/types/value/link.ts b/src/types/value/link.ts index d0a67791..e5d92324 100644 --- a/src/types/value/link.ts +++ b/src/types/value/link.ts @@ -2,6 +2,7 @@ import type { AnyRegularField, FieldState } from "./types" import type { ContentRelationshipField } from "./contentRelationship" import type { GroupField } from "./group" +import type { KeyTextField } from "./keyText" import type { LinkToMediaField } from "./linkToMedia" import type { SliceZone } from "./sliceZone" @@ -33,7 +34,7 @@ export interface FilledLinkToWebField { link_type: typeof LinkType.Web url: string target?: string - text?: string + text?: KeyTextField } /** diff --git a/src/types/value/linkToMedia.ts b/src/types/value/linkToMedia.ts index 85d1a92c..48568783 100644 --- a/src/types/value/linkToMedia.ts +++ b/src/types/value/linkToMedia.ts @@ -1,5 +1,6 @@ import type { FieldState } from "./types" +import type { KeyTextField } from "./keyText" import type { EmptyLinkField, LinkType } from "./link" /** @@ -24,5 +25,5 @@ export interface FilledLinkToMediaField { size: string height?: string | null width?: string | null - text?: string + text?: KeyTextField } From d940fcdb023de34765006607f7f34481de00a6ef Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:15:13 +0200 Subject: [PATCH 08/17] chore(release): 7.9.0-alpha.1 --- CHANGELOG.md | 12 ++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2fab63e..736dfb8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) + + +### Features + +* use KeyTextField for link text value definition ([1a4c51a](https://github.com/prismicio/prismic-client/commit/1a4c51a389ed4d06cf69c3edcb215559ba91fe99)) + + +### Chore + +* remove changelog for alpha ([50fc797](https://github.com/prismicio/prismic-client/commit/50fc797372726c0abc575b9f1b0a56d5db939bb1)) + ## [7.8.0](https://github.com/prismicio/prismic-client/compare/v7.7.4...v7.8.0) (2024-08-01) diff --git a/package-lock.json b/package-lock.json index ddca4202..e6106865 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.0", + "version": "7.9.0-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.9.0-alpha.0", + "version": "7.9.0-alpha.1", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index 28108261..a5c97b12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.0", + "version": "7.9.0-alpha.1", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript", From c53de86a7ed749f0f9d8999b9e58564d9a8efe35 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:50:19 +0200 Subject: [PATCH 09/17] chore: revert previous changes --- src/types/value/contentRelationship.ts | 3 +-- src/types/value/link.ts | 3 +-- src/types/value/linkToMedia.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/types/value/contentRelationship.ts b/src/types/value/contentRelationship.ts index 073c22a5..18919c3a 100644 --- a/src/types/value/contentRelationship.ts +++ b/src/types/value/contentRelationship.ts @@ -1,7 +1,6 @@ import type { AnyRegularField, FieldState } from "./types" import type { GroupField } from "./group" -import type { KeyTextField } from "./keyText" import type { EmptyLinkField, LinkType } from "./link" import type { SliceZone } from "./sliceZone" @@ -45,5 +44,5 @@ export interface FilledContentRelationshipField< slug?: string isBroken?: boolean data?: DataInterface - text?: KeyTextField + text?: string } diff --git a/src/types/value/link.ts b/src/types/value/link.ts index e5d92324..d0a67791 100644 --- a/src/types/value/link.ts +++ b/src/types/value/link.ts @@ -2,7 +2,6 @@ import type { AnyRegularField, FieldState } from "./types" import type { ContentRelationshipField } from "./contentRelationship" import type { GroupField } from "./group" -import type { KeyTextField } from "./keyText" import type { LinkToMediaField } from "./linkToMedia" import type { SliceZone } from "./sliceZone" @@ -34,7 +33,7 @@ export interface FilledLinkToWebField { link_type: typeof LinkType.Web url: string target?: string - text?: KeyTextField + text?: string } /** diff --git a/src/types/value/linkToMedia.ts b/src/types/value/linkToMedia.ts index 48568783..85d1a92c 100644 --- a/src/types/value/linkToMedia.ts +++ b/src/types/value/linkToMedia.ts @@ -1,6 +1,5 @@ import type { FieldState } from "./types" -import type { KeyTextField } from "./keyText" import type { EmptyLinkField, LinkType } from "./link" /** @@ -25,5 +24,5 @@ export interface FilledLinkToMediaField { size: string height?: string | null width?: string | null - text?: KeyTextField + text?: string } From 000f146d25b84b2937c3accaffa54ab936a78de8 Mon Sep 17 00:00:00 2001 From: Levi Mykel Gable <9385378+levimykel@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:51:40 +0200 Subject: [PATCH 10/17] chore(release): 7.9.0-alpha.2 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 736dfb8f..4de1494f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.9.0-alpha.2](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.1...v7.9.0-alpha.2) (2024-08-27) + + +### Chore + +* revert previous changes ([c53de86](https://github.com/prismicio/prismic-client/commit/c53de86a7ed749f0f9d8999b9e58564d9a8efe35)) + ## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) diff --git a/package-lock.json b/package-lock.json index e6106865..42b23851 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.1", + "version": "7.9.0-alpha.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.9.0-alpha.1", + "version": "7.9.0-alpha.2", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index a5c97b12..778959f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.1", + "version": "7.9.0-alpha.2", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript", From 732816c342525bd8252f92fe3a9ac01801e35d17 Mon Sep 17 00:00:00 2001 From: Xavier Rutayisire Date: Mon, 9 Sep 2024 17:12:05 +0200 Subject: [PATCH 11/17] support link text with boolean config & empty link --- src/types/model/contentRelationship.ts | 2 - src/types/model/link.ts | 4 +- src/types/model/linkToMedia.ts | 3 +- src/types/value/link.ts | 1 + .../customType-contentRelationship.types.ts | 3 - test/types/customType-link.types.ts | 4 +- test/types/customType-linkToMedia.types.ts | 4 +- .../types/fields-contentRelationship.types.ts | 19 +++++ test/types/fields-link.types.ts | 70 +++++++++++++++++++ test/types/fields-linkToMedia.types.ts | 19 +++++ 10 files changed, 113 insertions(+), 16 deletions(-) diff --git a/src/types/model/contentRelationship.ts b/src/types/model/contentRelationship.ts index 4e172240..09f06294 100644 --- a/src/types/model/contentRelationship.ts +++ b/src/types/model/contentRelationship.ts @@ -1,6 +1,5 @@ import type { CustomTypeModelFieldType } from "./types" -import type { CustomTypeModelKeyTextField } from "./keyText" import type { CustomTypeModelLinkSelectType } from "./link" /** @@ -19,6 +18,5 @@ export interface CustomTypeModelContentRelationshipField< select: typeof CustomTypeModelLinkSelectType.Document customtypes?: readonly CustomTypeIDs[] tags?: readonly Tags[] - text?: CustomTypeModelKeyTextField } } diff --git a/src/types/model/link.ts b/src/types/model/link.ts index 3867f377..13793999 100644 --- a/src/types/model/link.ts +++ b/src/types/model/link.ts @@ -1,7 +1,5 @@ import type { CustomTypeModelFieldType } from "./types" -import type { CustomTypeModelKeyTextField } from "./keyText" - /** * A link custom type field. * @@ -15,7 +13,7 @@ export interface CustomTypeModelLinkField { select?: | null | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType] - text?: CustomTypeModelKeyTextField + allowText?: boolean allowTargetBlank?: boolean } } diff --git a/src/types/model/linkToMedia.ts b/src/types/model/linkToMedia.ts index c8c3f062..bf4dbddc 100644 --- a/src/types/model/linkToMedia.ts +++ b/src/types/model/linkToMedia.ts @@ -1,6 +1,5 @@ import type { CustomTypeModelFieldType } from "./types" -import type { CustomTypeModelKeyTextField } from "./keyText" import type { CustomTypeModelLinkSelectType } from "./link" /** @@ -14,6 +13,6 @@ export interface CustomTypeModelLinkToMediaField { label?: string | null placeholder?: string select: typeof CustomTypeModelLinkSelectType.Media - text?: CustomTypeModelKeyTextField + allowText?: boolean } } diff --git a/src/types/value/link.ts b/src/types/value/link.ts index d0a67791..870004b1 100644 --- a/src/types/value/link.ts +++ b/src/types/value/link.ts @@ -24,6 +24,7 @@ export type EmptyLinkField< Type extends (typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any, > = { link_type: Type | string + text?: string } /** diff --git a/test/types/customType-contentRelationship.types.ts b/test/types/customType-contentRelationship.types.ts index 00f51093..9df1cdd2 100644 --- a/test/types/customType-contentRelationship.types.ts +++ b/test/types/customType-contentRelationship.types.ts @@ -104,9 +104,6 @@ expectType({ config: { label: "string", select: prismic.CustomTypeModelLinkSelectType.Document, - text: { - type: prismic.CustomTypeModelFieldType.Text, - }, }, }) diff --git a/test/types/customType-link.types.ts b/test/types/customType-link.types.ts index a6acd23d..d4808957 100644 --- a/test/types/customType-link.types.ts +++ b/test/types/customType-link.types.ts @@ -67,9 +67,7 @@ expectType({ type: prismic.CustomTypeModelFieldType.Link, config: { label: "string", - text: { - type: prismic.CustomTypeModelFieldType.Text, - }, + allowText: true, }, }) diff --git a/test/types/customType-linkToMedia.types.ts b/test/types/customType-linkToMedia.types.ts index 9553ad2b..168934f6 100644 --- a/test/types/customType-linkToMedia.types.ts +++ b/test/types/customType-linkToMedia.types.ts @@ -48,9 +48,7 @@ expectType({ config: { label: "string", select: prismic.CustomTypeModelLinkSelectType.Media, - text: { - type: prismic.CustomTypeModelFieldType.Text, - }, + allowText: true, }, }) diff --git a/test/types/fields-contentRelationship.types.ts b/test/types/fields-contentRelationship.types.ts index 1b8f49c0..71f455f3 100644 --- a/test/types/fields-contentRelationship.types.ts +++ b/test/types/fields-contentRelationship.types.ts @@ -78,6 +78,25 @@ expectType>( }, ) +/** + * Empty state with text. + */ +expectType({ + link_type: prismic.LinkType.Document, + text: "string", +}) +expectType>({ + link_type: prismic.LinkType.Document, + text: "string", +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Document, + text: "string", + }, +) + /** * Supports custom document type. */ diff --git a/test/types/fields-link.types.ts b/test/types/fields-link.types.ts index 65e4e019..2f8a3a5d 100644 --- a/test/types/fields-link.types.ts +++ b/test/types/fields-link.types.ts @@ -88,12 +88,82 @@ expectType>({ expectType({ link_type: prismic.LinkType.Any, }) +expectType>({ + // @ts-expect-error - Filled fields cannot contain an empty value. + link_type: prismic.LinkType.Any, +}) +expectType({ + link_type: prismic.LinkType.Web, +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Web, + }, +) +expectType({ + link_type: prismic.LinkType.Document, +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Document, + }, +) +expectType({ + link_type: prismic.LinkType.Media, +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Media, + }, +) + +/** + * Empty state with text. + */ +expectType>({ + link_type: prismic.LinkType.Web, + text: "string", +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Web, + text: "string", + }, +) +expectType>({ + link_type: prismic.LinkType.Document, + text: "string", +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Document, + text: "string", + }, +) +expectType>({ + link_type: prismic.LinkType.Media, + text: "string", +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Media, + text: "string", + }, +) expectType>({ link_type: prismic.LinkType.Any, + text: "string", }) expectType>({ // @ts-expect-error - Filled fields cannot contain an empty value. link_type: prismic.LinkType.Any, + text: "string", }) /** diff --git a/test/types/fields-linkToMedia.types.ts b/test/types/fields-linkToMedia.types.ts index 873b0ed4..c5b63fbf 100644 --- a/test/types/fields-linkToMedia.types.ts +++ b/test/types/fields-linkToMedia.types.ts @@ -71,3 +71,22 @@ expectType>( link_type: prismic.LinkType.Media, }, ) + +/** + * Empty state with text. + */ +expectType({ + link_type: prismic.LinkType.Media, + text: "string", +}) +expectType>({ + link_type: prismic.LinkType.Media, + text: "string", +}) +expectType>( + // @ts-expect-error - Filled fields cannot contain an empty value. + { + link_type: prismic.LinkType.Media, + text: "string", + }, +) From 0d3fb98743b79d3fc2a41dcb2fc6edfc67857478 Mon Sep 17 00:00:00 2001 From: Xavier Rutayisire Date: Tue, 10 Sep 2024 23:18:29 +0200 Subject: [PATCH 12/17] chore(release): 7.9.0-alpha.3 --- CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cc2cb19..74e416c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,48 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.9.0-alpha.3](https://github.com/prismicio/prismic-client/compare/v7.8.1...v7.9.0-alpha.3) (2024-09-10) + + +### Chore + +* **deps:** maintain lock file ([601edd5](https://github.com/prismicio/prismic-client/commit/601edd55ed2594010da740f3f40250a7f517cf5c)) + +## [7.9.0-alpha.2](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.1...v7.9.0-alpha.2) (2024-08-27) + + +### Chore + +* **release:** 7.9.0-alpha.2 ([000f146](https://github.com/prismicio/prismic-client/commit/000f146d25b84b2937c3accaffa54ab936a78de8)) +* revert previous changes ([c53de86](https://github.com/prismicio/prismic-client/commit/c53de86a7ed749f0f9d8999b9e58564d9a8efe35)) + +## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) + + +### Features + +* use KeyTextField for link text value definition ([1a4c51a](https://github.com/prismicio/prismic-client/commit/1a4c51a389ed4d06cf69c3edcb215559ba91fe99)) + + +### Chore + +* **release:** 7.9.0-alpha.1 ([d940fcd](https://github.com/prismicio/prismic-client/commit/d940fcdb023de34765006607f7f34481de00a6ef)) +* remove changelog for alpha ([50fc797](https://github.com/prismicio/prismic-client/commit/50fc797372726c0abc575b9f1b0a56d5db939bb1)) + +## [7.9.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.8.0...v7.9.0-alpha.0) (2024-08-14) + + +### Features + +* add text property to link models ([40d0e0b](https://github.com/prismicio/prismic-client/commit/40d0e0be3ce8038cd36e8cdf3350ffa9893ada98)) +* add text to link value models ([8459d75](https://github.com/prismicio/prismic-client/commit/8459d75608c1af8319adafd2b3bf73555569a434)) + + +### Chore + +* **release:** 7.9.0-alpha.0 ([f2021c0](https://github.com/prismicio/prismic-client/commit/f2021c053b9aac1c17b7bbd1845c91eab7b0d176)) +* update package version ([c06b383](https://github.com/prismicio/prismic-client/commit/c06b383ff41f01e253641c7852a4e9701725bdba)) + ## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) diff --git a/package-lock.json b/package-lock.json index 4ea86016..374af6b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.2", + "version": "7.9.0-alpha.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.9.0-alpha.2", + "version": "7.9.0-alpha.3", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index 778959f2..1028c094 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.9.0-alpha.2", + "version": "7.9.0-alpha.3", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript", From c801c12b3f2a1175530a17a0c45d414ef3412797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Fri, 20 Sep 2024 14:28:45 +0200 Subject: [PATCH 13/17] chore(release): 7.10.0-alpha.0 --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b542c69..a98d3daa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,50 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.10.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.9.0...v7.10.0-alpha.0) (2024-09-20) + +## [7.9.0-alpha.3](https://github.com/prismicio/prismic-client/compare/v7.8.1...v7.9.0-alpha.3) (2024-09-10) + + +### Chore + +* **release:** 7.9.0-alpha.3 ([0d3fb98](https://github.com/prismicio/prismic-client/commit/0d3fb98743b79d3fc2a41dcb2fc6edfc67857478)) + +## [7.9.0-alpha.2](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.1...v7.9.0-alpha.2) (2024-08-27) + + +### Chore + +* **release:** 7.9.0-alpha.2 ([000f146](https://github.com/prismicio/prismic-client/commit/000f146d25b84b2937c3accaffa54ab936a78de8)) +* revert previous changes ([c53de86](https://github.com/prismicio/prismic-client/commit/c53de86a7ed749f0f9d8999b9e58564d9a8efe35)) + +## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) + + +### Features + +* use KeyTextField for link text value definition ([1a4c51a](https://github.com/prismicio/prismic-client/commit/1a4c51a389ed4d06cf69c3edcb215559ba91fe99)) + + +### Chore + +* **release:** 7.9.0-alpha.1 ([d940fcd](https://github.com/prismicio/prismic-client/commit/d940fcdb023de34765006607f7f34481de00a6ef)) +* remove changelog for alpha ([50fc797](https://github.com/prismicio/prismic-client/commit/50fc797372726c0abc575b9f1b0a56d5db939bb1)) + +## [7.9.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.8.0...v7.9.0-alpha.0) (2024-08-14) + + +### Features + +* add text property to link models ([40d0e0b](https://github.com/prismicio/prismic-client/commit/40d0e0be3ce8038cd36e8cdf3350ffa9893ada98)) +* add text to link value models ([8459d75](https://github.com/prismicio/prismic-client/commit/8459d75608c1af8319adafd2b3bf73555569a434)) + + +### Chore + +* **release:** 7.9.0-alpha.0 ([f2021c0](https://github.com/prismicio/prismic-client/commit/f2021c053b9aac1c17b7bbd1845c91eab7b0d176)) +* update package version ([c06b383](https://github.com/prismicio/prismic-client/commit/c06b383ff41f01e253641c7852a4e9701725bdba)) + ## [7.9.0](https://github.com/prismicio/prismic-client/compare/v7.8.1...v7.9.0) (2024-09-17) diff --git a/package-lock.json b/package-lock.json index b42498d6..f39b05d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.9.0", + "version": "7.10.0-alpha.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.9.0", + "version": "7.10.0-alpha.0", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index aa27d7d9..3e155217 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.9.0", + "version": "7.10.0-alpha.0", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript", From ed3e0799efa65caaf9bd399d187ba6dfc58a471e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Mon, 23 Sep 2024 13:13:37 +0200 Subject: [PATCH 14/17] Remove unnecessary test --- test/types/customType-contentRelationship.types.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/types/customType-contentRelationship.types.ts b/test/types/customType-contentRelationship.types.ts index 9df1cdd2..2789c2be 100644 --- a/test/types/customType-contentRelationship.types.ts +++ b/test/types/customType-contentRelationship.types.ts @@ -96,17 +96,6 @@ expectType>({ }, }) -/** - * Supports optional `text` property. - */ -expectType({ - type: prismic.CustomTypeModelFieldType.Link, - config: { - label: "string", - select: prismic.CustomTypeModelLinkSelectType.Document, - }, -}) - /** * `@prismicio/types` extends `@prismicio/types-internal` */ From aaf44b5a10d8f6e160ffdcd1fdfe8fbb1ce2f4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Mon, 23 Sep 2024 13:33:34 +0200 Subject: [PATCH 15/17] Add allow text to content relationship --- src/types/model/contentRelationship.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/model/contentRelationship.ts b/src/types/model/contentRelationship.ts index 09f06294..4c542748 100644 --- a/src/types/model/contentRelationship.ts +++ b/src/types/model/contentRelationship.ts @@ -18,5 +18,6 @@ export interface CustomTypeModelContentRelationshipField< select: typeof CustomTypeModelLinkSelectType.Document customtypes?: readonly CustomTypeIDs[] tags?: readonly Tags[] + allowText?: boolean } } From 986284b0063864f9b8a0078f51c92b26dcbbdf18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Wed, 25 Sep 2024 16:52:43 +0200 Subject: [PATCH 16/17] Remove obsolete @ts-expect-error --- src/Migration.ts | 6 ------ src/types/migration/Asset.ts | 11 +---------- src/types/migration/ContentRelationship.ts | 9 +-------- test/writeClient-migrate-patch-linkToMedia.test.ts | 2 -- 4 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/Migration.ts b/src/Migration.ts index 0d673441..53ab719a 100644 --- a/src/Migration.ts +++ b/src/Migration.ts @@ -410,8 +410,6 @@ export class Migration { // ID needs to be 16 characters long to be considered valid by the API id: "_____broken_____", isBroken: true, - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text text: input.text, } } @@ -419,8 +417,6 @@ export class Migration { return { link_type: LinkType.Document, id: () => this._getByOriginalID(input.id), - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text text: input.text, } } @@ -429,8 +425,6 @@ export class Migration { return { link_type: LinkType.Media, id: this.createAsset(input), - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text text: input.text, } } diff --git a/src/types/migration/Asset.ts b/src/types/migration/Asset.ts index 8aa928a9..386eb0ce 100644 --- a/src/types/migration/Asset.ts +++ b/src/types/migration/Asset.ts @@ -75,14 +75,7 @@ export type MigrationLinkToMedia = Pick< LinkToMediaField<"filled">, "link_type" > & - Partial< - Pick< - LinkToMediaField<"filled">, - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text - "text" - > - > & { + Partial, "text">> & { /** * A reference to the migration asset used to resolve the link to media * field's value. @@ -95,8 +88,6 @@ export type MigrationLinkToMedia = Pick< * with the migration API. */ export type MigrationLinkToMediaField = - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text | Pick, "link_type" | "id" | "text"> | EmptyLinkField<"Media"> diff --git a/src/types/migration/ContentRelationship.ts b/src/types/migration/ContentRelationship.ts index 44255fc6..667836f6 100644 --- a/src/types/migration/ContentRelationship.ts +++ b/src/types/migration/ContentRelationship.ts @@ -14,14 +14,7 @@ export type MigrationContentRelationship< > = | ValueOrThunk | undefined> | (Pick & - Partial< - Pick< - FilledContentRelationshipField, - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text - "text" - > - > & { + Partial> & { id: ValueOrThunk< TDocuments | PrismicMigrationDocument | undefined > diff --git a/test/writeClient-migrate-patch-linkToMedia.test.ts b/test/writeClient-migrate-patch-linkToMedia.test.ts index efdf0984..341cc23f 100644 --- a/test/writeClient-migrate-patch-linkToMedia.test.ts +++ b/test/writeClient-migrate-patch-linkToMedia.test.ts @@ -22,8 +22,6 @@ const assetToLinkToMedia = ( size: `${asset.size}`, height: typeof asset.height === "number" ? `${asset.height}` : undefined, width: typeof asset.width === "number" ? `${asset.width}` : undefined, - // TODO: Remove when link text PR is merged - // @ts-expect-error - Future-proofing for link text text, } } From 8739e029731c0dd54b0973e05821f62b2fbc6a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Wed, 25 Sep 2024 18:15:24 +0200 Subject: [PATCH 17/17] chore(release): 7.11.0 --- CHANGELOG.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68471885..457f38f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,57 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.11.0](https://github.com/prismicio/prismic-client/compare/v7.10.1...v7.11.0) (2024-09-25) + +## [7.10.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.9.0...v7.10.0-alpha.0) (2024-09-20) + + +### Chore + +* **release:** 7.10.0-alpha.0 ([c801c12](https://github.com/prismicio/prismic-client/commit/c801c12b3f2a1175530a17a0c45d414ef3412797)) + +## [7.9.0-alpha.3](https://github.com/prismicio/prismic-client/compare/v7.8.1...v7.9.0-alpha.3) (2024-09-10) + + +### Chore + +* **release:** 7.9.0-alpha.3 ([0d3fb98](https://github.com/prismicio/prismic-client/commit/0d3fb98743b79d3fc2a41dcb2fc6edfc67857478)) + +## [7.9.0-alpha.2](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.1...v7.9.0-alpha.2) (2024-08-27) + + +### Chore + +* **release:** 7.9.0-alpha.2 ([000f146](https://github.com/prismicio/prismic-client/commit/000f146d25b84b2937c3accaffa54ab936a78de8)) +* revert previous changes ([c53de86](https://github.com/prismicio/prismic-client/commit/c53de86a7ed749f0f9d8999b9e58564d9a8efe35)) + +## [7.9.0-alpha.1](https://github.com/prismicio/prismic-client/compare/v7.9.0-alpha.0...v7.9.0-alpha.1) (2024-08-27) + + +### Features + +* use KeyTextField for link text value definition ([1a4c51a](https://github.com/prismicio/prismic-client/commit/1a4c51a389ed4d06cf69c3edcb215559ba91fe99)) + + +### Chore + +* **release:** 7.9.0-alpha.1 ([d940fcd](https://github.com/prismicio/prismic-client/commit/d940fcdb023de34765006607f7f34481de00a6ef)) +* remove changelog for alpha ([50fc797](https://github.com/prismicio/prismic-client/commit/50fc797372726c0abc575b9f1b0a56d5db939bb1)) + +## [7.9.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.8.0...v7.9.0-alpha.0) (2024-08-14) + + +### Features + +* add text property to link models ([40d0e0b](https://github.com/prismicio/prismic-client/commit/40d0e0be3ce8038cd36e8cdf3350ffa9893ada98)) +* add text to link value models ([8459d75](https://github.com/prismicio/prismic-client/commit/8459d75608c1af8319adafd2b3bf73555569a434)) + + +### Chore + +* **release:** 7.9.0-alpha.0 ([f2021c0](https://github.com/prismicio/prismic-client/commit/f2021c053b9aac1c17b7bbd1845c91eab7b0d176)) +* update package version ([c06b383](https://github.com/prismicio/prismic-client/commit/c06b383ff41f01e253641c7852a4e9701725bdba)) + ### [7.10.1](https://github.com/prismicio/prismic-client/compare/v7.10.0...v7.10.1) (2024-09-23) diff --git a/package-lock.json b/package-lock.json index 041bce6e..ebcca48c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/client", - "version": "7.10.1", + "version": "7.11.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/client", - "version": "7.10.1", + "version": "7.11.0", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" diff --git a/package.json b/package.json index 15a47593..3210cb9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/client", - "version": "7.10.1", + "version": "7.11.0", "description": "The official JavaScript + TypeScript client library for Prismic", "keywords": [ "typescript",