Skip to content

build: update emails preview to react-email 6.11.0 with patched next - #4

Merged
agentHits merged 1 commit into
AgentHits-Devfrom
build/emails-react-email-6-11
Oct 6, 2026
Merged

agentHits merged 1 commit into
AgentHits-Devfrom
build/emails-react-email-6-11

Conversation

@agentHits

Copy link
Copy Markdown
Collaborator

What is this PR about?

Finishes the emails preview update that had been left uncommitted in a worktree:

  • react-email and @react-email/ui 6.11.0, pinned to the same version (the email CLI refuses to start otherwise).
  • A pnpm override keeps the preview's next on >=16.3.8 <17.0.0; @react-email/ui 6.11.0 pins the vulnerable 16.3.3.
  • react-dom added as the react-email 6 peer; React and its types aligned with bun.lock (19.3.0); @react-email/components stays 1.0.12.
  • Lockfile regenerated with pnpm 10.22.0 and a 3-day minimum release age; vulnerable transitive brace-expansion, fast-uri and source-map-js bumped to patched versions.
  • Readme installs with pnpm, because npm and yarn ignore the lockfile and the override.

The package is dev-only (not in the bun workspace or the Docker image), so the running Dokploy is unchanged.

Checks

  • pnpm install --frozen-lockfile passes; pnpm audit: no known vulnerabilities.
  • email dev: the index and all 18 templates return 200 and render without errors; only next 16.3.8 is installed.
  • bun run typecheck: 4/4 packages pass.
  • vitest __test__/notification: 26/26.
  • Not run: email build and email export.

🤖 Generated with Claude Code

Что:
- react-email и @react-email/ui обновлены с 6.6.4 до 6.11.0 и закреплены одной версией: CLI `email` не запускается, если они различаются.
- Для next добавлен pnpm override `>=16.3.8 <17.0.0`: @react-email/ui 6.11.0 жёстко тянет next 16.3.3 с критическими и high-уязвимостями.
- Добавлен react-dom (peer-зависимость react-email 6); react, react-dom и @types/react(-dom) выровнены с bun.lock (19.3.0), @react-email/components остался 1.0.12.
- pnpm-lock.yaml пересобран pnpm 10.22.0 с minimum-release-age 3 дня; транзитивные brace-expansion 5.0.12, fast-uri 3.1.8 и source-map-js 1.2.2 подняты до исправленных версий.
- В readme установка через pnpm: npm и yarn игнорируют pnpm-lock.yaml и override.
Зачем:
- Манифест и лок-файл расходились: в лок-файле не было @react-email/ui и next, specifier components отличался, а предпросмотр тянул уязвимый next.
- Одинаковые @types/react и @react-email/components в bun.lock и в лок-файле пакета нужны, чтобы проверка типов @dokploy/server не видела две копии типов React.
Риски:
- Пакет нужен только для локального предпросмотра писем: он не входит в bun workspace и Docker-образ, рантайм сервера не меняется.
Проверки:
- Команды и результаты: `pnpm install --frozen-lockfile` проходит; `pnpm audit` — уязвимостей нет; `email dev` — главная страница и все 18 шаблонов отдают 200 и рендерятся без ошибок, установлен только next 16.3.8; `bun run typecheck` — 4/4 пакета без ошибок; vitest `__test__/notification` — 26/26.
- Ограничения: `email build` и `email export` не запускались; `email build` ставит зависимости ui через npm внутри .react-email и не видит override.

What:
- Bumped react-email and @react-email/ui from 6.6.4 to 6.11.0 and pinned them to the same version: the `email` CLI refuses to start when they differ.
- Added a pnpm override `>=16.3.8 <17.0.0` for next: @react-email/ui 6.11.0 pins next 16.3.3, which has critical and high advisories.
- Added react-dom (a react-email 6 peer dependency); aligned react, react-dom and @types/react(-dom) with bun.lock (19.3.0); kept @react-email/components at 1.0.12.
- Regenerated pnpm-lock.yaml with pnpm 10.22.0 and a 3-day minimum release age; moved transitive brace-expansion to 5.0.12, fast-uri to 3.1.8 and source-map-js to 1.2.2.
- The readme now installs with pnpm: npm and yarn ignore pnpm-lock.yaml and the override.
Why:
- The manifest and lockfile had drifted: the lockfile had no @react-email/ui or next, the components specifier differed, and the preview pulled a vulnerable next.
- bun.lock and this package's lockfile must resolve the same @types/react and @react-email/components, or the @dokploy/server typecheck sees two copies of the React types.
Risks:
- The package is only used to preview emails locally: it is not in the bun workspace or the Docker image, so the server runtime is unchanged.
Checks:
- Commands and results: `pnpm install --frozen-lockfile` passes; `pnpm audit` finds no vulnerabilities; `email dev` serves the index and all 18 templates with 200 and renders them without errors, with only next 16.3.8 installed; `bun run typecheck` passes for 4/4 packages; vitest `__test__/notification` 26/26.
- Limitations: `email build` and `email export` were not run; `email build` installs ui's dependencies with npm inside .react-email and does not see the override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agentHits
agentHits merged commit befcbd7 into AgentHits-Dev Oct 6, 2026
4 checks passed
@agentHits
agentHits deleted the build/emails-react-email-6-11 branch October 6, 2026 17:06
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.

1 participant