Skip to content

Commit

Permalink
Add CHANGELOG and UPGRADING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Oct 20, 2024
1 parent 3fc99b1 commit af11a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#### Fixes

* [#2504](https://github.com/ruby-grape/grape/pull/2504): Fix leaky modules in specs - [@ericproulx](https://github.com/ericproulx).
* [#2506](https://github.com/ruby-grape/grape/pull/2506): Fix fetch_formatter api_format - [@ericproulx](https://github.com/ericproulx).
* Your contribution here.

### 2.2.0 (2024-09-14)
Expand Down
6 changes: 6 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Upgrading Grape

### Upgrading to >= 2.3.0

### `content_type` vs `api.format` inside API

Before 2.3.0, `content_type` would have priority over `env['api.format']` when set in an API. The priority has been flipped and `env['api.format']` will be checked first.
In addition, the function `api_format` has been added. Instead of setting `env['api.format']` directly, you can call `api_format`.
See [#2506] (https://github.com/ruby-grape/grape/pull/2506) for more information.

#### Remove Deprecated Methods and Options

- Deprecated `file` method has been removed. Use `send_file` or `stream`.
Expand Down

0 comments on commit af11a32

Please sign in to comment.