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

Merged
merged 58 commits into from
Jan 29, 2025
Merged

feat!: v2 #100

merged 58 commits into from
Jan 29, 2025

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 accurately 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 merged commit dc39291 into main Jan 29, 2025
3 checks passed
@angeloashmore angeloashmore deleted the aa/v2 branch January 29, 2025 22:07
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