Skip to content

Comments

feat: add streaming arg to createApp()#15483

Merged
florian-lefebvre merged 8 commits intomainfrom
feat/create-app-streaming-argument
Feb 17, 2026
Merged

feat: add streaming arg to createApp()#15483
florian-lefebvre merged 8 commits intomainfrom
feat/create-app-streaming-argument

Conversation

@florian-lefebvre
Copy link
Member

@florian-lefebvre florian-lefebvre commented Feb 12, 2026

Changes

  • Improves the new adapter API by allowing to pass streaming to createApp(), matching App

Testing

N/A

Docs

@florian-lefebvre florian-lefebvre self-assigned this Feb 12, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

🦋 Changeset detected

Latest commit: ba08958

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Feb 12, 2026
@matthewp
Copy link
Contributor

If no adapters are going to use this, why add it?

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 12, 2026

Merging this PR will not alter performance

✅ 9 untouched benchmarks


Comparing feat/create-app-streaming-argument (ba08958) with main (9760404)

Open in CodSpeed

@ematipico
Copy link
Member

ematipico commented Feb 12, 2026

If no adapters are going to use this, why add it?

IIRC, the node adapter uses it

@florian-lefebvre
Copy link
Member Author

If no adapters are going to use this, why add it?

There's no valid reason IMO to make createApp() less powerful than App. We don't use the streaming arg in core but that doesn't mean it's not used by 3rd party adapters. Like really it's not about adding a feature, it's about making sure it enables the same stuff as App.

IIRC, the node adapter uses it

The node adapter uses NodeApp so it's different, I have another PR in the works for it

@matthewp
Copy link
Contributor

@florian-lefebvre For context, we added streaming false because there was an adapter that did not support streaming (I think it was Cloudflare at the time), but I don't think that's the case any more. So I guess I'm questioning the value of the feature in App as well.

@florian-lefebvre
Copy link
Member Author

Ah gotcha, that's different. I think we probably don't want to remove streaming from App now but we could deprecate it if we wanted. Honestly I think it doesn't hurt if it's here either, no strong opinion. So to recap:

  • We want to remove the streaming arg from App, so we deprecate it in v6 and do not add the flag to createApp
  • We want to keep supporting it and we update createApp

How can we decide properly?

@matthewp
Copy link
Contributor

I don't want to block and don't have time to create a proposal for removal, so since it already exists I won't oppose.

@florian-lefebvre
Copy link
Member Author

With NodeApp getting deprecated soon (#15535), having the streaming arg on App and createApp() makes even more sense

Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

Approving subject to a clarification in the changeset. I think this is a good option that should possibly be exposed by adapters

@florian-lefebvre
Copy link
Member Author

Yeah I agree being able to set streaming for all adapters would be good, but IIRC not everyone was in favor hence why the node adapter is the only one to have this feature. Personally happy to revisit but that's not blocked by v6 and may need an RFC?

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

OK, here are my thoughts on the changeset, @florian-lefebvre !

florian-lefebvre and others added 2 commits February 17, 2026 14:04
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Thanks for your persistence! I think this looks good! (I'd remove the extra line, but no complaints from me!)

@florian-lefebvre florian-lefebvre merged commit 7be3308 into main Feb 17, 2026
10 checks passed
@florian-lefebvre florian-lefebvre deleted the feat/create-app-streaming-argument branch February 17, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants