Fred K. Bot
07827083ae
[ci] update lockfile ( #5382 )
...
* [ci] update lockfile
* fix lint
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-11-12 07:34:33 -08:00
Matthew Phillips
bee8c14afd
Use base rather than site to create subpath for links/scripts ( #5371 )
...
* Use base rather than site to create subpath for links/scripts
* Adding a changeset
* Warn when the site has a pathname but not using base
* fix asset test
* fix asset inlining behavior
2022-11-11 11:34:34 -08:00
Fred K. Bot
c01092dd09
[ci] update lockfile ( #5367 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-11 09:41:42 -06:00
Bjorn Lu
3ae2a961b7
Respect Vite user config for third-party packages ( #5345 )
2022-11-11 14:22:43 +08:00
Fred K. Bot
7ec016fec3
[ci] release ( #5359 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 16:09:24 -08:00
Fred K. Bot
f8115180f3
[ci] release ( #5329 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 13:01:45 -08:00
Fred K. Bot
e74ba6e5a3
[ci] update lockfile ( #5348 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-10 10:50:42 -08:00
Fred K. Bot
301187e2f3
[ci] update lockfile ( #5336 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-09 14:52:03 -06:00
Nate Moore
03a8f89d5f
Upgrade compiler ( #5339 )
...
* chore: upgrade @astrojs/compiler
* fix: update test to match new compiler behavior
* test: verify that all styles are bundled
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-09 12:55:52 -06:00
Erika
a780f2595d
Migrate error messages to new format (and misc error improvements) ( #5316 )
...
* Migrate messages to errors data file
* Move errors to new 'error database' for easier improvements
* Fix tests
* Add changeset
* Remove unnecessary console.log
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Misc punctuations fixes and additions to README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-09 11:53:42 -04:00
Bjorn Lu
230d71f4b7
Move rehype-pretty-code as devDep ( #5337 )
2022-11-09 22:23:05 +08:00
Bjorn Lu
dca762cf73
Preserve code element node meta for rehype syntax highlighters ( #5335 )
2022-11-09 08:32:13 -05:00
Erika
0dcdc6fb1e
Update language-server and prettier plugin to latest versions ( #5327 )
...
* Update language-server and prettier plugin to latest versions
* Update lockfile
2022-11-08 14:37:19 -04:00
Fred K. Bot
e8ff4571f2
[ci] release ( #5325 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-08 13:00:53 -05:00
Fred K. Bot
70adbe34a0
[ci] update lockfile ( #5323 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-08 12:56:42 -05:00
Nate Moore
b211eadeff
create-astro
bug fixes (#5319 )
...
* fix(create-astro): upgrade cli-kit
* fix(create-astro): avoid setRawMode error
* chore(lint): disable create-astro linting
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08 10:33:36 -06:00
Fred K. Bot
56c37a6287
[ci] release ( #5296 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-07 15:25:20 -05:00
Fred K. Bot
c44d5dd8bc
[ci] update lockfile ( #5306 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-07 10:41:11 -05:00
Fred K. Bot
b4f77a6122
[ci] update lockfile ( #5299 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-04 09:36:26 -04:00
wulinsheng123
247eb7411f
fix: fix bug #5267 ( #5298 )
...
* fix: fix bug #5267
* fix: add changeset
* fix: on frozen lockfile
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2022-11-04 09:09:55 -04:00
Fred K. Bot
89f335b539
[ci] release ( #5262 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-03 09:38:29 -04:00
Fred K. Bot
64d0dc56bb
[ci] update lockfile ( #5287 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-03 09:07:15 -04:00
Fred K. Bot
8d78d954f3
[ci] update lockfile ( #5269 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-02 11:40:33 -04:00
Vlad Cuciureanu
0d27c4a2b6
Fix memleak when project path contains '.md' ( #5264 )
2022-11-02 20:43:36 +08:00
Tony Sullivan
4e2bd17393
Adds a Hackernews example site ( #5213 )
...
* adds the hackernews example - TODO add readme content
* refactor: moving styles from root.css into components
* chore: add README content
* chore: lint fixes + prettier-plugin-astro@0.4.0
* Update examples/hackernews/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* lint: remove unused variable
* nit: adding check command to example
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-01 16:20:04 +00:00
Matthew Phillips
c77a6cbe34
Graceful error recovery in the dev server ( #5198 )
...
* Graceful error recovery in the dev server
Move dev-container to dev
Update for the lockfile
Invalidate modules in an error state
Test invalidation of broken modules
Remove unused error state
Normalize for windows
try a larger timeout
Fixes build
just for testing
more testing
Keep it posix
fully posix
* Fix up Windows path for testing
* some debugging
* use posix join
* finally fixed
* Remove leftover debugging
* Reset the timeout
* Adding a changeset
2022-11-01 08:57:23 -04:00
Tony Sullivan
37d664e262
[@astrojs/image] web-streams-polyfill should be included as a prod dependency ( #5260 )
...
* fix: web-streams-polyfill should be included as a prod dependency
* chore: missed a lockfile change in the merge
2022-10-31 19:43:38 +00:00
Fred K. Bot
2765115457
[ci] update lockfile ( #5250 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-31 12:11:51 -04:00
Fred K. Bot
5016166acf
[ci] release ( #5239 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-31 10:21:09 -04:00
Matthew Phillips
7d678c9ed0
Upgrade compiler to latest ( #5243 )
...
* Upgrade compiler to latest
* Adding a changeset
* Update tests for IIFE wrapping
* Update .changeset/chilly-zoos-exist.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-10-28 16:13:31 -04:00
Nate Moore
641b6d7d58
feat(create-astro): add --fancy flag ( #5226 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-28 12:24:14 -05:00
Fred K. Bot
5be3fdec27
[ci] release ( #5215 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-28 12:14:55 -04:00
Bjorn Lu
c98c5aa0ae
Improve Solid libraries config handling ( #5208 )
2022-10-28 23:30:54 +08:00
Bjorn Lu
a609a8937f
Upgrade Vite to 3.2 ( #5212 )
2022-10-28 22:03:07 +08:00
Erika
7fc5d55952
Fix errors that are not instanceof Error crashing the dev server ( #5216 )
...
* Fix errors that are not instanceof Error crashing the dev server
* Update lockfile
* Fix import paths
2022-10-27 15:44:48 -03:00
Fred K. Bot
50841bb7fd
[ci] release ( #5199 )
...
* [ci] release
* Update packages/integrations/cloudflare/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-27 09:41:03 -04:00
Fred K. Bot
b9364ff8d9
[ci] update lockfile ( #5209 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-27 08:56:20 -04:00
Bjorn Lu
3d99fdd1e7
Improve Astro libraries config handling ( #5203 )
2022-10-27 14:54:41 +08:00
Nate Moore
0408376281
[Create Astro] Improved prompts, template handling, Houston ( #5088 )
...
* feat(create-astro): add houston, improve prompts
* refactor(create-astro): move to giget
* chore: add changeset
* chore: update lockfile
* test(create-astro): update tests to match new output
* chore: prefer named functions
* fix: update template prompt
* fix: update typescript message
* chore: add explicit --skip-houston flag
* test(create-astro): skip flaky typescript test
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-26 10:13:56 -05:00
Fred K. Bot
4efbfdd78d
[ci] release ( #5135 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-26 08:43:23 -04:00
Fred K. Bot
9630f683c4
[ci] update lockfile ( #5197 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-26 08:35:40 -04:00
Fred K. Bot
44fa495761
[ci] update lockfile ( #5187 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-25 10:50:11 -04:00
Michael Rienstra
13b8e78713
Uninstall only-allow
( #5184 )
2022-10-25 18:09:41 +08:00
花果山大圣
ca94e9ccc1
chore: only-allow pnpm ( #5131 )
2022-10-24 14:17:23 -04:00
Fred K. Bot
4ee49cffc1
[ci] update lockfile ( #5165 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-24 14:14:42 -04:00
Fred K. Bot
bf5ad72e81
[ci] update lockfile ( #5139 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-21 09:03:00 -05:00
Bjorn Lu
1c477dd8d9
Use new compiler resolvePath
option ( #5133 )
2022-10-21 14:08:07 +08:00
Fred K. Bot
643535dcd4
[ci] update lockfile ( #5132 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-20 17:13:24 -04:00
Fred K. Bot
863391f10e
[ci] release ( #5117 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-19 15:29:21 -04:00
Jelenkee
5a674f976d
Prefetch styles only once ( #5125 )
...
* test1
* fixed test
* removed console.log
* changeset
* pnpm-lock
* fixed test again
* fta
* fta2
* fix: wait for fetch
* -fixed test template
* empty
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: My Name <my.name@my-company.com>
2022-10-19 15:20:45 -04:00
Fred K. Bot
6e6a339e6d
[ci] update lockfile ( #5122 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-19 10:04:16 -04:00
Matthew Phillips
9745009ae0
Fixes index page with build.format=file ( #5123 )
...
* Fixes index page with build.format=file
* Adding a changeset
2022-10-19 10:00:52 -04:00
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
Fred K. Bot
c6cfc638fd
[ci] update lockfile ( #4885 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-27 08:39:39 -04:00
Ben Holmes
58a2dca228
Fix: correctly transform import.meta.env.*
in MDX ( #4858 )
...
* fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
* fix: escape import.meta.env in MDX compiler output
* test: env vars in mdx
* chore: changeset
* deps: estree-util-visit, @types/estree
* feat: inject import.meta.env w/ recma
* feat: pull importMetaEnv from vite + astro configs
* test: `import.meta.env` in JSX
* fix: lockfile
* chore: update changeset
* fix: remove stray stashed commit
2022-09-26 18:23:47 -04:00
Steven Yung
6fd00c4941
add double check on astro file return type to display more human readable error ( #4857 )
2022-09-26 14:13:25 -04:00
Fred K. Bot
e948f62bbc
[ci] update lockfile ( #4862 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-26 14:04:48 -04:00
Fred K. Bot
9077073fb4
[ci] update lockfile ( #4852 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-23 12:04:07 -04:00
Matthew Phillips
3389f0ce91
Prevent the root from being deleted during the build ( #4845 )
...
* Prevent the root from being deleted during the build
* Adding a changeset
2022-09-22 16:37:16 -04:00
Tony Sullivan
fad3867adb
Adding an optional image service based on Squoosh ( #4738 )
...
* WIP: adding a service built on @squoosh/lib
* WIP: investigating memory leaks in Squoosh
* WIP: vendoring Squoosh to work with our build
* chore: a bit of cleanup and a small perf gain
* removing a few unused deps
* fix: removing temp .only() in sharp test
* hooking up the last build steps to copy over .wasm files
* removing the duplicated lib/*.wasm files
* defaulting to Sharp for the initial @next release
* make sure pnpm always runs the postbuild script
* removing a few node dependencies
* refactor: move the copy .wasm build step out of the SSR bundle
* linter fixes
* fixing lock file
* chore: add TEMP changeset
* fix built wasm location for SSG builds
* Revert "defaulting to Sharp for the initial @next release"
This reverts commit 1a8d4f7f60
.
* removing sharp dependency
* Revert "fix built wasm location for SSG builds"
This reverts commit 446b80bb53
.
* chore: update lockfile
* fixing up image tests for the wasm loader
* updating the README for squoosh
* parallel wasm builds
* refactor: a bit of house keeping
* perf: allow a thread for each output encoding format
* fix: dev broke with the shift to wasm workers
* adds a new `astro:build:generated` hook for SSG builds
* fix: typo + calling cleanup methods in wasm codecs
* adding @astrojs/webapi for the TransformStream polyfill
* Revert "adding @astrojs/webapi for the TransformStream polyfill"
This reverts commit 39e5b845a5
.
* perf: using sharp for most of the CI tests
* chore: update lockfile
* removing hard-coded squoosh imports
* fix: adding sharp to rollup externals
* test: using dev for the squoosh tests
* fix: updating the build output dir for wasm filles in SSG builds
* updating the changeset with migration details
* Revert "adds a new `astro:build:generated` hook for SSG builds"
This reverts commit 59b5fec7be
.
* nit: adding comments for the wasm file copy
* chore: fix eslint warning
2022-09-22 19:48:14 +00:00
Bjorn Lu
6a1a17dd28
Add CSS @import
test ( #4454 )
...
* Add css hmr test
* Allow HMR in e2e tests
* Add changeset
* Actually fix test
* Fix lint
* Skip windows for now
2022-09-22 15:06:49 -04:00
Zicklag
5e4c5252bd
Http proxy for fetch ( #4676 )
...
* 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-09-22 14:47:06 -04:00
Michael Rienstra
7481ffda02
create-astro
: always create tsconfig.json
(#4810 )
...
* `create-astro`: always create `tsconfig.json`
Currently, we only make sure `tsconfig.json` exists when `strict` or `strictest` is selected. Both `default` & `optout` are intended to correspond to `base` -- and will do so for all [23 official templates](https://github.com/withastro/astro/tree/main/examples ), but not necessarily for third-party templates.
The [example command for installing a third-party template](https://github.com/withastro/astro/blob/a800bf7/packages/create-astro/README.md?plain=1#L31-L35 ) is (rather conveniently for the sake of this PR!) an example of a template without a `tsconfig.json` file, and installing it with the `default` ("Relaxed") Typescript option results in no `tsconfig.json` file, rather than a `tsconfig.json` file containing `{ "extends": "astro/tsconfigs/base" }` as would be expected.
This PR addresses this scenario.
It also explicitly sets the `tsconfig.json` file to `{ "extends": "astro/tsconfigs/base" }` when `default` (which I renamed to `base`, still presented to the user as "Relaxed") or `optout` is selected (`optout` has always printed a warning about the importance of `tsconfig.json` & `src/env.d.ts` but otherwise behaved identically to `default`). This is necessary in two scenarios:
1. When the `tsconfig.json` file was created by this script.
2. When it either didn't already include `"extends"`, or it extended a different config by default. For example, some third-party templates might default to `strict`, in which case I'm guessing we'd want to respect the user's choice and change that to `base`.
* update `del` 6.1.1 --> 7.0.0
* test: prevent excess writes
(without this it triggers many times)
* test: create-astro typescript prompt
* changeset
* fix: recursive `mkdirSync`
* test: longer timeout for `windows-latest` OS
(see if this fixes failing tests)
* better glob path creation, don't hardcode `/`
* test: longer timeout for windows-latest OS
(since I'm about to trigger another CI run by pushing a commit, might as well try this too)
* create-astro test: show last CLI output on timeout
* drop variable timeout
Typescript tests are slower than directory tests, but they are all usually less than 5000 ms. Less complexity, easier to maintain.
* DRY new error output
* Update lockfile
* Sync lockfile with main
* Update lockfile
Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-09-22 14:37:01 -04:00
梁峰宁
17dbc67018
Fix slashes for paths containing non-ASCII characters on Windows. ( #4712 )
...
* Fix slashes for paths containing non-ASCII characters on Windows.
* Add non-ASCII path test
* Fix slashes in pnpm-lock.yaml
2022-09-22 14:33:28 -04:00
Fred K. Bot
47d4165603
[ci] release ( #4833 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-22 11:04:45 -04:00
Fred K. Bot
49c6eb8b8a
[ci] update lockfile ( #4839 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-22 10:55:39 -04:00
Matthew Phillips
25a5b9a89a
Revert preact signals support ( #4843 )
...
* Revert "Update preact example to match @astrojs/preact ranges (#4840 )"
This reverts commit d650a1161a
.
* Revert "[ci] format"
This reverts commit e3c78c5b16
.
* Revert "Support shared signals in Preact islands (#4763 )"
This reverts commit 5e46be5468
.
2022-09-22 10:32:42 -04:00
Matthew Phillips
d650a1161a
Update preact example to match @astrojs/preact ranges ( #4840 )
2022-09-22 08:37:38 -04:00
Matthew Phillips
73f215df76
Allow passing fetch() Response to set:html ( #4832 )
...
* ALlow passing fetch() Response to set:html
* Only check for Symbol.iterator on objects
* oops
* Fix no-streaming case
* Remove old comment
2022-09-21 19:07:00 -04:00
董雨航
29b29e6a8a
Fix: Invalid hook call when user use export jsx function ( #4831 )
...
* update vite-jsx-plugin for export
* update vite-jsx-plugin for export
* update changeset level
Co-authored-by: Yuhang <dong_yu_hang@126.com>
2022-09-21 15:53:58 -04:00
Matthew Phillips
5e46be5468
Support shared signals in Preact islands ( #4763 )
...
* Support signals in Preact islands
* Add a changeset
* Only add signals if we need them
* Refactor signal logic into its own module
* Keep track of the signals used
2022-09-21 15:21:21 -04:00
Erika
baae1b3fd1
Update astro check
to latest version of the language server ( #4754 )
...
* Update to latest version of the language server
* Add changeset
2022-09-21 15:15:04 -03:00
Fred K. Bot
f366967cbc
[ci] update lockfile ( #4786 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-21 11:44:57 -04:00
Fred K. Bot
a08b178cdb
[ci] release ( #4811 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 15:15:54 -04:00
Elian ☕️
f2b515d0b4
Add Deno example ( #4641 )
...
* Add Deno example
* update lockfile
* update README
* update README
2022-09-20 08:29:33 -04:00
Kristoffer K
df54595a88
fix(markdown-remark): declare hast-util-to-html
as a dependency ( #4787 )
2022-09-20 17:21:54 +08:00
Fred K. Bot
8a1dd4b7e8
[ci] release ( #4790 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-19 14:44:49 -04:00
Bjorn Lu
cf5ed5f3a8
Update Vite 3.1.3 ( #4802 )
2022-09-19 11:46:05 -04:00
Fred K. Bot
1c36b0ec18
[ci] release ( #4781 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-16 14:13:02 -04:00
Fred K. Bot
48567639e0
[ci] update lockfile ( #4779 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-16 08:49:07 -04:00
Fred K. Bot
b2da8a124a
[ci] release ( #4761 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-15 14:05:25 -04:00
Matthew Phillips
9a59e24e02
Ensure before-hydration is only loaded when used ( #4768 )
...
* Ensure before-hydration is only loaded when used
* client fix + changeset
2022-09-15 12:33:52 -04:00
Fred K. Bot
798d36f349
[ci] update lockfile ( #4767 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-15 12:08:00 -04:00
Matthew Phillips
fc885eaea1
Read jsxImportSource from tsconfig ( #4759 )
...
* Read jsxImportSource from tsconfig
* Only read from tsconfig if not found earlier
2022-09-15 09:50:48 -04:00
Fred K. Bot
27aa9851d8
[ci] release ( #4750 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-14 16:06:23 -04:00
Peter Singh
664ebf449e
Update peer dep with Tailwindcss ( #4543 )
...
* Update peer dep
* Create leaders-of-the-free-world.md
Update: `@astrojs/tailwindcss` project with `tailwindcss` as a `peer-dependency`
* Removed tailwindcss as 'dependency'
* Update `pnpm-lock` with changes to deps
* Update .changeset/leaders-of-the-free-world.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-09-14 20:17:04 +01:00
Matthew Phillips
f1efd88dde
Compatiblity between hoisted scripts and tailwind integration ( #4755 )
...
* Compatiblity between hoisted scripts and tailwind integration
* Adds a changeset
2022-09-14 13:51:38 -04:00
Fred K. Bot
3372d757ca
[ci] update lockfile ( #4751 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-14 09:58:38 -04:00
Fred K. Bot
150cd8a582
[ci] release ( #4729 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-13 15:15:05 -04:00
Fred K. Bot
013d15554e
[ci] update lockfile ( #4735 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-13 12:09:55 -05:00
Fred K. Bot
56e225b41a
[ci] release ( #4707 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-12 15:08:39 -04:00
Matthew Phillips
0dba3b6f3f
Make error handling more resilient in the dev server ( #4723 )
...
* Make error handling more resilient in the dev server
* Better approach
* Add a changeset
2022-09-12 14:40:31 -04:00
Fred K. Bot
562147a5b4
[ci] update lockfile ( #4711 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-12 11:31:58 -04:00
Ben Holmes
b0ee81d0a7
Fix: Vue script setup
with other renderers applied ( #4706 )
...
* fix: add __ssrInlineRender to Vue check
* chore: remove console log
* test: vue builds with other renderer present
* chore: changeset
2022-09-09 19:09:59 -04:00
Fred K. Bot
100b8d0583
[ci] release ( #4702 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 17:18:03 -04:00
Fred K. Bot
2737cabd10
[ci] release ( #4698 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 14:58:03 -04:00
Matthew Phillips
b85d05a841
Fix client:only CSS missing from child packages ( #4699 )
2022-09-09 14:51:58 -04:00
Alan
255636cc7b
Add support for custom non-html route encoding ( #4549 )
...
* Add custom encoding support for non-html routes
* Add changeset
* Add tests for png and json routes
2022-09-09 11:58:24 -04:00
Ben Holmes
c706d845eb
No 👏 more 👏 server 👏 restarts 👏 on 👏 config 👏 changes ( #4578 )
...
* feat: restart config on add, remove, update
* fix: reload for root project configs only
* fix: throw when userConfigPath can't resolve
* chore: changeset
* wip: remove normalizePath before writeFile
* refactor: invalidateWithCache -> isConfigReload
* wip: mustExist?
* debug: config loaded successfully
* debug: more logs
* debug: MORE logging
* fix: normalize resolved config path
* debug: yet MORE logging
* chore: bump proload
* fix: use file path, not URL.pathname
* Revert "wip: mustExist?"
This reverts commit 8ca8662132532dcdc9fd120868e615ddc60f498e.
* chore: remove console log
* feat: cleanup restart message, better invalid config handling
* chore: update lockfile
* chore: fix types
* fix: throw helpful error when config does not exist
* docs: remove "restart dev server" from integrations
* docs: make sure to restart -> try restarting
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-09 11:58:16 -04:00
Fred K. Bot
b6dd8b595c
[ci] release ( #4680 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 10:56:48 -04:00
Fred K. Bot
d136864bff
[ci] update lockfile ( #4693 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-09 09:41:07 -04:00