github.com/Kong/go-pdk@v0.11.0/CHANGELOG.md (about) 1 # :warning: This file is no longer maintained - use GH releases instead 2 3 ## Table of Contents 4 5 - [v0.10.0](#v0100) 6 - [v0.9.0](#v090) 7 - [v0.8.0](#v080) 8 - [v0.7.1](#v071) 9 - [v0.6.0](#v060) 10 - [v0.5.0](#v050) 11 - [v0.4.0](#v040) 12 - [v0.3.1](#v031) 13 14 ## [v0.10.0] 15 16 > Released 2023/09/07 17 18 ### Fixes 19 20 - Use plugin sequence ID passed by Kong as instance ID; if one is not found, 21 pick a random value. 22 [#158](https://github.com/Kong/go-pdk/pull/158) 23 24 ## [v0.9.0] 25 26 > Released 2022/12/07 27 28 ### Changes 29 30 - Fixed parameter type of `kong.service.request.set_raw_body`, return type of 31 `kong.service.response.get_raw_body`, 32 and body parameter type of `kong.response.exit` to `[]byte`. 33 Note that old version (before 3.0.1, or commits before cd2bcf9) of kong is incompatible after this change. 34 [#132](https://github.com/Kong/go-pdk/pull/132) 35 [kong/kong#9526](https://github.com/Kong/kong/pull/9526) 36 37 ## [v0.8.0] 38 39 > Released 2021/06/09 40 41 ### Changes 42 43 - fix kong.Request.GetRawBody() with buffered content by @javierguerragiraldez in [#91](https://github.com/Kong/go-pdk/pull/91) 44 - avoid pass-by-value of objects that contain locks. by @javierguerragiraldez in [#79](https://github.com/Kong/go-pdk/pull/79) 45 - bump go version by @fffonion in [#112](https://github.com/Kong/go-pdk/pull/112) 46 47 ### Addtions 48 49 - chore(*) add dependabot by @mayocream in [#98](https://github.com/Kong/go-pdk/pull/98) 50 51 ## [v0.7.1] 52 53 > Released 2021/10/16 54 55 ### Changes 56 57 - fix testing: don't break when the plugin Exit()s [#73](https://github.com/Kong/go-pdk/pull/73) 58 - Ignore unexported struct fields in config struct by @ctrox [#69](https://github.com/Kong/go-pdk/pull/69) 59 - Start every Headers field empty but non-null [#74](https://github.com/Kong/go-pdk/pull/74) 60 61 ### Additions 62 63 - Feat/plugin testing [#64](https://github.com/Kong/go-pdk/pull/64) 64 - Add godoc comments [#65](https://github.com/Kong/go-pdk/pull/65) 65 66 ## [v0.7.0] 67 68 > Released 2021/10/16 69 70 New ProtoBuf-based communications with Kong. Requires Kong 2.4. 71 72 ## [v0.6.1] 73 74 > Released 2021/04/14 75 76 ### Changes 77 78 - API bugfix: port values were given as string instead of Int 79 80 ## [v0.6.0] 81 82 > Released 2021/04/14 83 84 ### Additions 85 86 - New Embedded Server to replace the go-pluginserver. Requires Kong v2.3. 87 88 ## [v0.5.0] 89 90 > Released 2020/05/27 91 92 ### Changes 93 94 - Methods for `kong.ctx.shared` manipulation were moved from `kong.Node` 95 to a new module named `kong.Ctx`, mirroring Kong's Lua PDK structure 96 97 ### Additions 98 99 - Add `kong.Ctx` module, counterpart of Kong's Lua PDK [kong.ctx][kong.ctx] module. 100 It contains the following methods: 101 * `SetShared`: sets a value (of any type) into [`kong.ctx.shared`](https://docs.konghq.com/2.0.x/pdk/kong.ctx/#kongctxshared) 102 * `GetSharedAny`: gets a value (of any type) from `kong.ctx.shared` 103 * `GetSharedString`: gets a string from `kong.ctx.shared` 104 * `GetSharedFloat`: gets a float from `kong.ctx.shared` 105 * `GetSharedInt`: gets an integer from `kong.ctx.shared` 106 - Add new methods to `kong.Nginx`, allowing direct manipulation of the request context (`ngx.ctx`): 107 * `SetCtx`: sets a value (of any type) into the request context 108 * `GetCtxInt`: gets an integer value from the request context 109 110 ## [v0.4.0] 111 112 > Released 2020/05/25 113 114 ### Additions 115 116 - Add the `kong.service.response.get_raw_body` method, allowing Go plugins 117 to access upstream Services response 118 119 ## [v0.3.1] 120 121 > Released 2020/05/07 122 123 ### Additions 124 125 - Add missing methods: 126 * `kong.Nginx.GetSubsystem` 127 * `kong.Node.SetCtxShared` 128 * `kong.Node.GetCtxSharedAny` 129 * `kong.Node.GetCtxSharedString` 130 * `kong.Node.GetCtxSharedFloat` 131 * `kong.Response.Exit` 132 * `kong.Response.ExitStatus` 133 134 [Back to TOC](#table-of-contents) 135 136 [v0.10.0]: https://github.com/Kong/kong/compare/v0.9.0..v0.10.0 137 [v0.9.0]: https://github.com/Kong/kong/compare/v0.8.0..v0.9.0 138 [v0.8.0]: https://github.com/Kong/kong/compare/v0.7.0..v0.8.0 139 [v0.7.0]: https://github.com/Kong/kong/compare/v0.6.1..v0.7.0 140 [v0.6.0]: https://github.com/Kong/kong/compare/v0.5.0..v0.6.0 141 [v0.5.0]: https://github.com/Kong/kong/compare/v0.4.0..v0.5.0 142 [v0.4.0]: https://github.com/Kong/kong/compare/v0.3.1..v0.4.0 143 [v0.3.1]: https://github.com/Kong/kong/compare/v0.3.0..v0.3.1 144 145 [kong.ctx]: https://docs.konghq.com/2.0.x/pdk/kong.ctx/