Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into generic_app_ctx_3221
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Jan 29, 2025
2 parents 76271bb + d0ed605 commit d6b57b5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/sync_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions docs/extra/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
8 changes: 4 additions & 4 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1121,7 +1121,7 @@ The `Parser` section in Fiber v3 has undergone significant changes to improve fu

</details>

2. **ParamsParser**: Use `c.Bind().URL()` instead of `c.ParamsParser()`.
2. **ParamsParser**: Use `c.Bind().URI()` instead of `c.ParamsParser()`.

<details>
<summary>Example</summary>
Expand All @@ -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(&params); err != nil {
if err := c.Bind().URI(&params); err != nil {
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": err.Error()})
}
return c.JSON(params)
Expand Down

0 comments on commit d6b57b5

Please sign in to comment.