Skip to content

Commit bdeff49

Browse files
release: 1.1.2 (#2947)
1 parent 58f6d3f commit bdeff49

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

.github/PULL_REQUEST_TEMPLATE/pull-request-template-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* _List the highlight PRs_
66

77
#### Things to do in this PR
8-
- [ ] Update the version in [`Configuration/Shared/Project-Version.xcconfig`](https://github.com/apollographql/apollo-ios/blob/main/Configuration/Shared/Project-Version.xcconfig) and [Sources/CodegenCLI/Constants.swift](https://github.com/apollographql/apollo-ios/blob/main/Sources/CodegenCLI/Constants.swift#L4).
8+
- [ ] Update the version constants using the `set-version.sh` script.
99
- [ ] Update [`CHANGELOG.md`](https://github.com/apollographql/apollo-ios/blob/main/CHANGELOG.md) with all relevant changes since the prior version. _Please include PR numbers and mention contributors for external PR submissions._
1010
- [ ] Run the Documentation Generator as noted in [`api-reference.md`](https://github.com/apollographql/apollo-ios/blob/main/docs/source/api-reference.md) to re-generate documentation from source for all included libraries. _Make sure you are on HEAD of the parent branch otherwise the documentation generator will not catch all changes, rebase this PR if needed._
1111

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## v1.1.2
4+
5+
### Fixed
6+
- **Crash after calling `cancel()` on `Cancellable` ([#2932](https://github.com/apollographql/apollo-ios/issues/2932)):** Calling `cancel()` on a non-subscription `Cancellable` will now correctly handle the lifetime of the internally `Unmanaged` object. [#2943](https://github.com/apollographql/apollo-ios/pull/2943) - _Thank you to [@yonaskolb](https://github.com/yonaskolb) for raising the issue._
7+
- **Deprecation messages are not escaped ([#2879](https://github.com/apollographql/apollo-ios/issues/2879)):** If escaped characters are used in GraphQL deprecation messages they are now properly escaped in the rendered Swift warning or attribution message. [#2951](https://github.com/apollographql/apollo-ios/pull/2951) _Thank you to [@djavan-bertrand](https://github.com/djavan-bertrand) for raising the issue._
8+
9+
### Added
10+
- **Add injecting additionalErrorHandler for upload operations to RequestChainNetworkTransport ([#2948](https://github.com/apollographql/apollo-ios/pull/2948)):** `Upload` operations can now have custom error interceptors like other operations. [#2948](https://github.com/apollographql/apollo-ios/pull/2948) _Thank you to [@RobertDresler](https://github.com/RobertDresler) for the contribution._
11+
312
## v1.1.1
413

514
### Fixed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 1.1.1
1+
CURRENT_PROJECT_VERSION = 1.1.2

Sources/CodegenCLI/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

33
public enum Constants {
4-
public static let CLIVersion: String = "1.1.1"
4+
public static let CLIVersion: String = "1.1.2"
55
static let defaultFilePath: String = "./apollo-codegen-config.json"
66
}

scripts/set-version.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
CURRENT_VERSION=$($(dirname "$0")/get-version.sh)
4+
5+
# Set configuration file version constant
6+
37
source "$(dirname "$0")/version-constants.sh"
48

59
NEW_VERSION="$1"
@@ -11,5 +15,13 @@ NEW_VERSION="$1"
1115

1216
echo "$VERSION_CONFIG_VAR = $NEW_VERSION" > $VERSION_CONFIG_FILE
1317

14-
git add -A && git commit -m "$NEW_VERSION"
15-
git tag "$NEW_VERSION"
18+
# Set CLI version constant
19+
20+
MATCH_TEXT='CLIVersion: String = "'
21+
SEARCH_TEXT="$MATCH_TEXT$CURRENT_VERSION"
22+
REPLACE_TEXT="$MATCH_TEXT$NEW_VERSION"
23+
sed -i '' -e "s/$SEARCH_TEXT/$REPLACE_TEXT/" $CLI_CONSTANTS_FILE
24+
25+
# Feedback
26+
echo "Committing change from version $CURRENT_VERSION to $NEW_VERSION"
27+
git add -A && git commit -m "Updated version numbers"

scripts/version-constants.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
VERSION_CONFIG_VAR="CURRENT_PROJECT_VERSION"
22
VERSION_CONFIG_FILE="Configuration/Shared/Project-Version.xcconfig"
3+
CLI_CONSTANTS_FILE="Sources/CodegenCLI/Constants.swift"

0 commit comments

Comments
 (0)