diff --git a/.github/scripts/sync_docs.sh b/.github/scripts/sync_docs.sh index fcdab86c4d..e350be21da 100755 --- a/.github/scripts/sync_docs.sh +++ b/.github/scripts/sync_docs.sh @@ -20,10 +20,10 @@ git clone https://${TOKEN}@${REPO_URL} fiber-docs # Handle push event if [ "$EVENT" == "push" ]; then latest_commit=$(git rev-parse --short HEAD) - log_output=$(git log --oneline ${BRANCH} HEAD~1..HEAD --name-status -- docs/) - if [[ $log_output != "" ]]; then + #log_output=$(git log --oneline ${BRANCH} HEAD~1..HEAD --name-status -- docs/) + #if [[ $log_output != "" ]]; then cp -a docs/* fiber-docs/docs/${REPO_DIR} - fi + #fi # Handle release event elif [ "$EVENT" == "release" ]; then diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index eb35d75bd2..d18421a81e 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -23,7 +23,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v4 with: - node-version: "18" + node-version: "22" - name: Sync docs run: ./.github/scripts/sync_docs.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54143ff425..a106152b04 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: - name: Upload coverage reports to Codecov if: ${{ matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.23.x' }} - uses: codecov/codecov-action@v5.1.2 + uses: codecov/codecov-action@v5.3.1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/docs/extra/faq.md b/docs/extra/faq.md index 3e48c89e70..d29b20d23f 100644 --- a/docs/extra/faq.md +++ b/docs/extra/faq.md @@ -83,12 +83,12 @@ Fiber currently supports 9 template engines in our [gofiber/template](https://do * [ace](https://docs.gofiber.io/template/ace/) * [amber](https://docs.gofiber.io/template/amber/) * [django](https://docs.gofiber.io/template/django/) -* [handlebars](https://docs.gofiber.io/template/handlebars) -* [html](https://docs.gofiber.io/template/html) -* [jet](https://docs.gofiber.io/template/jet) -* [mustache](https://docs.gofiber.io/template/mustache) -* [pug](https://docs.gofiber.io/template/pug) -* [slim](https://docs.gofiber.io/template/slim) +* [handlebars](https://docs.gofiber.io/template/handlebars/) +* [html](https://docs.gofiber.io/template/html/) +* [jet](https://docs.gofiber.io/template/jet/) +* [mustache](https://docs.gofiber.io/template/mustache/) +* [pug](https://docs.gofiber.io/template/pug/) +* [slim](https://docs.gofiber.io/template/slim/) To learn more about using Templates in Fiber, see [Templates](../guide/templates.md). diff --git a/docs/whats_new.md b/docs/whats_new.md index 0d454dd8f4..2f9df2ae55 100644 --- a/docs/whats_new.md +++ b/docs/whats_new.md @@ -350,14 +350,14 @@ testConfig := fiber.TestConfig{ ### Removed Methods -- **AllParams**: Use `c.Bind().URL()` instead. +- **AllParams**: Use `c.Bind().URI()` instead. - **ParamsInt**: Use `Params` with generic types. - **QueryBool**: Use `Query` with generic types. - **QueryFloat**: Use `Query` with generic types. - **QueryInt**: Use `Query` with generic types. - **BodyParser**: Use `c.Bind().Body()` instead. - **CookieParser**: Use `c.Bind().Cookie()` instead. -- **ParamsParser**: Use `c.Bind().URL()` instead. +- **ParamsParser**: Use `c.Bind().URI()` instead. - **RedirectToRoute**: Use `c.Redirect().Route()` instead. - **RedirectBack**: Use `c.Redirect().Back()` instead. - **ReqHeaderParser**: Use `c.Bind().Header()` instead. @@ -1121,7 +1121,7 @@ The `Parser` section in Fiber v3 has undergone significant changes to improve fu -2. **ParamsParser**: Use `c.Bind().URL()` instead of `c.ParamsParser()`. +2. **ParamsParser**: Use `c.Bind().URI()` instead of `c.ParamsParser()`.
Example @@ -1141,7 +1141,7 @@ The `Parser` section in Fiber v3 has undergone significant changes to improve fu // After app.Get("/user/:id", func(c fiber.Ctx) error { var params Params - if err := c.Bind().URL(¶ms); err != nil { + if err := c.Bind().URI(¶ms); err != nil { return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": err.Error()}) } return c.JSON(params)