Commit graph

541 commits

Author SHA1 Message Date
Fred K. Bot
4c1ffef3e4
[ci] release (#5078)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-18 14:26:00 -04:00
Daniel
5923dd77c1
adding cookies to api route response [simple result] (#5060)
* adding cookies to the an api route response, also when returning a simple result

* in dev server, convert a simple endpoint result into a response object

Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-18 09:52:49 -04:00
Yaroslav Lapin
66e8ae3bee
update with-tailwind example to use mdx (#5104)
* add mdx since md is deprecated now

* rename .md -> .mdx

* fix component import

* yarn format
2022-10-18 09:22:48 -04:00
Fred K. Bot
d7407dbb15
[ci] update lockfile (#5094)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-18 09:20:36 -04:00
Nate Moore
d25f54cb93
[Vue] add support for appEntrypoint (#5075)
* feat(vue): add support for appEntrypoint

* chore: add changeset

* test(vue): add tests for app entrypoint

* docs(vue): update README to include app entrypoint

* fix(vue): prefer resolvedVirtualModuleId

Co-authored-by: Nate Moore <nate@astro.build>
2022-10-13 14:15:57 -05:00
Fred K. Bot
81d57f2638
[ci] release (#5046)
* [ci] release

* Update packages/integrations/node/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-13 12:29:24 -04:00
Fred K. Bot
45728a0d6e
[ci] update lockfile (#5069)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-13 11:35:52 -04:00
Matthew Phillips
e55af8a232
Node.js standalone mode + support for astro preview (#5056)
* wip

* Deprecate buildConfig and move to config.build

* Implement the standalone server

* Stay backwards compat

* Add changesets

* correctly merge URLs

* Get config earlier

* update node tests

* Return the preview server

* update remaining tests

* swap usage and config ordering

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/metal-pumas-walk.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/metal-pumas-walk.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/stupid-points-refuse.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/stupid-points-refuse.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Link to build.server config

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-12 17:25:51 -04:00
Bjorn Lu
ebd364e392
Add new fields to API route context (#4986)
* Add new fields to API route context

* Add props and redirect

* Pass custom redirect status code

* Correctly pass props in api routes

* Add better docs

* Add test

* Fix build

* Add constants file

* Add links to jsdoc

* Workaround lint issue

* Thanks Chris

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Missed one doc change

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Add more detail to the changesets

* Strict redirect status type

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 17:03:49 -04:00
Erika
0ea6187f95
Added support for updating tsconfig.json when using astro add (#4959)
* Added support for updating tsconfig.json when using astro add

* Refactor

* Remove unneeded change

* Fix build failling due to type difference

* Extend changeset description
2022-10-12 15:11:25 -03:00
Bjorn Lu
f7fcdfe621
Support solidjs libraries (#5059) 2022-10-12 21:29:26 +08:00
Fred K. Bot
5cab04521a
[ci] update lockfile (#5054)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-12 09:09:59 -04:00
Erika
f604ef6c69
Run astro check on all examples in CI (#5022)
* Run astro check on all examples in CI

* Output stderr

* Build Astro before running checks

* Making things faster + colors

* Fix errors inside examples

* Add congrats message

* Revert unentional change to tsconfigs

* Remove more unneeded changes
2022-10-12 09:48:29 -03:00
Juan Martín Seery
44ea0c6d94
chore: Upgrade Astro compiler to 0.27.1 (#5044) 2022-10-10 14:50:08 -04:00
Fred K. Bot
0ab0d8d863
[ci] release (#5019)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-10 11:44:22 -04:00
Juan Martín Seery
c1f991408b
fix(vercel): now works with monorepos (#5033)
* Upgraded nft

* Handle monorepo better

* Changeset

* Fixed common ancestor

* Fixed outdir
2022-10-10 11:37:03 -04:00
Bjorn Lu
2d9d422167
Support strict dependency install for image integration (#5034) 2022-10-10 11:35:48 -04:00
Matthew Phillips
b1964e9e1b
Revert "Revert preact signals support (#4843)" (#5015)
This reverts commit 25a5b9a89a.
2022-10-10 09:01:15 -04:00
Matthew Phillips
062335dbf7
Fix remote images in SSG mode (#5021) 2022-10-07 17:08:15 -04:00
Tony Sullivan
e5c64c51c1
Adds an integration starter example (#4877)
* adding an integration starter example

* chore: linter fixes

* removing components from the integration example

* removing the monorepo and demo project, adding links to docs and examples

* chore: update lock file

* typo fix
2022-10-07 16:06:51 +00:00
Fred K. Bot
4e8625fbfb
[ci] release (#5014)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-07 10:34:13 -04:00
Fred K. Bot
4393bd6710
[ci] update lockfile (#5011)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-07 09:36:43 -04:00
Fred K. Bot
778b915525
[ci] release (#4976)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-06 13:47:10 -04:00
Fred K. Bot
70254076a1
[ci] update lockfile (#4987)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-06 10:57:09 -04:00
João Araújo
50a397c4ba
Update @builder.io/partytown dependency (#4989) 2022-10-06 10:33:01 -04:00
Matthew Phillips
1f890b3363
Yield out potentional slot instructions when rendering dynamic tags (#4981)
* Yield out potentional slot instructions when rendering dynamic tags

* Adding a changeset

* yield instead of return

* Handle the fact that renderComponent returns an iterable

* Only yield out html once
2022-10-05 16:30:43 -04:00
Matthew Phillips
8f9791d840
Upgrade Astro compiler to 0.26.0 (#4990)
* Upgrade Astro compiler

* Add changeset
2022-10-05 16:29:30 -04:00
Bjorn Lu
c1b6b0b64b
Fix failing e2e test (#4983) 2022-10-05 22:19:26 +08:00
董雨航
61d26f3352
fix: import.meta.env.BASE_URL will be '/' in client loaded component on dev mode (#4886) 2022-10-04 12:57:35 -04:00
Calvin Liang
37cb2fc02a
fix object styles not escaped (#4887)
* fix object styles not escaped

* fix `shouldEscape` not passed down

* add tests

* fix package name

* fix pnpm-lock

* add changeset
2022-10-04 12:56:11 -04:00
Fred K. Bot
67099805f4
[ci] update lockfile (#4946)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-04 11:57:57 -04:00
Fred K. Bot
5d58787f7a
[ci] release (#4968)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-03 18:48:40 -04:00
Fred K. Bot
bb022f5230
[ci] release (#4957)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-03 11:52:23 -04:00
Matthew Phillips
ee8dd424fd
Improve rendering perf (#4956)
* Improve rendering perf

* Adding a changeset

* Disable eslint warning
2022-10-03 11:44:58 -04:00
Scott Willsey
a8f1a91e7e
Astro image cache dependency fix scottaw66 (#4944)
* Moves http-cache-semantics from dev dependency to dependency

* Pull request for astro image http-cache-semantics dependency
2022-09-30 22:25:37 -05:00
Fred K. Bot
5565782d70
[ci] release (#4943)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 19:51:17 -04:00
Nate Moore
cf2bba1e4a
P5: fix MDX memory leak (#4939)
* fix(astro): tag jsx vnodes with renderer so errors are properly handled

* chore: fix missing package in test

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 17:13:44 -05:00
Fred K. Bot
2ffdafff45
[ci] release (#4921)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 20:15:38 +00:00
Fred K. Bot
e5687471a5
[ci] update lockfile (#4927)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-30 11:47:32 -04:00
Tony Sullivan
9892989619
[@astrojs/image] adding caching support for SSG builds (#4909)
* adds a caching feature for SSG builds

* chore: add changeset

* nit: eslint fix

* chore: add readme docs for caching

* adding basic test coverage for cached images
2022-09-29 21:20:48 +00:00
Fred K. Bot
d08093f7d4
[ci] release (#4903)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-29 11:20:00 -04:00
Fred K. Bot
10317c65fe
[ci] update lockfile (#4899)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-29 09:41:29 -04:00
Bjorn Lu
fd9d323a68
Support Vue JSX (#4897)
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-09-29 11:25:45 +08:00
Matthew Phillips
01c1aaa003
Fix CSS ordering between imported and Astro styles (#4907)
* Fix CSS ordering between imported and Astro styles

* Fix linting errors

* Add changeset and upgrade compiler version

* Update test to reflect shared styles placed before page styles
2022-09-28 18:12:22 -04:00
Matthew Phillips
d3091f89e9
Astro.cookies implementation (#4876)
* Astro.cookies implementation

* Remove unused var

* Fix build

* Add a changesetp

* Remove spoken-word expires
2022-09-28 16:55:27 -04:00
Bjorn Lu
3832c083d4
Fix test (#4904) 2022-09-28 23:54:40 +08:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist (#4842) 2022-09-28 23:13:33 +08:00
Matthew Phillips
87a7cf48e7
Hoist hydration script out of slot templates (#4891)
* Hoist hydration script out of slot templates

* Add changeset

* Fix HTML components

* Mark as html string
2022-09-28 10:55:14 -04:00
Matthew Phillips
ff7ba0ee0f
Ensure head content rendered once with lazy layouts (#4892)
* Ensure head content rendered once with lazy layouts

* Add changeset
2022-09-28 10:55:06 -04:00
Fred K. Bot
077134ae2c
[ci] release (#4846)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-27 12:12:44 -04:00