-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix: partitioned and autoChips should support different paths #55
Conversation
Warning Rate limit exceeded@fengmk2 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 58 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe overall change encompasses updates to the GitHub Actions workflow, enhancements to cookie handling functions in a TypeScript file, and new test cases to verify these changes. Additionally, the ESLint configuration version is incremented in Changes
Sequence Diagram(s)N/A Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] |
Run & review this pull request in StackBlitz Codeflow. commit: @eggjs/cookies
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #55 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 610 632 +22
Branches 131 138 +7
=========================================
+ Hits 610 632 +22 ☔ View full report in Codecov by Sentry. |
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: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- .github/workflows/pkg.pr.new.yml (1 hunks)
- package.json (1 hunks)
- src/cookies.ts (4 hunks)
- test/cookies.test.ts (2 hunks)
Files skipped from review due to trivial changes (2)
- .github/workflows/pkg.pr.new.yml
- package.json
Additional context used
GitHub Check: codecov/patch
src/cookies.ts
[warning] 318-319: src/cookies.ts#L318-L319
Added lines #L318 - L319 were not covered by tests
Additional comments not posted (6)
src/cookies.ts (4)
176-179
: EnsureremoveUnpartitioned
functionality works correctly.The
removeUnpartitioned
option now correctly handles cookies with different paths by usingignoreCookiesByNameAndPath
. This change ensures that only cookies with the same path are removed.
190-191
: EnsureignoreCookiesByNameAndPath
is called correctly.The function
ignoreCookiesByNameAndPath
is used to handle the removal of.sig
cookies with different paths. This change ensures that only cookies with the same path are removed.
210-211
: EnsureignoreCookiesByNameAndPath
is called correctly.The function
ignoreCookiesByNameAndPath
is used to handle the removal of_CHIPS-
prefix cookies with different paths. This change ensures that only cookies with the same path are removed.
316-319
: New functionignoreCookiesByNameAndPath
added.The function
ignoreCookiesByNameAndPath
correctly handles the removal of cookies with different paths. Ensure that all edge cases are covered in tests.Tools
GitHub Check: codecov/patch
[warning] 318-319: src/cookies.ts#L318-L319
Added lines #L318 - L319 were not covered by teststest/cookies.test.ts (2)
898-927
: Test case forremoveUnpartitioned
with different paths added.The test case correctly validates that the
removeUnpartitioned
option handles cookies with different paths without removing them.
951-993
: Test case forpartitioned
andunpartitioned
with different paths added.The test case correctly validates that the
partitioned
andunpartitioned
options work correctly with cookies having different paths.
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: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cookies.ts (4 hunks)
Additional context used
Biome
src/cookies.ts
[error] 339-339: expected
}
but instead the file endsthe file ends here
(parse)
Additional comments not posted (1)
src/cookies.ts (1)
176-179
: LGTM! Ensure thorough testing.The changes to the
set
method look good. Ensure that the method is thoroughly tested, especially with theremoveUnpartitioned
option enabled.Also applies to: 190-191, 210-211
027451b
to
f567765
Compare
[skip ci] ## [3.0.1](v3.0.0...v3.0.1) (2024-07-06) ### Bug Fixes * partitioned and autoChips should support different paths ([#55](#55)) ([50b1313](50b1313))
closes #53
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores