From 39ce3904598fe64d3b43b0631cfa6591ec2d4bb2 Mon Sep 17 00:00:00 2001 From: m-Bilal Date: Thu, 26 Sep 2024 22:02:20 +0530 Subject: [PATCH 1/2] update version --- .../.hasura-connector/connector-metadata.yaml | 4 ++-- docs/documentation.md | 10 +++++----- src/cli/index.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/connector-definition/.hasura-connector/connector-metadata.yaml b/connector-definition/.hasura-connector/connector-metadata.yaml index 7211429..f5febaf 100644 --- a/connector-definition/.hasura-connector/connector-metadata.yaml +++ b/connector-definition/.hasura-connector/connector-metadata.yaml @@ -14,11 +14,11 @@ supportedEnvironmentVariables: commands: update: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 + dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 commandArgs: [ "update" ] cliPlugin: type: Docker - dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 + dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 dockerComposeWatch: # Rebuild the container if a new package restore is required because package[-lock].json changed - path: package.json diff --git a/docs/documentation.md b/docs/documentation.md index ea92031..a3d348c 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -41,19 +41,19 @@ The Docker Container will output the generated files at `/etc/connector`. Please ``` # get command documentation/help -docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update -h +docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update -h # run the code generation (using env vars) -docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update +docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update # run the code generation (using CLI flags) -docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document} +docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document} # with baseUrl (using env vars) -docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update +docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update # with baseUrl (using CLI flags) -docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document} --base-url http://demoapi.com/ +docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document} --base-url http://demoapi.com/ ``` ## Build and Run diff --git a/src/cli/index.ts b/src/cli/index.ts index c483aad..a4e5d37 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -5,7 +5,7 @@ import * as updateCmd from "./update"; import { exec, execSync } from "child_process"; export const program = new Command() - .version("0.1.5") + .version("0.2.0") .description("OAS Connector CLI") // .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec .addCommand(updateCmd.cmd) From d2378469197cece2d7b9f7a22f13087d1436afcf Mon Sep 17 00:00:00 2001 From: m-Bilal Date: Thu, 26 Sep 2024 22:03:09 +0530 Subject: [PATCH 2/2] update changelog --- changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 77d78f9..6262158 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ ## Unreleased +## [[0.2.0](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.2.0)] 2024-09-26 + - Several bugfixes in `functions.ts` codegen due to integration of new parsers ([#50](https://github.com/hasura/ndc-open-api-lambda/pull/50)) ## [[0.1.5](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.1.5)] 2024-09-23