Skip to content

Commit a3cc623

Browse files
authored
Merge pull request #50 from JoseRFelix/chore/add-v2-changelog
chore: 2.0.0 release metadata and changelog
2 parents 8f29037 + 0f65544 commit a3cc623

6 files changed

Lines changed: 40 additions & 6 deletions

File tree

.changeset/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": ["example"]
1111
}

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# react-toggle-dark-mode
2+
3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- Modernize build setup and harden DarkModeSwitch for React 16–19
8+
9+
### Changed
10+
- Migrated project tooling from Yarn to pnpm.
11+
- Updated root scripts and package metadata for pnpm-based workflows.
12+
- Switched CI to modern GitHub Actions (`checkout@v4`, `setup-node@v4`, Node 20) and pnpm caching.
13+
- Added a React compatibility CI matrix for React 16, 17, 18, and 19.
14+
- Replaced `react-spring` import usage with `@react-spring/web`.
15+
- Updated dependencies/devDependencies across root and example app (React 19, newer TypeScript/tooling).
16+
- Modernized example app bootstrapping to `createRoot` and module script loading.
17+
- Updated README install instructions to show pnpm usage.
18+
- Added `.pnpm-store` to `.gitignore`.
19+
20+
### Improved
21+
- Refactored `DarkModeSwitch` animation property merging to avoid mutating defaults.
22+
- Improved prop typing (button-oriented props) and event handling in `DarkModeSwitch`.
23+
- Improved accessibility defaults (`role="switch"`, `aria-checked`, default label behavior).
24+
- Strengthened test suite with coverage for:
25+
- animation-property merge behavior
26+
- non-mutation of defaults
27+
- accessibility attributes
28+
- unique mask IDs across multiple component instances
29+
30+
### Removed
31+
- Removed legacy Yarn lockfiles (`yarn.lock`, `example/yarn.lock`).

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "example",
33
"version": "1.0.0",
44
"license": "MIT",
5+
"private": true,
56
"scripts": {
67
"start": "parcel index.html",
78
"build": "parcel build index.html"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"packageManager": "pnpm@10.28.2",
3-
"version": "0.3.0",
3+
"version": "2.0.0",
44
"license": "MIT",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7+
"private": false,
78
"files": [
89
"dist",
910
"src"

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages:
2+
- .
23
- example

0 commit comments

Comments
 (0)