Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed streamFile deprecation + deactivated advancedETagComparison by default #3177

Merged
merged 25 commits into from Apr 23, 2024

Conversation

linus-hologram
Copy link
Contributor

@linus-hologram linus-hologram commented Apr 23, 2024

These changes are now available in 4.93.2

As discussed on Discord, this PR removes the deprecation and deactivates the lately introduced advanced ETag Comparison for the time being while the revised implementation is worked on.

linus-hologram and others added 25 commits May 4, 2023 23:44
sha-256 digest set when file is written to system
Introduced new streamFile method which allows for advancedETag comparison. Deprecated the old one.
Updates to remove deprecated warnings by using the new streamFile() method. Also removed some other deprecation warnings.
- adjusted faulty comment
- access storage directly to avoid concurrent overwrites of the entire storage
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.37%. Comparing base (11cdb29) to head (0b37f9c).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3177      +/-   ##
==========================================
+ Coverage   76.86%   77.37%   +0.50%     
==========================================
  Files         211      211              
  Lines        8119     7784     -335     
==========================================
- Hits         6241     6023     -218     
+ Misses       1878     1761     -117     
Files Coverage Δ
Sources/Vapor/Middleware/FileMiddleware.swift 93.93% <100.00%> (-0.80%) ⬇️
Sources/Vapor/Utilities/FileIO.swift 78.94% <ø> (+3.18%) ⬆️

... and 91 files with indirect coverage changes

@0xTim 0xTim added the semver-patch Internal changes only label Apr 23, 2024
@0xTim 0xTim merged commit 3e3d65b into vapor:main Apr 23, 2024
16 checks passed
keniwhat pushed a commit to keniwhat/vapor that referenced this pull request Apr 27, 2024
* main:
  Patch configuration and log actual port on startup (vapor#3160)
  Update provider tests to 5.10 (vapor#3178)
  Migrate to Async NIOFileIO APIs (vapor#3167)
  Removed streamFile deprecation + deactivated advancedETagComparison by default (vapor#3177)
  Remove HeadResponder (vapor#3147)
  Advanced ETag Comparison now supported (vapor#3015)
  Enabled Request Decompression By Default (vapor#3175)
  HTTP2 Response Compression/Request Decompression (vapor#3126)
  Don't set ignore status for SIGTERM and SIGINT on Linux (vapor#3174)
  Fix typos across the codebase (vapor#3162)
  Fix some Sendable warnings on 5.10 (vapor#3158)
  Allow `HTTPServer`'s configuration to be dynamically updatable (vapor#3132)
  Fix issue when client disconnects midway through a stream (vapor#3102)
  Fix handling of "flag" URL query params (vapor#3151)
  Bump the dependencies group with 1 update (vapor#3148)
  Merge Async Tests (vapor#3141)
  Fix URI handling with multiple slashes and variable components. (vapor#3143)
  Fix broken URI behaviors (vapor#3140)

# Conflicts:
#	Package.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants