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

Upgrade TS SDK to v6.0.0 #39

Merged
merged 3 commits into from
Aug 8, 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
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