Skip to content

Commit 8643740

Browse files
Added native toolchain upgrade scripts and fixed connector definition (#55)
1 parent 3aa1b08 commit 8643740

File tree

10 files changed

+771
-13
lines changed

10 files changed

+771
-13
lines changed

CHANGELOG.md

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

7+
## [1.13.0] - 2025-03-27
8+
- Added native toolchain support for connector version upgrading and fixed Dockerized connector version upgrading ([#55](https://github.com/hasura/ndc-nodejs-lambda/pull/55))
9+
710
## [1.12.0] - 2025-03-21
811
- Updated to use [TypeScript v5.8.2](https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/) ([#53](https://github.com/hasura/ndc-nodejs-lambda/pull/53))
912
- Updated `cross-spawn` dependency to resolve [security vulnerability](https://www.cve.org/CVERecord?id=CVE-2024-21538) ([#53](https://github.com/hasura/ndc-nodejs-lambda/pull/53))

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ FROM node:20-alpine
22
ARG CONNECTOR_VERSION
33

44
RUN npm update -g npm
5-
RUN apk add jq curl
5+
RUN apk add bash jq curl
66

77
COPY /docker /scripts
8+
COPY /connector-definition/scripts/upgrade-connector.sh /scripts/upgrade-connector.sh
89
RUN : "${CONNECTOR_VERSION:?Connector version must be set}"
910
RUN echo ${CONNECTOR_VERSION} > /scripts/CONNECTOR_VERSION
1011

connector-definition/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dist dist/.hasura-connector:
1818
dist/.hasura-connector/connector-metadata.yaml: connector-metadata.yaml dist
1919
cp -f connector-metadata.yaml dist/.hasura-connector
2020
sed -i -E 's/\{\{VERSION\}\}/$(RELEASE_VERSION)/g' dist/.hasura-connector/connector-metadata.yaml
21+
sed -i -E '/^# yaml-language-server:/d' dist/.hasura-connector/connector-metadata.yaml
2122

2223
dist/.hasura-connector/Dockerfile: Dockerfile dist/.hasura-connector $(RELEASE_VERSION_DEP)
2324
cp -f Dockerfile dist/.hasura-connector/

0 commit comments

Comments
 (0)