28 Commits
Author SHA1 Message Date
Cory Benfield 9cdb93e321 Drop Swift 5.5 (#197)
Motivation

Per SwiftNIO's formal version policy, we are ready to drop support for
Swift 5.5.

Modifications

This patch removes the support for 5.5 and all supporting
infrastructure. This includes the test generation functionality, which
is no longer required, as well as the files generated by that
functionality. It updates the dockerfile for 5.8, and it removes all
conditional compilation checks that are now definitionally true.

Result

A nice, clean, 5.6+ codebase
2023-04-13 16:47:28 +01:00
Cory Benfield 0e0d0aab66 Fix documentation and add support for CI-ing it (#196)
* Fix documentation and add support for CI-ing it

* Soundness cleanup
2023-04-11 11:25:17 +01:00
George Barnett 98378d1fe5 Remove Jazzy doc generation (#191)
Motivation:

Docs are generated by and hosted on the Swift Package Index. We no
longer need the script to generate docs via Jazzy.

Modifications:

- Remove the generate_docs script
- Remove Jazzy from the Dockerfile but keep Ruby; it's used for
  generating test manifests.
- Remove SwiftFormat from the Dockerfile; we don't use it.

Result:

Fewer unused things.
2023-01-23 15:43:51 +00:00
Rick Newton-Rogers 5ff8cc59a6 Migrate http1 proxy connect handler (#185)
Motivation:

Moving the HTTP1ProxyConnectHandler into swift-nio-extras will make the
code which is generally useful when dealing with HTTP1 proxies available
more easily to a wider audience.

Modifications:

The code and tests are copied over from https://github.com/swift-server/async-http-client/blob/0b5bec741bfcf941e208d937de2ec29affe750a7/Sources/AsyncHTTPClient/ConnectionPool/ChannelHandler/HTTP1ProxyConnectHandler.swift.

Result:

HTTP1ProxyConnectHandler will be surfaced via the NIOExtras library
2023-01-12 13:56:04 +00:00
Rick Newton-Rogers 54def83a52 update generated test script from swift-nio (#188)
The newer version of the script automatically calculates accurate
copyright date statements.
2022-12-02 15:17:43 +00:00
Peter Adams f4359b987d Prepare for docc (#167)
Motivation:

Publishing docs is a good thing.

Modifications:

Update Package.swift to allow docc documentation to be generated.

Result:

It is possible to generate docc docs.
2022-08-01 14:21:15 +01:00
George Barnett 79586313bd Remove build_podspec.sh (#162)
Motivation:

We no longer support Cocoapods.

Modifications:

- Remove build_podspec.sh

Result:

Less unused code.
2022-05-04 11:02:26 +01:00
George Barnett ba05378671 Update podspec generation (#161)
Motivation:

Pods need to include all transitive dependencies in order
to work around https://github.com/apple/swift-nio/issues/2073.

We also ship a second library from this repo: NIOSOCKS which doesn't yet
have a pod published.

Modifications:

- Update the pod generation script

Result:

Pods include all transitive dependencies
2022-05-03 16:31:04 +01:00
George Barnett c2e508ab19 Update doc generation script (#149)
Motivation:

The docs haven't been generated for a while.

See also: https://github.com/apple/swift-nio/pull/2013

Modifications:

- Add NIOSOCKS module
- Pass `--spm` flag to sourcekitten
- Update source location of sourcekitten
- Fix link to NIO docs

Result:

Docs build.
2021-12-20 11:05:58 +00:00
Cory Benfield d66ae0557e Clean up imports and dependencies. (#144)
Motivation:

With NIO 2.32.0 we broke the core NIO module up into modules that split
apart the POSIX layer and the core abstractions. As a result, this
package no longer needs to express a hard dependency on the POSIX layer.

Modifications:

- Rewrote imports of NIO to NIOCore.
- Added NIOEmbedded and NIOPosix imports where necessary in tests.
- Extended soundness script to detect NIO imports.
- Note that the main modules still depend on NIO, which is necessary
    for backwards-compatibility reasons. This dependency is unused.

Result:

No need to use NIOPosix.
2021-09-14 16:30:39 +01:00
tomer doron 5fbe51af53 fix doc generation and jazzy version (#141)
motivation: fix ci

changes:
* only install ruby and jazzy on focal since jazzy id not supported onlder versions of ubuntu
* fix doc generations script adjusting it to latest source-kittent syntax
2021-09-02 09:14:11 +01:00
David Evans c67aa046e5 Remove support for Swift 5.0 and 5.1 (#138)
Changes made:

Removed CI config for 5.0 ad 5.1
Changed 5.2 to be based on 16.04 so we have some coverage there
Converted Package.swift to the latest syntax
Added a description to supported Swift versions in the README
2021-06-22 18:07:01 +01:00
Johannes Weiss 1ce2e70c08 update code of conduct to version 1.4 (#120) 2021-02-17 14:18:42 +00:00
David NadobaandJohannes Weiss 3d14afbe3f add support for a 24 bit (3 byte) length field (#114)
Motivation:

The RSocket protocol uses a 24 bit length field

Modifications:

- add two new methods readInteger and writeInteger on ByteBuffer that support reading and writing integers of any size.
- add a new case (.three) to ByteLength

Result:

LengthFieldBasedFrameDecoder & LengthFieldPrepender do now support a 24 bit length field

Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
2021-02-17 09:04:24 +00:00
Fabian Fett e4bbe79d7e Use welcoming language (#112) 2021-01-22 08:49:59 +00:00
George Barnett e8d4442cf7 Add watchOS deployment to PodSpec build script (#110)
Motivation:

We support watchOS 6+ with SwiftNIO Transport Services; as such we should
include watchOS as a deployment target for our CocoaPods.

Modifications:

- Add a watchOS deployment target to `build_podspecs.sh`

Result:

Users can deploy to watchOS 6+ with CocoaPods.
2020-10-21 15:27:58 +01:00
Cory Benfield 5258afd617 This repository now uses main. (#109) 2020-09-24 16:28:47 +01:00
Peter Adams 71c5df21bd Get API breakage script working on Linux for swift-5.2+ (#103)
Motivation:

Current script always reports sdk errors on 5.2.

Modifications:

Only give -sdk where really necessary on 5.2 linux.

Result:

Script will work on 5.2 (although still reports silent errors)
2020-08-04 14:17:30 +01:00
Johannes Weiss 68af66e329 link swift-nio-extras in docs (#87) 2020-06-17 16:45:20 +01:00
George Barnett 157853a29b Update build_podspec.sh to not use exact dependency versions (#91)
Motivation:

The build_podspec.sh script generates a podspec which requires exact
versions of its dependencies. This very quickly turns into unresolvable
dependency graphs.

Modifications:

NIO version passed to script must be in the format MAJOR.MINOR
Podspec dependencies are now '>= MAJOR.MINOR', '< MAJOR+1'

Result:

Looser version requirements for podspecs
2020-06-17 09:32:40 +01:00
George Barnett 0f26138ae4 Let 2020 be an acceptable year in license headers (#89)
Motivation:

It's 2020; our license checking script should believe that that is an
acceptable year.

Modifications:

- Update scripts/sanity.sh

Result:

2020 is okay in license headers.
2020-04-30 16:29:36 +01:00
tomer doronandJohannes Weiss 64cb1e3bbb add doc generation script (#80)
motivation: publish api docs for helper modules

changes
* add doc publishing script
* add "shell" docker-compose task to help run document publishing from ci

Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
2020-03-03 10:33:33 +00:00
Thomas Krajacic fa4caf3c93 Add api checker script (#69)
* Add api checker script

* Fix comment to match the tag in the sample command
2019-10-30 12:27:39 +01:00
George Barnett 3a9ddcaf3e Update target versions in podspec generation script (#50)
Motivation:

The script to generate a podspec used the minimum platform versions for
NIOTS instead of NIO.

Modifications:

Lower the minimum platform version to match those supported by NIO.

Result:

Larger Cocoapods platform support.
2019-05-22 16:42:27 +01:00
Romain Pouclet 1d1e76cf79 Add a podspec for NIOExtras (#48)
Motivation:

https://github.com/apple/swift-nio-extras/issues/45

Modifications:

Add a podspec

Result:

Happy cocoapods users
2019-04-16 20:00:32 +01:00
Johannes Weiss 96e8335180 write PCAP handler (#46)
Motivation:

Especially with TLS but also without, in real production environments it
can be handy to be able to write pcap files from NIO directly.

Modifications:

add a ChannelHandler that can write a PCAP trace from what's going on in
the ChannelPipeline.

Result:

easier debugging in production
2019-04-12 15:08:10 +01:00
Johannes Weiss 0dbd54199d add RequestResponseHandler (#23)
Motivation:

Frequently, people want to terminate their pipeline with a handler that
takes in requests & a promise and on receipt of the response just
fulfill that promise.

Modifications:

- add `RequestResponseHandler`
- remove outdated of contents from README.md

Result:

more useful handlers
2019-01-29 15:30:24 +00:00
Johannes Weiss 0874b531ce initial commit 2018-05-15 15:36:56 +01:00