@prismicio/react
Advanced tools
Comparing version 2.4.3 to 2.5.0-alpha.0
@@ -564,2 +564,3 @@ import * as _prismicio_client from '@prismicio/client'; | ||
slice_type: prismicT.Slice<SliceType>["slice_type"]; | ||
slice_id?: string; | ||
}; | ||
@@ -566,0 +567,0 @@ /** |
@@ -61,3 +61,3 @@ import * as React from 'react'; | ||
var version = "2.4.3"; | ||
var version = "2.5.0-alpha.0"; | ||
@@ -379,3 +379,3 @@ const devMsg = (slug) => { | ||
} | ||
const key = `${index}-${JSON.stringify(slice)}`; | ||
const key = "slice_id" in slice && slice.slice_id ? slice.slice_id : `${index}-${JSON.stringify(slice)}`; | ||
return /* @__PURE__ */ React.createElement(Comp, { | ||
@@ -382,0 +382,0 @@ key, |
{ | ||
"name": "@prismicio/react", | ||
"version": "2.4.3", | ||
"version": "2.5.0-alpha.0", | ||
"description": "React components and hooks to fetch and present Prismic content", | ||
@@ -41,4 +41,4 @@ "keywords": [ | ||
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish", | ||
"release:beta": "npm run build && npm run test && standard-version --release-as major --prerelease beta && git push --follow-tags && npm run build && npm publish --tag beta", | ||
"release:beta:dry": "standard-version --release-as major --prerelease beta --dry-run", | ||
"release:alpha": "npm run build && npm run test && standard-version --release-as minor --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha", | ||
"release:alpha:dry": "standard-version --release-as minor --prerelease alpha --dry-run", | ||
"release:dry": "standard-version --dry-run", | ||
@@ -56,3 +56,3 @@ "size": "size-limit", | ||
"@prismicio/mock": "^0.0.10", | ||
"@prismicio/types": "^0.1.27", | ||
"@prismicio/types": "^0.2.1-alpha", | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
@@ -59,0 +59,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
389184
4555
2