diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f45078..fd2f675 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,21 +130,27 @@ jobs: echo "" >> CHANGELOG.md fi - # Prepare new entry - cat > /tmp/new_entry.md < /tmp/new_entry.md <> /tmp/new_entry.md - echo "" >> /tmp/new_entry.md + cat /tmp/changelog.md | tail -n +3 >> /tmp/new_entry.md + echo "" >> /tmp/new_entry.md - # Insert after the header - sed -i '1,/^All notable/r /tmp/new_entry.md' CHANGELOG.md || { - # If sed fails (no header found), just prepend - cat /tmp/new_entry.md CHANGELOG.md > /tmp/new_changelog.md - mv /tmp/new_changelog.md CHANGELOG.md - } + # Insert after the header + sed -i '1,/^All notable/r /tmp/new_entry.md' CHANGELOG.md || { + # If sed fails (no header found), just prepend + cat /tmp/new_entry.md CHANGELOG.md > /tmp/new_changelog.md + mv /tmp/new_changelog.md CHANGELOG.md + } + echo "Added v${{ steps.bump_version.outputs.new_version }} to CHANGELOG.md" + fi - name: Create Pull Request uses: peter-evans/create-pull-request@v6 diff --git a/CHANGELOG.md b/CHANGELOG.md index c807a9f..06c8296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,36 +1,40 @@ # Changelog -## [v2.2.3] - 2025-12-10 + +All notable changes to this project will be documented in this file. + +## [v2.3.0] - 2025-12-23 + +### ✨ Features + +- feat: add official React 19 support (faca437) ### 🐛 Bug Fixes - fix: resolve ESLint error in env.d.ts (aecf48d) - fix: resolve SVG bundling issue and update example configuration (260ac42) - fix: update ESLint ignore patterns and fix import ordering (26216dc) -- fix CI build failures (7fd7e9b) +- fix: update CI to use Node 20+ for Vite 5 compatibility (e96b521) - fix: resolve security vulnerabilities with yarn resolutions (54f7cf5) -- fix w React18, add pointer to drag handle (8a6e764) -- fix build, gen types (5252a02) ### 🔧 Chore +- chore: upgrade ESLint to 9.x with flat config migration (ac87acc) - chore: update build tools - vite and vitest major version upgrades (eebc52a) ### 🔨 Other Changes -- Add test configuration, testing library and some basic tests (0f36f72) -- Fix CI build issues (8797d86) -- fix: update CI to use Node 20+ for Vite 5 compatibility (e96b521) -- Fix build failures (a9c9f19) +- Replaced react-beautiful-dnd (deprecated) with @hello-pangea/dnd@18.0.1 (8e54452) - ci: add automated CI workflow for testing and building (0a29f13) -- chore: upgrade ESLint to 9.x with flat config migration (ac87acc) -- update husky to 9.1.7 (4e47798) +- Add test configuration, testing library and some basic tests (0f36f72) + +## [v2.2.3] - 2025-12-10 + +(Previous release changes) ## [v2.2.2] -- version up (1bea5e2) -- remove problematic inline-block (739d1b9) -- -# [v2.2.0] -- update deps, use eslint-config-reearth, refactor vite config (da71e12) -- add realignable prop to GridArea (1689c0f) -- simplify types (e0f579e) -- use prettier in example proj too (6b30c8f) \ No newline at end of file + +(Previous release changes) + +## [v2.2.0] + +(Previous release changes) diff --git a/package.json b/package.json index ef4b78c..0d905bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-align", - "version": "2.2.3", + "version": "2.3.0", "author": "KaWaite", "license": "MIT", "main": "./dist/react-align.umd.js", @@ -26,8 +26,8 @@ "node": ">=10" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", - "@hello-pangea/dnd": "*" + "@hello-pangea/dnd": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "prettier": { "printWidth": 80, @@ -44,6 +44,7 @@ "js-yaml": "^4.1.1" }, "devDependencies": { + "@hello-pangea/dnd": "^18.0.1", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.0", @@ -58,7 +59,6 @@ "postcss": "^8.5.6", "prettier": "^3.7.4", "react": "^19.2.3", - "@hello-pangea/dnd": "^18.0.1", "react-dom": "^19.2.3", "tslib": "^2.8.1", "typescript": "^5.9.3",