From 22819f92fc1a8aab2ffd9172f8902f092d428139 Mon Sep 17 00:00:00 2001 From: Daniel Jonathan Date: Mon, 3 Nov 2025 14:37:36 -0500 Subject: [PATCH] feat(js): use build-client-streamed for JS SDK Switch JavaScript SDK build to use build-client-streamed target (like Python SDK). This includes the streaming endpoints in the generated SDK. Changes: - Makefile: build-client-js uses build-client-streamed instead of build-client This allows the JS SDK to include StreamedListObjects endpoint while custom code in js-sdk repo (common.ts, client.ts) implements the streaming logic. Related: - openfga/js-sdk#280 - openfga/sdk-generator#76 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c08bdc7b..9a537529 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ test-client-js: build-client-js .PHONY: build-client-js build-client-js: - make build-client sdk_language=js tmpdir=${TMP_DIR} + make build-client-streamed sdk_language=js tmpdir=${TMP_DIR} sed -i -e "s|_this|this|g" ${CLIENTS_OUTPUT_DIR}/fga-js-sdk/*.ts sed -i -e "s|_this|this|g" ${CLIENTS_OUTPUT_DIR}/fga-js-sdk/*.md rm -rf ${CLIENTS_OUTPUT_DIR}/fga-js-sdk/*-e