feat: export DefaultZIndexes and ZIndexLayer#6599
Conversation
WalkthroughThis pull request adds two new public exports ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (3)
omnidoc/readProject.spec.ts(3 hunks)package.json(1 hunks)src/index.ts(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/**/*.{js,jsx,ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Do not hardcode any user-facing strings or formatting choices in the library code; leave internationalization to library users
Files:
src/index.ts
🧠 Learnings (2)
📚 Learning: 2025-10-25T07:35:46.188Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: test/README.md:0-0
Timestamp: 2025-10-25T07:35:46.188Z
Learning: Applies to test/**/*.test.{ts,tsx} : Mock getBoundingClientRect using test/helper/MockGetBoundingClientRect.ts when rendering Recharts components (e.g., Tooltip, Legend, charts)
Applied to files:
src/index.ts
📚 Learning: 2025-10-25T07:36:02.229Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-10-25T07:36:02.229Z
Learning: Recharts aims for simple, declarative, and composable charts; prioritize consistency, usability, performance, and accessibility
Applied to files:
src/index.tspackage.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build, Test, Pack
🔇 Additional comments (2)
src/index.ts (1)
113-115: LGTM!The new exports follow the existing pattern and are correctly formatted. The placement maintains logical grouping within the file.
omnidoc/readProject.spec.ts (1)
36-36: LGTM! Test snapshots correctly updated.The test snapshots properly reflect the new public API surface. Both
DefaultZIndexesandZIndexLayerappear in the full symbol list, while onlyDefaultZIndexesappears in the Variable-filtered list. This difference suggestsZIndexLayermay be a different symbol type (e.g., a type alias, interface, or function) rather than a variable, which is acceptable.Also applies to: 130-130, 150-150
| { | ||
| "name": "recharts", | ||
| "version": "3.4.0", | ||
| "version": "3.4.1", |
There was a problem hiding this comment.
Semver: Use minor version bump (3.5.0) for new feature exports.
Adding new public exports (ZIndexLayer and DefaultZIndexes) is a backwards-compatible feature addition. Per semantic versioning conventions, this should increment the minor version (3.5.0) rather than the patch version (3.4.1), which is typically reserved for bug fixes.
Apply this diff:
- "version": "3.4.1",
+ "version": "3.5.0",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "version": "3.4.1", | |
| "version": "3.5.0", |
🤖 Prompt for AI Agents
In package.json around line 3, the version is set to "3.4.1" but the PR adds new
public exports and should use a minor version bump; update the version string to
"3.5.0" to reflect a backwards-compatible feature addition per semver
conventions.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6599 +/- ##
=======================================
Coverage 94.57% 94.57%
=======================================
Files 491 491
Lines 40697 40699 +2
Branches 4772 4771 -1
=======================================
+ Hits 38491 38493 +2
Misses 2201 2201
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will increase total bundle size by 553 bytes (0.02%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-es6Assets Changed:
view changes for bundle: recharts/bundle-umdAssets Changed:
view changes for bundle: recharts/bundle-cjsAssets Changed:
|
Description
The first part of #6546 so we can merge that.
export DefaultZIndexes and ZIndexLayer
Related Issue
Motivation and Context
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Chores