-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use stable sort #17
Use stable sort #17
Conversation
ciscorn
commented
Oct 21, 2024
•
edited
Loading
edited
- Use stable sort
- Sorting algorithm has changed in Rust 1.81, which is causing our tests to fail: New sort implementations - Announcing Rust 1.81.0
- Sorting algorithm has changed in Rust 1.81, which is causing our tests to fail: New sort implementations - Announcing Rust 1.81.0
- Update README to reflect earcut(-js) 3.0.0 release: earcut v3.0.0 Release
- Note: The triangulation algorithm hasn’t changed since version 2.2.4.
WalkthroughThe changes in this pull request involve updates to the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used🔇 Additional comments (5)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
README.md (1)
10-10
: Improved clarity on memory allocation. Consider minor rewording.The updated description provides better clarity on the reusability of internal buffers and output index vectors. This is a good improvement in explaining the library's behavior.
For even better clarity, consider rewording slightly:
- Designed to avoid unnecessary memory allocations. The internal buffer and output index vector can be reused across multiple triangulations. + Optimized for memory efficiency. The internal buffer and output index vector are designed to be reusable across multiple triangulations, reducing unnecessary allocations.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- README.md (2 hunks)
🧰 Additional context used
🔇 Additional comments (2)
README.md (2)
43-43
: Improved formatting in Authors section.The removal of the unnecessary line break after "MIERUNE Inc." improves the readability of the Authors section. This is a good formatting change.
9-9
: Version update looks good. Consider documenting breaking changes.The update to version 3.0.0 aligns with the PR objective. As this is a major version bump, it's important to ensure that any breaking changes are properly documented.
To verify if there are any breaking changes that need documentation, please run the following script:
✅ Verification successful
Version update verified. No breaking changes found.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for potential breaking changes in the codebase # Test: Look for BREAKING CHANGE or BREAKING CHANGES in commit messages git log --oneline --grep="BREAKING CHANGE" --grep="BREAKING CHANGES" $(git describe --tags --abbrev=0)..HEAD # Test: Check for changes in public API (assuming public functions are prefixed with 'pub') git diff $(git describe --tags --abbrev=0)..HEAD | grep '^[+-]pub' # Test: Check for changes in Cargo.toml git diff $(git describe --tags --abbrev=0)..HEAD Cargo.tomlLength of output: 391
Script:
#!/bin/bash # Description: Check for potential breaking changes in the codebase, handling repositories without tags. # Determine the base commit. Use the latest tag if available; otherwise, use the initial commit. BASE_COMMIT=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD) # Verify if BASE_COMMIT was successfully determined if [ -z "$BASE_COMMIT" ]; then echo "Error: Unable to determine the base commit." exit 1 fi echo "Base commit for comparison: $BASE_COMMIT" # Test 1: Look for BREAKING CHANGE or BREAKING CHANGES in commit messages since the base commit echo "Checking commit messages for breaking changes..." git log --oneline --grep="BREAKING CHANGE" --grep="BREAKING CHANGES" $BASE_COMMIT..HEAD # Test 2: Check for changes in public API (assuming public functions are prefixed with 'pub') echo "Checking for changes in public API..." git diff $BASE_COMMIT..HEAD | grep '^[+-]pub' # Test 3: Check for changes in Cargo.toml echo "Checking for changes in Cargo.toml..." git diff $BASE_COMMIT..HEAD Cargo.tomlLength of output: 866
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17 +/- ##
==========================================
- Coverage 99.56% 99.56% -0.01%
==========================================
Files 2 2
Lines 928 927 -1
==========================================
- Hits 924 923 -1
Misses 4 4 ☔ View full report in Codecov by Sentry. |