diff --git a/Package.resolved b/Package.resolved index 00b4416..5c7bbc2 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftwasm/JavaScriptKit.git", "state" : { - "revision" : "a129f62171bf3610633313c2db6acdca41cdb195", - "version" : "0.16.0" + "revision" : "3b5af3d442179900455307c725fe6a111a714b27", + "version" : "0.19.2" } } ], diff --git a/Package.swift b/Package.swift index 0d16320..4d99891 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,7 @@ let package = Package( dependencies: [ .package( url: "https://github.com/swiftwasm/JavaScriptKit.git", - .upToNextMajor(from: "0.16.0") + from: "0.19.0" ), ], targets: [ diff --git a/Sources/WebFoundation/URLSession.swift b/Sources/WebFoundation/URLSession.swift index f62251b..c44df70 100644 --- a/Sources/WebFoundation/URLSession.swift +++ b/Sources/WebFoundation/URLSession.swift @@ -2,6 +2,7 @@ import Foundation import JavaScriptEventLoop import JavaScriptKit +@available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) public class URLSession { public static let shared = URLSession() diff --git a/Sources/WebFoundation/Upstream/URLRequest.swift b/Sources/WebFoundation/Upstream/URLRequest.swift index 29509fa..3a9b125 100644 --- a/Sources/WebFoundation/Upstream/URLRequest.swift +++ b/Sources/WebFoundation/Upstream/URLRequest.swift @@ -152,7 +152,10 @@ public struct URLRequest: Equatable, Hashable { public var httpBody: Data? @available(*, unavailable, message: "httpBodyStream is not yet available in WebFoundation") - public var httpBodyStream: Any? + public var httpBodyStream: Any? { + get { nil } + set { } + } /// `true` if cookies will be sent with and set for this request; otherwise `false`. public var httpShouldHandleCookies = true