Skip to content

Add promise client APIs with callback deprecations - #132

Open
ricardo-devis-agullo wants to merge 1 commit into
masterfrom
feat/v1-callback-deprecation
Open

Add promise client APIs with callback deprecations#132
ricardo-devis-agullo wants to merge 1 commit into
masterfrom
feat/v1-callback-deprecation

Conversation

@ricardo-devis-agullo

@ricardo-devis-agullo ricardo-devis-agullo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add promise forms for client initialization, component rendering, component info, and template rendering
  • preserve legacy callback timing, return values, error identity, and multi-value callback results
  • emit one process-wide deprecation warning for callback usage and expose an explicit promise API capability marker
  • document promise resolution and rejection behavior

Coordinates with opencomponents/oc#1550.

Test plan

  • volta run --node 24.15.0 npx mocha test/unit/client.js (7 passing)
  • npx prettier-eslint src/index.js test/unit/client.js --list-different
  • volta run --node 24.15.0 npm test (97 passing; 6 pre-existing Node 24/minimal-request failures)

Generated with Devin

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant