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

[release] 20241016 #18

Merged
merged 2 commits into from
Oct 16, 2024
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
Empty file added .yarn/versions/7ec27485.yml
Empty file.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2024-10-16
### Added
- Support subqery _metadata query(#4)
- Support subqery \_metadata query(#4)
- GraphiQL control flag - `playground`
- Health check API `/.well-known/apollo/server-health`

Expand All @@ -34,7 +35,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Support GraphQL query style similar to subgraph.

[Unreleased]: https://github.com/subquery/query-subgraph/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/subquery/query-subgraph/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/subquery/query-subgraph/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/subquery/query-subgraph/compare/v0.0.7...v0.1.0
[0.0.7]: https://github.com/subquery/query-subgraph/compare/v0.0.6...v0.0.7
[0.0.6]: https://github.com/subquery/query-subgraph/compare/v0.0.5...v0.0.6
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/query-subgraph",
"version": "0.1.1-0",
"version": "0.2.0",
"main": "index.js",
"bin": {
"subql-query-subgraph": "./bin/run"
Expand Down Expand Up @@ -65,6 +65,5 @@
"/dist",
"/bin"
],
"packageManager": "[email protected]",
"stableVersion": "0.1.0"
"packageManager": "[email protected]"
}
2 changes: 0 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { createServer } from 'node:http';
import express from 'express';
import { grafserv } from 'grafserv/express/v4';
import { postgraphile } from 'postgraphile';
// import { grafserv } from 'postgraphile/grafserv/node';
import { genPreset, ArgsInterface } from './config/index';

export function startServer(args: ArgsInterface) {
Expand All @@ -15,7 +14,6 @@ export function startServer(args: ArgsInterface) {

const app = express();
app.use((req, res, next) => {
console.log(req.url);
if (req.url === '/.well-known/apollo/server-health') {
res.setHeader('Content-Type', 'application/health+json');
res.end('{"status":"pass"}');
Expand Down
4 changes: 1 addition & 3 deletions test/subgraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe("subgraph plugin test", () => {
queryTimeout: '3000',
} as ArgsInterface);

apolloClient = new ApolloClient({ uri: 'http://localhost:3001/graphql', cache: new InMemoryCache({ addTypename: false }) });
apolloClient = new ApolloClient({ uri: 'http://localhost:3001', cache: new InMemoryCache({ addTypename: false }) });
});

afterAll(async () => {
Expand Down Expand Up @@ -504,7 +504,6 @@ describe("subgraph plugin test", () => {
startHeight
indexerHealthy
indexerNodeVersion
queryNodeVersion
evmChainId
deployments
lastFinalizedVerifiedHeight
Expand Down Expand Up @@ -540,7 +539,6 @@ describe("subgraph plugin test", () => {
"lastProcessedTimestamp": "1725960100839",
"latestSyncedPoiHeight": null,
"queryNodeStyle": "subgraph",
"queryNodeVersion": "0.1.0",
"specName": "polkadot",
"startHeight": 1,
"targetHeight": 22472571,
Expand Down
Loading