Skip to content

Commit

Permalink
Add deprecations.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 13, 2024
1 parent 1aeaa09 commit 4893154
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Sources/HummingbirdLambda/Deprecations.swift
@@ -0,0 +1,30 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Hummingbird server framework project
//
// Copyright (c) 2024 the Hummingbird authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// Below is a list of deprecated symbols with the "HB" prefix. These are available
// temporarily to ease transition from the old symbols that included the "HB"
// prefix to the new ones.
//
// This file will be removed before we do a 2.0 release

@_documentation(visibility: internal) @available(*, deprecated, renamed: "LambdaFunction")
public typealias HBLambda = LambdaFunction
@_documentation(visibility: internal) @available(*, deprecated, renamed: "APIGatewayLambdaFunction")
public typealias HBAPIGatewayLambda = APIGatewayLambdaFunction
@_documentation(visibility: internal) @available(*, deprecated, renamed: "APIGatewayV2LambdaFunction")
public typealias HBAPIGatewayV2Lambda = APIGatewayV2LambdaFunction
@_documentation(visibility: internal) @available(*, deprecated, renamed: "LambdaRequestContext")
public typealias HBLambdaRequestContext = LambdaRequestContext
@_documentation(visibility: internal) @available(*, deprecated, renamed: "BasicLambdaRequestContext")
public typealias HBBasicLambdaRequestContext = BasicLambdaRequestContext

0 comments on commit 4893154

Please sign in to comment.