This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SquirrelJSON with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-squirrel/squirreljson.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-squirrel/squirreljson
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a413fce swiftlint
Cloned https://github.com/swift-squirrel/squirreljson.git
Revision (git rev-parse @):
a413fced7857d9aec5a9a6723095b7807a71c8f3
SUCCESS checkout https://github.com/swift-squirrel/squirreljson.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/swift-squirrel/squirreljson.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling SquirrelJSON SquirrelJSONEncodable.swift
[4/8] Compiling SquirrelJSON JSONError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSONError.swift:23:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'JSONError' has non-sendable type 'JSONError.ErrorKind'; this is an error in the Swift 6 language mode
14 |     /// - encodeError: Can not encode
15 |     /// - dataEncodingError: Data Encoding error
16 |     public enum ErrorKind {
   |                 `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
17 |         case parseError
18 |         case encodeError
   :
21 |
22 |     /// Error kind
23 |     public let kind: ErrorKind
   |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'JSONError' has non-sendable type 'JSONError.ErrorKind'; this is an error in the Swift 6 language mode
24 |     /// Description
25 |     public let description: String
[5/8] Compiling SquirrelJSON JSONCoding.swift
[6/8] Emitting module SquirrelJSON
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:104:5: warning: 'public' modifier is redundant for initializer declared in a public extension
102 |     ///
103 |     /// - Parameter string: String value
104 |     public init(_ string: String) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
105 |         type = .string(str: string)
106 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:109:5: warning: 'public' modifier is redundant for property declared in a public extension
107 |
108 |     /// String
109 |     public var string: String? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
110 |         guard case let ValueType.string(str) = type else {
111 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:117:5: warning: 'public' modifier is redundant for property declared in a public extension
115 |
116 |     /// String value (default "")
117 |     public var stringValue: String {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
118 |         return string ?? ""
119 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:122:5: warning: 'public' modifier is redundant for property declared in a public extension
120 |
121 |     /// Check if value is String
122 |     public var isString: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
123 |         guard case .string = type else {
124 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:195:5: warning: 'public' modifier is redundant for initializer declared in a public extension
193 |     ///
194 |     /// - Parameter array: Array value
195 |     public init(_ array: [JSON]) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
196 |         type = .array(arr: array)
197 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:202:5: warning: 'public' modifier is redundant for initializer declared in a public extension
200 |     ///
201 |     /// - Parameter array: Array value
202 |     public init?(array: [Any]) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
203 |         var res = [JSON]()
204 |         for element in array {
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:214:5: warning: 'public' modifier is redundant for property declared in a public extension
212 |
213 |     /// Array
214 |     public var array: [JSON]? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
215 |         guard case let .array(arr) = type else {
216 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:222:5: warning: 'public' modifier is redundant for property declared in a public extension
220 |
221 |     /// Array (if nil returns [])
222 |     public var arrayValue: [JSON] {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
223 |         return array ?? []
224 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:231:5: warning: 'public' modifier is redundant for subscript declared in a public extension
229 |     ///
230 |     /// - Parameter index: index
231 |     public subscript(index: Int) -> JSON {
    |     `- warning: 'public' modifier is redundant for subscript declared in a public extension
232 |         guard index >= 0 else {
233 |             return JSON(from: nil)!
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:245:5: warning: 'public' modifier is redundant for property declared in a public extension
243 |
244 |     /// Check if value is dictionary
245 |     public var isArray: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
246 |         guard case .array = type else {
247 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:399:5: warning: 'public' modifier is redundant for initializer declared in a public extension
397 |     ///
398 |     /// - Parameter encodable: Encodable object
399 |     public init<T: Encodable>(_ encodable: T) throws {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
400 |         let encoder = JSONEncoder()
401 |         let data = try encoder.encode(encodable)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:410:5: warning: 'public' modifier is redundant for instance method declared in a public extension
408 |     /// - Returns: Object
409 |     /// - Throws: Encoding and decoding error
410 |     public func decode<T: Decodable>(to type: T.Type = T.self) throws -> T {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
411 |         let data = try JSONEncoder().encode(self)
412 |         return try JSONDecoder().decode(T.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:419:5: warning: 'public' modifier is redundant for static method declared in a public extension
417 |     /// - Parameter data: All important data in JSON data format
418 |     /// - Returns: JSON or nil on error
419 |     public static func decode(from data: Data) -> JSON? {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
420 |         let decoder = JSONDecoder()
421 |         return try? decoder.decode(self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:425:5: warning: 'public' modifier is redundant for property declared in a public extension
423 |
424 |     /// Encoded JSON to Data or nil on error
425 |     public var encode: Data? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
426 |         let encoder = JSONEncoder()
427 |         return try? encoder.encode(self)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:434:5: warning: 'public' modifier is redundant for property declared in a public extension
432 | public extension JSON {
433 |     /// Check if JSON represents nil
434 |     public var isNil: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
435 |         switch type {
436 |         case .nil:
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:447:5: warning: 'public' modifier is redundant for property declared in a public extension
445 |     /// - Note: When self does not represents Array or Dictionary
446 |     ///     return false, if represents nil returns true
447 |     public var isEmpty: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
448 |         if case .nil = type {
449 |             return true
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:466:5: warning: 'public' modifier is redundant for property declared in a public extension
464 |     /// - Note: if JSON is array or dictionary it returns its representation
465 |     /// otherwise return nil.
466 |     public var serialized: Any? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
467 |         switch type {
468 |         case .array:
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSONError.swift:23:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'JSONError' has non-sendable type 'JSONError.ErrorKind'; this is an error in the Swift 6 language mode
14 |     /// - encodeError: Can not encode
15 |     /// - dataEncodingError: Data Encoding error
16 |     public enum ErrorKind {
   |                 `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
17 |         case parseError
18 |         case encodeError
   :
21 |
22 |     /// Error kind
23 |     public let kind: ErrorKind
   |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'JSONError' has non-sendable type 'JSONError.ErrorKind'; this is an error in the Swift 6 language mode
24 |     /// Description
25 |     public let description: String
[7/8] Compiling SquirrelJSON JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:104:5: warning: 'public' modifier is redundant for initializer declared in a public extension
102 |     ///
103 |     /// - Parameter string: String value
104 |     public init(_ string: String) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
105 |         type = .string(str: string)
106 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:109:5: warning: 'public' modifier is redundant for property declared in a public extension
107 |
108 |     /// String
109 |     public var string: String? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
110 |         guard case let ValueType.string(str) = type else {
111 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:117:5: warning: 'public' modifier is redundant for property declared in a public extension
115 |
116 |     /// String value (default "")
117 |     public var stringValue: String {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
118 |         return string ?? ""
119 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:122:5: warning: 'public' modifier is redundant for property declared in a public extension
120 |
121 |     /// Check if value is String
122 |     public var isString: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
123 |         guard case .string = type else {
124 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:195:5: warning: 'public' modifier is redundant for initializer declared in a public extension
193 |     ///
194 |     /// - Parameter array: Array value
195 |     public init(_ array: [JSON]) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
196 |         type = .array(arr: array)
197 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:202:5: warning: 'public' modifier is redundant for initializer declared in a public extension
200 |     ///
201 |     /// - Parameter array: Array value
202 |     public init?(array: [Any]) {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
203 |         var res = [JSON]()
204 |         for element in array {
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:214:5: warning: 'public' modifier is redundant for property declared in a public extension
212 |
213 |     /// Array
214 |     public var array: [JSON]? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
215 |         guard case let .array(arr) = type else {
216 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:222:5: warning: 'public' modifier is redundant for property declared in a public extension
220 |
221 |     /// Array (if nil returns [])
222 |     public var arrayValue: [JSON] {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
223 |         return array ?? []
224 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:231:5: warning: 'public' modifier is redundant for subscript declared in a public extension
229 |     ///
230 |     /// - Parameter index: index
231 |     public subscript(index: Int) -> JSON {
    |     `- warning: 'public' modifier is redundant for subscript declared in a public extension
232 |         guard index >= 0 else {
233 |             return JSON(from: nil)!
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:245:5: warning: 'public' modifier is redundant for property declared in a public extension
243 |
244 |     /// Check if value is dictionary
245 |     public var isArray: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
246 |         guard case .array = type else {
247 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:399:5: warning: 'public' modifier is redundant for initializer declared in a public extension
397 |     ///
398 |     /// - Parameter encodable: Encodable object
399 |     public init<T: Encodable>(_ encodable: T) throws {
    |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
400 |         let encoder = JSONEncoder()
401 |         let data = try encoder.encode(encodable)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:410:5: warning: 'public' modifier is redundant for instance method declared in a public extension
408 |     /// - Returns: Object
409 |     /// - Throws: Encoding and decoding error
410 |     public func decode<T: Decodable>(to type: T.Type = T.self) throws -> T {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
411 |         let data = try JSONEncoder().encode(self)
412 |         return try JSONDecoder().decode(T.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:419:5: warning: 'public' modifier is redundant for static method declared in a public extension
417 |     /// - Parameter data: All important data in JSON data format
418 |     /// - Returns: JSON or nil on error
419 |     public static func decode(from data: Data) -> JSON? {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
420 |         let decoder = JSONDecoder()
421 |         return try? decoder.decode(self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:425:5: warning: 'public' modifier is redundant for property declared in a public extension
423 |
424 |     /// Encoded JSON to Data or nil on error
425 |     public var encode: Data? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
426 |         let encoder = JSONEncoder()
427 |         return try? encoder.encode(self)
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:434:5: warning: 'public' modifier is redundant for property declared in a public extension
432 | public extension JSON {
433 |     /// Check if JSON represents nil
434 |     public var isNil: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
435 |         switch type {
436 |         case .nil:
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:447:5: warning: 'public' modifier is redundant for property declared in a public extension
445 |     /// - Note: When self does not represents Array or Dictionary
446 |     ///     return false, if represents nil returns true
447 |     public var isEmpty: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
448 |         if case .nil = type {
449 |             return true
/Users/admin/builder/spi-builder-workspace/Sources/SquirrelJSON/JSON.swift:466:5: warning: 'public' modifier is redundant for property declared in a public extension
464 |     /// - Note: if JSON is array or dictionary it returns its representation
465 |     /// otherwise return nil.
466 |     public var serialized: Any? {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
467 |         switch type {
468 |         case .array:
[8/8] Compiling SquirrelJSON JSON+ExpressibleBy.swift
Build complete! (17.73s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SquirrelJSON",
  "name" : "SquirrelJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SquirrelJSON",
      "targets" : [
        "SquirrelJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SquirrelJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "SquirrelJSONTests",
      "path" : "Tests/SquirrelJSONTests",
      "sources" : [
        "JSONCodingTests.swift",
        "JSONTests.swift"
      ],
      "target_dependencies" : [
        "SquirrelJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SquirrelJSON",
      "module_type" : "SwiftTarget",
      "name" : "SquirrelJSON",
      "path" : "Sources/SquirrelJSON",
      "product_memberships" : [
        "SquirrelJSON"
      ],
      "sources" : [
        "JSON+ExpressibleBy.swift",
        "JSON.swift",
        "JSONCoding.swift",
        "JSONError.swift",
        "SquirrelJSONEncodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.