summaryrefslogtreecommitdiff
path: root/packages/webapi (follow)
AgeCommit message (Collapse)AuthorFilesLines
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>
2022-05-27update typescript (#3456)Gravatar Fred K. Schott 1-1/+1
2022-05-23[ci] release (#3409)Gravatar github-actions[bot] 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-20[ci] formatGravatar bholmesdev 1-6/+1
2022-05-20Fix: support `FormData` object on fetch body (#3417)Gravatar Ben Holmes 3-10/+8
* refactor: make node-fetch external in rollup build * deps: make node-fetch standard dep * refactor: switch to node-fetch pkg ref in fetch.ts * chore: changeset * chore: bump webapi to minor change
2022-05-20[ci] update lockfile (#3414)Gravatar Fred K. Schott 1-1/+1
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-19[ci] update lockfile (#3404)Gravatar Fred K. Schott 1-1/+1
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-16[ci] update lockfile (#3363)Gravatar Fred K. Schott 1-2/+2
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-12[ci] update lockfile (#3287)Gravatar Fred K. Schott 1-6/+6
* [ci] update lockfile * chore: fix lockfile * fix: pin turbo Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03Add typescript to match peerDepGravatar Matthew Phillips 1-1/+2
2022-04-22[ci] update lockfile (#3162)Gravatar Fred K. Schott 1-2/+2
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-21chore(webapi): fix types (#3167)Gravatar Nate Moore 1-1/+1
2022-04-20[ci] update lockfile (#3153)Gravatar Fred K. Schott 1-5/+5
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-13[ci] release (#3101)astro@1.0.0-beta.10@astrojs/webapi@0.11.1Gravatar github-actions[bot] 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13[ci] formatGravatar matthewp 1-3/+3
2022-04-13Re-enable custom element test and fix "undefined" child (#3095)Gravatar Matthew Phillips 2-0/+20
* Re-enable custom element test and fix "undefined" child * Remove outdated comment * Adds a changeset
2022-04-10update lockfile (#3059)Gravatar Fred K. Schott 1-1/+1
2022-04-10chore: webapi test now use chai (#3048)Gravatar Juan Martín Seery 15-814/+535
2022-03-23add build:ci command which skips `tsc` (#2869)Gravatar Nate Moore 1-0/+1
2022-03-18fix(windows): fix build script on windows (#2830)Gravatar Nate Moore 1-1/+1
2022-03-16[ci] update lockfile (#2810)Gravatar Fred K. Schott 1-1/+1
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-14[ci] update lockfile (#2773)Gravatar Fred K. Schott 1-3/+3
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-11[ci] update lockfile (#2763)Gravatar Fred K. Schott 1-7/+7
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-10update deps: esbuild, typescript (#2750)Gravatar Fred K. Schott 2-2/+2
* update dep: typescript * update dep: esbuild * update types * update types * update dep: es-module-lexer * update tests
2022-03-09merge `next` into `main` (#2705)Gravatar Nate Moore 1-0/+2
* Unflag the static build (#2652) * Unflag the static build * Only set legacyBuild to false if experimentalSSR is true * Use legacy build when we have to * Put a few more tests into legacy mode * Last two * Make astro-basic use the legacy build * Adds a changeset * Mark the lit test as legacy * Update yarn lock * Update based on feedback * Add --legacy-build flag * Move astro-basic test to use static build (#2682) * Move some tests over to the static build (#2677) * Move some tests over to the static build * Fix assets tests * Fix the assets tests * Fix for the client:only components * Moves asset tests to the static build * Move postcss test over to static build * Bring back legacy build for astro-basic test * Move astro-basic test to use static build * Migrate more tests to the static build (#2693) * fix: disable HMR during build (#2684) * Migrate more tests to the static build * Only prepend links in non-legacy mode * Add the 0-css tests * Convert all CSS tests to the static build * Migrate Astro global tests * Remove .only * Fix static build tests * Migrate a few more * More tests * Move the lit test back to legacy * Increase the test timeout Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Improve `head` injection behavior (#2436) * feat: add renderHead util to server * feat: remove `layouts` from config, Vite plugin * fix: improve head injection during rendering * chore: update compiler * fix: do not escape links * chore: enter `pre` mode * Replace `send` with `sirv` (#2713) * remove send * Create thick-ravens-chew.md * I feel like I'm going to screw something up * working finally! * rewrite req.url * Add tiny bit of doc * Update .gitignore Co-authored-by: Evan Boehs <evan@boehs.org> * Move remaining tests to the static build (#2712) * Move lit test to the static build * Migrate astro-env plugin to work in the static build * Do not remove vite:define * Adds a changeset * Add a warning when passing the --experimental-static-build flag (#2718) * Add a warning when passing the --experimental-static-build flag * Disable the lint warning * [ci] release (next) (#2721) * [ci] release (next) * chore: update changeset Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nate Moore <nate@skypack.dev> * 404 page (#2719) * Fix: build to 404.html in the static build * Adds a changeset * fix pnpm install missing peer deps * fix svelte version in workspace * fix lockfile * fix(webapi): add dev script * improve preview reliability (#2739) * improve preview reliability - fix broken tests * shamefully hoist to unblock * remove lit from test running * chore: update lockfile Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Evan Boehs <evan@boehs.org> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-08fix format (#2736)Gravatar Fred K. Schott 3-88/+23
2022-03-08Move from yarn to pnpm (#2455)Gravatar Nate Moore 6-11868/+9
* chore: `yarn` => `pnpm` * docs: `yarn` => `pnpm` * chore(ci): yarn => pnpm * chore(ci): update pnpm cache path * fix: add missing deps * fix: add missing deps * test: add package.json to all test fixtures * chore: improve hoisting behavior * chore: move turbo into package.json * chore: update npmrc * fix: add missing `debug` dependency * chore: remove prepare script * test: fix new tests * fix: fully resolve renderer paths and `astro/internal` path * chore: update lockfile * chore: remove log * fix: resolve renderers in vite-plugin-jsx * fix: prefer public-hoist-pattern to shamefully-hoist * chore: ignore @babel/core peer warning * chore: update dependencies * test: add autoprefixer as explicit dep * chore: update `.npmrc` file in examples * chore: update dependencies * fix: resolve renderer dependencies in static build * fix: static build renderer resolution * chore: fix smoke tests * chore: hoist autoprefixer * chore: update lockfile * attempt: use full file:// path on Windows * attempt: use astro/internal * attempt: optimize astro/internal * attempt: expose ./internal.js * chore: add missing package.json files * attempt: resolve astro/internal path * chore: tidy package.json * chore: update lockfile * chore: update deps * chore: update deps * chore: yarn -> pnpm * attempt: explicit /@fs urls * attempt: explicit /@fs urls * chore: update all examples for pnpm * chore: fix hoisting for with-vite-plugin-pwa * chore(ci): fix sharp install * chore: update with-vite-plugin-pwa example * fix: pin vite-plugin-pwa to 0.11.11 * fix: add workbox-window to vite-plugin-pwa deps * refactor: use pnpm update --recursive Co-authored-by: JuanM04 <me@juanm04.com> * chore: yarn => pnpm * chore: yarn => pnpm * fix: update smoke test to skip examples which don't work in static build * update lockfile * chore: update .npmrc files * chore: update lockfile * fix: smoke script * chore: update .npmrc file * fix: return to shamefully-hoist (shamefully) * chore: update lockfile * fix(smoke): ignore scripts for smoke tests * fix: update example to disable renderers * chore: bump version * chore(ci): fix smoke tests * attempt: disable --frozen-lockfile for smoke tests * chore: update smoke test * chore: fix rebase issue * chore: update lockfile * fix: smoke tests * fix(ci): run external smoke tests first * fix(ci): run syntax * chore: update lockfile * fix(ci): ensure submodules are up-to-date * fix(ci): ensure submodules are up-to-date * chore: update lockfile * chore: update for webapi * chore: silence node:* warnings * chore: update deps * fix(ci): persist generated webapi assets * fix(ci): webapi build script * chore(ci): remove custom node caching * chore: keep turbo.json * chore: update turbo, ignore create-astro * chore: update deps * fix(ci): test command * chore(ci): update test script Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-07[ci] yarn formatGravatar natemoo-re 45-7127/+10203
2022-03-07Add `@astrojs/webapi` package (#2729)@astrojs/webapi@0.11.0Gravatar Nate Moore 60-0/+13082
* chore: add @astrojs/webapi * chore: update package.json * fix: update file case * fix: remove lowercase file * chore: update tests to use mocha * chore: update LICENSE