diff --git a/HISTORY.md b/HISTORY.md index 7046d410f..27f99b0fc 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -21,6 +21,33 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene **How to upgrade**: Open your command-line and execute this command: `go get github.com/kataras/iris/v12@latest`. +# Mo, 16 December 2019 | v12.1.1 + +Add [Context.FindClosest(n int) []string](https://github.com/kataras/iris/blob/master/_examples/routing/not-found-suggests/main.go#L22) + +```go +app := iris.New() +app.OnErrorCode(iris.StatusNotFound, notFound) +``` + +```go +func notFound(ctx iris.Context) { + suggestPaths := ctx.FindClosest(3) + if len(suggestPaths) == 0 { + ctx.WriteString("404 not found") + return + } + + ctx.HTML("Did you mean?") +} +``` + +![](https://iris-go.com/images/iris-not-found-suggests.png) + # Fr, 13 December 2019 | v12.1.0 ## Breaking Changes diff --git a/HISTORY_ES.md b/HISTORY_ES.md index 6da9b9382..f920f3653 100644 --- a/HISTORY_ES.md +++ b/HISTORY_ES.md @@ -21,6 +21,10 @@ Los desarrolladores no están obligados a actualizar si realmente no lo necesita **Cómo actualizar**: Abra su línea de comandos y ejecute este comando: `go get github.com/kataras/iris/v12@latest`. +# Mo, 16 December 2019 | v12.1.1 + +Not translated yet, please navigate to the [english version](HISTORY.md#mo-16-december-2019--v1211) instead. + # Fr, 13 December 2019 | v12.1.0 Not translated yet, please navigate to the [english version](HISTORY.md#fr-13-december-2019--v1210) instead. diff --git a/VERSION b/VERSION index 020d661e9..d5bc3b926 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.1.0:https://github.com/kataras/iris/releases/tag/v12.1.0 \ No newline at end of file +12.1.1:https://github.com/kataras/iris/releases/tag/v12.1.1 \ No newline at end of file diff --git a/_examples/apidoc/yaag/go.mod b/_examples/apidoc/yaag/go.mod index 2fe5e078c..815a376d2 100644 --- a/_examples/apidoc/yaag/go.mod +++ b/_examples/apidoc/yaag/go.mod @@ -4,5 +4,5 @@ go 1.13 require ( github.com/betacraft/yaag v1.0.1-0.20191027021412-565f65e36090 - github.com/kataras/iris/v12 v12.1.0 + github.com/kataras/iris/v12 v12.1.1 ) diff --git a/_examples/websocket/socketio/go.mod b/_examples/websocket/socketio/go.mod index f4b2d6778..6a4b4b216 100644 --- a/_examples/websocket/socketio/go.mod +++ b/_examples/websocket/socketio/go.mod @@ -4,5 +4,5 @@ go 1.13 require ( github.com/googollee/go-socket.io v1.4.3-0.20191109153049-7451e2f8c2e0 // indirect - github.com/kataras/iris/v12 v12.1.0 + github.com/kataras/iris/v12 v12.1.1 ) diff --git a/configuration.go b/configuration.go index b1c312d7f..fffbbe742 100644 --- a/configuration.go +++ b/configuration.go @@ -14,8 +14,8 @@ import ( "runtime" "strings" - "github.com/kataras/iris/core/netutil" "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/netutil" "github.com/BurntSushi/toml" "github.com/kataras/sitemap" diff --git a/doc.go b/doc.go index 7b5235fa2..2c6ef1c17 100644 --- a/doc.go +++ b/doc.go @@ -38,7 +38,7 @@ Source code and other details for the project are available at GitHub: Current Version -12.1.0 +12.1.1 Installation diff --git a/iris.go b/iris.go index 9c76e8db6..9e654d401 100644 --- a/iris.go +++ b/iris.go @@ -39,7 +39,7 @@ import ( ) // Version is the current version number of the Iris Web Framework. -const Version = "12.1.0" +const Version = "12.1.1" // HTTP status codes as registered with IANA. // See: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.