Skip to content

📒 docs: update versioned storage imports in middleware docs#4102

Merged
ReneWerner87 merged 3 commits intomainfrom
copilot/fix-invalid-import-for-fiber
Feb 22, 2026
Merged

📒 docs: update versioned storage imports in middleware docs#4102
ReneWerner87 merged 3 commits intomainfrom
copilot/fix-invalid-import-for-fiber

Conversation

Copy link
Contributor

Copilot AI commented Feb 22, 2026

Description

This PR updates middleware documentation to use the correct versioned storage module import paths for Fiber v3 compatibility.

The original fix updated Redis imports in session docs, and follow-up review feedback extended the scope to PostgreSQL and SQLite references.

Updated import paths

  • github.com/gofiber/storage/redisgithub.com/gofiber/storage/redis/v3
  • github.com/gofiber/storage/postgresgithub.com/gofiber/storage/postgres/v3
  • github.com/gofiber/storage/sqlite3github.com/gofiber/storage/sqlite3/v2

Files updated

  • docs/middleware/session.md (Redis + PostgreSQL versioned imports)
  • docs/middleware/csrf.md (SQLite storage reference)
  • docs/middleware/limiter.md (SQLite storage reference)

Changes introduced

List the new features or adjustments introduced in this pull request. Provide details on benchmarks, documentation updates, changelog entries, and if applicable, the migration guide.

  • Benchmarks: Describe any performance benchmarks and improvements related to the changes.
  • Documentation Update: Updated middleware docs to use correct versioned storage imports in:
    • docs/middleware/session.md
    • docs/middleware/csrf.md
    • docs/middleware/limiter.md
  • Changelog/What's New: Include a summary of the additions for the upcoming release notes.
  • Migration Guide: If necessary, provide a guide or steps for users to migrate their existing code to accommodate these changes.
  • API Alignment with Express: Explain how the changes align with the Express API.
  • API Longevity: Documentation now points to explicit versioned storage modules to avoid incompatibilities with Fiber v3.
  • Examples: Updated storage import examples/references for Redis, PostgreSQL, and SQLite.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Enhancement (improvement to existing features and functionality)
  • Documentation update (changes to documentation)
  • Performance improvement (non-breaking change which improves efficiency)
  • Code consistency (non-breaking change which improves code reliability and robustness)

Checklist

Before you submit your pull request, please make sure you meet these requirements:

  • Followed the inspiration of the Express.js framework for new functionalities, making them similar in usage.
  • Conducted a self-review of the code and provided comments for complex or critical parts.
  • Updated the documentation in the /docs/ directory for Fiber's documentation.
  • Added or updated unit tests to validate the effectiveness of the changes or new features.
  • Ensured that new and existing unit tests pass locally with the changes.
  • Verified that any new dependencies are essential and have been agreed upon by the maintainers/community.
  • Aimed for optimal performance with minimal allocations in the new code.
  • Provided benchmarks for the new code to analyze and improve upon.

Commit formatting

Please use emojis in commit messages for an easy way to identify the purpose or intention of a commit. Check out the emoji cheatsheet here: CONTRIBUTING.md

Original prompt

This section details on the original issue you should resolve

<issue_title>Invalid import</issue_title>
<issue_description>https://docs.gofiber.io/middleware/session#production-configuration

In this example need to use import "github.com/gofiber/storage/redis/v3" instead of "github.com/gofiber/storage/redis".

Because "github.com/gofiber/storage/redis" is not works with fiber v3.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix invalid import for Fiber v3 📒 docs: correct session Redis storage import for Fiber v3 Feb 22, 2026
Copilot AI requested a review from gaby February 22, 2026 19:48
@gaby gaby changed the title 📒 docs: correct session Redis storage import for Fiber v3 📒 docs: Update storage imports for session middleware Feb 22, 2026
@gaby gaby marked this pull request as ready for review February 22, 2026 19:49
@gaby gaby requested a review from a team as a code owner February 22, 2026 19:49
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 fixes an import compatibility issue in the session middleware documentation by updating all Redis storage imports to use the Fiber v3-compatible version path.

Changes:

  • Updated Redis storage import path from github.com/gofiber/storage/redis to github.com/gofiber/storage/redis/v3 in all session middleware documentation examples

@gaby
Copy link
Member

gaby commented Feb 22, 2026

@copilot

  • The postgres import needs to be updated to "github.com/gofiber/storage/postgres/v3".
  • The sqlite import needs to be updated to "github.com/gofiber/storage/sqlite3/v2".

Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 22, 2026

@copilot

  • The postgres import needs to be updated to "github.com/gofiber/storage/postgres/v3".
  • The sqlite import needs to be updated to "github.com/gofiber/storage/sqlite3/v2".

Updated as requested in commit 4299401: github.com/gofiber/storage/postgres is now github.com/gofiber/storage/postgres/v3 (session docs), and sqlite references were updated to github.com/gofiber/storage/sqlite3/v2 in middleware docs.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • exampleretry.com
    • Triggering command: /tmp/go-build1015556276/b307/client.test /tmp/go-build1015556276/b307/client.test -test.paniconexit0 -test.v=test2json -test.timeout=10m0s -test.count=1 -test.shuffle=on mpile ux-amd64/pkg/tool/linux_amd64/vet -n1 --format=format:-unsafeptr=false m ux-amd64/pkg/too/tmp/go-build1015556276/b098/vet.cfg -o rg/toolchain@v0.0.1-go1.25.0.lin. m ux-amd64/pkg/tool/linux_amd64/vet KoCVwYfRG github.com/gofib-unsafeptr=false l/linux_amd64/co-unreachable=false ux-amd64/pkg/too/tmp/go-build1015556276/b291/vet.cfg (dns block)
    • Triggering command: /tmp/go-build1911816815/b307/client.test /tmp/go-build1911816815/b307/client.test -test.paniconexit0 -test.v=test2json -test.timeout=10m0s -test.count=1 -test.shuffle=on GO111MODULE 0.1-go1.25.0.lin-nilfunc GOINSECURE /strconv mpile 0.1-go1.25.0.lin-buildtags list�� g_.a mpile 0.1-go1.25.0.lin-nilfunc AfoZ/9vnrhjnmGuEgo 5556276/b079/ ux-amd64/pkg/tooGOVERSION 0.1-go1.25.0.lin-tests (dns block)
  • vuln.go.dev
    • Triggering command: /tmp/go-build2255352167/b001/exe/govulncheck /tmp/go-build2255352167/b001/exe/govulncheck ./... mpile l/linux_amd64/vet -I o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title 📒 docs: Update storage imports for session middleware 📒 docs: update versioned storage imports in middleware docs Feb 22, 2026
Copilot AI requested a review from gaby February 22, 2026 20:01
@ReneWerner87 ReneWerner87 merged commit 4fbcde1 into main Feb 22, 2026
8 checks passed
@ReneWerner87 ReneWerner87 deleted the copilot/fix-invalid-import-for-fiber branch February 22, 2026 21:07
@github-project-automation github-project-automation bot moved this to Done in v3 Feb 22, 2026
@ReneWerner87 ReneWerner87 modified the milestones: v3, v3.1.0 Feb 27, 2026
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.

Invalid import

4 participants