80 Commits
Author SHA1 Message Date
Rick Newton-Rogers f280fc7676 Enable Swift 6.1 jobs in CI (#65)
Motivation:

Swift 6.1 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.1 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
1.2.2
2025-04-14 10:50:37 +01:00
Rick Newton-RogersandCory Benfield 3d33634532 Add static SDK CI workflow (#61)
Add static SDK CI workflow which runs on commits to PRs, merges to main
and daily on main.

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-04-02 13:35:42 +00:00
Rick Newton-Rogers 68dea5d389 Enable macOS CI on pull requests (#64)
Motivation:

* Improve test coverage

Modifications:

Enable macOS CI to be run on pull request commits and make the use of
the nightly runner pool for main.yml jobs explicit.

Result:

Improved test coverage.
2025-04-01 17:42:05 +01:00
Rick Newton-Rogers 8e769facea Update FieldParser.swift availability guard (#63)
Update FieldParser.swift availability guard for 
```
String(unsafeUninitializedCapacity: unescapedBytes.count)
```
which is only available on Mac Catalyst 14.0 or later
1.2.1
2025-03-28 16:02:59 +00:00
Rick Newton-Rogers ddbbf18ea2 Enable macOS CI on merge to main and daily timer (#62)
Motivation:

* Improve test coverage
* Check test pass/fail status
* Monitor CI throughput

Modifications:

Enable macOS CI to be run on all merges to main and on a daily timer.

Result:

Improved test coverage run out-of-band at the moment so we can get a
feeling for if any changes need to be made in the repo or in the CI
pipelines to ensure timely and stable checks.
2025-03-28 14:53:23 +00:00
Rick Newton-Rogers 71572c3592 Only apply standard swift settings on valid targets (#60)
Only apply standard swift settings on valid targets. The current check
ignores plugins but that is not comprehensive enough.
2025-03-07 15:05:33 +00:00
Rick Newton-Rogers 9904e916c6 Rename nightly_6_1 params to nightly_next (#59)
Rename nightly_6_1 params to nightly_next; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 14:48:23 +00:00
Rick Newton-Rogers 5e56fd2512 CI use 6.1 nightlies (#58)
CI use 6.1 nightlies now that Swift development is happening in the 6.1
branch
2025-01-30 09:45:34 +00:00
Marc Prud'hommeaux ceae3ec5a4 Android support (#57)
This PR adds the single import needed to build and test on Android.
2025-01-14 14:49:23 +00:00
Franz Busch d01361d32e Update release.yml (#56)
Update the release.yml file with the latest label changes
1.2.0
2024-12-18 13:10:08 +00:00
Rick Newton-RogersandGeorge Barnett 0e5c5f5be2 Enable MemberImportVisibility check on all targets (#54)
Enable MemberImportVisibility check on all targets. Use a standard
string header and footer to bracket the new block for ease of updating
in the future with scripts.

Co-authored-by: George Barnett <gbarnett@apple.com>
2024-12-16 11:01:04 +00:00
Clinton NkwochaandCory Benfield 847a630908 Update documentation (#55)
Motivation:

swift-http-structured-headers has been updated to [RFC
9651](https://www.ietf.org/rfc/rfc9651.html).

Modifications:

- Update documentation.

Result:

An up-to-date documentation.

Co-authored-by: Cory Benfield <lukasa@apple.com>
2024-12-12 14:35:43 +00:00
Clinton Nkwocha 1a14678249 Integer serialization fix for 32 bit platform compatibility (#52)
Motivation:

[RFC 9651](https://www.ietf.org/rfc/rfc9651.html) permits serializing an
integer in the range of -999,999,999,999,999 to 999,999,999,999,999
inclusive ([Section
4.1.4-2.1.1](https://www.ietf.org/rfc/rfc9651.html#section-4.1.4-2.1.1)).
As `RFC9651BareItem` takes values `integer` or `date` with an associated
value of type `Int`, that range is implicitly more constrained on 32-bit
platforms to a subset range of `Int32.min` to `Int32.max` inclusive.

Modifications:

- Adjust `RFC9651BareItem` to take values `integer` or `date` with an
associated value of type `Int64` instead, which is sufficient for the
permitted range.

Result:

Compatibility for the Integer and Date Structured Types on 32-bit
platforms.
2024-12-12 14:16:50 +00:00
Clinton NkwochaandCory Benfield be84570e9f Add support for Display String type to StructuredFieldValues (#51)
Motivation:

The parser and serializer for the Display String type have been
implemented. The high-level encoder and decoder should follow.

Modifications:

Implement the encoder and decoder for Display String.

Result:

The StructuredFieldValues module will support the Display String type.

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2024-12-10 07:56:51 +00:00
Clinton Nkwocha 0d92bf6b08 Enable strict concurrency (#53)
Motivation:

To catch potential data races at build time.

Modifications:

- Enable strict concurrency in Package.swift.
- Add `Sendable` conformance to `StructuredFieldType`.
- Swap
[concurrency-unsafe](https://github.com/swiftlang/swift/issues/66213)
`CommandLine.arguments` for `ProcessInfo.processInfo.arguments`.

Result:

Strict concurrency adoption.
2024-12-05 12:16:11 +01:00
Franz Busch 8126775202 Aligning semantic version label check name (#50) 2024-11-28 11:58:22 +00:00
Clinton Nkwocha 6e527aa16a Add support for Date type to StructuredFieldValues (#49)
Motivation:

The parser and serializer for the Date type has been implemented. The high-level encoder and decoder should follow.

Modifications:

- Implement the encoder and decoder for Date.

Result:

The StructuredFieldValues module will support the Date type.
2024-11-26 16:04:41 +00:00
Clinton Nkwocha c2e79ce44c [RFC 9651] Add support for Display String type to RawStructuredFieldValues (#43)
Motivation:

RFC 9651 added the Display String Structured Type.

Modifications:

Implement the parser and serializer for Display String in the RawStructuredFieldValues module.

Result:

The RawStructuredFieldValues module will support the Display String type.
2024-11-22 18:11:50 +00:00
Rick Newton-Rogers 960eccb609 add .editorconfig file (#45) 2024-11-15 10:59:35 +00:00
Rick Newton-Rogers 60b0bc53ac remove unused Swift 6 Soundness workflow (#47) 2024-11-15 09:49:56 +00:00
Rick Newton-Rogers b4a8ec4f98 remove contributors script (#46) 2024-11-14 16:18:59 +00:00
Rick Newton-Rogers 8b35bf45bf Migrate to GitHub Actions (#42)
Migrate CI to use GitHub Actions.

Motivation:

To migrate to GitHub actions and centralised infrastructure.

Modifications:

Changes of note:
* Adopt swift-format using rules from SwiftNIO
* Remove scripts and docker files which are no longer needed

Result:

Feature parity with old CI.
2024-10-30 13:20:20 +00:00
Clinton Nkwocha b0bf94fb2d [RFC 9651] Add support for Date type to RawStructuredFieldValues (#41)
Motivation:

[RFC 9651](https://www.ietf.org/rfc/rfc9651.html) added the Date Structured Type.

Modifications:

- Implement the parser and serializer for Date in the RawStructuredFieldValues module.

Result:

The RawStructuredFieldValues module will support the Date type.
2024-10-28 14:01:46 +00:00
Clinton Nkwocha f069b10a87 [RFC 9651] Implement adjustments for backward compatible update (#40)
Motivation:

`swift-http-structured-headers` has to be updated to [RFC 9651](https://www.ietf.org/rfc/rfc9651.html). And it will be convenient for users to have this update as a SemVer minor.

Modifications:

- Deprecate the `BareItem` type and replace it with `RFC9651BareItem`, retaining existing behaviours. Updates for the new RFC will be based on `RFC9651BareItem`.

Result:

The library can be updated to the new RFC in a backward-compatible manner.
2024-10-23 10:56:35 +01:00
LamTrinh.Dev 8cc27e208a Correct the link of sswg-security at SECURITY.md (#39) 1.1.0 2024-09-09 01:26:55 -07:00
Franz Busch 5debbb95c3 Add release.yml (#38) 2024-09-06 05:59:57 -07:00
George Barnett 6409185acd Raise minimum Swift version to 5.8 (#37) 2024-03-11 08:43:03 +00:00
Yim Lee 2e8ae2a766 Add CI for Swift 5.10 (#36) 2024-01-23 08:59:22 +00:00
Cory Benfield 9055e7c729 Remove unneeded compiler guard. (#35)
Motivation:

We no longer support compilers older than 5.3 (or indeed older than
5.6), so we don't need compiler guards for old ones.

Modifications:

Remove fallback for old compilers.

Result:

Easier to understand code
1.0.0
2023-08-01 15:15:17 +01:00
Peter AdamsandCory Benfield ef88c2245f Remove Swift 5.5 Dockerfile (#34)
* Remove Swift 5.5 Dockerfile

Motivation:

Swift 5.5 is no longer supported.

Modifications:

Remove Swift 5.5 Dockerfile

Result:

Swift 5.5 support fully removed

* Remove SHSendable

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2023-04-14 03:21:10 -07:00
Peter Adams e8c756ea88 Remove support for swift 5.5 (#33)
Motivation:

Policy is to support 3 swift versions and 5.8 has now been released.

Modifications:

Remove Package.swift for 5.5

Result:

Swift 5.5 no longer supported
2023-04-14 03:06:10 -07:00
Yim Lee b61fdcfd3f Add docker-compose file for Swift 5.9 (#32) 2023-04-13 09:46:53 +01:00
Cory Benfield d95a83fac7 Fix documentation and add infrastructure for CI-ing it (#31) 2023-04-11 13:35:28 +01:00
David Nadoba 2e4ee75062 Add Swift 5.8 CI and update nightly CI to Ubuntu 22.04 (#30) 2023-01-18 08:16:57 +01:00
Yim Lee fd202d4852 Add .spi.yml for Swift Package Index DocC support (#29) 2022-12-02 09:53:52 +00:00
carolinacass 0a03f062c9 Use #fileID/#filePath instead of #file (#28)
Motivation:

#fileID introduced in Swift 5.3, so no longer need to use #file anywhere

Modifications:

Changed #file to #filePath or #fileID depending on the situation
2022-11-03 11:57:57 +00:00
George Barnett 521f0418e6 Raise minimum supported Swift version from 5.4 to 5.5 (#27)
Motivation:

We periodically drop support for older Swift versions. Now that
5.7 has been released, 5.4 can be dropped.

Modifications:

- Remove 5.4 specific Package.swift and docker-compose
- Update the 5.7 docker-compose to use the released 5.7 and move from
  focal (2004) to jammy (2204)

Results:

Minimum Swift version is 5.5
2022-09-28 17:17:48 +01:00
Cory Benfield d994e50da7 Validate missing imports in CI (#26) 2022-08-16 01:18:40 -07:00
Cory Benfield 76a75874dd Use Docc for documentation (#25)
Motivation

Documentation is nice, and we can help support users by providing useful
clear docs.

Modifications

Add Docc to 5.6 and later builds
Make sure symbol references work
Add overview docs

Result

Nice rendering docs
0.3.0
2022-07-29 10:43:34 +01:00
Cory Benfield 09cbe194f6 Use 5.7 nightlies (#24) 2022-06-13 04:05:45 -07:00
David EvansandCory Benfield 522c301c0f Adopt Sendable (#23)
* Make RawStructuredFieldValues sendable

* Make StructuredFieldValues Sendable

* Rename _Sendable to SHSendable

* Fix date checking

* Fix warning

* Soundness

* Update date

Co-authored-by: Cory Benfield <lukasa@apple.com>

Co-authored-by: Cory Benfield <lukasa@apple.com>
2022-05-13 17:11:50 +01:00
Cory Benfield a3c50a9c10 Remove redundant conformance constraints (#22) 0.2.0 2022-04-22 09:46:54 +01:00
Fabian Fett 753a6ef2d4 Fix warnings, that appeared after requiring Swift 5.4 (#21) 2022-04-22 07:54:17 +01:00
Fabian Fett 1494d9edfa Drop support for Swift 5.2 and 5.3 (#19)
As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions.

- drop support for Swift 5.2 and 5.3. 
- update CI for Swift 5.4 to run on bionic instead of focal to ensure that we still test bionic.
2022-04-21 10:22:11 +02:00
Cory Benfield 5fa0988b37 Move CI to 5.6 main and add 5.7 (#18)
* Move CI to 5.6 main and add 5.7

5.7 currently uses main, we'll update it when we get a branch for it.

* Remove ubuntu_version
2022-03-18 11:07:53 +00:00
Cory Benfield 7ecee37f07 Add 5.6 nightly CI (#17)
The 5.6 nightly images are available, let's use them.
2022-01-18 09:42:01 +00:00
Xiaodi WuandCory Benfield 8c5c9aa00d Update for open-source Decimal fixes (#16)
* Update to future-proof usage of Decimal.significand

* Update all remaining uses of Decimal.significand

* Update usage of `Decimal(sign:exponent:significand:)`

* Apply suggestions from code review

Co-authored-by: Cory Benfield <lukasa@apple.com>

Co-authored-by: Cory Benfield <lukasa@apple.com>
0.1.0
2022-01-04 16:24:20 +00:00
Cory Benfield e31cbd3120 Update to Swift 5.5 release in CI (#14) 2021-09-22 13:07:48 +01:00
Cory Benfield 246da05986 Fix doc generation and jazzy version (#15)
Motivation:

The combination of Ruby and Jazzy are throwing up issues in CI on older
Ubuntu versions.

Modifications:

- Only install Jazzy on focal
- Fix doc generation script to use more recent source-kitten syntax

Results:

- CI doesn't complain
- Docs get built
2021-09-22 11:15:48 +01:00
Cory Benfield 92e9a35d70 Add security info for structured headers. (#11) 2021-07-06 16:33:01 +01:00