Skip to content
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

🌿 v1.12.x Changelog #416

Closed
Fenny opened this issue May 27, 2020 · 5 comments
Closed

🌿 v1.12.x Changelog #416

Fenny opened this issue May 27, 2020 · 5 comments
Assignees

Comments

@Fenny
Copy link
Member

Fenny commented May 27, 2020

🔥 New


🧹 Updates

  • The hyphen (-) and the dot (.) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87
// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
  c.Params("genus")   // prunus
  c.Params("species") // persica
})

// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
  c.Params("from")   // LAX
  c.Params("to")     // SFO
})

🩹 Fixes


@welcome
Copy link

welcome bot commented May 27, 2020

If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@Fenny Fenny closed this as completed May 27, 2020
@Fenny Fenny pinned this issue May 27, 2020
@ReneWerner87 ReneWerner87 unpinned this issue May 28, 2020
@ReneWerner87 ReneWerner87 pinned this issue May 28, 2020
@Fenny Fenny changed the title ☄️ v1.10.0 Changelog ☄️ v1.10.x Changelog May 28, 2020
@Fenny Fenny changed the title ☄️ v1.10.x Changelog 🐛 v1.11.x Changelog Jun 8, 2020
@invipal
Copy link

invipal commented Jun 10, 2020

What about hyphens in routes? It was planned for V1.11.

@ReneWerner87
Copy link
Member

@invipal in the last version we had put more focus on stability, user friendliness and performance, so the feature has been dropped

but it will come in the next versions, i will work on it in the next days

@Fenny Fenny changed the title 🐛 v1.11.x Changelog 🌿 v1.12.x Changelog Jun 19, 2020
@Fenny
Copy link
Member Author

Fenny commented Jun 30, 2020

@invipal hyphen support is now available v1.12.+

// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
  c.Params("genus")   // prunus
  c.Params("species") // persica
})

// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
  c.Params("from")   // LAX
  c.Params("to")     // SFO
})

@invipal
Copy link

invipal commented Jul 1, 2020

Thank you @Fenny, with this feature, Fiber now fully met our expectation for developing our next project.

@Fenny Fenny unpinned this issue Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants