Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typescript CLI to 2.32.1 #1618

Merged
merged 2 commits into from
Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/ApolloCodegenLib/CLIDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct CLIDownloader {
}

/// The URL string for getting the current version of the CLI
static let downloadURLString = "https://install.apollographql.com/legacy-cli/darwin/2.31.2"
static let downloadURLString = "https://install.apollographql.com/legacy-cli/darwin/2.32.1"

/// Downloads the appropriate Apollo CLI in a zip file.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/ApolloCodegenLib/CLIExtractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct CLIExtractor {
}
}

static let expectedSHASUM = "479e1c12adf631c43c093fdd9dd8e5c8eed33cb15e39de7165ce6f5e7f759904"
static let expectedSHASUM = "ff50f341f09fe7ef8e125412fb14f0f3359ac0adfb7864cf2a9c8a99d5a7e6e5"

/// Checks to see if the CLI has already been extracted and is the correct version, and extracts or re-extracts as necessary
///
Expand Down
6 changes: 5 additions & 1 deletion Sources/GitHubAPI/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public final class IssuesAndCommentsForRepositoryQuery: GraphQLQuery {

public let operationIdentifier: String? = "ac49a25de6d750d9343c9ddd127a6fc77de480dcb85ad7aedfd1984eb50a4bd6"

public var queryDocument: String { return operationDefinition.appending("\n" + AuthorDetails.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + AuthorDetails.fragmentDefinition)
return document
}

public init() {
}
Expand Down
54 changes: 45 additions & 9 deletions Sources/StarWarsAPI/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,11 @@ public final class HeroAndFriendsNamesWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "1d3ad903dad146ff9d7aa09813fc01becd017489bfc1af8ffd178498730a5a26"

public var queryDocument: String { return operationDefinition.appending("\n" + FriendsNames.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + FriendsNames.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -1241,7 +1245,11 @@ public final class HeroAndFriendsNamesWithFragmentTwiceQuery: GraphQLQuery {

public let operationIdentifier: String? = "e02ef22e116ad1ca35f0298ed3badb60eeb986203f0088575a5f137768c322fc"

public var queryDocument: String { return operationDefinition.appending("\n" + CharacterName.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + CharacterName.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -1636,7 +1644,11 @@ public final class HeroAppearsInWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "1756158bd7736d58db45a48d74a724fa1b6fdac735376df8afac8318ba5431fb"

public var queryDocument: String { return operationDefinition.appending("\n" + CharacterAppearsIn.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + CharacterAppearsIn.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -2299,7 +2311,11 @@ public final class HeroDetailsFragmentConditionalInclusionQuery: GraphQLQuery {

public let operationIdentifier: String? = "b31aec7d977249e185922e4cc90318fd2c7197631470904bf937b0626de54b4f"

public var queryDocument: String { return operationDefinition.appending("\n" + HeroDetails.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + HeroDetails.fragmentDefinition)
return document
}

public var includeDetails: Bool

Expand Down Expand Up @@ -3485,7 +3501,11 @@ public final class HeroDetailsWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "d20fa2f460058b8eec3d227f2f6088a708cf35dfa2b5ebf1414e34f9674ecfce"

public var queryDocument: String { return operationDefinition.appending("\n" + HeroDetails.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + HeroDetails.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -3801,7 +3821,11 @@ public final class DroidDetailsWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "7277e97563e911ac8f5c91d401028d218aae41f38df014d7fa0b037bb2a2e739"

public var queryDocument: String { return operationDefinition.appending("\n" + DroidDetails.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + DroidDetails.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -4432,7 +4456,11 @@ public final class HeroNameWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "b952f0054915a32ec524ac0dde0244bcda246649debe149f9e32e303e21c8266"

public var queryDocument: String { return operationDefinition.appending("\n" + CharacterName.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + CharacterName.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -4562,7 +4590,11 @@ public final class HeroNameWithFragmentAndIdQuery: GraphQLQuery {

public let operationIdentifier: String? = "a87a0694c09d1ed245e9a80f245d96a5f57b20a4aa936ee9ab09b2a43620db02"

public var queryDocument: String { return operationDefinition.appending("\n" + CharacterName.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + CharacterName.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down Expand Up @@ -4814,7 +4846,11 @@ public final class HeroNameAndAppearsInWithFragmentQuery: GraphQLQuery {

public let operationIdentifier: String? = "0664fed3eb4f9fbdb44e8691d9e8fd11f2b3c097ba11327592054f602bd3ba1a"

public var queryDocument: String { return operationDefinition.appending("\n" + CharacterNameAndAppearsIn.fragmentDefinition) }
public var queryDocument: String {
var document: String = operationDefinition
document.append("\n" + CharacterNameAndAppearsIn.fragmentDefinition)
return document
}

public var episode: Episode?

Expand Down
43 changes: 35 additions & 8 deletions SwiftScripts/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"object": {
"pins": [
{
"package": "Commandant",
"repositoryURL": "https://github.com/Carthage/Commandant.git",
"state": {
"branch": null,
"revision": "ab68611013dec67413628ac87c1f29e8427bc8e4",
"version": "0.17.0"
}
},
{
"package": "InflectorKit",
"repositoryURL": "https://github.com/apollographql/InflectorKit",
Expand All @@ -19,6 +28,15 @@
"version": "0.5.0"
}
},
{
"package": "Nimble",
"repositoryURL": "https://github.com/Quick/Nimble.git",
"state": {
"branch": null,
"revision": "72f5a90d573f7f7d70aa6b8ad84b3e1e02eabb4d",
"version": "8.0.9"
}
},
{
"package": "PathKit",
"repositoryURL": "https://github.com/kylef/PathKit.git",
Expand All @@ -37,13 +55,22 @@
"version": "1.1.0"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/Quick/Quick.git",
"state": {
"branch": null,
"revision": "09b3becb37cb2163919a3842a4c5fa6ec7130792",
"version": "2.2.1"
}
},
{
"package": "Rainbow",
"repositoryURL": "https://github.com/onevcat/Rainbow",
"state": {
"branch": null,
"revision": "626c3d4b6b55354b4af3aa309f998fae9b31a3d9",
"version": "3.2.0"
"revision": "9c52c1952e9b2305d4507cf473392ac2d7c9b155",
"version": "3.1.5"
}
},
{
Expand All @@ -60,17 +87,17 @@
"repositoryURL": "https://github.com/jpsim/SourceKitten.git",
"state": {
"branch": null,
"revision": "7f4be006fe73211b0fd9666c73dc2f2303ffa756",
"version": "0.31.0"
"revision": "77a4dbbb477a8110eb8765e3c44c70fb4929098f",
"version": "0.29.0"
}
},
{
"package": "Spectre",
"repositoryURL": "https://github.com/kylef/Spectre.git",
"state": {
"branch": null,
"revision": "f79d4ecbf8bc4e1579fbd86c3e1d652fb6876c53",
"version": "0.9.2"
"revision": "f14ff47f45642aa5703900980b014c2e9394b6e5",
"version": "0.9.0"
}
},
{
Expand Down Expand Up @@ -150,8 +177,8 @@
"repositoryURL": "https://github.com/jpsim/Yams.git",
"state": {
"branch": null,
"revision": "1bce5b89a11912fb8a8c48bd404bd24979472f27",
"version": "4.0.3"
"revision": "c947a306d2e80ecb2c0859047b35c73b8e1ca27f",
"version": "2.0.0"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-bundled-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SCRIPT_DIR="$(dirname "$0")"

# Get the SHASUM of the tarball
ZIP_FILE="${SCRIPT_DIR}/apollo.tar.gz"
ZIP_FILE_DOWNLOAD_URL="https://install.apollographql.com/legacy-cli/darwin/2.31.2"
ZIP_FILE_DOWNLOAD_URL="https://install.apollographql.com/legacy-cli/darwin/2.32.1"
SHASUM_FILE="${SCRIPT_DIR}/apollo/.shasum"
APOLLO_DIR="${SCRIPT_DIR}"/apollo
IS_RETRY="false"
Expand Down Expand Up @@ -58,7 +58,7 @@ extract_cli() {

validate_codegen_and_extract_if_needed() {
# Make sure the SHASUM matches the release for this version
EXPECTED_SHASUM="479e1c12adf631c43c093fdd9dd8e5c8eed33cb15e39de7165ce6f5e7f759904"
EXPECTED_SHASUM="ff50f341f09fe7ef8e125412fb14f0f3359ac0adfb7864cf2a9c8a99d5a7e6e5"
update_shasum

if [[ ${SHASUM} = ${EXPECTED_SHASUM}* ]]; then
Expand Down