You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(js): add streaming support for streamedListObjects
Updates JavaScript SDK templates to support the streaming API endpoint
for unlimited object retrieval. Templates now handle streaming operations
differently using vendor extension conditionals.
Changes:
- Add streaming.mustache template with NDJSON parser for Node.js
- Update api.mustache to import createStreamingRequestFunction
- Update apiInner.mustache with x-fga-streaming vendor extension logic
- Uses createStreamingRequestFunction for streaming ops
- Returns Promise<any> instead of PromiseResult<T>
- Simplified telemetry (method name only)
- Update index.mustache to export parseNDJSONStream
- Update config.overrides.json with streaming file + feature flag
- Add README documentation for Streamed List Objects API
- Update API endpoints table with streaming endpoint
Implementation:
- Conditional template logic based on x-fga-streaming vendor extension
- Preserves telemetry while returning raw Node.js stream
- Aligned with Python SDK template patterns
- Fixed error propagation in async iterator adapter
- Widened parseNDJSONStream type signature for better DX
Dependencies:
- Requires x-fga-streaming: true in OpenAPI spec (openfga/api)
Related:
- Fixes#76 (JavaScript SDK)
- Implements openfga/js-sdk#236
- Related PR: openfga/js-sdk#280
0 commit comments