diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2f9a9c27..486542c4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.3 with: submodules: true diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 0e3ef91e..16b94358 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -9,15 +9,15 @@ jobs: matrix: config: [Debug, Release] - runs-on: macos-latest + runs-on: macos-13 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.3 with: submodules: true - name: Cache vcpkg - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 id: cache-vcpkg with: path: build/vcpkg_cache/ diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5f66c5ad..3e3796bf 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,7 +14,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.3 with: submodules: true @@ -24,7 +24,7 @@ jobs: run: echo "vcpkg_triplet=${{ matrix.arch }}-windows$(if ('${{ matrix.libs }}' -eq 'static') { '-static' })" >> $env:GITHUB_OUTPUT - name: Cache vcpkg - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 id: cache-vcpkg with: path: build/vcpkg_cache/ diff --git a/cmake/version.txt b/cmake/version.txt index 50021202..2733e926 100644 --- a/cmake/version.txt +++ b/cmake/version.txt @@ -1 +1 @@ -4.5.5 \ No newline at end of file +4.5.6 \ No newline at end of file diff --git a/include/graphqlservice/internal/Version.h b/include/graphqlservice/internal/Version.h index 279a78a0..f0c3e59d 100644 --- a/include/graphqlservice/internal/Version.h +++ b/include/graphqlservice/internal/Version.h @@ -10,11 +10,11 @@ namespace graphql::internal { -constexpr std::string_view FullVersion { "4.5.5" }; +constexpr std::string_view FullVersion { "4.5.6" }; constexpr size_t MajorVersion = 4; constexpr size_t MinorVersion = 5; -constexpr size_t PatchVersion = 5; +constexpr size_t PatchVersion = 6; } // namespace graphql::internal diff --git a/res/ClientGen.rc b/res/ClientGen.rc index 096c1a61..39818c17 100644 --- a/res/ClientGen.rc +++ b/res/ClientGen.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/SchemaGen.rc b/res/SchemaGen.rc index cd1f31cf..db8d8b76 100644 --- a/res/SchemaGen.rc +++ b/res/SchemaGen.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/graphqlclient_version.rc b/res/graphqlclient_version.rc index 27a4f637..307f5e9c 100644 --- a/res/graphqlclient_version.rc +++ b/res/graphqlclient_version.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/graphqljson_version.rc b/res/graphqljson_version.rc index 1f1cfe15..bc972e95 100644 --- a/res/graphqljson_version.rc +++ b/res/graphqljson_version.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/graphqlpeg_version.rc b/res/graphqlpeg_version.rc index 647d84d3..9cc5e48f 100644 --- a/res/graphqlpeg_version.rc +++ b/res/graphqlpeg_version.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/graphqlresponse_version.rc b/res/graphqlresponse_version.rc index c26c1034..40143dec 100644 --- a/res/graphqlresponse_version.rc +++ b/res/graphqlresponse_version.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/res/graphqlservice_version.rc b/res/graphqlservice_version.rc index d47f1734..f6b41984 100644 --- a/res/graphqlservice_version.rc +++ b/res/graphqlservice_version.rc @@ -3,8 +3,8 @@ #include -#define GRAPHQL_RC_VERSION 4,5,5,0 -#define GRAPHQL_RC_VERSION_STR "4.5.5" +#define GRAPHQL_RC_VERSION 4,5,6,0 +#define GRAPHQL_RC_VERSION_STR "4.5.6" #ifndef DEBUG #define VER_DEBUG 0 diff --git a/src/JSONResponse.cpp b/src/JSONResponse.cpp index cc5dbacb..8f135478 100644 --- a/src/JSONResponse.cpp +++ b/src/JSONResponse.cpp @@ -132,21 +132,21 @@ struct ResponseHandler : rapidjson::BaseReaderHandler, Respons if (i > static_cast(std::numeric_limits::max())) { // https://spec.graphql.org/October2021/#sec-Int - throw std::overflow_error("GraphQL only supports 32-bit signed integers"); + return Double(static_cast(i)); } return Int(static_cast(i)); } - bool Int64(int64_t /*i*/) + bool Int64(int64_t i) { // https://spec.graphql.org/October2021/#sec-Int - throw std::overflow_error("GraphQL only supports 32-bit signed integers"); + return Double(static_cast(i)); } - bool Uint64(uint64_t /*i*/) + bool Uint64(uint64_t i) { // https://spec.graphql.org/October2021/#sec-Int - throw std::overflow_error("GraphQL only supports 32-bit signed integers"); + return Double(static_cast(i)); } bool Double(double d)