diff --git a/.swift-version b/.swift-version index d346e2a..9ad974f 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -5.3 +5.5 diff --git a/.travis.yml b/.travis.yml index 9e623b4..acf4fcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ language: generic before_install: - export SWIFT_VERSION=$(<.swift-version) - export SWIFT_DOCKER_IMAGE=swift:${SWIFT_VERSION}-bionic - - export MONGO_DOCKER_IMAGE=mongo:4.4 - - export MONGO_BREW_VERSION=mongodb-community@4.4 + - export MONGO_DOCKER_IMAGE=mongo:5.0 + - export MONGO_BREW_VERSION=mongodb-community@5.0 stages: - name: test @@ -32,7 +32,7 @@ jobs: - stage: test name: Unit Tests os: osx - osx_image: xcode12.3 + osx_image: xcode13.1 before_script: - gem install bundler - bundle install diff --git a/Package.swift b/Package.swift index d2ed8b2..81c4fef 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.5 // // Package.swift @@ -19,8 +19,8 @@ let package = Package( .library(name: "FluentMongo", targets: ["FluentMongo"]) ], dependencies: [ - .package(url: "https://github.com/vapor/fluent-kit.git", .upToNextMajor(from: "1.10.3")), - .package(url: "https://github.com/mongodb/mongo-swift-driver.git", .upToNextMajor(from: "1.1.0")) + .package(url: "https://github.com/vapor/fluent-kit.git", .upToNextMajor(from: "1.16.0")), + .package(url: "https://github.com/mongodb/mongo-swift-driver.git", .upToNextMajor(from: "1.2.0")) ], targets: [ .target(name: "FluentMongo", dependencies: [ diff --git a/README.md b/README.md index dece827..748234e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # vapor-fluent-mongo -![Swift](https://img.shields.io/badge/swift-5.3-orange.svg) +![Swift](https://img.shields.io/badge/swift-5.5-orange.svg) [![Build Status](https://travis-ci.com/asensei/vapor-fluent-mongo.svg?token=eSrCssnzja3G3GciyhUB&branch=master)](https://travis-ci.com/asensei/vapor-fluent-mongo) Mongo driver for Fluent `4.x`. @@ -13,15 +13,6 @@ Mongo driver for Fluent `4.x`. ## Getting Started -### Install the MongoDB C Driver -The driver wraps the MongoDB C driver, and using it requires having the C driver's two components, `libbson` and `libmongoc`, installed on your system. **The minimum required version of the C Driver is 1.16.2**. - -On a Mac, you can install both components at once using [Homebrew](https://brew.sh/): -`brew install mongo-c-driver`. - -On Linux: please follow the [instructions](http://mongoc.org/libmongoc/current/installing.html#building-on-unix) from `libmongoc`'s documentation. Note that the versions provided by your package manager may be too old, in which case you can follow the instructions for building and installing from source. - - ### Install FluentMongo *Please follow the instructions in the previous section on installing the MongoDB C Driver before proceeding.* @@ -29,7 +20,7 @@ On Linux: please follow the [instructions](http://mongoc.org/libmongoc/current/i Add FluentMongo to your dependencies in `Package.swift`: ```swift -// swift-tools-version:5.1 +// swift-tools-version:5.5 import PackageDescription let package = Package(