From 416324cc420ee7baf328fabfadf7e742e1f9e317 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 9 Aug 2019 23:25:21 +0300 Subject: [PATCH] push version 11.2.4 Former-commit-id: 3451c700c02aa98d7c3f02b305c381b250882791 --- HISTORY.md | 17 +++++++++++++---- VERSION | 2 +- _examples/README.md | 12 ++++++------ _examples/README_ZH.md | 2 +- doc.go | 2 +- iris.go | 2 +- view/jet.go | 11 +++++------ 7 files changed, 28 insertions(+), 20 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e604938d..ae441f1b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -21,12 +21,21 @@ 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@master`. +# Fr, 09 August 2019 | v11.2.4 + +- Fixes [iris.Jet: no view engine found for '.jet' or '.html'](https://github.com/kataras/iris/issues/1327) +- Fixes [ctx.ViewData not work with JetEngine](https://github.com/kataras/iris/issues/1330) +- **New Feature**: [HTTP Method Override](https://github.com/kataras/iris/issues/1325) +- Fixes [Poor performance of session.UpdateExpiration on 200 thousands+ keys with new radix lib](https://github.com/kataras/iris/issues/1328) by introducing the `sessions.Config.Driver` configuration field which defaults to `Redigo()` but can be set to `Radix()` too, future additions are welcomed. + +Commit log: https://github.com/kataras/iris/compare/v11.2.3...v11.2.4 + # Tu, 30 July 2019 | v11.2.3 -TODO: - -- Different parameter types in the same path (done). -- [Content negotiation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation) (in-progress) +- [New Feature: Handle different parameter types in the same path](https://github.com/kataras/iris/issues/1315) +- [New Feature: Content Negotiation](https://github.com/kataras/iris/issues/1319) +- [Context.ReadYAML](https://github.com/kataras/iris/tree/master/_examples/http_request/read-yaml) +- Fixes https://github.com/kataras/neffos/issues/1#issuecomment-515698536 # We, 24 July 2019 | v11.2.2 diff --git a/VERSION b/VERSION index ead23276..817ba1b0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.2.3:https://github.com/kataras/iris/releases/tag/v11.2.3 \ No newline at end of file +11.2.4:https://github.com/kataras/iris/releases/tag/v11.2.4 \ No newline at end of file diff --git a/_examples/README.md b/_examples/README.md index 16035754..8d3d9fb7 100644 --- a/_examples/README.md +++ b/_examples/README.md @@ -2,14 +2,14 @@ Please do learn how [net/http](https://golang.org/pkg/net/http/) std package works, first. -This folder provides easy to understand code snippets on how to get started with [iris](https://github.com/kataras/iris) micro web framework. +This folder provides easy to understand code snippets on how to get started with [iris](https://github.com/kataras/iris) web framework. It doesn't always contain the "best ways" but it does cover each important feature that will make you so excited to GO with iris! ## Running the examples -1. Install the Go Programming Language, version 1.9+ from [here](https://golang.org/dl). -2. Install Iris: `go get -u github.com/kataras/iris` +1. Install the Go Programming Language, version 1.12+ from https://golang.org/dl. +2. [Install Iris](https://github.com/kataras/iris/wiki/installation) 3. Install any external packages that required by the examples
@@ -21,14 +21,14 @@ cd _examples && go get ./...
-And execute +And run each example you wanna see, e.g. ```sh $ cd $GOPATH/src/github.com/kataras/iris/_examples/overview $ go run main.go ``` -> Test the examples by opening a terminal window and execute: `GOCACHE=off && cd _examples && go test -v ./...` +> Test the examples by opening a terminal window and execute: `go test -v ./...` ### Overview @@ -256,7 +256,7 @@ You can serve [quicktemplate](https://github.com/valyala/quicktemplate) and [her ### Miscellaneous -- [Method Override](https://github.com/kataras/iris/blob/master/middleware/methodoverride/methodoverride_test.go) **NEW** +- [HTTP Method Override](https://github.com/kataras/iris/blob/master/middleware/methodoverride/methodoverride_test.go) **NEW** - [Request Logger](http_request/request-logger/main.go) * [log requests to a file](http_request/request-logger/request-logger-file/main.go) - [Localization and Internationalization](miscellaneous/i18n/main.go) diff --git a/_examples/README_ZH.md b/_examples/README_ZH.md index c5266f2b..7d7847c2 100644 --- a/_examples/README_ZH.md +++ b/_examples/README_ZH.md @@ -363,7 +363,7 @@ You can serve [quicktemplate](https://github.com/valyala/quicktemplate) and [her ### 其他 -- [Method Override](https://github.com/kataras/iris/blob/master/middleware/methodoverride/methodoverride_test.go) **更新** +- [HTTP Method Override](https://github.com/kataras/iris/blob/master/middleware/methodoverride/methodoverride_test.go) **更新** - [请求记录器](http_request/request-logger/main.go) * [将请求记录到文件](http_request/request-logger/request-logger-file/main.go) - [本地化和多语言支持](miscellaneous/i18n/main.go) diff --git a/doc.go b/doc.go index f9593e80..b8077c0e 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 -11.2.3 +11.2.4 Installation diff --git a/iris.go b/iris.go index 8cb0f36c..5db0d927 100644 --- a/iris.go +++ b/iris.go @@ -37,7 +37,7 @@ import ( var ( // Version is the current version number of the Iris Web Framework. - Version = "11.2.3" + Version = "11.2.4" ) // HTTP status codes as registered with IANA. diff --git a/view/jet.go b/view/jet.go index ac63d212..95514b57 100644 --- a/view/jet.go +++ b/view/jet.go @@ -32,7 +32,7 @@ type JetEngine struct { // If AddFunc or AddVar called before `Load` then these will be set here to be used via `Load` and clear. vars map[string]interface{} - jetRendererRangerContextKey string + jetRangerRendererContextKey string } var _ Engine = (*JetEngine)(nil) @@ -78,8 +78,8 @@ func Jet(directory, extension string) *JetEngine { // Also it wont check if a value is already a reflect.Value (jet expects this type as values). // // Defaults to empty. -func (s *JetEngine) DisableViewDataTypeCheck(jetDataContextKey string) *JetEngine { - s.jetRendererRangerContextKey = jetDataContextKey +func (s *JetEngine) DisableViewDataTypeCheck(jetRangerRendererContextKey string) *JetEngine { + s.jetRangerRendererContextKey = jetRangerRendererContextKey return s } @@ -437,8 +437,7 @@ func (s *JetEngine) ExecuteWriter(w io.Writer, filename string, layout string, b if m, ok := bindingData.(context.Map); ok { for k, v := range m { - if s.jetRendererRangerContextKey == "" { - + if s.jetRangerRendererContextKey == "" { switch value := v.(type) { case jet.Ranger, jet.Renderer: jetRangerRenderer, _ = rangerRenderer(value) @@ -458,7 +457,7 @@ func (s *JetEngine) ExecuteWriter(w io.Writer, filename string, layout string, b continue } - if k == s.jetRendererRangerContextKey { + if k == s.jetRangerRendererContextKey { jetRangerRenderer = v continue }