Skip to content

Commit 1970ce8

Browse files
committed
Version v3.0.4
1 parent 305aa63 commit 1970ce8

File tree

7 files changed

+15
-58
lines changed

7 files changed

+15
-58
lines changed

Mini-Swift.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'Mini-Swift'
5-
s.version = '3.0.3'
5+
s.version = '3.0.4'
66
s.swift_version = '5.0'
77
s.summary = 'The minimal expression of a Flux architecture in Swift.'
88

Package.resolved

-9
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,6 @@
243243
"revision": "381352d9479fb9c75d99a5ae5503f7d560c62449",
244244
"version": "0.2.0"
245245
}
246-
},
247-
{
248-
"package": "Yams",
249-
"repositoryURL": "https://github.com/jpsim/Yams.git",
250-
"state": {
251-
"branch": null,
252-
"revision": "c947a306d2e80ecb2c0859047b35c73b8e1ca27f",
253-
"version": "2.0.0"
254-
}
255246
}
256247
]
257248
},

Package.swift

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ let package = Package(
3939
.package(url: "https://github.com/RxSwiftCommunity/RxOptional", .upToNextMajor(from: "4.1.0")),
4040
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.7.1")),
4141
// Development
42-
.package(url: "https://github.com/Quick/Nimble", .branch("master")), // dev
43-
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting", .branch("master")), // dev
44-
.package(url: "https://github.com/minuscorp/ModuleInterface", from: "0.0.1"), // dev
45-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"), // dev
46-
.package(url: "https://github.com/jpsim/SourceKitten", from: "0.26.0"), // dev
47-
.package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"), // dev
48-
.package(url: "https://github.com/Realm/SwiftLint", from: "0.35.0"), // dev
49-
.package(url: "https://github.com/eneko/SourceDocs", from: "0.6.1"), // dev
50-
.package(url: "https://github.com/shibapm/PackageConfig.git", from: "0.12.2"), // dev
51-
.package(url: "https://github.com/shibapm/Komondor.git", from: "1.0.0"), // dev
52-
.package(url: "https://github.com/Carthage/Commandant.git", .exact("0.17.0")), // dev
42+
// .package(url: "https://github.com/Quick/Nimble", .branch("master")), // dev
43+
// .package(url: "https://github.com/mattgallagher/CwlPreconditionTesting", .branch("master")), // dev
44+
// .package(url: "https://github.com/minuscorp/ModuleInterface", from: "0.0.1"), // dev
45+
// .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"), // dev
46+
// .package(url: "https://github.com/jpsim/SourceKitten", from: "0.26.0"), // dev
47+
// .package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"), // dev
48+
// .package(url: "https://github.com/Realm/SwiftLint", from: "0.35.0"), // dev
49+
// .package(url: "https://github.com/eneko/SourceDocs", from: "0.6.1"), // dev
50+
// .package(url: "https://github.com/shibapm/PackageConfig.git", from: "0.12.2"), // dev
51+
// .package(url: "https://github.com/shibapm/Komondor.git", from: "1.0.0"), // dev
52+
// .package(url: "https://github.com/Carthage/Commandant.git", .exact("0.17.0")), // dev
5353
],
5454
targets: [
5555
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -74,7 +74,7 @@ let package = Package(
7474
name: "MiniPromises",
7575
dependencies: ["Mini"]
7676
),
77-
.testTarget(name: "MiniSwiftTests", dependencies: ["Mini", "MiniTasks", "MiniPromises", "TestMiddleware", "NIOConcurrencyHelpers", "RxSwift", "Nimble", "RxTest", "RxBlocking", "RxOptional"]), // dev
77+
// .testTarget(name: "MiniSwiftTests", dependencies: ["Mini", "MiniTasks", "MiniPromises", "TestMiddleware", "NIOConcurrencyHelpers", "RxSwift", "Nimble", "RxTest", "RxBlocking", "RxOptional"]), // dev
7878
],
7979
swiftLanguageVersions: [.version("5")]
8080
)

docs/Mini.swift

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Foundation
22
import NIOConcurrencyHelpers
3+
import RxOptional
34
import RxSwift
45
import SwiftOnoneSupport
56

@@ -136,12 +137,6 @@ public typealias MiddlewareChain = (Mini.Action, Mini.Chain) -> Mini.Action
136137

137138
public typealias Next = (Mini.Action) -> Mini.Action
138139

139-
public protocol OptionalType {
140-
associatedtype Wrapped
141-
142-
var value: Self.Wrapped? { get }
143-
}
144-
145140
/**
146141
An Ordered Set is a collection where all items in the set follow an ordering,
147142
usually ordered from 'least' to 'most'. The way you value and compare items
@@ -381,11 +376,6 @@ extension Dictionary {
381376
public subscript(unwrapping _: Key) -> Value! { get }
382377
}
383378

384-
extension Optional: Mini.OptionalType {
385-
/// Cast `Optional<Wrapped>` to `Wrapped?`
386-
public var value: Wrapped? { get }
387-
}
388-
389379
extension ObservableType {
390380
/// Take the first element that matches the filter function.
391381
///
@@ -404,15 +394,7 @@ extension ObservableType {
404394
/**
405395
Selects a property component from an `Element` filtering `nil` and emitting only distinct contiguous elements.
406396
*/
407-
public func select<T>(_ keyPath: KeyPath<Self.Element, T>) -> RxSwift.Observable<T.Wrapped> where T: Mini.OptionalType, T.Wrapped: Equatable
408-
}
409-
410-
extension ObservableType where Self.Element: Mini.OptionalType {
411-
/**
412-
Unwraps and filters out `nil` elements.
413-
- returns: `Observable` of source `Observable`'s elements, with `nil` elements filtered out.
414-
*/
415-
public func filterNil() -> RxSwift.Observable<Self.Element.Wrapped>
397+
public func select<T>(_ keyPath: KeyPath<Self.Element, T>) -> RxSwift.Observable<T.Wrapped> where T: RxOptional.OptionalType, T.Wrapped: Equatable
416398
}
417399

418400
extension ObservableType where Self.Element: Mini.StateType {

docs/Mini/extensions/ObservableType.md

-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ public func select<T: OptionalType>(_ keyPath: KeyPath<Element, T>) -> Observabl
5454
5555
### `filterNil()`
5656

57-
```swift
58-
func filterNil() -> Observable<Element.Wrapped>
59-
```
60-
6157
> Unwraps and filters out `nil` elements.
6258
> - returns: `Observable` of source `Observable`'s elements, with `nil` elements filtered out.
6359

docs/Mini/extensions/Optional.md

-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@
55
## Properties
66
### `value`
77

8-
```swift
9-
public var value: Wrapped?
10-
```
11-
128
> Cast `Optional<Wrapped>` to `Wrapped?`

docs/Mini/protocols/OptionalType.md

-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,5 @@
22

33
# `OptionalType`
44

5-
```swift
6-
public protocol OptionalType
7-
```
8-
95
## Properties
106
### `value`
11-
12-
```swift
13-
var value: Wrapped?
14-
```

0 commit comments

Comments
 (0)