Skip to content

Commit 2fb7672

Browse files
Upgrade TS SDK to v6.0.0 (#39)
1 parent 2a9a04d commit 2fb7672

File tree

4 files changed

+29
-31
lines changed

4 files changed

+29
-31
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ This changelog documents the changes between release versions.
44
## [Unreleased]
55
Changes to be included in the next upcoming release
66

7+
## [1.6.0] - 2024-08-08
8+
- Updated the NDC TypeScript SDK to v6.0.0 ([#39](https://github.com/hasura/ndc-nodejs-lambda/pull/39))
9+
- The `/health` endpoint is now unauthenticated
10+
- Updated TypeScript to v5.5.4 ([#39](https://github.com/hasura/ndc-nodejs-lambda/pull/39))
11+
712
## [1.5.0] - 2024-07-30
813
- Updated the NDC TypeScript SDK to v5.2.0 ([#38](https://github.com/hasura/ndc-nodejs-lambda/pull/38))
914
- The connector now listens on both ipv4 and ipv6 interfaces

ndc-lambda-sdk/package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ndc-lambda-sdk/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hasura/ndc-lambda-sdk",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "SDK that can automatically expose TypeScript functions as Hasura NDC functions/procedures",
55
"author": "Hasura",
66
"license": "Apache-2.0",
@@ -30,15 +30,15 @@
3030
"url": "git+https://github.com/hasura/ndc-nodejs-lambda.git"
3131
},
3232
"dependencies": {
33-
"@hasura/ndc-sdk-typescript": "^5.2.0",
34-
"@tsconfig/node20": "^20.1.3",
33+
"@hasura/ndc-sdk-typescript": "^6.0.0",
34+
"@tsconfig/node20": "^20.1.4",
3535
"commander": "^11.1.0",
3636
"cross-spawn": "^7.0.3",
3737
"p-limit": "^3.1.0",
3838
"ts-api-utils": "^1.3.0",
3939
"ts-node": "^10.9.2",
4040
"ts-node-dev": "^2.0.0",
41-
"typescript": "^5.4.3"
41+
"typescript": "^5.5.4"
4242
},
4343
"devDependencies": {
4444
"@types/chai": "^4.3.11",

ndc-lambda-sdk/src/connector.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,13 @@ export function createConnector(options: ConnectorOptions): sdk.Connector<Config
6565
return {};
6666
},
6767

68-
getCapabilities: function (configuration: Configuration): sdk.CapabilitiesResponse {
68+
getCapabilities: function (configuration: Configuration): sdk.Capabilities {
6969
return {
70-
version: "0.1.5",
71-
capabilities: {
72-
query: {
73-
variables: {},
74-
nested_fields: {},
75-
},
76-
mutation: {},
77-
}
70+
query: {
71+
variables: {},
72+
nested_fields: {},
73+
},
74+
mutation: {},
7875
};
7976
},
8077

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

101-
healthCheck: async function (configuration: Configuration, state: State): Promise<undefined> {
102-
return undefined;
103-
},
104-
10598
fetchMetrics: async function (configuration: Configuration, state: State): Promise<undefined> {
10699
return undefined;
107100
},

0 commit comments

Comments
 (0)