Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test-pushpull:
runs-on: ubuntu-latest
container: swift:5.9.2-jammy
container: swift:5.10.1-jammy
steps:
- uses: actions/checkout@v3
- name: Run tests
Expand Down
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10

import PackageDescription

Expand Down Expand Up @@ -34,7 +34,10 @@ let package = Package(
.product(name: "Collections", package: "swift-collections"),
.product(name: "Logging", package: "swift-log"),
],
exclude: ["Abstraction/README.md", "Framework/README.md"]
exclude: ["Abstraction/README.md", "Framework/README.md"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete")
]
),
.target(
name: "HTMLKitConverter",
Expand All @@ -56,6 +59,9 @@ let package = Package(
dependencies: [
.target(name: "HTMLKit"),
.product(name: "Vapor", package: "vapor"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete")
]
),
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Foundation
/// Each case corresponds to a specific data type and provides a placeholder
/// that can be used for replacing values in the localized string.
@_documentation(visibility: internal)
public enum InterpolationArgument {
public enum InterpolationArgument: Sendable {

/// Holds an integer value
case int(Int)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

/// A type thats holds the information for the localization
@_documentation(visibility: internal)
public struct LocalizedString: Content {
public struct LocalizedString: Content, Sendable {

/// The key of the translation value
internal let key: LocalizedStringKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

/// A string key for the localization
@_documentation(visibility: internal)
public struct LocalizedStringKey {
public struct LocalizedStringKey: Sendable {

/// The key value
internal let value: String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// A type that represents a translation table
///
/// A translation table stores multiple localized strings, mapping unique string keys to their corresponding translations
internal struct TranslationTable {
internal struct TranslationTable: Sendable {

/// The name of the table
internal let name: String
Expand Down
2 changes: 1 addition & 1 deletion Sources/HTMLKit/Framework/Rendering/Features.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// An option set of different features
///
/// The feature set provides the flexibility to enable experimental features if desired.
public struct Features: Swift.OptionSet {
public struct Features: Swift.OptionSet, Sendable {

public var rawValue: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

internal final class Markdown {
internal struct Markdown: Sendable {

/// The markdowns characters
internal static let characters = CharacterSet(charactersIn: "*_~[`")
Expand Down