Skip to content

chore(tailwind): Add a warning for safelist and make it do nothing #1920

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

Open
wants to merge 27 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
45fc850
feat(react-email): added a theme switcher to the dev preview (#1749)
KayleeWilliams Feb 17, 2025
934bc53
feat(tailwind): extract pseudo classes to stylesheet (#1864)
Sjoertjuh Feb 26, 2025
351a1eb
fix(tailwind): Infinite loop during sanitization
gabrielmfern Feb 27, 2025
724f59e
chore(tailwind): Improve code for running Tailwind integration test (…
gabrielmfern Feb 27, 2025
57c8dce
chore(root): Lint
gabrielmfern Mar 31, 2025
8717a2a
fix(react-email): Rebase artifact with default active view
gabrielmfern Mar 31, 2025
ba7f702
chore: Enter pre-release
gabrielmfern Apr 8, 2025
e1831a0
chore(root): Version packages (canary) (#2064)
github-actions[bot] Apr 8, 2025
1dbbbc7
fix(tailwind): linter (#2021)
bukinoshita Apr 9, 2025
4bad68f
chore(root): Version packages (canary) (#2087)
github-actions[bot] Apr 14, 2025
9b9aa6f
chore(root): Version packages (canary) (#2088)
github-actions[bot] Apr 15, 2025
12b5ee0
chore(root): Version packages (canary) (#2090)
github-actions[bot] Apr 15, 2025
e8aa031
chore(root): Version packages (canary) (#2092)
github-actions[bot] Apr 16, 2025
e609fb9
chore(root): Version packages (canary) (#2096)
github-actions[bot] Apr 16, 2025
22e573a
chore(root): Version packages (canary) (#2098)
github-actions[bot] Apr 16, 2025
e62d722
chore(root): Version packages (canary) (#2175)
github-actions[bot] Apr 21, 2025
32f6029
chore: name release canary workflow according to Resend's standard (#…
bukinoshita May 5, 2025
6c63236
chore(deps): update changesets/action digest to 5f15b43 (#2198)
renovate[bot] May 5, 2025
d9d694c
chore(deps): update buildjet/cache digest to 9347ea1 (#2197)
renovate[bot] May 5, 2025
952ef4d
chore(deps): update dependency vite to v6.3.4 [security] (#2196)
renovate[bot] May 5, 2025
252466e
chore(root): Version packages (canary) (#2184)
github-actions[bot] May 5, 2025
d6a1239
Revert "chore(deps): update changesets/action digest to 5f15b43 (#2198)"
gabrielmfern May 5, 2025
b947f98
chore(react-email): Pre-render email templates on hover (#2187)
gabrielmfern May 5, 2025
b1839c2
chore(tailwind): Add a warning for safelist and make it do nothing
gabrielmfern Feb 19, 2025
64c7c9f
add changeset
gabrielmfern Feb 19, 2025
7340e73
lint
gabrielmfern Feb 19, 2025
45fd12d
lint
gabrielmfern May 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dirty-needles-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": minor
---

Theme switcher for email template
5 changes: 5 additions & 0 deletions .changeset/great-parrots-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/tailwind": minor
---

Extract tailwind pseudo classes to stylesheet
37 changes: 37 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"mode": "pre",
"tag": "canary",
"initialVersions": {
"demo": "0.0.0",
"docs": "0.0.0",
"web": "0.0.0",
"@benchmarks/preview-server": "0.0.0",
"@benchmarks/tailwind-component": "0.0.0",
"@react-email/body": "0.0.11",
"@react-email/button": "0.0.19",
"@react-email/code-block": "0.0.13",
"@react-email/code-inline": "0.0.5",
"@react-email/column": "0.0.13",
"@react-email/components": "0.0.37",
"@react-email/container": "0.0.15",
"create-email": "1.2.0",
"react-email-starter": "1.0.7",
"@react-email/font": "0.0.9",
"@react-email/head": "0.0.12",
"@react-email/heading": "0.0.15",
"@react-email/hr": "0.0.11",
"@react-email/html": "0.0.11",
"@react-email/img": "0.0.11",
"@react-email/link": "0.0.12",
"@react-email/markdown": "0.0.15",
"@react-email/preview": "0.0.12",
"react-email": "4.0.11",
"@react-email/render": "1.1.0",
"@react-email/row": "0.0.12",
"@react-email/section": "0.0.16",
"@react-email/tailwind": "1.0.5",
"@react-email/text": "0.1.2",
"tsconfig": "0.0.0"
},
"changesets": ["dirty-needles-chew", "great-parrots-yell"]
}
5 changes: 5 additions & 0 deletions .changeset/red-points-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/tailwind": patch
---

Add a warning when using `safelist` and force it to change no behavior
5 changes: 5 additions & 0 deletions .changeset/tidy-geese-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Pre-render email templates on hover
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- name: pnpm Cache
id: pnpm-cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
uses: buildjet/cache@9347ea1c7c1f331d397aa98b3894420448373372
with:
path: |
~/.pnpm-store
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- name: pnpm Cache
id: pnpm-cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
uses: buildjet/cache@9347ea1c7c1f331d397aa98b3894420448373372
with:
path: |
~/.pnpm-store
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: rsnd

name: Release Canary
on:
push:
branches:
- canary

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: release canary
Expand All @@ -19,21 +16,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare [email protected] --activate
pnpm config set script-shell "/usr/bin/bash"

- name: pnpm Cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
uses: buildjet/cache@9347ea1c7c1f331d397aa98b3894420448373372
with:
path: |
~/.pnpm-store
Expand All @@ -42,16 +36,13 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install packages
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile

- name: Enter prerelease mode
# This step errors if it is already in prerelease mode
continue-on-error: true
run: pnpm canary:enter

- name: Create "Version packages" PR or publish release
uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- name: pnpm Cache
id: pnpm-cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
uses: buildjet/cache@9347ea1c7c1f331d397aa98b3894420448373372
with:
path: |
~/.pnpm-store
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: pnpm Cache
id: pnpm-cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
uses: buildjet/cache@9347ea1c7c1f331d397aa98b3894420448373372
with:
path: |
~/.pnpm-store
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"tsconfig": "workspace:*",
"tsup": "8.4.0",
"turbo": "2.5.0",
"vite": "6.3.2",
"vite": "6.3.4",
"vitest": "3.1.1"
},
"pnpm": {
Expand Down
6 changes: 6 additions & 0 deletions packages/code-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

- 9aa033c: Use range of versions for dependencies

## 0.0.13-canary.0

### Patch Changes

- 9b1adb0: Use range of versions for dependencies

## 0.0.12

### Patch Changes
Expand Down
80 changes: 80 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-email/components

## 0.0.39-canary.0

### Patch Changes

- Updated dependencies [934bc53]
- @react-email/[email protected]

## 0.0.38

### Patch Changes
Expand Down Expand Up @@ -36,6 +43,79 @@
- @react-email/[email protected]
- @react-email/[email protected]

## 0.0.37-canary.4

### Patch Changes

- Updated dependencies [bd58fa9]
- @react-email/[email protected]

## 0.0.37-canary.3

### Patch Changes

- Updated dependencies [8179dc6]
- @react-email/[email protected]

## 0.0.37-canary.2

### Patch Changes

- Updated dependencies [9b1adb0]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]

## 0.0.37-canary.1

### Patch Changes

- Updated dependencies [32372da]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]
- @react-email/[email protected]

## 0.0.37-canary.0

### Patch Changes

- Updated dependencies [ae8c007]
- @react-email/[email protected]

## 0.0.36

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-email/components",
"version": "0.0.38",
"version": "0.0.39-canary.0",
"description": "A collection of all components React Email.",
"sideEffects": false,
"main": "./dist/index.js",
Expand Down Expand Up @@ -58,7 +58,7 @@
"@react-email/render": "workspace:1.1.0",
"@react-email/row": "workspace:0.0.12",
"@react-email/section": "workspace:0.0.16",
"@react-email/tailwind": "workspace:1.0.5",
"@react-email/tailwind": "workspace:1.1.0-canary.0",
"@react-email/text": "workspace:0.1.3"
},
"peerDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions packages/create-email/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,26 @@

- d689346: Show package.json's version on --version for create-email

## 1.2.0-canary.1

### Patch Changes

- 0c3aaa3: Show package.json's version on --version for create-email

## 1.2.0-canary.0

### Minor Changes

- 237d115: Fetch react-email package versions at runtime from `--tag` option

## 1.1.0

### Minor Changes

- 31fd7cc: use caret for dependency on react-email and @react-email/components

## 1.0.8-canary.0

## 1.0.7

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/create-email/template/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## 1.1.0

## 1.0.8-canary.0

### Patch Changes

- @react-email/[email protected]

## 1.0.7

## 1.0.6
Expand Down
6 changes: 6 additions & 0 deletions packages/markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

- 9aa033c: Use range of versions for dependencies

## 0.0.15-canary.0

### Patch Changes

- 9b1adb0: Use range of versions for dependencies

## 0.0.14

### Patch Changes
Expand Down
33 changes: 33 additions & 0 deletions packages/react-email/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# react-email

## 4.1.0-canary.4

### Patch Changes

- 5c6150d: Add .json import support for hot reloading
- aae2f59: Ensure dependencies outside emails directory are completely resolved
- b4b2373: Fix non-email files being rendered during hot reloading

## 4.1.0-canary.3

### Patch Changes

- 681d4ed: fix backwards compatibility with `render` versions

## 4.1.0-canary.2

### Patch Changes

- 9b1adb0: Use range of versions for dependencies

## 4.1.0-canary.1

### Patch Changes

- a587e17: Fix dependent of dependents not causing hot reloads
- dbf3a64: Add error message for when an email template does not have a default export

## 4.1.0-canary.0

### Minor Changes

- 4a0d4e3: Theme switcher for email template

## 4.0.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-email/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-email",
"version": "4.0.11",
"version": "4.1.0-canary.4",
"description": "A live preview of your emails right in your browser.",
"bin": {
"email": "./dist/cli/index.mjs"
Expand Down
Loading
Loading