Skip to content

Commit

Permalink
Upgrade TS SDK to v6.0.0 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-chambers authored Aug 8, 2024
1 parent 2a9a04d commit 2fb7672
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This changelog documents the changes between release versions.
## [Unreleased]
Changes to be included in the next upcoming release

## [1.6.0] - 2024-08-08
- Updated the NDC TypeScript SDK to v6.0.0 ([#39](https://github.com/hasura/ndc-nodejs-lambda/pull/39))
- The `/health` endpoint is now unauthenticated
- Updated TypeScript to v5.5.4 ([#39](https://github.com/hasura/ndc-nodejs-lambda/pull/39))

## [1.5.0] - 2024-07-30
- Updated the NDC TypeScript SDK to v5.2.0 ([#38](https://github.com/hasura/ndc-nodejs-lambda/pull/38))
- The connector now listens on both ipv4 and ipv6 interfaces
Expand Down
28 changes: 14 additions & 14 deletions ndc-lambda-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ndc-lambda-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hasura/ndc-lambda-sdk",
"version": "1.5.0",
"version": "1.6.0",
"description": "SDK that can automatically expose TypeScript functions as Hasura NDC functions/procedures",
"author": "Hasura",
"license": "Apache-2.0",
Expand Down Expand Up @@ -30,15 +30,15 @@
"url": "git+https://github.com/hasura/ndc-nodejs-lambda.git"
},
"dependencies": {
"@hasura/ndc-sdk-typescript": "^5.2.0",
"@tsconfig/node20": "^20.1.3",
"@hasura/ndc-sdk-typescript": "^6.0.0",
"@tsconfig/node20": "^20.1.4",
"commander": "^11.1.0",
"cross-spawn": "^7.0.3",
"p-limit": "^3.1.0",
"ts-api-utils": "^1.3.0",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.3"
"typescript": "^5.5.4"
},
"devDependencies": {
"@types/chai": "^4.3.11",
Expand Down
19 changes: 6 additions & 13 deletions ndc-lambda-sdk/src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,13 @@ export function createConnector(options: ConnectorOptions): sdk.Connector<Config
return {};
},

getCapabilities: function (configuration: Configuration): sdk.CapabilitiesResponse {
getCapabilities: function (configuration: Configuration): sdk.Capabilities {
return {
version: "0.1.5",
capabilities: {
query: {
variables: {},
nested_fields: {},
},
mutation: {},
}
query: {
variables: {},
nested_fields: {},
},
mutation: {},
};
},

Expand All @@ -98,10 +95,6 @@ export function createConnector(options: ConnectorOptions): sdk.Connector<Config
throw new Error("Function not implemented.");
},

healthCheck: async function (configuration: Configuration, state: State): Promise<undefined> {
return undefined;
},

fetchMetrics: async function (configuration: Configuration, state: State): Promise<undefined> {
return undefined;
},
Expand Down

0 comments on commit 2fb7672

Please sign in to comment.