What's New
4.14.3 - Make logged metadata a little more readable
2024-05-30T10:35:38Z
What's Changed
Make logged metadata a little more readable by @gwynne in #201
We now explicitly suppress excess
"
characters recursively in logger metadata.Also bumps the package to a minimum of Swift 5.8 and fixes some warnings.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.14.2...4.14.3
Description
- Swift Tools 5.9.0
Description
{ "name": "console-kit", "path": "/usr/src/package", "targets": [ { "name": "ConsoleLoggerExample", "path": "Sources/ConsoleLoggerExample", "type": "executable", "c99name": "ConsoleLoggerExample", "sources": [ "entrypoint.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleLoggerExample" ], "target_dependencies": [ "ConsoleKit" ], "product_dependencies": [ "Logging" ] }, { "name": "ConsoleKitTests", "path": "Tests/ConsoleKitTests", "type": "test", "c99name": "ConsoleKitTests", "sources": [ "ActivityTests.swift", "CommandErrorTests.swift", "CommandTests.swift", "ConsoleTests.swift", "LoggingTests.swift", "TerminalTests.swift", "Utilities.swift" ], "module_type": "SwiftTarget", "target_dependencies": [ "ConsoleKit" ] }, { "name": "ConsoleKitTerminal", "path": "Sources/ConsoleKitTerminal", "type": "library", "c99name": "ConsoleKitTerminal", "sources": [ "Activity/ActivityBar.swift", "Activity/ActivityIndicator.swift", "Activity/ActivityIndicatorRenderer.swift", "Activity/ActivityIndicatorState.swift", "Activity/CustomActivity.swift", "Activity/LoadingBar.swift", "Activity/ProgressBar.swift", "Clear/Console+Clear.swift", "Clear/Console+Ephemeral.swift", "Clear/ConsoleClear.swift", "Input/Console+Ask.swift", "Input/Console+Choose.swift", "Input/Console+Confirm.swift", "Input/Console+Input.swift", "Output/Console+Center.swift", "Output/Console+Output.swift", "Output/Console+Wait.swift", "Output/ConsoleColor.swift", "Output/ConsoleStyle.swift", "Output/ConsoleText.swift", "Output/ConsoleTextFragment.swift", "Terminal/ANSI.swift", "Terminal/Console.swift", "Terminal/Terminal.swift", "Terminal/readpassphrase_linux.swift", "Utilities/AnySendableHashable.swift", "Utilities/ConsoleLogger.swift", "Utilities/LoggerFragment.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleKit", "ConsoleKitTerminal", "ConsoleKitCommands", "ConsoleLoggerExample", "ConsoleKitExample", "ConsoleKitAsyncExample" ], "product_dependencies": [ "Logging", "NIOConcurrencyHelpers" ] }, { "name": "ConsoleKitPerformanceTests", "path": "Tests/ConsoleKitPerformanceTests", "type": "test", "c99name": "ConsoleKitPerformanceTests", "sources": [ "ConsoleLoggerPerformanceTests.swift" ], "module_type": "SwiftTarget", "target_dependencies": [ "ConsoleKit" ] }, { "name": "ConsoleKitExample", "path": "Sources/ConsoleKitExample", "type": "executable", "c99name": "ConsoleKitExample", "sources": [ "DemoCommand.swift", "entrypoint.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleKitExample" ], "target_dependencies": [ "ConsoleKit" ] }, { "name": "ConsoleKitCommands", "path": "Sources/ConsoleKitCommands", "type": "library", "c99name": "ConsoleKitCommands", "sources": [ "Async/AnyAsyncCommand.swift", "Async/AsyncCommand.swift", "Async/AsyncCommandGroup.swift", "Async/AsyncCommands.swift", "Async/GenerateAsyncAutocompleteCommand.swift", "Base/AnyCommand.swift", "Base/Command.swift", "Base/CommandContext.swift", "Base/CommandError.swift", "Base/CommandGroup.swift", "Base/CommandInput.swift", "Base/Commands.swift", "Base/Console+Run.swift", "Base/ConsoleError.swift", "Completion/Completion.swift", "Completion/GenerateAutocompleteCommand.swift", "Deprecated/MergedAsyncCommandGroup.swift", "Signatures/Argument.swift", "Signatures/CommandSignature.swift", "Signatures/Flag.swift", "Signatures/Option.swift", "Utilities/String+LevenshteinDistance.swift", "Utilities/Utilities.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleKit", "ConsoleKitCommands", "ConsoleLoggerExample", "ConsoleKitExample", "ConsoleKitAsyncExample" ], "target_dependencies": [ "ConsoleKitTerminal" ], "product_dependencies": [ "Logging", "NIOConcurrencyHelpers" ] }, { "name": "ConsoleKitAsyncExample", "path": "Sources/ConsoleKitAsyncExample", "type": "executable", "c99name": "ConsoleKitAsyncExample", "sources": [ "DemoCommand.swift", "entrypoint.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleKitAsyncExample" ], "target_dependencies": [ "ConsoleKit" ] }, { "name": "ConsoleKit", "path": "Sources/ConsoleKit", "type": "library", "c99name": "ConsoleKit", "sources": [ "Exports.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "ConsoleKit", "ConsoleLoggerExample", "ConsoleKitExample", "ConsoleKitAsyncExample" ], "target_dependencies": [ "ConsoleKitCommands", "ConsoleKitTerminal" ] }, { "name": "AsyncConsoleKitTests", "path": "Tests/AsyncConsoleKitTests", "type": "test", "c99name": "AsyncConsoleKitTests", "sources": [ "AsyncCommandErrorTests.swift", "AsyncCommandTests.swift", "AsyncUtilities.swift" ], "module_type": "SwiftTarget", "target_dependencies": [ "ConsoleKit" ] } ], "products": [ { "name": "ConsoleKit", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKit" ] }, { "name": "ConsoleKitTerminal", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKitTerminal" ] }, { "name": "ConsoleKitCommands", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKitCommands" ] }, { "name": "ConsoleLoggerExample", "type": { "executable": null }, "targets": [ "ConsoleLoggerExample" ] }, { "name": "ConsoleKitExample", "type": { "executable": null }, "targets": [ "ConsoleKitExample" ] }, { "name": "ConsoleKitAsyncExample", "type": { "executable": null }, "targets": [ "ConsoleKitAsyncExample" ] } ], "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-log.git", "type": "sourceControl", "identity": "swift-log", "requirement": { "range": [ { "lower_bound": "1.5.3", "upper_bound": "2.0.0" } ] } }, { "url": "https://github.com/apple/swift-nio.git", "type": "sourceControl", "identity": "swift-nio", "requirement": { "range": [ { "lower_bound": "2.62.0", "upper_bound": "3.0.0" } ] } } ], "tools_version": "5.9", "manifest_display_name": "console-kit" }
Package Dump
{ "name": "console-kit", "targets": [ { "name": "ConsoleKit", "type": "regular", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKitCommands", null ] }, { "target": [ "ConsoleKitTerminal", null ] } ], "packageAccess": true }, { "name": "ConsoleKitCommands", "type": "regular", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "product": [ "Logging", "swift-log", null, null ] }, { "product": [ "NIOConcurrencyHelpers", "swift-nio", null, null ] }, { "target": [ "ConsoleKitTerminal", null ] } ], "packageAccess": true }, { "name": "ConsoleKitTerminal", "type": "regular", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "product": [ "Logging", "swift-log", null, null ] }, { "product": [ "NIOConcurrencyHelpers", "swift-nio", null, null ] } ], "packageAccess": true }, { "name": "ConsoleKitTests", "type": "test", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] } ], "packageAccess": true }, { "name": "AsyncConsoleKitTests", "type": "test", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] } ], "packageAccess": true }, { "name": "ConsoleKitPerformanceTests", "type": "test", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] } ], "packageAccess": true }, { "name": "ConsoleKitExample", "type": "executable", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] } ], "packageAccess": true }, { "name": "ConsoleKitAsyncExample", "type": "executable", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] } ], "packageAccess": true }, { "name": "ConsoleLoggerExample", "type": "executable", "exclude": [], "settings": [ { "kind": { "enableUpcomingFeature": { "_0": "ExistentialAny" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ForwardTrailingClosures" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "ConciseMagicFile" } }, "tool": "swift" }, { "kind": { "enableUpcomingFeature": { "_0": "DisableOutwardActorInference" } }, "tool": "swift" }, { "kind": { "enableExperimentalFeature": { "_0": "StrictConcurrency=complete" } }, "tool": "swift" } ], "resources": [], "dependencies": [ { "target": [ "ConsoleKit", null ] }, { "product": [ "Logging", "swift-log", null, null ] } ], "packageAccess": true } ], "products": [ { "name": "ConsoleKit", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKit" ] }, { "name": "ConsoleKitTerminal", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKitTerminal" ] }, { "name": "ConsoleKitCommands", "type": { "library": [ "automatic" ] }, "targets": [ "ConsoleKitCommands" ] } ], "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-log", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-log.git" } ] }, "requirement": { "range": [ { "lowerBound": "1.5.3", "upperBound": "2.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-nio", "location": { "remote": [ { "urlString": "https://github.com/apple/swift-nio.git" } ] }, "requirement": { "range": [ { "lowerBound": "2.62.0", "upperBound": "3.0.0" } ] }, "productFilter": null } ] } ], "toolsVersion": { "_version": "5.9.0" }, "cLanguageStandard": null, "cxxLanguageStandard": null, "swiftLanguageVersions": null }
Dependencies
Dependencies
{ "url": "/usr/src/package", "name": "console-kit", "path": "/usr/src/package", "version": "unspecified", "identity": "package", "dependencies": [ { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.6.0", "identity": "swift-log", "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": [] } ] } ] }