From 362f87efba41c512650e939b26adabc2b871f57a Mon Sep 17 00:00:00 2001 From: Neo4j Team GraphQL Date: Tue, 18 Feb 2025 10:09:37 +0000 Subject: [PATCH] Version Packages (alpha) --- .changeset/pre.json | 3 ++ .../package.json | 2 +- packages/graphql/CHANGELOG.md | 41 +++++++++++++++++++ packages/graphql/package.json | 2 +- yarn.lock | 4 +- 5 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index f229b50ce6..d5d1152e83 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -10,6 +10,7 @@ }, "changesets": [ "beige-poets-move", + "calm-balloons-argue", "chatty-plants-dress", "clean-hairs-pretend", "clever-tomatoes-float", @@ -21,6 +22,7 @@ "green-jobs-jam", "healthy-swans-shave", "khaki-roses-raise", + "kind-clocks-tickle", "little-lemons-fail", "loud-phones-march", "nine-games-clap", @@ -37,6 +39,7 @@ "tame-melons-confess", "ten-starfishes-attend", "thick-dogs-provide", + "two-boxes-cheer", "unlucky-spoons-trade" ] } diff --git a/packages/apollo-federation-subgraph-compatibility/package.json b/packages/apollo-federation-subgraph-compatibility/package.json index 05e21231bf..e82eae00cf 100644 --- a/packages/apollo-federation-subgraph-compatibility/package.json +++ b/packages/apollo-federation-subgraph-compatibility/package.json @@ -10,7 +10,7 @@ "dependencies": { "@apollo/server": "^4.7.0", "@graphql-tools/wrap": "^10.0.0", - "@neo4j/graphql": "^7.0.0-alpha.2", + "@neo4j/graphql": "^7.0.0-alpha.3", "graphql": "16.10.0", "graphql-tag": "^2.12.6", "neo4j-driver": "^5.8.0" diff --git a/packages/graphql/CHANGELOG.md b/packages/graphql/CHANGELOG.md index c689f4baed..0c8e1ea6cd 100644 --- a/packages/graphql/CHANGELOG.md +++ b/packages/graphql/CHANGELOG.md @@ -1,5 +1,46 @@ # @neo4j/graphql +## 7.0.0-alpha.3 + +### Major Changes + +- [#5997](https://github.com/neo4j/graphql/pull/5997) [`a716ef8`](https://github.com/neo4j/graphql/commit/a716ef8ec858aa8c6b51c285b3e2d899254c83fe) Thanks [@angrykoala](https://github.com/angrykoala)! - Remove `publish` method from `Neo4jGraphQLSubscriptionsEngine` interface as it is no longer used with CDC-based subscriptions. Implementing this method on custom engines will no longer have an effect, and it is no longer possible to call `publish` directly on `Neo4jGraphQLSubscriptionsCDCEngine` + +- [#5976](https://github.com/neo4j/graphql/pull/5976) [`7ddde75`](https://github.com/neo4j/graphql/commit/7ddde75d9828c737e3849c49b6b91f4b2b9b8044) Thanks [@angrykoala](https://github.com/angrykoala)! - Sets addVersionPrefix to true by default, this will prepend the Cypher version to all queries by default, ensuring that the correct Cypher version is used in Neo4j: + + ```cypher + CYPHER 5 + MATCH(this:Movie) + ``` + + This may be incompatible with older versions of Neo4j and can be disabled by setting `cypherQueryOption.addVersionPrefix` in the context to false: + + ```js + { + cypherQueryOptions: { + addVersionPrefix: true, + }, + } + ``` + + For example, for an apollo server: + + ```js + await startStandaloneServer(server, { + context: async ({ req }) => ({ + req, + cypherQueryOptions: { + addVersionPrefix: false, + }, + }), + listen: { port: 4000 }, + }); + ``` + +### Patch Changes + +- [#6007](https://github.com/neo4j/graphql/pull/6007) [`48aec51`](https://github.com/neo4j/graphql/commit/48aec512b4707d9b9aa74f05d382eb6980e08971) Thanks [@darrellwarde](https://github.com/darrellwarde)! - Allow `app` to be overwritten in transaction metadata + ## 7.0.0-alpha.2 ### Major Changes diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 5112019a61..34ad8d7e47 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -1,6 +1,6 @@ { "name": "@neo4j/graphql", - "version": "7.0.0-alpha.2", + "version": "7.0.0-alpha.3", "description": "A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations", "keywords": [ "neo4j", diff --git a/yarn.lock b/yarn.lock index 559d5587d7..87afdf5e62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2136,7 +2136,7 @@ __metadata: languageName: node linkType: soft -"@neo4j/graphql@npm:^7.0.0-alpha.0, @neo4j/graphql@npm:^7.0.0-alpha.2, @neo4j/graphql@workspace:packages/graphql": +"@neo4j/graphql@npm:^7.0.0-alpha.0, @neo4j/graphql@npm:^7.0.0-alpha.3, @neo4j/graphql@workspace:packages/graphql": version: 0.0.0-use.local resolution: "@neo4j/graphql@workspace:packages/graphql" dependencies: @@ -3888,7 +3888,7 @@ __metadata: "@apollo/federation-subgraph-compatibility": "npm:2.2.0" "@apollo/server": "npm:^4.7.0" "@graphql-tools/wrap": "npm:^10.0.0" - "@neo4j/graphql": "npm:^7.0.0-alpha.2" + "@neo4j/graphql": "npm:^7.0.0-alpha.3" fork-ts-checker-webpack-plugin: "npm:9.0.2" graphql: "npm:16.10.0" graphql-tag: "npm:^2.12.6"