22 Commits
Author SHA1 Message Date
Daniel Eggert c4d4d23e29 Drop pre-Swift 6.2 (#845) 2026-08-29 09:23:34 +02:00
Daniel Eggert 34883bcba6 Update style in documentation (#822) 2026-04-28 18:06:43 +02:00
Daniel Eggert 871d0122c9 Better docc comments (#815) 2026-04-16 09:20:29 -07:00
Daniel Eggert 655492302a Add MessageIdentifierSet.suffix overload (#791) 2025-05-02 08:18:36 +00:00
Matt Diephouse 5b2a96a5ab Declare MessageIdentificationShiftWrapper to be Sendable (#778) 2025-01-06 16:23:51 -05:00
Franz Busch 2cd1c5582a [CI] Adopt GitHub Actions (#775)
* [CI] Adopt GitHub Actions

# Motivation

We want to adopt GitHub actions in all of our Swift repositories to replace our current Jenkins CI.

# Modification

This PR adopts the reusable workflows from NIO and the swiftlang organization to ensure soundness and test coverage. Additionally, this PR enables a sematic label check and adds a `release.yml` to make releasing this package easy.

# Result

Modern CI and release flow.
2024-10-30 13:24:35 +00:00
Matt Diephouse 7d0f2cf799 Mark final set of types as Sendable (#771) 2024-09-18 15:06:30 +02:00
Matt Diephouse bffac522bd Make types Sendable (#767) 2024-09-02 13:56:13 +02:00
Daniel Eggert 0040533b67 Add support for MESSAGELIMIT Extension (#760) 2024-06-20 09:04:10 -07:00
Daniel Eggert 3d871e0f6b Make generic functions that are public inlinable (#741) 2023-05-25 10:32:21 -04:00
Daniel Eggert 18dd5d5193 Call through to RangeSet for SetAlgebra where possible (#732) 2023-02-22 12:17:48 +01:00
Daniel Eggert ad85d4a0cc Cleanup CustomDebugStringConvertible conformance (#713)
With this PR the implementation of `CustomDebugStringConvertible` generally uses new `makeDescription` convenience methods on the three encode buffers, e.g.:
```swift
extension ResponseEncodeBuffer {
    static func makeDescription(_ closure: (inout ResponseEncodeBuffer) -> Void) -> String
}
```
such that conformance can be implemented as e.g.
```swift
extension Command: CustomDebugStringConvertible {
    public var debugDescription: String {
        CommandEncodeBuffer.makeDescription {
            $0.writeCommand(self)
        }
    }
}
```

This also adds `CustomDebugStringConvertible` to `MessageAttribute` and `StreamingKind`.
2022-09-10 12:35:32 +02:00
Daniel Eggert cc1a03dd73 Use SE0270_RangeSet instead of StandardLibraryPreview (#707) 2022-09-05 09:25:45 +01:00
Daniel Eggert 040df6a6c6 Make conversion between MessageIdentifierSet variants public (#697)
This also renames some files and move some code around — to make the UID / SequenceNumber / UnknownMessageIdentifier split clearer.
2022-04-19 18:10:09 +02:00
Daniel Eggert bb0e803d99 UID convenience (#682) 2022-02-04 15:21:13 +01:00
Daniel Eggert 2caea0cf64 Make MessageIdentifierSet.RangeView conform to RandomAccessCollection (#673) 2022-01-18 16:52:28 +01:00
David Evans d487e39d8a Add conversions from UnknownMessageIdentifier wrappers to UID/SequenceNumber types (#653)
Resolves #652

MessageIdentifierSet<UnknownMessageIdentifier> <-> MessageIdentifierSet<UID>
MessageIdentifierSet<UnknownMessageIdentifier> <-> MessageIdentifierSet<SequenceNumber>
MessageIdentifierRange<UnknownMessageIdentifier> <-> MessageIdentifierRange<UID>
MessageIdentifierRange<UnknownMessageIdentifier> <-> MessageIdentifierRange<SequenceNumber>
2021-12-13 15:56:40 +00:00
Daniel Eggert 17b0f8e467 Add isContiguous to MessageIdentifierSet (#650)
With the recent changes to message identifier set it’s no longer possible to access the range count, but we’d only ever need that to calculate isContiguous. Moving this into NIOIMAPCore seems like the better approach.
2021-12-13 10:33:35 +00:00
David Evans 1639174b33 Update all docs to correctly represent types (#641)
Due to all the changes to create generic types a lot of the types specified in various bits of documentation were actually wrong. They've been fixed.

Also delete a redundant duplicate function writeUID
2021-12-01 14:02:38 +00:00
David Evans d8a2deb0e3 Use typealiases (#642)
UIDRange == MessageIdentifierRange<UID>
UIDSet == MessageIdentifierSet<UID>
UIDSetNonEmpty == MessageIdentifierSetNonEmpty<UID>

SequenceRange == MessageIdentifierRange<SequenceNumber>
SequenceSet == MessageIdentifierSet<SequenceNumber>
2021-11-30 20:34:07 +00:00
David Evans 0490280833 Remove SequenceRange and SequenceRangeSet (#640)
Note - I'll update documentation in a follow-up PR

Remove SequenceRange and SequenceRangeSet and replace with new MessageIdentifier* types.

Motivation:

There was lots of very complicated duplicate code, and there was about to be more if we didn't make the new MessageIdentifier types.

Modifications:

Replace basically every occurrence of SequenceRange with MessageIdentifierRange<SequenceNumber> and SequenceRangeSet with MessageIdentifierSet<SequenceRangeNumber>.
Result:

Lots of lines deleted.
2021-11-30 10:52:46 +00:00
David Evans d936fce407 Replace UIDSet* with generic MessageIdentificationSet (#638)
In a previous PR we made UID conform to a new protocol MessageIdentifier. This PR continues the trend of removing concrete types and replacing them with generic types.

In this case we have UIDSet and UIDSetNonEmpty. These are identical to SequenceNumberSet and SequenceNumberSetNonEmpty. To allow us to remove the duplicate code a new generic type MessageIdentifierSet has been defined that takes a generic parameter T: MessageIdentifier. Both UID and SequenceNumber conform to MessageIdentifier.

In the next PR I will remove the code for SequenceNumberSet* and replace with MessageIdentifierSet. This PR only addresses the UIDSet* types.

Note: I will update all documentation in another (probably the last) PR.
2021-11-24 09:53:56 +00:00