Skip to content

Conversation

@emiliosheinz
Copy link
Contributor

@emiliosheinz emiliosheinz commented Oct 20, 2025

Deprecates the pretty helper and options.pretty across node, browser, and edge render paths. Adds JSDoc and inline comments referencing issue #2426 explaining removal goal (dropping Prettier dependency) and migration (call render then run your own formatter). No runtime behavior change unless consumers check new comments.

Follow-up: remove option and dependency in next major after warning period.


Summary by cubic

Deprecates the pretty helper and the options.pretty flag across node, browser, and edge render paths. Adds JSDoc guidance to format rendered HTML yourself; no runtime changes, aligning with the plan to drop the Prettier dependency (see #2426).

  • Migration
    • Stop using options.pretty and pretty().
    • Render HTML, then run your own formatter (e.g., Prettier) if needed.
    • Removal planned for the next major release.

bukinoshita and others added 8 commits October 17, 2025 17:28
Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Bu Kinoshita <6929565+bukinoshita@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot
Copy link

changeset-bot bot commented Oct 20, 2025

⚠️ No Changeset found

Latest commit: 050b50a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 20, 2025

@emiliosheinz is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/render@2581

commit: 050b50a

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

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.

3 participants