diff --git a/changelog.md b/changelog.md index 6262158..afebf4b 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ ## Unreleased +## [[1.0.0](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v1.0.0)] 2024-11-07 + ## [[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)) diff --git a/connector-definition/.hasura-connector/connector-metadata.yaml b/connector-definition/.hasura-connector/connector-metadata.yaml index f5febaf..b339f33 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.2.0 + dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v1.0.0 commandArgs: [ "update" ] cliPlugin: type: Docker - dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 + dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v1.0.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 a3d348c..ea70eae 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.2.0 update -h +docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v1.0.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.2.0 update +docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v1.0.0 update # run the code generation (using CLI flags) -docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document} +docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.0.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.2.0 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:v1.0.0 update # with baseUrl (using CLI flags) -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/ +docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.0.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 a4e5d37..c617e42 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.2.0") + .version("1.0.0") .description("OAS Connector CLI") // .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec .addCommand(updateCmd.cmd)