push version 11.2.4

Former-commit-id: 3451c700c02aa98d7c3f02b305c381b250882791
This commit is contained in:
Gerasimos (Makis) Maropoulos 2019-08-09 23:25:21 +03:00
parent e05333475a
commit 416324cc42
7 changed files with 28 additions and 20 deletions

View File

@ -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

View File

@ -1 +1 @@
11.2.3:https://github.com/kataras/iris/releases/tag/v11.2.3
11.2.4:https://github.com/kataras/iris/releases/tag/v11.2.4

View File

@ -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
<details>
@ -21,14 +21,14 @@ cd _examples && go get ./...
</details>
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)

View File

@ -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)

2
doc.go
View File

@ -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

View File

@ -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.

View File

@ -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
}