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

fix: move c.stream* to helper #1846

Merged
merged 13 commits into from
Dec 26, 2023
Merged

Conversation

sor4chi
Copy link
Contributor

@sor4chi sor4chi commented Dec 23, 2023

ref: #1843

Author should do the followings, if applicable

  • Add tests
  • Run tests
  • yarn denoify to generate files for Deno

@sor4chi sor4chi mentioned this pull request Dec 23, 2023
3 tasks
@yusukebe yusukebe added v4 and removed v4 labels Dec 23, 2023
@yusukebe
Copy link
Member

@sor4chi

Is this ready to review?

@sor4chi
Copy link
Contributor Author

sor4chi commented Dec 23, 2023

@yusukebe Yes, please.

@sor4chi sor4chi changed the title fix!: move c.stream* to helper fix: move c.stream* to helper Dec 23, 2023
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sor4chi

Thank you for the PR. Take a look the comments!

src/context.ts Outdated Show resolved Hide resolved
src/context.ts Outdated Show resolved Hide resolved
src/helper/streaming/index.ts Outdated Show resolved Hide resolved
src/helper/streaming/text.ts Outdated Show resolved Hide resolved
@sor4chi
Copy link
Contributor Author

sor4chi commented Dec 25, 2023

Hi, @yusukebe
Thanks, I fixed.

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yusukebe yusukebe changed the base branch from main to next December 26, 2023 21:55
@yusukebe yusukebe merged commit 7768865 into honojs:next Dec 26, 2023
11 checks passed
nakasyou pushed a commit to nakasyou/hono that referenced this pull request Jan 13, 2024
* refactor: move streaming helper to `streaming/sse.ts`

* feat: add streamSSE's export in streaming handler

* feat: move `stream` and `streamText` to streaming helper

* chore: add deprecated expression for `c.stream` and `c.streamText`

* fix: use `stream` helper in streamSSE

* refactor: move `streamText` to `text.ts`

* test: add some case to `stream` and `streamText`

* test: refactor `streamSSE` case for uniformity

* chore: denoify

* fix: update jsdoc's deprecated description, simplify `c.stream` and `c.streamText`

* fix: match the header notation with that of `streamSSE

* chore: denoify

* refactor: remove unnecesary export
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