Skip to content

Commit

Permalink
Leaf 4 Release (#183)
Browse files Browse the repository at this point in the history
* Remove deprecations and export

* Remove RC from manifest

* Add necessary exports to allow custom tags

* Reorder test imports
  • Loading branch information
0xTim authored Nov 12, 2020
1 parent 5b2fd25 commit 66060b7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.library(name: "Leaf", targets: ["Leaf"]),
],
dependencies: [
.package(url: "https://github.com/vapor/leaf-kit.git", from: "1.0.0-rc.1.16"),
.package(url: "https://github.com/vapor/leaf-kit.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
],
targets: [
Expand Down
1 change: 1 addition & 0 deletions Sources/Leaf/Application+Leaf.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vapor
import LeafKit

extension Application.Views.Provider {
public static var leaf: Self {
Expand Down
15 changes: 0 additions & 15 deletions Sources/Leaf/Deprecated.swift

This file was deleted.

5 changes: 4 additions & 1 deletion Sources/Leaf/Exports.swift
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
@_exported import LeafKit
@_exported import protocol LeafKit.LeafTag
@_exported import struct LeafKit.LeafData
@_exported import struct LeafKit.LeafContext
@_exported import enum LeafKit.Syntax
2 changes: 2 additions & 0 deletions Sources/Leaf/LeafEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import LeafKit

internal final class LeafEncoder {
func encode<E>(_ encodable: E) throws -> [String: LeafData]
where E: Encodable
Expand Down
1 change: 1 addition & 0 deletions Sources/Leaf/LeafRenderer+ViewRenderer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vapor
import LeafKit

extension LeafRenderer: ViewRenderer {
public func `for`(_ request: Request) -> ViewRenderer {
Expand Down
1 change: 1 addition & 0 deletions Sources/Leaf/Request+Leaf.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vapor
import LeafKit

extension Request {
public var leaf: LeafRenderer {
Expand Down
1 change: 1 addition & 0 deletions Tests/LeafTests/LeafTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Leaf
import LeafKit
import XCTVapor

class LeafTests: XCTestCase {
Expand Down

0 comments on commit 66060b7

Please sign in to comment.