@prismicio/react
Advanced tools
Comparing version 2.5.0-alpha.1 to 2.5.0
@@ -0,0 +0,0 @@ import * as _prismicio_client from '@prismicio/client'; |
@@ -61,3 +61,3 @@ import * as React from 'react'; | ||
var version = "2.5.0-alpha.1"; | ||
var version = "2.5.0"; | ||
@@ -84,3 +84,3 @@ const devMsg = (slug) => { | ||
throw new Error(`[PrismicLink] The provided field is missing required properties to properly render a link. The link will not render. For more details, see ${devMsg("missing-link-properties")}`); | ||
} else if (!(prismicH.isFilled.link(props.field) && ("url" in props.field || "id" in props.field))) { | ||
} else if (Object.keys(props.field).length > 1 && !("url" in props.field || "uid" in props.field || "id" in props.field)) { | ||
console.warn(`[PrismicLink] The provided field is missing required properties to properly render a link. The link may not render correctly. For more details, see ${devMsg("missing-link-properties")}`, props.field); | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "@prismicio/react", | ||
"version": "2.5.0-alpha.1", | ||
"version": "2.5.0", | ||
"description": "React components and hooks to fetch and present Prismic content", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
"@prismicio/mock": "^0.0.10", | ||
"@prismicio/types": "^0.2.1-alpha", | ||
"@prismicio/types": "^0.2.3", | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
@@ -58,0 +58,0 @@ "@testing-library/react": "^12.1.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
387851
4553