2019-06-15 09:34:16 +06:00
# Changes
2022-06-22 20:42:46 +09:00
## Unreleased - 2022-xx-xx
2022-10-28 23:49:28 +01:00
2023-04-09 19:35:30 +01:00
- Rename `Cors::{allow_private_network_access => allow_local_network_access}()` and its unstable flag (`draft-private-network-access` => `draft-local-network-access` ).
2023-03-22 21:13:56 +00:00
- Minimum supported Rust version (MSRV) is now 1.60.
2022-10-28 23:49:28 +01:00
## 0.6.4 - 2022-10-28
2023-01-07 01:02:02 +00:00
2022-10-28 23:44:21 +01:00
- Add `Cors::allow_private_network_access()` behind an unstable flag (`draft-private-network-access` ). [#297 ]
2022-09-22 00:24:38 +01:00
2022-10-30 16:28:21 +00:00
[#297 ]: https://github.com/actix/actix-extras/pull/297
2022-09-22 00:24:38 +01:00
## 0.6.3 - 2022-09-21
2023-01-07 01:02:02 +00:00
2022-09-22 00:25:48 +01:00
- Add `Cors::block_on_origin_mismatch()` option for controlling if requests are pre-emptively rejected. [#287 ]
2022-09-22 00:24:38 +01:00
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
2022-09-22 01:22:20 +02:00
2022-09-22 00:25:48 +01:00
[#287 ]: https://github.com/actix/actix-extras/pull/287
2022-08-07 20:57:09 +01:00
## 0.6.2 - 2022-08-07
2023-01-07 01:02:02 +00:00
2022-08-07 21:56:33 +02:00
- Fix `expose_any_header` to return list of response headers. [#273 ]
2022-06-22 20:42:46 +09:00
- Minimum supported Rust version (MSRV) is now 1.57 due to transitive `time` dependency.
2022-03-07 21:04:36 +00:00
2022-08-07 21:56:33 +02:00
[#273 ]: https://github.com/actix/actix-extras/pull/273
2022-03-07 21:04:36 +00:00
## 0.6.1 - 2022-03-07
2023-01-07 01:02:02 +00:00
2022-03-07 15:32:07 +00:00
- Do not consider requests without a `Access-Control-Request-Method` as preflight. [#226 ]
[#226 ]: https://github.com/actix/actix-extras/pull/226
2022-02-25 23:11:28 +00:00
## 0.6.0 - 2022-02-25
2023-01-07 01:02:02 +00:00
2022-02-25 23:05:11 +00:00
- Update `actix-web` dependency to 4.0.
2022-02-07 02:31:21 +00:00
2022-02-07 17:48:17 +00:00
## 0.6.0-beta.10 - 2022-02-07
2023-01-07 01:02:02 +00:00
2022-03-07 16:52:25 +00:00
- Ensure that preflight responses contain a `Vary` header. [#224 ]
2022-02-07 17:48:17 +00:00
[#224 ]: https://github.com/actix/actix-extras/pull/224
2022-02-07 02:31:21 +00:00
## 0.6.0-beta.9 - 2022-02-07
2023-01-07 01:02:02 +00:00
2022-02-07 02:30:26 +00:00
- Relax body type bounds on middleware impl. [#223 ]
2022-02-03 22:33:47 +00:00
- Update `actix-web` dependency to `4.0.0-rc.1` .
2021-12-29 10:25:04 +00:00
2022-02-07 02:30:26 +00:00
[#223 ]: https://github.com/actix/actix-extras/pull/223
2021-12-29 10:25:04 +00:00
## 0.6.0-beta.8 - 2021-12-29
2021-12-12 19:11:36 +00:00
2023-01-07 01:02:02 +00:00
- Minimum supported Rust version (MSRV) is now 1.54.
2021-12-12 19:11:36 +00:00
2021-12-18 03:37:23 +00:00
## 0.6.0-beta.7 - 2021-12-18
2023-01-07 01:02:02 +00:00
2022-02-03 22:33:47 +00:00
- Update `actix-web` dependency to `4.0.0-beta.15` . [#216 ]
2021-12-18 03:37:23 +00:00
[#216 ]: https://github.com/actix/actix-extras/pull/216
2021-12-13 02:49:27 +00:00
## 0.6.0-beta.6 - 2021-12-13
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Fix panic when wrapping routes with dynamic segments in their paths. [#213 ]
2021-12-13 02:49:27 +00:00
[#213 ]: https://github.com/actix/actix-extras/pull/213
2021-12-13 03:03:19 +00:00
## 0.6.0-beta.5 - 2021-12-12 _(YANKED)_
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Update `actix-web` dependency to `4.0.0.beta-14` . [#209 ]
2021-12-11 16:05:21 +00:00
[#209 ]: https://github.com/actix/actix-extras/pull/209
2021-10-21 15:47:56 +01:00
2021-11-22 23:19:10 +00:00
## 0.6.0-beta.4 - 2021-11-22
2023-01-07 01:02:02 +00:00
- No significant changes since `0.6.0-beta.3` .
2021-11-22 23:19:10 +00:00
2021-10-21 15:47:56 +01:00
## 0.6.0-beta.3 - 2021-10-21
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Make `Cors` middleware generic over body type [#195 ]
- Fix `expose_any_header` behavior. [#204 ]
- Update `actix-web` dependency to v4.0.0-beta.10. [#203 ]
- Minimum supported Rust version (MSRV) is now 1.52.
2021-04-02 10:22:32 +01:00
2021-09-13 13:00:58 +03:00
[#195 ]: https://github.com/actix/actix-extras/pull/195
2021-10-21 13:10:00 +00:00
[#203 ]: https://github.com/actix/actix-extras/pull/203
2021-10-21 15:47:56 +01:00
[#204 ]: https://github.com/actix/actix-extras/pull/204
2021-09-13 13:00:58 +03:00
2021-06-27 07:28:26 +01:00
## 0.6.0-beta.2 - 2021-06-27
2023-01-07 01:02:02 +00:00
- No notable changes.
2021-06-27 07:28:26 +01:00
2021-04-02 11:46:03 +01:00
## 0.6.0-beta.1 - 2021-04-02
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Update `actix-web` dependency to 4.0.0 beta.
- Minimum supported Rust version (MSRV) is now 1.46.0.
2020-12-31 22:11:04 +09:00
## 0.5.4 - 2020-12-31
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Fix `expose_any_header` method, now set the correct field. [#143 ]
2020-11-05 18:45:47 +00:00
2020-12-31 04:13:36 -08:00
[#143 ]: https://github.com/actix/actix-extras/pull/143
2020-11-05 18:45:47 +00:00
2020-11-19 00:52:49 +00:00
## 0.5.3 - 2020-11-19
2023-01-07 01:02:02 +00:00
- Fix version spec for `derive_more` dependency.
2020-11-19 00:52:49 +00:00
2020-11-15 22:24:18 +00:00
## 0.5.2 - 2020-11-15
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Ensure `tinyvec` is using the correct features.
- Bump `futures-util` minimum version to `0.3.7` to avoid `RUSTSEC-2020-0059` .
2020-11-15 22:24:18 +00:00
2020-11-05 18:45:47 +00:00
## 0.5.1 - 2020-11-05
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Fix `allow_any_header` method, now set the correct field. [#121 ]
2020-11-05 18:45:47 +00:00
[#121 ]: https://github.com/actix/actix-extras/pull/121
2020-10-19 23:09:42 +01:00
## 0.5.0 - 2020-10-19
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Disallow `*` in `Cors::allowed_origin` . [#114 ].
- Hide `CorsMiddleware` from docs. [#118 ].
- `CorsFactory` is removed. [#119 ]
- The `impl Default` constructor is now overly-restrictive. [#119 ]
- Added `Cors::permissive()` constructor that allows anything. [#119 ]
- Adds methods for each property to reset to a permissive state. (`allow_any_origin` ,
2020-10-19 19:30:46 +01:00
`expose_any_header` , etc.) [#119 ]
2021-12-29 09:36:12 +00:00
- Errors are now propagated with `Transform::InitError` instead of panicking. [#119 ]
- Fixes bug where allowed origin functions are not called if `allowed_origins` is All. [#119 ]
- `AllOrSome` is no longer public. [#119 ]
- Functions used for `allowed_origin_fn` now receive the Origin HeaderValue as the
2020-10-19 19:30:46 +01:00
first parameter. [#120 ]
2020-10-10 20:25:33 +07:00
[#114 ]: https://github.com/actix/actix-extras/pull/114
2020-10-16 22:01:30 +00:00
[#118 ]: https://github.com/actix/actix-extras/pull/118
2020-10-19 05:51:31 +01:00
[#119 ]: https://github.com/actix/actix-extras/pull/119
2020-10-19 19:30:46 +01:00
[#120 ]: https://github.com/actix/actix-extras/pull/120
2020-10-07 11:32:27 +01:00
## 0.4.1 - 2020-10-07
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Allow closures to be used with `allowed_origin_fn` . [#110 ]
2020-10-07 11:32:27 +01:00
[#110 ]: https://github.com/actix/actix-extras/pull/110
2020-09-27 14:29:33 +01:00
## 0.4.0 - 2020-09-27
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Implement `allowed_origin_fn` builder method. [#93 ]
- Use `TryInto` instead of `TryFrom` where applicable. [#106 ]
2020-09-26 21:02:45 +02:00
2020-09-27 14:29:33 +01:00
[#93 ]: https://github.com/actix/actix-extras/pull/93
2020-09-26 21:02:45 +02:00
[#106 ]: https://github.com/actix/actix-extras/pull/106
2020-10-07 11:32:27 +01:00
2020-09-11 21:22:55 +01:00
## 0.3.0 - 2020-09-11
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Update `actix-web` dependency to 3.0.0.
- Minimum supported Rust version (MSRV) is now 1.42.0.
- Implement the Debug trait on all public types.
2020-05-17 11:34:00 +09:00
2020-09-11 16:26:15 +01:00
## 0.3.0-alpha.1 - 2020-03-11
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Minimize `futures-*` dependencies
- Update `actix-web` dependency to 3.0.0-alpha.1
2020-03-12 05:43:48 +09:00
2020-09-11 16:26:15 +01:00
## 0.2.0 - 2019-12-20
2019-12-20 17:59:34 +06:00
2023-01-07 01:02:02 +00:00
- Release
2020-09-11 21:22:55 +01:00
2020-09-11 16:26:15 +01:00
## 0.2.0-alpha.3 - 2019-12-07
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Migrate to actix-web 2.0.0
- Bump `derive_more` crate version to 0.99.0
2019-06-19 18:41:42 +08:00
2020-09-11 16:26:15 +01:00
## 0.1.0 - 2019-06-15
2023-01-07 01:02:02 +00:00
2021-12-29 09:36:12 +00:00
- Move cors middleware to separate crate