Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: expose constants as a top-level export #161

Merged
merged 1 commit into from
May 18, 2020

Conversation

lance
Copy link
Member

@lance lance commented May 14, 2020

This commit pulls the constants up from the lib/bindings/http/constants.js
and exports them in the top level index.js. There are some elements of the API
where we expect users to provide constant values, and this makes it easier for
them to be sure the values they provide are what is expected.

I've also added two new constants: BINARY and STRUCTURED.

Signed-off-by: Lance Ball lball@redhat.com

@lance lance added the type/enhancement New feature or request label May 14, 2020
@lance lance requested review from fabiojose and a team May 14, 2020 15:32
@lance lance self-assigned this May 14, 2020
@lance lance requested review from grant and helio-frota and removed request for a team May 14, 2020 15:32
This commit pulls the constants up from the lib/bindings/http/constants.js
and exports them in the top level index.js. There are some elements of the API
where we expect users to provide constant values, and this makes it easier for
them to be sure the values they provide are what is expected.

I've also added two new constants: `BINARY` and `STRUCTURED`.

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance mentioned this pull request May 18, 2020
@lance lance merged commit d836b06 into cloudevents:master May 18, 2020
@lance lance deleted the expose-constants branch May 18, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants