Skip to content

Conversation

@fabianfett
Copy link
Collaborator

Motivation

We currently extend ByteBuffer with non prefixed utility methods. This may lead to breaking code, if NIO introduces those utilities itself. As potentially planned here: apple/swift-nio#1990

Changes

Prefix all ByteBuffer utility methods

Result

Chances reduced of breaking code.

@fabianfett fabianfett added enhancement New feature or request semver-patch labels Nov 23, 2021
@fabianfett fabianfett requested review from 0xTim and gwynne November 23, 2021 07:57
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2021

Codecov Report

Merging #204 (8933a2e) into main (87cfca5) will increase coverage by 3.72%.
The diff coverage is 73.49%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #204      +/-   ##
==========================================
+ Coverage   36.13%   39.85%   +3.72%     
==========================================
  Files         115      115              
  Lines        7788     7795       +7     
==========================================
+ Hits         2814     3107     +293     
+ Misses       4974     4688     -286     
Flag Coverage Δ
unittests 39.85% <73.49%> (+3.72%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Sources/PostgresNIO/Data/PostgresData+Double.swift 0.00% <0.00%> (ø)
Sources/PostgresNIO/Data/PostgresData+Float.swift 0.00% <0.00%> (ø)
...esNIO/Message/PostgresMessage+Authentication.swift 0.00% <0.00%> (ø)
...ces/PostgresNIO/Message/PostgresMessage+Bind.swift 0.00% <0.00%> (ø)
...es/PostgresNIO/Message/PostgresMessage+Close.swift 0.00% <0.00%> (ø)
...sNIO/Message/PostgresMessage+CommandComplete.swift 0.00% <0.00%> (ø)
...PostgresNIO/Message/PostgresMessage+Describe.swift 0.00% <0.00%> (ø)
...es/PostgresNIO/Message/PostgresMessage+Error.swift 0.00% <0.00%> (ø)
.../PostgresNIO/Message/PostgresMessage+Execute.swift 0.00% <0.00%> (ø)
...Message/PostgresMessage+NotificationResponse.swift 0.00% <0.00%> (ø)
... and 49 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87cfca5...8933a2e. Read the comment docs.

@fabianfett fabianfett merged commit 3931a06 into vapor:main Nov 23, 2021
@fabianfett fabianfett deleted the ff-prevent-naming-conflicts branch November 23, 2021 13:18
@VaporBot
Copy link

These changes are now available in 1.6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants