Swiftpack.co - Package - vapor/core

Github

link
Stars: 61

Dependencies

Releases

Conform File to ReflectionDecodable - 2020-03-26 18:38:18

File now conforms to ReflectionDecodable.

Core 3.9.3 - 2019-11-23 12:58:45

Updated:

  • Use NIO's primitive functions for flatMap and its siblings (#211, @MrMage).

Core 3.9.2 - 2019-09-19 14:17:09

  • Fixed an issue with DirectoryConfig.detect() in Xcode 11 when using native SPM integration. (#208)

Working directory detection methods used in Xcode projects created with swift package generate-xcodeproj no longer work in Xcode 11 when using native SPM integration. The Xcode team has indicated to us that they are not planning on providing any workarounds to allow for this automatic directory detection to work in Xcode 11. Because of this, DirectoryConfig.detect() will no longer attempt to automatically determine the current working directory if it detects Xcode >= 11 using native SPM integration. Instead, it will always return the current working directory.

By default, this current working directory will be a temporary folder used by Xcode. To change this, you must enable Use custom working directory in the scheme editor for your Run scheme:

59303398-2365c080-8c64-11e9-87ad-dfcb239fa99f

You should set the custom working directory to the folder that contains the Package.swift file for your project. Once you have set a custom working directory for your scheme, DirectoryConfig.detect() will correctly detect and return that path to your application. This change should only need to be made once since Xcode project settings are persisted in the .swiftpm folder.

Note that this change should only affect projects using Xcode >= 11 with native SPM integration. Projects using swift package generate-xcodeproj should continue to work without needing to make changes to the Run scheme.

Core 3.9.1 - 2019-06-08 17:58:59

New:

  • Allows integration with iOS through SPM and Xcode 11 beta 1 (#206)

Core 3.9.0 - 2019-04-23 18:34:22

New:

  • Array.flatten now uses NIO's whenAll method under the hood. This change improves performance of future flattening by ~3x. (#203)

Core 3.8.1 - 2019-04-10 18:41:26

Fixed:

  • File.ext now returns nil if the file does not have an extension. (#198)

Core 3.8.0 - 2019-04-03 23:03:47

New:

  • Add MediaType.jsonAPI. (#202)

Fixed:

  • Improve performance of Future.flatten. (#199)

Core 3.7.3 - 2019-03-26 19:50:00

Fixed:

  • Got rid of the last two pesky warnings for Swift 5. (#197, #196)

Core 3.7.2 - 2019-03-26 16:29:57

Fixed:

  • Fixed some Swift 5 warnings.

Core 3.7.1 - 2019-03-13 14:49:04

Fixed:

  • Future.transform(_:) now uses @autoclosure. (#195)

Core 3.7.0 - 2019-03-05 20:45:40

New:

  • syncFlatten now supports any generic [Future<T>]. (#181)

Fixed:

  • NSError no longer conforms to Debuggable. (#194)
  • flatten is now thread safe. (#184)

Core 3.6.0 - 2019-02-26 18:37:29

New:

  • NSError now conforms to Debuggable.

Core 3.5.0 - 2019-01-18 09:58:45

Added:

  • Conform Set to ReflectionDecodable (#186)
  • Future.transform(to: Future<T>) (#174)

Core 3.4.4 - 2018-10-05 09:19:44

Fixed:

  • Reflection no longer crashes when encountering a URL. (#172)

Core 3.4.3 - 2018-09-17 12:11:49

Fixed:

  • Fixed a bug in NestedData.get that prevented array elements from being fetched. (#171)
  • Fixed an issue that caused discrepancies in how Process.execute works on macOS vs. Linux. (#170)

Core 3.4.2 - 2018-08-28 06:28:57

Fixed:

  • MIME type detection is now case-insensitive (#168)

Core 3.4.1 - 2018-06-22 00:26:45

Fixed:

  • Fixes an issue using CaseIterable on Swift 4.2 (#160).

Core 3.4.0 - 2018-06-21 19:08:59

New:

  • Adds generic NotFound error with optional root cause (#159).

Fixed:

  • Core now requires NIO 1.8.0 which contains new APIs and important fixes.

Core 3.3.0 - 2018-06-15 03:11:43

New:

  • Improve CaseIterable support for Swift 4.2, adding a stand-in CaseIterable protocol for < 4.2 (#157).
  • New eventLoop.future() method for creating pre-completed Future<Void> (#156).
  • Decimal now conforms to ReflectionDecodable (#158).

Core 3.2.2 - 2018-05-31 03:29:33

New:

  • Added CaseIterable support for reflecting enums (#152, #148).

Fixed:

  • Fixed an issue with QueueHandler related to enqueuing data on multiple threads (#153).
  • Fixed an issue with Process.asyncExecute(...) on High Sierra (#155).

Core 3.2.1 - 2018-05-24 21:42:20

Fixed:

  • Addendum to 3.2.0, publicizes newly added methods.

Core 3.2.0 - 2018-05-24 16:53:07

New:

  • New AnyReflectable protocol allows for reflection using AnyKeyPath. (#150, #141)
  • Added new convenience methods on Worker for generating pre-completed futures. (#147)
let a: Future<String> = req.future("foo")
let b: Future<String> = req.future(error: Abort(...))
  • Added an asynchronous process execute method. (#151)
let status = try Process.asyncExecute("echo", "hi", on: ...) { output in
    print(output) // ProcessOutput (stderr or stdout)
}.wait()
print(result) // 0
  • Added a method for filtering out optional reflected properties. (#149)

Fixed:

  • Foundation.Process is no longer compiled on iOS (where it is not available). (#145)

Core 2.2.1 - 2018-05-24 15:44:21

Fixed:

  • Eliminated warnings for Swift 4.1

Core 3.1.7 - 2018-05-11 23:39:00

Fixed:

  • LazyFuture can now throw errors. (#143)
  • HeaderValue serialization now includes quotes. (#144)

Milestone: 3.1.7

Core 3.1.6 - 2018-05-04 02:10:55

Fixed:

  • Removed a warning that could appear in release builds.

Core 3.1.5 - 2018-05-01 23:30:08

Fixed:

  • flatten(on:) is now iterative instead of recursive (#140).

Milestone: 3.1.5

Core 3.1.4 - 2018-04-30 19:38:56

New:

  • map and flatMap can now have their return type omitted (#137).
// now possible
let futureString = futureInt.map { $0.description } 
// optional (required previously)
let futureString = futureInt.map(to: String.self) { $0.description } 

Fixed:

  • Data now conforms to ReflectionDecodable (#135, #139).
  • Collection.flatten(on:) now correctly maintains array order (#138, #136).

API Docs: https://api.vapor.codes/core/latest/Core

Milestone: 3.1.4

Core 3.1.3 - 2018-04-21 17:41:53

New:

  • Add caret and backtick conveniences to Byte. (#133)

Fixed:

  • Fixed a potential reference cycle in QueueHandler. (#134)

Milestone: 3.1.3

Core 3.1.2 - 2018-04-17 02:49:27

New:

  • Added support to HeaderValue for parsing attributes with no =(#131) Fixed:
  • Byte.tilda has been renamed to Byte.tilde (#130, #129)

Milestone: 3.1.2

Core 3.1.1 - 2018-04-12 23:43:49

Fixed:

  • Updated MediaType.multipart to reference correct media type. Added MediaType.formData.
  • Added convert(to:) method to Data.