summaryrefslogtreecommitdiff
path: root/packages/webapi (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-24[ci] release (#5948)create-astro@2.0.0astro@2.0.0@astrojs/webapi@2.0.0@astrojs/vue@2.0.0@astrojs/vercel@3.0.0@astrojs/telemetry@2.0.0@astrojs/tailwind@3.0.0@astrojs/svelte@2.0.0@astrojs/solid-js@2.0.0@astrojs/rss@2.1.0@astrojs/react@2.0.0@astrojs/prism@2.0.0@astrojs/preact@2.0.0@astrojs/partytown@1.0.3@astrojs/node@5.0.0@astrojs/netlify@2.0.0@astrojs/mdx@0.15.0@astrojs/markdown-remark@2.0.0@astrojs/lit@1.1.0@astrojs/image@0.13.0@astrojs/deno@4.0.0@astrojs/cloudflare@6.0.0Gravatar Houston (Bot) 2-3/+27
* [ci] release * Update changelogs (#5955) * [ci] release * Wrap astro 2.0 beta logs in `<details>` * Add link to docs upgrade guide * First pass cleaning up 2.0 release notes * mdx changes from Sarah * combine 5584 and 5842 in deno, image, netlify * markdown/remark incl (5684 & 5769) to match mdx * Tweak markdown/remark formatting * Format astro-prism * Format astro-rss * Format create-astro * Format cloudflare * Format lit * Format partytown * Format node * Format preact * Format react * Format solid * Format svelte * Format tailwind * Format vercel * Format vue * Format telemetry * Format webapi * Format scripts * Reinstate h3s for headings Co-authored-by: Ben Holmes <hey@bholmes.dev> * Reformat mdx * astro & markdown/remark: Combine #5679 & #5684 changelogs Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Ben Holmes <hey@bholmes.dev> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-23[ci] release (beta) (#5911)create-astro@2.0.0-beta.1astro@2.0.0-beta.4@astrojs/webapi@2.0.0-beta.1@astrojs/tailwind@3.0.0-beta.2@astrojs/svelte@2.0.0-beta.3@astrojs/partytown@1.0.3-beta.1@astrojs/netlify@2.0.0-beta.4@astrojs/image@0.12.2-beta.1Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-22Update magic-string used by @astrojs/image and @astrojs/webapi (#5930)Gravatar heyhoe 1-1/+1
2023-01-20chore(webapi): Remove unused file (#5916)Gravatar Erika 1-50/+0
2023-01-12[ci] release (beta) (#5792)create-astro@2.0.0-beta.0astro@2.0.0-beta.2@astrojs/webapi@2.0.0-beta.0@astrojs/vue@2.0.0-beta.1@astrojs/vercel@3.0.0-beta.1@astrojs/telemetry@2.0.0-beta.0@astrojs/tailwind@3.0.0-beta.1@astrojs/svelte@2.0.0-beta.1@astrojs/solid-js@2.0.0-beta.0@astrojs/react@2.0.0-beta.0@astrojs/prism@2.0.0-beta.0@astrojs/preact@2.0.0-beta.0@astrojs/partytown@1.0.3-beta.0@astrojs/node@5.0.0-beta.1@astrojs/netlify@2.0.0-beta.2@astrojs/mdx@1.0.0-beta.2@astrojs/markdown-remark@2.0.0-beta.2@astrojs/lit@1.0.2-beta.0@astrojs/image@1.0.0-beta.2@astrojs/deno@4.0.0-beta.2@astrojs/cloudflare@6.0.0-beta.1Gravatar Fred K. Bot 2-1/+11
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-10Remove more unnecessary polyfills from webapi for Node 16 (#5814)Gravatar Erika 18-396/+8
* feat(webapi): Remove unnecessary polyfills now that we dropped support for Node 14 * feat(webapi): Removed more unnecessary polyfills for Node 16 * chore: changeset
2023-01-09[ci] formatGravatar matthewp 2-10/+4
2023-01-09Drop Node 14 support (#5782)Gravatar Erika 8-187/+19
* chore: Update engines field * fix(deps): Remove node-fetch * feat(polyfills): Remove node-fetch for undici * feat(webapi): Remove node-fetch from the webapis polyfills for undici * feat(core): Remove node-fetch for undici in Astro core * feat(telemetry): Remove node-fetch for undici * feat(node): Remove node-fetch for undici in node integration * feat(vercel): Remove node-fetch for undici in Vercel integration * chore: update lockfile * chore: update lockfile * chore: changeset * fix(set): Fix set directives not streaming correctly on Node 16 * Try another approach * Debugging * Debug fetch * Use global fetch if there is one * changeset for lit * Remove web-streams-polyfill * Remove web-streams-polyfill license note * Update .changeset/stupid-wolves-explain.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-12-19webapi: Rename misspelled inheritence to inheritance (#5634)Gravatar Anders Kaseorg 3-7/+7
2022-10-31Add a thank you to the original author of the original webapi package (#5246)Gravatar Fred K. Schott 1-2/+2
2022-10-31[ci] release (#5239)Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-28Fix/node custom elements (#5235)Gravatar Sebastiaan 1-2/+3
* adapter-node fix CustomElementRegistry * Add changeset * Add fallback CustomElementRegistry
2022-10-28Upgrade Vite to 3.2 (#5212)Gravatar Bjorn Lu 1-1/+1
2022-09-27[ci] release (#4846)create-astro@1.1.0astro@1.3.1@astrojs/webapi@1.1.0@astrojs/vercel@2.0.1@astrojs/mdx@0.11.2@astrojs/image@0.8.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-22[ci] formatGravatar matthewp 1-4/+2
2022-09-22Http proxy for fetch (#4676)Gravatar Zicklag 3-1/+10
* Add HTTP Proxy Support to `fetch` Polyfill Use `global-agent` to support HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables. * Add Changeset For HTTP Proxy Support in `fetch`
2022-08-15docs: specify lang for a codeblock (#4314)Gravatar Yash 1-1/+1
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2022-08-10Skip mod.d.ts in format:ci (#4235)Gravatar Bjorn Lu 2-4/+6
2022-08-09Astro 1.0.0 (#4214)Gravatar Nate Moore 2-1/+9
* chore: remove changesets patch * chore: add changesets * chore: version packages * chore: normalize formatting * chore: update lockfile * chore: fix codeblocks * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: fixup code samples * chore: move v0.25 message out of note Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-04[ci] formatGravatar Princesseuh 1-1/+1
2022-08-04Audit examples templates (#3940)Gravatar Erika 1-1/+1
* basics, framework-alpine, framework-solid, delete unused examples * framework-multiple * Remove non-standard file extensions, add missing .vscode folders * Remove robots.txt * Remove blog-multiple-authors * Rewrite components comments to be consistent * Update lockfile * Remove unnecessary usage of SCSS in subpath example * Fix props weirdness in portfolio example * Remove Lit from `framework-multiple` for now * Misc fixes * Update lockfile * I'm in lockfile hell, send help
2022-08-02[ci] formatGravatar Princesseuh 1-1/+1
2022-08-02Refactor @astrojs/prism, fix Prism component import not working (#4114)Gravatar Erika 1-2/+2
* Upgrade @astrojs/prism to a real package, fix component import not working * Remove `@astrojs/prism` as a dependency of `astro` * Update lock file * Refactor to multiple files * Oops, can't have astro imports run inside node * Follow Nate's suggestion on being minors instead of patchs * Update lockfile
2022-07-25[ci] formatastro@0.0.0-rc-20220725043302@astrojs/vue@0.0.0-rc-20220725043302@astrojs/vercel@0.0.0-rc-20220725043302@astrojs/tailwind@0.0.0-rc-20220725043302@astrojs/svelte@0.0.0-rc-20220725043302@astrojs/sitemap@0.0.0-rc-20220725043302@astrojs/prefetch@0.0.0-rc-20220725043302@astrojs/partytown@0.0.0-rc-20220725043302@astrojs/node@0.0.0-rc-20220725043302@astrojs/netlify@0.0.0-rc-20220725043302@astrojs/mdx@0.0.0-rc-20220725043302@astrojs/markdown-remark@0.0.0-rc-20220725043302@astrojs/markdown-component@0.0.0-rc-20220725043302@astrojs/lit@0.0.0-rc-20220725043302@astrojs/image@0.0.0-rc-20220725043302@astrojs/deno@0.0.0-rc-20220725043302@astrojs/cloudflare@0.0.0-rc-20220725043302Gravatar FredKSchott 1-1/+1
2022-07-25Add the `output` option (#4015)Gravatar Matthew Phillips 1-1/+1
* Start of work on astroConfig.mode === 'server' * Add tests and more * adapter -> deploy in some places * Add fallback for `adapter` config * Update more tests * Update image tests * Fix clientAddress test * Updates based on PR review * Add a changeset * Update integrations tests + readme * Oops * Remove old option * Rename `mode` to `output` * Update Node adapter test * Update test * fred pass * fred pass * fred pass * fix test Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-22Add `.html` support (#3867)Gravatar Nate Moore 1-1/+1
* feat: add html package * feat: support assets in HTML * feat(html): upgrade html integration * feat(html): add `@astrojs/html` integration * feat(html): add html support to astro core * test(html): update html tests with package.json files * chore: add changeset * fix: remove import cycle * chore: fix types * refactor: remove @astrojs/html, add to core * chore: update types for `*.html` * fix: move *.html to astro/env Co-authored-by: Nate Moore <nate@astro.build>
2022-07-18[ci] formatGravatar Princesseuh 1-1/+1
2022-07-18Improve astro check (#3906)Gravatar Erika 1-11/+11
* Improve astro check * Fix lockfile * Update to latest language-server version * Add simple tests * Fix lock file, again * Fix `astro check` not working on Windows, speeds up tests * Add changeest
2022-07-07[ci] formatGravatar natemoo-re 1-2/+2
2022-07-07fix: lint failing on astro and some integrations (#3794)Gravatar Joaquín Sánchez 1-12/+12
* fix: lint failing on astro and some integrations * chore: fix telemetry lint * chore: fix turbo cache (thx nate) * chore: fix runtime server
2022-07-01[ci] formatGravatar tony-sull 1-1/+1
2022-07-01Adds an `@astrojs/image` integration for optimizing images (#3694)Gravatar Tony Sullivan 1-1/+1
* initial commit * WIP: starting to define interfaces for images and transformers * WIP: basic sharp service to test out the API setup * adding a few tests for sharp.toImageSrc * Adding tests for sharp.parseImageSrc * hooking up basic SSR support * updating image services to return width/height * simplifying config setup for v1 * hooking up basic SSR + SSG support (dev & build) * refactor: a bit of code cleanup and commenting * WIP: migrating local files to ESM + vite plugin * WIP: starting to hook up user-provided loaderEntryPoints * chore: update lock file * chore: update merged lockfile * refactor: code cleanup and type docs * pulling over the README template for first-party integrations * moving metadata out to the loader * updating the test for the refactored import * revert: remove unrelated webapi formatting * revert: remove unrelated change * fixing up the existing sharp tests * fix: vite plugin wasn't dynamically loading the image service properly * refactor: minor API renaming, removing last hard-coded use of sharp loader * don't manipulate src for hosted image services * Adding support for automatically calculating dimensions by aspect ratio, if needed * a few bug fixes + renaming the aspect ratio search param to "ar" * Adding ETag support, removing need for loaders to parse file metadata * using the battle tested `etag` package * Adding support for dynamically calculating partial sizes * refactor: moving to the packages/integrations dir, Astro Labs TBD later * refactor: renaming parse/serialize functions * Adding tests for SSG image optimizations * refactor: clean up outdated names related to ImageProps * nit: reusing cached SSG filename * chore: update pnpm lock file * handling file URLs when resolving local image imports * updating image file resolution to use file URLs * increasing test timeout for image build tests * fixing eslint error in sharp test * adding slash for windows compat in src URLs * chore: update lockfile after merge * Adding README content * adding a readme call to action for configuration options * review: A few of the quick updates from the PR review * hack: adds a one-off check to allow query params for the _image route * Adds support for src={import("...")}, and named component exports * adding SSR tests * nit: adding a bit more comments * limiting the query params in SSG dev to the images integration
2022-06-30MDX support (#3706)Gravatar Nate Moore 1-1/+1
* feat: first pass at MDX support * fix: move built-in JSX renderer to come first * chore: remove jsx example * chore: update lockfile * chore: cleanup example * fix: missing deps * refactor: move component render logic to `renderPage` * chore: update HMR script * chore: update MDX example * refactor: prefer unshit * refactor: remove TODO comment * fix: remove duplicate identifier * refactor: cleanup mdx entrypoint * fix: better html handling * fix: add tsconfig to mdx package * chore: update lockfile * fix: do not sort plugins unless mdx is enabled * chore: update compiler * fix(hmr): maybe render head for non-Astro pages * fix: set initial pageExtensions * refactor: cleanup addPageExtension * refactor: remove addPageExtensions from types * refactor: expose HookParameters type * fix: only default to astro for MDX * test: pick up jsx support in test fixtures * refactor: simplify mdx entrypoint * test: add basic MDX tests * test(e2e): add mdx + framework tests * chore: update lockfile * test(e2e): fix preact mdx e2e test * fix(mdx): disable .md support * test(e2e): fix vue-component test missing mdx * test(e2e): fix solid component needing import * fix: allow `client:only="solid"` as an alias to `solid-js` * chore: move to with-mdx example * chore: update MDX readme * chore: update example readme * chore: bump astro version * chore: update lockfile * Update mod.d.ts * feat: support `export const components` in MDX pages * chore: update mdx example * fix: update jsx-runtime with better slot support * refactor: remove object style support * chore: cleanup package exports * chore: add todo comment * refactor: improve isPage function, move to utils * refactor: dry up manual HMR updates * chore: add dev tests for MDX * chore: prefer set to array * chore: add changesets * fix(hmr): flip public/private route Co-authored-by: Nate Moore <nate@astro.build>
2022-06-29[ci] formatGravatar FredKSchott 1-1/+1
2022-06-29add error event to telemetry (#3750)Gravatar Fred K. Schott 1-1/+1
2022-06-28[ci] update lockfile (#3740)Gravatar Fred K. Bot 1-3/+3
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-27[ci] formatGravatar FredKSchott 1-1/+1
2022-06-27SImplify "astro add" by removing confusing multi-select (#3715)Gravatar Fred K. Schott 1-1/+1
* wip * update create-astro for new astro add * update copy * update git prompt * Update packages/astro/src/core/logger/node.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/create-astro/test/install-step.test.js Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * update git prompt * update test Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-06-23[ci] formatGravatar matthewp 1-1/+1
2022-06-23Remove post-rendering head injection (#3679)Gravatar Matthew Phillips 1-1/+1
* Remove post-rendering head injection * Adds a changeset * Use a layout component for vue
2022-06-23[ci] formatGravatar natemoo-re 1-1/+1
2022-06-23Enable named slots in renderers (#3652)Gravatar Nate Moore 1-1/+1
* feat: pass all slots to renderers * refactor: pass `slots` as top-level props * test: add named slot test for frameworks * fix: nested hydration, slots that are not initially rendered * test: add nested-recursive e2e test * fix: render unmatched custom element children * chore: update lockfile * fix: unrendered slots for client:only * fix(lit): ensure lit integration uses new slots API * chore: add changeset * chore: add changesets * fix: lit slots * feat: convert dash-case or snake_case slots to camelCase for JSX * feat: remove tmpl special logic * test: add slot components-in-markdown test * refactor: prefer Object.entries.map() to for/of loop Co-authored-by: Nate Moore <nate@astro.build>
2022-06-14[ci] formatGravatar matthewp 1-1/+1
2022-06-14feat: support optional and conditional integrations (#3590)Gravatar Okiki Ojo 1-1/+1
* feat(integrations): support optional integrations By making integration optional, Astro can now ignore null or undefined Integrations instead of giving an internal error most devs can't read/won't understand. This also enables optional integrations, e.g. ```ts integration: [ // Only run `compress` integration in production environments, etc... import.meta.env.production ? compress() : null ] ``` * ci: add tests for optional integration * docs: add changelog
2022-06-10[ci] formatGravatar natemoo-re 1-1/+1
2022-06-09chore: update types (#3558)Gravatar Nate Moore 1-2/+2
2022-06-06[ci] formatfix/map-file-404-logsGravatar FredKSchott 14-83/+82
2022-06-02[ci] update lockfile (#3501)Gravatar Fred K. Schott 1-2/+2
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-01[ci] update lockfile (#3495)Gravatar Fred K. Schott 1-3/+3
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-31[ci] update lockfile (#3448)Gravatar Fred K. Schott 1-1/+1
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>