What's New
2.15.0 - Allow `send(_ binary:)` to accept `some DataProtocol`
2024-03-20T17:40:26Z
What's Changed
Allow send(_ binary:)
to accept some DataProtocol
by @fizker in #146
This allows for passing in
Data
orByteBufferView
tosend(_:)
, as well as the currently-supported[UInt8]
type.
This patch was released by @0xTim
Full Changelog: 2.14.0...2.15.0
Description
- Swift Tools 5.7.0
Description
{ "name": "websocket-kit", "path": "/usr/src/package", "targets": [ { "name": "WebSocketKitTests", "path": "Tests/WebSocketKitTests", "type": "test", "c99name": "WebSocketKitTests", "sources": [ "AsyncWebSocketKitTests.swift", "SSLTestHelpers.swift", "Utilities.swift", "WebSocketKitTests.swift" ], "module_type": "SwiftTarget", "target_dependencies": [ "WebSocketKit" ] }, { "name": "WebSocketKit", "path": "Sources/WebSocketKit", "type": "library", "c99name": "WebSocketKit", "sources": [ "Concurrency/WebSocket+Concurrency.swift", "Exports.swift", "HTTPUpgradeRequestHandler.swift", "WebSocket+Connect.swift", "WebSocket.swift", "WebSocketClient.swift", "WebSocketHandler.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "WebSocketKit" ], "product_dependencies": [ "NIOCore", "NIOConcurrencyHelpers", "NIOExtras", "NIOFoundationCompat", "NIOHTTP1", "NIOSSL", "NIOWebSocket", "NIOTransportServices", "Atomics" ] } ], "products": [ { "name": "WebSocketKit", "type": { "library": [ "automatic" ] }, "targets": [ "WebSocketKit" ] } ], "platforms": [ { "name": "macos", "version": "10.15" }, { "name": "ios", "version": "13.0" }, { "name": "watchos", "version": "6.0" }, { "name": "tvos", "version": "13.0" } ], "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "type": "sourceControl", "identity": "swift-nio", "requirement": { "range": [ { "lower_bound": "2.53.0", "upper_bound": "3.0.0" } ] } }, { "url": "https://github.com/apple/swift-nio-extras.git", "type": "sourceControl", "identity": "swift-nio-extras", "requirement": { "range": [ { "lower_bound": "1.16.0", "upper_bound": "2.0.0" } ] } }, { "url": "https://github.com/apple/swift-nio-ssl.git", "type": "sourceControl", "identity": "swift-nio-ssl", "requirement": { "range": [ { "lower_bound": "2.24.0", "upper_bound": "3.0.0" } ] } }, { "url": "https://github.com/apple/swift-nio-transport-services.git", "type": "sourceControl", "identity": "swift-nio-transport-services", "requirement": { "range": [ { "lower_bound": "1.16.0", "upper_bound": "2.0.0" } ] } }, { "url": "https://github.com/apple/swift-atomics.git", "type": "sourceControl", "identity": "swift-atomics", "requirement": { "range": [ { "lower_bound": "1.1.0", "upper_bound": "2.0.0" } ] } } ], "tools_version": "5.7", "manifest_display_name": "websocket-kit" }
Package Dump
{ "name": "websocket-kit", "targets": [ { "name": "WebSocketKit", "type": "regular", "exclude": [], "settings": [], "resources": [], "dependencies": [ { "product": [ "NIOCore", "swift-nio", null, null ] }, { "product": [ "NIOConcurrencyHelpers", "swift-nio", null, null ] }, { "product": [ "NIOExtras", "swift-nio-extras", null, null ] }, { "product": [ "NIOFoundationCompat", "swift-nio", null, null ] }, { "product": [ "NIOHTTP1", "swift-nio", null, null ] }, { "product": [ "NIOSSL", "swift-nio-ssl", null, null ] }, { "product": [ "NIOWebSocket", "swift-nio", null, null ] }, { "product": [ "NIOTransportServices", "swift-nio-transport-services", null, null ] }, { "product": [ "Atomics", "swift-atomics", null, null ] } ], "packageAccess": false }, { "name": "WebSocketKitTests", "type": "test", "exclude": [], "settings": [], "resources": [], "dependencies": [ { "target": [ "WebSocketKit", null ] } ], "packageAccess": false } ], "products": [ { "name": "WebSocketKit", "type": { "library": [ "automatic" ] }, "targets": [ "WebSocketKit" ] } ], "pkgConfig": null, "platforms": [ { "options": [], "version": "10.15", "platformName": "macos" }, { "options": [], "version": "13.0", "platformName": "ios" }, { "options": [], "version": "6.0", "platformName": "watchos" }, { "options": [], "version": "13.0", "platformName": "tvos" } ], "providers": null, "packageKind": { "root": [ "/usr/src/package" ] }, "dependencies": [ { "sourceControl": [ { "identity": "swift-nio", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-nio.git" } ] }, "requirement": { "range": [ { "lowerBound": "2.53.0", "upperBound": "3.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-nio-extras", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-nio-extras.git" } ] }, "requirement": { "range": [ { "lowerBound": "1.16.0", "upperBound": "2.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-nio-ssl", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-nio-ssl.git" } ] }, "requirement": { "range": [ { "lowerBound": "2.24.0", "upperBound": "3.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-nio-transport-services", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-nio-transport-services.git" } ] }, "requirement": { "range": [ { "lowerBound": "1.16.0", "upperBound": "2.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-atomics", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-atomics.git" } ] }, "requirement": { "range": [ { "lowerBound": "1.1.0", "upperBound": "2.0.0" } ] }, "productFilter": null } ] } ], "toolsVersion": { "_version": "5.7.0" }, "cLanguageStandard": null, "cxxLanguageStandard": null, "swiftLanguageVersions": null }
Dependencies
- swift-nio2.67.0
- swift-nio-extras1.22.0
- swift-nio-ssl2.27.0
- swift-nio-transport-services1.21.0
- swift-atomics1.2.0
Dependencies
{ "url": "/usr/src/package", "name": "websocket-kit", "path": "/usr/src/package", "version": "unspecified", "identity": "package", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.67.0", "identity": "swift-nio", "dependencies": [ { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] }, { "url": "https://github.com/apple/swift-collections.git", "name": "swift-collections", "path": "/usr/src/package/.build/checkouts/swift-collections", "version": "1.1.1", "identity": "swift-collections", "dependencies": [] }, { "url": "https://github.com/apple/swift-system.git", "name": "swift-system", "path": "/usr/src/package/.build/checkouts/swift-system", "version": "1.3.0", "identity": "swift-system", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-nio-extras.git", "name": "swift-nio-extras", "path": "/usr/src/package/.build/checkouts/swift-nio-extras", "version": "1.22.0", "identity": "swift-nio-extras", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.67.0", "identity": "swift-nio", "dependencies": [ { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] }, { "url": "https://github.com/apple/swift-collections.git", "name": "swift-collections", "path": "/usr/src/package/.build/checkouts/swift-collections", "version": "1.1.1", "identity": "swift-collections", "dependencies": [] }, { "url": "https://github.com/apple/swift-system.git", "name": "swift-system", "path": "/usr/src/package/.build/checkouts/swift-system", "version": "1.3.0", "identity": "swift-system", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-nio-http2.git", "name": "swift-nio-http2", "path": "/usr/src/package/.build/checkouts/swift-nio-http2", "version": "1.32.0", "identity": "swift-nio-http2", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.67.0", "identity": "swift-nio", "dependencies": [ { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] }, { "url": "https://github.com/apple/swift-collections.git", "name": "swift-collections", "path": "/usr/src/package/.build/checkouts/swift-collections", "version": "1.1.1", "identity": "swift-collections", "dependencies": [] }, { "url": "https://github.com/apple/swift-system.git", "name": "swift-system", "path": "/usr/src/package/.build/checkouts/swift-system", "version": "1.3.0", "identity": "swift-system", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-http-types", "name": "swift-http-types", "path": "/usr/src/package/.build/checkouts/swift-http-types", "version": "1.2.0", "identity": "swift-http-types", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-nio-ssl.git", "name": "swift-nio-ssl", "path": "/usr/src/package/.build/checkouts/swift-nio-ssl", "version": "2.27.0", "identity": "swift-nio-ssl", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.67.0", "identity": "swift-nio", "dependencies": [ { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] }, { "url": "https://github.com/apple/swift-collections.git", "name": "swift-collections", "path": "/usr/src/package/.build/checkouts/swift-collections", "version": "1.1.1", "identity": "swift-collections", "dependencies": [] }, { "url": "https://github.com/apple/swift-system.git", "name": "swift-system", "path": "/usr/src/package/.build/checkouts/swift-system", "version": "1.3.0", "identity": "swift-system", "dependencies": [] } ] } ] }, { "url": "https://github.com/apple/swift-nio-transport-services.git", "name": "swift-nio-transport-services", "path": "/usr/src/package/.build/checkouts/swift-nio-transport-services", "version": "1.21.0", "identity": "swift-nio-transport-services", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.67.0", "identity": "swift-nio", "dependencies": [ { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] }, { "url": "https://github.com/apple/swift-collections.git", "name": "swift-collections", "path": "/usr/src/package/.build/checkouts/swift-collections", "version": "1.1.1", "identity": "swift-collections", "dependencies": [] }, { "url": "https://github.com/apple/swift-system.git", "name": "swift-system", "path": "/usr/src/package/.build/checkouts/swift-system", "version": "1.3.0", "identity": "swift-system", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-atomics.git", "name": "swift-atomics", "path": "/usr/src/package/.build/checkouts/swift-atomics", "version": "1.2.0", "identity": "swift-atomics", "dependencies": [] } ] }