Skip to content

Conversation

@ReneWerner87
Copy link
Member

No description provided.

@ReneWerner87 ReneWerner87 added this to the v3 milestone Jun 2, 2025
Copilot AI review requested due to automatic review settings June 2, 2025 08:12
@ReneWerner87 ReneWerner87 requested a review from a team as a code owner June 2, 2025 08:12
@ReneWerner87 ReneWerner87 requested review from gaby and sixcolors June 2, 2025 08:12
@ReneWerner87 ReneWerner87 added this to v3 Jun 2, 2025
@ReneWerner87 ReneWerner87 requested a review from efectn June 2, 2025 08:12
@ReneWerner87 ReneWerner87 added the v3 label Jun 2, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 2, 2025

Walkthrough

Deprecated constants and configuration fields related to MIME types, cache, limiter, and logger middleware have been removed from both code and documentation. Documentation updates clarify these removals, provide migration guidance, and highlight the new recommended alternatives for affected features.

Changes

File(s) Change Summary
constants.go, docs/api/constants.md Removed deprecated MIMEApplicationJavaScript and MIMEApplicationJavaScriptCharsetUTF8 constants.
docs/middleware/cache.md Removed deprecated cache config properties: Store and Key.
docs/middleware/limiter.md Removed deprecated limiter config properties: Duration, Store, and Key.
docs/middleware/logger.md Removed deprecated TagHeader constant from logger middleware documentation.
docs/whats_new.md Updated documentation to note deprecations and removals, and to guide users to new alternatives.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation
    participant Middleware

    User->>Documentation: Consults config/constants
    Documentation-->>User: Presents updated fields/constants
    User->>Middleware: Uses new config fields/constants
    Middleware-->>User: Processes request with updated logic
Loading

Suggested labels

🧹 Updates

Suggested reviewers

  • gaby
  • sixcolors

Poem

A hop and a skip, old fields retire,
Constants trimmed from Fiber’s wire.
Docs refreshed, the path is clear,
Use new names, have no fear!
With every change, the code grows neat—
A rabbit’s work is never complete. 🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes deprecated comments and updates documentation to reflect the current naming conventions for constants and middleware options.

  • Removed deprecated MIME constants and updated their documentation.
  • Removed deprecated middleware options and related comments from logger, limiter, and cache documentation.
  • Clarified deprecation notes in the release notes and API documentation.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/whats_new.md Added notes about deprecated MIME constants and middleware options with recommendations.
docs/middleware/logger.md Removed the deprecated TagHeader comment to align with current naming conventions.
docs/middleware/limiter.md Removed deprecated fields and updated the note to only show supported options.
docs/middleware/cache.md Removed deprecated field comments to reflect the current API design.
docs/api/constants.md Removed deprecated MIME constant definitions and referenced their replacements.
constants.go Removed deprecated MIME constants and associated comments to enforce current best practices.

@codecov
Copy link

codecov bot commented Jun 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.89%. Comparing base (5eb1432) to head (3c2f9f0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3498   +/-   ##
=======================================
  Coverage   83.89%   83.89%           
=======================================
  Files         120      120           
  Lines       12272    12272           
=======================================
  Hits        10296    10296           
  Misses       1553     1553           
  Partials      423      423           
Flag Coverage Δ
unittests 83.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (1)
docs/whats_new.md (1)

177-180: Link to API constants reference.

The ### MIME Constants section introduces the deprecation note for JavaScript MIME types but doesn’t reference the source of truth. Consider adding a link to the updated docs/api/constants.md so users can see the full current list:

 ### MIME Constants
+See [API constants reference](docs/api/constants.md) for all supported MIME types.
 `MIMEApplicationJavaScript` and `MIMEApplicationJavaScriptCharsetUTF8` are deprecated. Use `MIMETextJavaScript` and `MIMETextJavaScriptCharsetUTF8` instead.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5eb1432 and 3c2f9f0.

📒 Files selected for processing (6)
  • constants.go (1 hunks)
  • docs/api/constants.md (0 hunks)
  • docs/middleware/cache.md (0 hunks)
  • docs/middleware/limiter.md (0 hunks)
  • docs/middleware/logger.md (0 hunks)
  • docs/whats_new.md (4 hunks)
💤 Files with no reviewable changes (4)
  • docs/middleware/cache.md
  • docs/middleware/limiter.md
  • docs/middleware/logger.md
  • docs/api/constants.md
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: unit (1.24.x, macos-13)
  • GitHub Check: unit (1.24.x, windows-latest)
  • GitHub Check: unit (1.24.x, macos-latest)
  • GitHub Check: repeated
  • GitHub Check: Compare
🔇 Additional comments (4)
constants.go (1)

27-29: Missing documentation for new MIME constants.

The newly added constants MIMEApplicationForm, MIMEOctetStream, and MIMEMultipartForm aren’t mentioned in the AI summary or the API docs (docs/api/constants.md). Please update the documentation to cover these additions for consistency.

Likely an incorrect or invalid review comment.

docs/whats_new.md (3)

986-989: Clear deprecation note for cache middleware.

This :::note succinctly explains the removal of the deprecated Store and Key options and points to the new Storage and KeyGenerator fields. It aligns well with the migration guidance.


1086-1089: Good deprecation note for logger middleware.

This :::note clearly informs users about the removal of the TagHeader constant and the alternative TagReqHeader. It’s a helpful addition for migration.


1208-1210: Helpful deprecation note for limiter middleware.

The :::note cleanly communicates that Duration, Store, and Key have been removed and directs users to Expiration, Storage, and KeyGenerator instead. Nice clarity.

@gaby gaby changed the title removing deprecated comments and documenting the changes 📒 docs: Remove deprecated comments and documenting recent changes Jun 3, 2025
@ReneWerner87 ReneWerner87 merged commit 9409e4f into main Jun 4, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in v3 Jun 4, 2025
@ReneWerner87 ReneWerner87 deleted the remove_deprecations branch July 30, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants