Skip to content

Commit

Permalink
chore(deps): update dependencies (#317)
Browse files Browse the repository at this point in the history
* chore(deps): update dependencies

* test: fix link type tests

* style: fix formatting errors

* chore: downgrade `typescript` to ^4
  • Loading branch information
angeloashmore authored Aug 11, 2023
1 parent 74fce89 commit d80b64a
Show file tree
Hide file tree
Showing 12 changed files with 1,352 additions and 6,349 deletions.
7,633 changes: 1,316 additions & 6,317 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,29 @@
"imgix-url-builder": "^0.0.4"
},
"devDependencies": {
"@prismicio/mock": "^0.3.0",
"@prismicio/types-internal": "2.0.0-alpha.11",
"@size-limit/preset-small-lib": "^8.2.4",
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitest/coverage-v8": "^0.32.0",
"@prismicio/mock": "^0.3.1",
"@prismicio/types-internal": "2.0.0",
"@size-limit/preset-small-lib": "^8.2.6",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitest/coverage-v8": "^0.34.1",
"abort-controller": "^3.0.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-tsdoc": "^0.2.17",
"msw": "^1.2.1",
"node-fetch": "^3.3.1",
"prettier": "^2.8.8",
"prettier-plugin-jsdoc": "^0.4.2",
"size-limit": "^8.2.4",
"msw": "^1.2.3",
"node-fetch": "^3.3.2",
"prettier": "^3.0.1",
"prettier-plugin-jsdoc": "^1.0.1",
"size-limit": "^8.2.6",
"standard-version": "^9.5.0",
"ts-expect": "^1.3.0",
"typescript": "^5.0.4",
"vite": "^4.3.9",
"typescript": "^4.9.5",
"vite": "^4.4.9",
"vite-plugin-sdk": "^0.1.1",
"vitest": "^0.32.0"
"vitest": "^0.34.1"
},
"engines": {
"node": ">=14.15.0"
Expand Down
1 change: 1 addition & 0 deletions src/buildQueryURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export interface QueryParams {
* Strings and arrays of strings are deprecated as of
* `@prismicio/client@7.0.0`. Please migrate to the more explicit array of
* objects.
*
* @example
*
* ```typescript
Expand Down
8 changes: 8 additions & 0 deletions src/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ export interface CreateClient {
*
* @typeParam TDocuments - A map of Prismic document type IDs mapped to their
* TypeScript type.
*
* @param repositoryNameOrEndpoint - The Prismic repository name or full Rest
* API V2 endpoint for the repository.
* @param options - Configuration that determines how content will be queried
Expand Down Expand Up @@ -732,6 +733,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -763,6 +765,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -800,6 +803,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -834,6 +838,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -874,6 +879,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -920,6 +926,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* for all documents and is made available on its `id` property. A UID is
* provided in the Prismic editor and is unique among all documents of its
* custom type.
*
* @example
*
* ```ts
Expand Down Expand Up @@ -964,6 +971,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
* instance. For example, a repository may be configured to contain just one
* Settings document. This is in contrast to a repeatable custom type which
* allows multiple instances of itself.
*
* @example
*
* ```ts
Expand Down
1 change: 1 addition & 0 deletions src/getRepositoryName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { PrismicError } from "./errors/PrismicError";
*
* @typeParam RepositoryEndpoint - Prismic Rest API V2 endpoint for the
* repository.
*
* @param repositoryEndpoint - Prismic Rest API V2 endpoint for the repository.
*
* @returns The Prismic repository's name.
Expand Down
6 changes: 0 additions & 6 deletions src/helpers/asHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,6 @@ export const asHTML: {
*
* @deprecated Use object-style configuration instead.
*
* ```ts
* asHTML(field);
* asHTML(field, { linkResolver });
* asHTML(field, { serializer });
* asHTML(field, { linkResolver, serializer });
* ```
* @param richTextField - A rich text or title field from Prismic
* @param linkResolver - An optional link resolver function to resolve links,
* without it you're expected to use the `routes` options from the API
Expand Down
1 change: 1 addition & 0 deletions src/helpers/asImagePixelDensitySrcSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type AsImagePixelDensitySrcSetReturnType<
*
* @returns A `srcset` attribute value for the image field with Imgix URL
* parameters (if given). If the image field is empty, `null` is returned.
*
* @see Imgix URL parameters reference: https://docs.imgix.com/apis/rendering
*/
export const asImagePixelDensitySrcSet = <
Expand Down
1 change: 1 addition & 0 deletions src/helpers/asImageSrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type AsImageSrcReturnType<Field extends ImageFieldImage | null | undefined> =
*
* @returns The image field's image URL with transformations applied (if given).
* If the image field is empty, `null` is returned.
*
* @see Imgix URL parameters reference: https://docs.imgix.com/apis/rendering
*/
export const asImageSrc = <Field extends ImageFieldImage | null | undefined>(
Expand Down
1 change: 1 addition & 0 deletions src/helpers/asImageWidthSrcSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type AsImageWidthSrcSetConfig = Omit<BuildWidthSrcSetParams, "widths"> & {
*
* @returns A `srcset` attribute value for the image field with Imgix URL
* parameters (if given). If the image field is empty, `null` is returned.
*
* @see Imgix URL parameters reference: https://docs.imgix.com/apis/rendering
*/
export const asImageWidthSrcSet = <
Expand Down
7 changes: 3 additions & 4 deletions src/helpers/asLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { documentToLinkField } from "./documentToLinkField";
*
* @typeParam ReturnType - Return type of your link resolver function, useful if
* you prefer to return a complex object
*
* @param linkToDocumentField - A document link field to resolve
*
* @returns Resolved URL
Expand Down Expand Up @@ -75,6 +76,7 @@ export const asLink: {
*
* @returns Resolved URL or, if the provided link field or document is empty,
* `null`
*
* @see Prismic link resolver documentation: {@link https://prismic.io/docs/route-resolver#link-resolver}
* @see Prismic API `routes` options documentation: {@link https://prismic.io/docs/route-resolver}
*/
Expand All @@ -95,10 +97,6 @@ export const asLink: {
*
* @deprecated Use object-style configuration instead.
*
* ```ts
* asLink(field);
* asLink(field, { linkResolver });
* ```
* @typeParam LinkResolverFunctionReturnType - link resolver function return
* type
* @typeParam Field - Link field or Prismic document to resolve to a URL
Expand All @@ -110,6 +108,7 @@ export const asLink: {
*
* @returns Resolved URL or, if the provided link field or document is empty,
* `null`
*
* @see Prismic link resolver documentation: {@link https://prismic.io/docs/route-resolver#link-resolver}
* @see Prismic API `routes` options documentation: {@link https://prismic.io/docs/route-resolver}
*/
Expand Down
2 changes: 2 additions & 0 deletions src/helpers/asLinkAttrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ type AsLinkAttrsReturnType<
* type
* @typeParam Field - Link field or Prismic document to resolve to link
* attributes
*
* @param linkFieldOrDocument - Any kind of link field or a document to resolve
* @param config - Configuration that determines the output of `asLinkAttrs()`
*
* @returns Resolved set of link attributes or, if the provided link field or
* document is empty, and empty object
*
* @see Prismic link resolver documentation: {@link https://prismic.io/docs/route-resolver#link-resolver}
* @see Prismic API `routes` options documentation: {@link https://prismic.io/docs/route-resolver}
*/
Expand Down
4 changes: 0 additions & 4 deletions src/helpers/asText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ export const asText: {
*
* @deprecated Use object-style configuration instead.
*
* ```ts
* asText(field);
* asText(field, { separator });
* ```
* @param richTextField - A rich text or title field from Prismic
* @param separator - Separator used to join each element, defaults to a space
*
Expand Down

0 comments on commit d80b64a

Please sign in to comment.