Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: v2 #100

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open

feat!: v2 #100

wants to merge 47 commits into from

Conversation

angeloashmore
Copy link
Member

@angeloashmore angeloashmore commented Nov 15, 2024

Resolves: N/A

Description

This PR restructures the package and its codebase. See the New features and Breaking changes sections below for details.

A dedicated upgrade guide will be available on https://prismic.io/docs.

@prismicio/next is now tested against real Next.js projects via Playwright. We'll be able to more accurate catch bugs and test against different kinds of projects.

New features

  • Support ESM environments, including Vercel Edge Runtime and Cloudflare Pages.

Breaking changes

  • Move all Pages Router support to a dedicated entry: @prismicio/next/pages.
  • Remove createLocaleRedirect(). See Replace createLocaleRedirect() for details.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

N/A

How to QA 1

N/A

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@angeloashmore angeloashmore marked this pull request as ready for review December 12, 2024 02:50
@angeloashmore angeloashmore marked this pull request as draft December 12, 2024 02:51
* test: isolate Playwright tests

* ci: try multiple workers

* feat: attempt persisted, shared repository

* test: implement own prismic client

* test: remove slice machine from e2e projects

* test: create storage state file on start

* test: remove console.log

* test: isolate xsrf token

* test: fix preview tests

* test: refactor

* test: add teardown

* chore: use workspaces

* ci: fix installation
@angeloashmore angeloashmore marked this pull request as ready for review December 19, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants