2019-03-01 23:59:44 -08:00
# Changes
2023-08-28 23:44:35 +01:00
## Unreleased
2023-01-21 19:03:19 +00:00
2024-08-18 22:17:03 +08:00
- Minimum supported Rust version (MSRV) is now 1.75.
2024-06-09 19:45:14 +01:00
## 0.6.6
- Update `tokio-uring` dependency to `0.4` .
2024-02-13 01:24:34 +00:00
- Minimum supported Rust version (MSRV) is now 1.72.
2024-02-07 03:47:30 +00:00
2024-01-10 04:01:14 +00:00
## 0.6.5
2024-01-10 16:56:15 +13:00
- Fix handling of special characters in filenames.
2024-01-06 10:19:15 +00:00
## 0.6.4
- Fix handling of newlines in filenames.
2023-08-01 19:33:32 +01:00
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive `time` dependency.
2023-07-02 01:09:15 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.3
2023-02-26 00:55:57 +00:00
2022-10-09 19:44:10 +08:00
- XHTML files now use `Content-Disposition: inline` instead of `attachment` . [#2903 ]
2022-08-27 13:14:16 +01:00
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
2023-01-21 18:46:44 +00:00
- Update `tokio-uring` dependency to `0.4` .
2022-07-23 16:37:59 +01:00
2022-10-09 19:44:10 +08:00
[#2903 ]: https://github.com/actix/actix-web/pull/2903
2022-07-23 16:37:59 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.2
2023-02-26 00:55:57 +00:00
2022-07-23 17:27:01 +02:00
- Allow partial range responses for video content to start streaming sooner. [#2817 ]
2022-06-22 20:08:06 +09:00
- Minimum supported Rust version (MSRV) is now 1.57 due to transitive `time` dependency.
2022-06-11 16:15:43 +01:00
2022-07-23 17:27:01 +02:00
[#2817 ]: https://github.com/actix/actix-web/pull/2817
2023-08-28 23:44:35 +01:00
## 0.6.1
2023-02-26 00:55:57 +00:00
2022-03-10 01:29:26 +00:00
- Add `NamedFile::{modified, metadata, content_type, content_disposition, encoding}()` getters. [#2021 ]
2022-03-10 01:05:03 +00:00
- Update `tokio-uring` dependency to `0.3` .
- Audio files now use `Content-Disposition: inline` instead of `attachment` . [#2645 ]
2022-06-11 04:03:26 +01:00
- Minimum supported Rust version (MSRV) is now 1.56 due to transitive `hashbrown` dependency.
2022-03-03 01:29:59 +01:00
2022-03-10 01:29:26 +00:00
[#2021 ]: https://github.com/actix/actix-web/pull/2021
2022-03-03 01:29:59 +01:00
[#2645 ]: https://github.com/actix/actix-web/pull/2645
2022-01-14 20:01:11 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0
2022-02-25 20:36:16 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.16` .
2022-02-25 20:36:16 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.16
2022-01-31 22:32:52 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.15` .
2022-01-31 22:32:52 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.15
2022-01-21 20:27:29 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.14` .
2022-01-21 20:27:29 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.14
2023-02-26 00:55:57 +00:00
2022-01-12 17:53:36 +00:00
- The `prefer_utf8` option introduced in `0.4.0` is now true by default. [#2583 ]
[#2583 ]: https://github.com/actix/actix-web/pull/2583
2022-01-04 15:36:56 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.13
2023-02-26 00:55:57 +00:00
2022-01-04 12:58:40 +00:00
- The `Files` service now rejects requests with URL paths that include `%2F` (decoded: `/` ). [#2398 ]
- The `Files` service now correctly decodes `%25` in the URL path to `%` for the file path. [#2398 ]
2021-12-29 08:59:15 +00:00
- Minimum supported Rust version (MSRV) is now 1.54.
2021-11-22 18:46:19 +00:00
2022-01-04 15:54:11 +03:00
[#2398 ]: https://github.com/actix/actix-web/pull/2398
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.12
2021-12-29 07:08:10 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.11` .
2021-12-29 07:08:10 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.11
2021-12-27 18:45:31 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.10` .
2021-12-27 18:45:31 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.10
2021-12-11 00:31:41 +00:00
2023-02-26 00:55:57 +00:00
- No significant changes since `0.6.0-beta.9` .
2021-12-11 00:31:41 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.9
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Add crate feature `experimental-io-uring` , enabling async file I/O to be utilized. This feature is only available on Linux OSes with recent kernel versions. This feature is semver-exempt. [#2408 ]
- Add `NamedFile::open_async` . [#2408 ]
- Fix 304 Not Modified responses to omit the Content-Length header, as per the spec. [#2453 ]
- The `Responder` impl for `NamedFile` now has a boxed future associated type. [#2408 ]
- The `Service` impl for `NamedFileService` now has a boxed future associated type. [#2408 ]
- Add `impl Clone` for `FilesService` . [#2408 ]
2021-11-19 14:04:12 +00:00
2021-11-22 09:19:09 +08:00
[#2408 ]: https://github.com/actix/actix-web/pull/2408
2021-11-19 14:04:12 +00:00
[#2453 ]: https://github.com/actix/actix-web/pull/2453
2021-10-20 23:32:46 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.8
2021-09-09 01:35:41 +01:00
2023-02-26 00:55:57 +00:00
- Minimum supported Rust version (MSRV) is now 1.52.
2021-09-09 01:35:41 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.7
2021-06-26 16:33:36 +01:00
2023-02-26 00:55:57 +00:00
- Minimum supported Rust version (MSRV) is now 1.51.
2021-06-26 16:33:36 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.6
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Added `Files::path_filter()` . [#2274 ]
- `Files::show_files_listing()` can now be used with `Files::index_file()` to show files listing as a fallback when the index file is not found. [#2228 ]
2021-06-25 16:21:57 +03:00
[#2274 ]: https://github.com/actix/actix-web/pull/2274
2021-06-26 16:33:36 +01:00
[#2228 ]: https://github.com/actix/actix-web/pull/2228
2021-06-19 11:51:20 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.5
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- `NamedFile` now implements `ServiceFactory` and `HttpServiceFactory` making it much more useful in routing. For example, it can be used directly as a default service. [#2135 ]
- For symbolic links, `Content-Disposition` header no longer shows the filename of the original file. [#2156 ]
- `Files::redirect_to_slash_directory()` now works as expected when used with `Files::show_files_listing()` . [#2225 ]
- `application/{javascript, json, wasm}` mime type now have `inline` disposition by default. [#2257 ]
2021-04-13 07:28:30 +03:00
2021-04-19 02:11:07 +01:00
[#2135 ]: https://github.com/actix/actix-web/pull/2135
2021-04-13 07:28:30 +03:00
[#2156 ]: https://github.com/actix/actix-web/pull/2156
2021-05-26 12:42:29 +03:00
[#2225 ]: https://github.com/actix/actix-web/pull/2225
2021-06-16 22:33:22 +03:00
[#2257 ]: https://github.com/actix/actix-web/pull/2257
2021-02-10 12:10:03 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.4
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Add support for `.guard` in `Files` to selectively filter `Files` services. [#2046 ]
2021-04-22 18:13:13 +01:00
[#2046 ]: https://github.com/actix/actix-web/pull/2046
2021-04-02 09:43:51 +01:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.3
2021-03-09 23:39:40 +00:00
2023-02-26 00:55:57 +00:00
- No notable changes.
2021-03-09 23:39:40 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.2
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Fix If-Modified-Since and If-Unmodified-Since to not compare using sub-second timestamps. [#1887 ]
- Replace `v_htmlescape` with `askama_escape` . [#1953 ]
2021-01-07 20:02:08 +00:00
2021-01-11 11:18:23 -07:00
[#1887 ]: https://github.com/actix/actix-web/pull/1887
2021-02-07 05:50:23 +01:00
[#1953 ]: https://github.com/actix/actix-web/pull/1953
2021-01-07 20:02:08 +00:00
2023-08-28 23:44:35 +01:00
## 0.6.0-beta.1
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- `HttpRange::parse` now has its own error type.
- Update `bytes` to `1.0` . [#1813 ]
2021-01-04 07:47:04 +08:00
[#1813 ]: https://github.com/actix/actix-web/pull/1813
2020-12-26 04:05:45 +00:00
2023-08-28 23:44:35 +01:00
## 0.5.0
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Optionally support hidden files/directories. [#1811 ]
2020-12-26 04:36:15 +01:00
[#1811 ]: https://github.com/actix/actix-web/pull/1811
2020-10-06 22:08:33 +01:00
2023-08-28 23:44:35 +01:00
## 0.4.1
2020-11-24 20:23:09 +00:00
2023-02-26 00:55:57 +00:00
- Clarify order of parameters in `Files::new` and improve docs.
2020-11-24 20:23:09 +00:00
2023-08-28 23:44:35 +01:00
## 0.4.0
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Add `Files::prefer_utf8` option that adds UTF-8 charset on certain response types. [#1714 ]
2020-10-06 21:56:28 +01:00
[#1714 ]: https://github.com/actix/actix-web/pull/1714
2023-08-28 23:44:35 +01:00
## 0.3.0
2020-10-06 21:56:28 +01:00
2023-02-26 00:55:57 +00:00
- No significant changes from 0.3.0-beta.1.
2020-07-02 17:52:42 +09:00
2023-08-28 23:44:35 +01:00
## 0.3.0-beta.1
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Update `v_htmlescape` to 0.10
- Update `actix-web` and `actix-http` dependencies to beta.1
2020-07-02 17:52:42 +09:00
2023-08-28 23:44:35 +01:00
## 0.3.0-alpha.1
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Update `actix-web` and `actix-http` dependencies to alpha
- Fix some typos in the docs
- Bump minimum supported Rust version to 1.40
- Support sending Content-Length when Content-Range is specified [#1384 ]
2020-05-23 18:47:08 +09:00
[#1384 ]: https://github.com/actix/actix-web/pull/1384
2020-05-13 01:57:37 +01:00
2023-08-28 23:44:35 +01:00
## 0.2.1
2019-12-22 16:43:41 +09:00
2023-02-26 00:55:57 +00:00
- Use the same format for file URLs regardless of platforms
2019-12-16 17:22:26 +06:00
2023-08-28 23:44:35 +01:00
## 0.2.0
2019-12-16 17:22:26 +06:00
2023-02-26 00:55:57 +00:00
- Fix BodyEncoding trait import #1220
2019-12-03 16:35:31 +06:00
2023-08-28 23:44:35 +01:00
## 0.2.0-alpha.1
2019-12-03 16:35:31 +06:00
2023-02-26 00:55:57 +00:00
- Migrate to `std::future`
2019-11-06 10:35:13 -08:00
2023-08-28 23:44:35 +01:00
## 0.1.7
2023-02-26 00:55:57 +00:00
- Add an additional `filename*` param in the `Content-Disposition` header of `actix_files::NamedFile` to be more compatible. (#1151 )
2019-10-14 17:23:15 +02:00
2023-08-28 23:44:35 +01:00
## 0.1.6
2019-10-14 17:23:15 +02:00
2023-02-26 00:55:57 +00:00
- Add option to redirect to a slash-ended path `Files` #1132
2019-08-12 05:43:29 +09:00
2023-08-28 23:44:35 +01:00
## 0.1.5
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Bump up `mime_guess` crate version to 2.0.1
- Bump up `percent-encoding` crate version to 2.1
- Allow user defined request guards for `Files` #1113
2019-10-14 21:26:26 +06:00
2023-08-28 23:44:35 +01:00
## 0.1.4
2019-07-20 11:43:49 +06:00
2023-02-26 00:55:57 +00:00
- Allow to disable `Content-Disposition` header #686
2019-06-28 11:42:20 +06:00
2023-08-28 23:44:35 +01:00
## 0.1.3
2019-06-28 11:42:20 +06:00
2023-02-26 00:55:57 +00:00
- Do not set `Content-Length` header, let actix-http set it #930
2019-06-06 20:34:30 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.2
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Content-Length is 0 for NamedFile HEAD request #914
- Fix ring dependency from actix-web default features for #741
2019-06-06 20:34:30 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.1
2019-06-01 17:57:40 +06:00
2023-02-26 00:55:57 +00:00
- Static files are incorrectly served as both chunked and with length #812
2019-05-22 21:21:12 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0
2019-05-22 21:21:12 -07:00
2023-02-26 00:55:57 +00:00
- NamedFile last-modified check always fails due to nano-seconds in file modified date #820
2019-05-12 11:41:43 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0-beta.4
2019-05-12 11:41:43 -07:00
2023-02-26 00:55:57 +00:00
- Update actix-web to beta.4
2019-04-20 21:16:51 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0-beta.1
2019-04-20 21:16:51 -07:00
2023-02-26 00:55:57 +00:00
- Update actix-web to beta.1
2019-04-14 08:09:32 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0-alpha.6
2019-04-14 08:09:32 -07:00
2023-02-26 00:55:57 +00:00
- Update actix-web to alpha6
2019-04-07 23:42:05 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0-alpha.4
2019-04-07 23:42:05 -07:00
2023-02-26 00:55:57 +00:00
- Update actix-web to alpha4
2019-03-31 18:19:18 -07:00
2023-08-28 23:44:35 +01:00
## 0.1.0-alpha.2
2019-03-31 18:19:18 -07:00
2023-02-26 00:55:57 +00:00
- Add default handler support
2019-03-01 23:59:44 -08:00
2023-08-28 23:44:35 +01:00
## 0.1.0-alpha.1
2023-02-26 00:55:57 +00:00
2021-12-22 08:21:30 +00:00
- Initial impl