@nuxt/docs-nightly 5.0.0-29847385.3fde4d62 → 5.0.0-29850714.87a4b2c4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -462,12 +462,13 @@ export default useBase('/api/hello', router.handler)
462
462
  This is an experimental feature and is available in all environments.
463
463
  ::
464
464
 
465
+ You can return streams directly from the event handler.
466
+
465
467
  ```ts [server/api/foo.get.ts]
466
468
  import fs from 'node:fs'
467
- import { sendStream } from 'h3'
468
469
 
469
- export default defineEventHandler((event) => {
470
- return sendStream(event, fs.createReadStream('/path/to/file'))
470
+ export default defineEventHandler(() => {
471
+ return fs.createReadStream('/path/to/file')
471
472
  })
472
473
  ```
473
474
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "5.0.0-29847385.3fde4d62",
3
+ "version": "5.0.0-29850714.87a4b2c4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",