prismicio / prismic-next

Helpers to integrate Prismic into Next.js apps
https://prismic.io/docs/technologies/nextjs
Apache License 2.0
57 stars 7 forks source link

refactor: simplify Prismic preview cookie reading #34

Closed angeloashmore closed 2 years ago

angeloashmore commented 2 years ago

Types of changes

Description

This PR cleans up the repository in two ways:

  1. Removes an unused AVA configuration file.
  2. Refactors logic to read the Prismic preview cookie within a browser for greater simplicity.

Checklist:

🦆

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/index.js 4.06 KB (-0.08% 🔽)
./dist/index.cjs 8.34 KB (-0.02% 🔽)
codecov-commenter commented 2 years ago

Codecov Report

Merging #34 (7a54b64) into main (1a654af) will increase coverage by 0.15%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main       #34      +/-   ##
===========================================
+ Coverage   99.84%   100.00%   +0.15%     
===========================================
  Files          11        11              
  Lines         664       665       +1     
  Branches       31        33       +2     
===========================================
+ Hits          663       665       +2     
+ Partials        1         0       -1     
Impacted Files Coverage Δ
src/PrismicPreview.tsx 100.00% <100.00%> (ø)
src/lib/getPrismicPreviewCookie.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.