Skip to content

docs: use ECMAScript modules in README examples - #652

Open
kahirokunn wants to merge 1 commit into
cloudevents:mainfrom
kahirokunn:docs-esm-examples
Open

kahirokunn wants to merge 1 commit into
cloudevents:mainfrom
kahirokunn:docs-esm-examples

Conversation

@kahirokunn

Copy link
Copy Markdown
Contributor

Proposed Changes

Use ESM imports in the README examples.

Description

The examples now use one module style. CommonJS applications can still use require("cloudevents").

Signed-off-by: kahirokunn <okinakahiro@gmail.com>
@kahirokunn
kahirokunn marked this pull request as ready for review August 17, 2026 14:17
@kahirokunn

Copy link
Copy Markdown
Contributor Author

Hi ✋ would you mind taking a look when you have a chance? Thank you 🙏

@github-actions

Copy link
Copy Markdown
Contributor

This pull request is stale because it has been open 30 days with no activity.

@kahirokunn

Copy link
Copy Markdown
Contributor Author

keep

@github-actions

Copy link
Copy Markdown
Contributor

This pull request is stale because it has been open 30 days with no activity.

@kahirokunn

Copy link
Copy Markdown
Contributor Author

Keep

@duglin

duglin commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@kahirokunn this isn't a breaking change right? Just docs

@shiva look ok to merge?

@kahirokunn

Copy link
Copy Markdown
Contributor Author

I think it would probably be best to merge this change—which converts the internal code to ECMAScript—first, but it might be okay to merge the documentation first.

@kahirokunn

Copy link
Copy Markdown
Contributor Author

Thanks for your review 🙏

This branch has not been deployed

No deployments
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.

2 participants