Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 6, 2025

Closes: N/A

The downloadToResponse export was added to the library but not documented in the README.

Changes

  • API documentation: Added downloadToResponse() to the API reference section, describing it as returning a Web Response object (universal, works in edge runtimes)
  • Usage example: Updated Web APIs section to show downloadToResponse alongside downloadToBlob, noting the response can be returned directly from edge functions
import { downloadToBlob, downloadToResponse, parseUrl } from 'stackblitz-zip'

// download as Web Response (edge runtimes, servers)
const projectId = parseUrl('https://stackblitz.com/edit/nuxt-starter-k7spa3r4')
const response = await downloadToResponse({ projectId })
// response can be returned directly from edge functions

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • stackblitz.com
    • Triggering command: /usr/local/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/stackblitz.zip/stackblitz.zip/node_modules/.pnpm/vitest@4.0.7_@types+debug@4.1.12_@types+node@22.19.0_jiti@2.6.1_jsdom@0.2.19_yaml@2.8.1/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/stackblitz.zip/stackblitz.zip/node_modules/.pnpm/vitest@4.0.7_@types+debug@4.1.12_@types+node@22.19.0_jiti@2.6.1_jsdom@0.2.19_yaml@2.8.1/node_modules/vitest/dist/workers/forks.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

since I last updated the docs I added a new export that directly returns a Web response.

would you update the readme please?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
stackblitz.zip Ready Ready Preview Comment Nov 6, 2025 8:06am

Co-authored-by: danielroe <28706372+danielroe@users.noreply.github.com>
Copilot AI changed the title [WIP] Update README to include new Web response export docs: document downloadToResponse export Nov 6, 2025
Copilot AI requested a review from danielroe November 6, 2025 08:08
@danielroe danielroe marked this pull request as ready for review November 6, 2025 10:05
@danielroe danielroe merged commit 2a37540 into main Nov 6, 2025
7 checks passed
@danielroe danielroe deleted the copilot/update-readme-for-new-export branch November 6, 2025 11:23
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