Skip to content

Commit 19db11b

Browse files
committed
Changelog
1 parent 6b4a3b5 commit 19db11b

File tree

9 files changed

+88
-3
lines changed

9 files changed

+88
-3
lines changed

.github/workflows/docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Update dependencies and Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
schedule:
7+
- cron: "0 0 */2 * *"
8+
jobs:
9+
doc:
10+
if: github.event.repository.owner.login == 'react18-tools'
11+
runs-on: ubuntu-latest
12+
permissions:
13+
packages: write
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- uses: actions/setup-node@v3
21+
with:
22+
registry-url: https://registry.npmjs.org
23+
node-version: 20
24+
- run: npm i -g pnpm && pnpm i
25+
name: Install dependencies
26+
- name: Test
27+
run: npm test
28+
- run: git status && git clean -f -d && git status
29+
name: clean up working directory
30+
- run: npx @turbo/codemod update . && pnpm update --latest -w
31+
name: Update dependencies
32+
- run: pnpm build
33+
name: Build all apps to make sure it is not broken due to dependency upgrades
34+
- name: Run unit tests
35+
run: pnpm test
36+
- name: Generate/update docs
37+
run: pnpm doc
38+
- name: Setup Git
39+
run: |
40+
git config --global user.name "mayank1513"
41+
git config --global user.email "[email protected]"
42+
git fetch
43+
git checkout main
44+
- name: Save upgraded packages back to repo
45+
run: git add . && git commit -m "upgrade deps && docs" && git push origin main

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ This project is inspired by `next-themes`. `next-themes` is an awesome package,
2323
- ✅ Class or data attribute selector
2424
- ✅ Manipulate theme via `useTheme` hook
2525
- ✅ Doccumented with [Typedoc](https://react18-tools.github.io/react18-themes) ([Docs](https://react18-tools.github.io/react18-themes))
26+
- ✅ Use combinations of [data-th=""] and [data-color-scheme=""] for dark/light varients of themes
27+
- ✅ Use [data-csp=""] to style based on colorSchemePreference.
2628

2729
Check out the [live example](https://react18-themes.vercel.app/).
2830

examples/nextjs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# nextjs-example
22

3+
## 0.0.12
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
10+
311
## 0.0.11
412

513
### Patch Changes

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-example",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --port 3002",

examples/remix/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
### Patch Changes
66

7+
- Updated dependencies
8+
9+
10+
11+
## null
12+
13+
### Patch Changes
14+
715
- Updated dependencies [170b3f2]
816
917

examples/vite/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# vite-example
22

3+
## 0.0.12
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
10+
311
## 0.0.11
412

513
### Patch Changes

examples/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-example",
33
"private": true,
4-
"version": "0.0.11",
4+
"version": "0.0.12",
55
"type": "module",
66
"scripts": {
77
"dev": "vite --port 3001",

lib/react18-themes/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# react18-themes
22

3+
## 2.2.0
4+
5+
### Minor Changes
6+
7+
- ### Add Tailwind and Custom Transitions support
8+
9+
- No changes required for client side code as `[data-theme=]` selectors work as before.
10+
- If you are using `ServerSideWrapper` or `NextJsServerTarget` or `NextJsSSGThemeSwitcher`, you need to convert `forcedPages` elements to objects of the shape `{ pathMatcher: RegExp | string; props: ThemeSwitcherProps }`.
11+
- Use `resolvedColorScheme` for more sturdy dark/light/system modes
12+
- Use combinations of `[data-th=""]` and `[data-color-scheme=""]` for dark/light varients of themes
13+
- Use `[data-csp=""]` to style based on colorSchemePreference.
14+
- Provide `themeTransition` prop to `ThemeSwitcher` component to apply smooth transition while changing theme.
15+
- Use `setThemeSet` to set `lightTheme` and `darkTheme` together.
16+
317
## 2.1.0
418

519
### Minor Changes

lib/react18-themes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react18-themes",
33
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
44
"private": false,
5-
"version": "2.1.0",
5+
"version": "2.2.0",
66
"description": "Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.",
77
"main": "./index.ts",
88
"types": "./index.ts",

0 commit comments

Comments
 (0)