Bjorn Lu
7f3b0398e0
Fix image test fail ( #5321 )
2022-11-08 08:31:05 -05: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
matthewp
a10cbec67e
[ci] format
2022-11-07 15:06:51 +00:00
Matthew Phillips
b2b291d291
Handle base
in adapters ( #5290 )
...
* Handle `base` in adapters
* Use removeBase in the test adapter
* Update packages/integrations/node/src/preview.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/integrations/cloudflare/src/server.advanced.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Include the subpath for links
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-11-07 10:05:12 -05: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
Johan Bergström
78145c7de5
[docs] cloudflare directory
nits ( #5278 )
2022-11-02 09:40:54 -03:00
Tony Sullivan
b6afe2c1db
updates @astrojs/prefetch package keywords ( #5271 )
2022-11-01 19:55:20 +00:00
Matthew Phillips
bb6e880009
Prevent tailwind config errors from crashing dev server ( #5270 )
...
* Prevent tailwind config errors from crashing dev server
* Adding a changeset
* Fix wrong type
2022-11-01 10:50:53 -04:00
matthewp
06c5d51b37
[ci] format
2022-11-01 12:44:07 +00:00
Robin Lindner
6ad91bd80d
Improve prefetch conditions ( #5244 )
...
* Improve prefetch
* Add changeset
2022-11-01 08:42:30 -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
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
Sarah Rainsberger
06d016a741
[docs] update image integration README ( #5231 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-28 16:17:56 -03:00
matthewp
ff4f45b8eb
[ci] format
2022-10-28 18:50:00 +00:00
Matthew Phillips
070da6a792
Throw error when trying to use the vercel static adapter in server mode ( #5241 )
2022-10-28 14:48:20 -04: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
matthewp
c6b149bc0a
[ci] format
2022-10-28 14:21:57 +00:00
Matthew Phillips
69a532ab60
Export Cloudflare runtime types ( #5230 )
...
* Export Cloudflare runtime types
* Adding a changeset
2022-10-28 10:20:20 -04:00
Happydev
0b12414315
remove unnecessary ReactDOM.renderToString
operation ( #5218 )
...
* remove useless `ReactDOM.renderToString` operation
* chore: add changeset
2022-10-27 21:05:18 -05:00
Dan Jutan
3c1af36f5e
reupload video with fixed audio ( #5174 )
2022-10-27 11:36:44 -04:00
Chris Swithinbank
10cb1405c5
Add missing language to code block ( #5210 )
2022-10-27 16:51:51 +02: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
bluwy
b48320d722
[ci] format
2022-10-27 09:19:16 +00:00
BeanWei
c203a5cc2f
Fix node standalone for windows system ( #5207 )
2022-10-27 17:17:38 +08:00
Dan Jutan
6e417a9636
Fix broken fragment link ( #5200 )
2022-10-27 15:58:54 +08:00
Sarah Rainsberger
707cac9fdf
[docs] Cloudflare integration README edits ( #5205 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-26 15:23:47 -03:00
Happydev
4a8a346ca9
feat: add support for other markdown file extensions ( #5164 )
...
* fix: add `.markdown ` file extension support
adds `.markdown` file extension support for markdown files
* test: add test case
* chore: adds changeset
* test: move test and fixture to relevant locations
* test: update test
* feat: add multiple markdown file extension support
* feat: add module declaration for different markdown file extensions
* refactor: markdown module declarations
for ease of TS refactoring
* fix: add .js extension to module imports
* test: update test
* chore: update changeset
* chore: update changeset
* test: add new test cases
* test: update tests
* fix: correct typo
2022-10-26 10:18:49 -04:00
Daniel
d151d9f3f2
enable access to cloudflare runtime ( #5103 )
...
* enable access to cloudflare runtime
* added get runtime api
added context to the runtime in "advanced" mode
* added typings and adjusted some return vars
* added default types
* added usage description to changeset and readme
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
2022-10-26 09:46:25 -04: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
Christian Fuss
e86723d931
[MDX] Improved docs for custom components ( #5190 )
...
* [MDX] Fixed minor formatting issues in README
- whitespace at line end
- blank lines around lists and code fences
- casing of internal references
* Detailed use of custom component with imported MDX
Incorporated all review comments from Sarah and Ben manually,
because the old branch would not pass the mergeability check.
2022-10-25 16:54:47 -04:00
Isaac McFadyen
a3d8615937
Added information about Pages flags ( #5188 )
2022-10-25 10:27:39 -04:00
Tony Sullivan
b77200f423
removes default content-visibility styles from image components ( #5180 )
2022-10-24 18:30:02 +00:00
Ben Holmes
308e565ad3
[MDX] Support recmaPlugins
config ( #5146 )
...
* feat: support recma plugins
* chore: add `test:match` to MDX
* chore: changeset
* docs: add recmaPlugins to README
2022-10-24 14:27:37 -04:00
Georgey
61f7e16491
Update README.md ( #5179 )
...
Hey there, so recently I was playing around the mdx, and wanted my users to navigate to a specific section in my article using the `id` tags. This was not happening when I was making custom components. When I pass the Astro props like above, the id was automatically getting passed for headings.
2022-10-24 14:22:34 -04:00
Juan Martín Seery
abf41da774
fix(vercel): Include all files inside dist/
instead of only entry.mjs
( #5175 )
2022-10-24 11:24:52 -03:00
Emmanuel Chucks
ed2dfdae5b
fix: updates <Picture /> to pass HTML attributes down to the <img /> element ( #5038 )
...
* fix: also pass attrs to underlying img
`class` for direct img styling, `width` & `height` to prevent layout shift, etc need to be passed to the underlying img tag to work.
* remove redundant attr from picture tag
* revert to previous commit
- seemed to break some tests
- can't deal with fixing that right now, maybe later
* only passing attributes to the img
* adding a note to the README
* chore: add changeset
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-20 19:42:36 +00: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
matthewp
d0c0a3b984
[ci] format
2022-10-19 19:23:39 +00: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
Juan Martín Seery
fad25aef2f
fix(vercel): fixed regression #5120 ( #5127 )
2022-10-19 14:24:26 -04:00
Nate Moore
850cc19fda
chore(vue): automatically add vuetify
to ssr.noExternal
( #5126 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-19 12:32:06 -05: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
matthewp
8cf692766b
[ci] format
2022-10-18 15:49:01 +00:00
Matthew Phillips
5c0c6e1ac6
Mark @astrojs/node to be noExternal ( #5114 )
...
* Mark @astrojs/node to be noExternal
* Adding a changeset
2022-10-18 11:47:18 -04:00
Rishi Raj Jain
df4d84610a
Fix port env in standalone mode ( #5111 )
2022-10-18 15:31:21 +08:00
JuanM04
dd354f83e8
[ci] format
2022-10-14 20:21:16 +00:00
Juan Martín Seery
cd25abae59
feat(vercel): includeFiles
and excludeFiles
( #5085 )
...
* refactor + include/excludeFiles
* Changeset
* Updated README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Missing .js
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-14 17:19:35 -03:00
Juan Martín Seery
f8198d2502
feat(vercel): Edge improvements ( #5086 )
...
* Added error on "output" == "static"
* Minify output
* Changeset
2022-10-14 17:17:13 -03:00
Erika
ddfbef5acb
Fix astro add
adding lines from extended configurations ( #5095 )
2022-10-14 15:16:41 -03:00
Bjorn Lu
0173c2b2df
Suppress warnings for solidjs dependency crawling ( #5089 )
2022-10-14 17:51:42 +08:00
Matthew Phillips
5fb7c9383a
Compat with Astro < 1.5 ( #5082 )
...
* Compat with Astro < 1.5
* Adding a changeset
2022-10-13 16:10:48 -04:00
Benjamin Geets
984bc7d0de
doc(node): fix import ( #5079 )
2022-10-13 15:30:31 -04:00
natemoo-re
4866ff882a
[ci] format
2022-10-13 19:17:42 +00: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
Bjorn Lu
3918787cb9
Support relative protocol image URL ( #5072 )
...
* Support relative protocol image URL
* Fix test
* Actually fix test
2022-10-13 11:59:38 -04:00
Bjorn Lu
93f72f90bc
Fix image external config in build ( #5073 )
2022-10-13 11:16:08 -04:00
matthewp
575bf9205e
[ci] format
2022-10-12 21:27:56 +00: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
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
Juan Martín Seery
a5e3ecc803
feat: restart dev server when tsconfig and tailwind config changes ( #4947 )
...
* First run
* Works with tailwind!
* Added TSConfig to watchlist
* Changeset
* Fix eslint
* Renamed `isConfigReload` --> `isRestart` and `injectWatchTarget` --> `addWatchFile`
* Refactored watchTargets to watchFiles
* Refactor createSettings
* addWatchFile now accepts URL
* Fix getViteConfig
* Expanded description of the change
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 11:36:33 -04:00
bluwy
5412c0c114
[ci] format
2022-10-12 14:34:35 +00:00
Bjorn Lu
f7fcdfe621
Support solidjs libraries ( #5059 )
2022-10-12 21:29:26 +08:00
Matthew Phillips
1e27992437
Update the Astro.cookies.set types to receive boolean and numbers ( #5047 )
2022-10-12 08:31:55 -04:00
Matthew Phillips
0f2a88ba5c
Allow class
to be passed into Svelte islands ( #5045 )
...
* Allow class to be passed into svelte component
* Adding a changeset
2022-10-10 15:19:18 -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
mandar1jn
c5484add6a
Corrected the getImage() paramaters ( #5040 )
2022-10-10 11:06:55 -04:00
Matthew Phillips
b1964e9e1b
Revert "Revert preact signals support ( #4843 )" ( #5015 )
...
This reverts commit 25a5b9a89a
.
2022-10-10 09:01:15 -04:00
matthewp
2314e48f03
[ci] format
2022-10-07 21:10:32 +00:00
Matthew Phillips
062335dbf7
Fix remote images in SSG mode ( #5021 )
2022-10-07 17:08:15 -04:00
matthewp
145e2c575a
[ci] format
2022-10-07 19:56:04 +00:00
Matthew Phillips
6efeaeb39e
Fix suppot for mui ( #5016 )
2022-10-07 15:54:25 -04: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
Oskar Baumann
92b27e9c92
[@astrojs/prefetch]: Prevent prefetching current page ( #5009 )
...
* Check that removal of url.hash breaks no tests
* test if status-quo is as expected
* Adapt tests to fail
* Adapt the shouldPreload function to skip same path
* Add changeset
2022-10-07 10:13:51 -04:00
matthewp
358ffb541d
[ci] format
2022-10-07 13:38:38 +00:00
Robin Lindner
5bbe385b21
Improve test infrastructure for integrations/deno ( #5005 )
...
* Improve test infrastructure for integrations/deno
* Add changeset
* Use declared type
* Remove changeset
* Upgrade deno version in -workflow
2022-10-07 09:36:24 -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
tony-sull
e71fc8b5fc
[ci] format
2022-10-06 15:55:06 +00:00
Oskar Baumann
a2b66c7549
[@astrojs/image]: Fix <Picture /> component with query string ( #4997 )
...
* remove query params from file extension
* Revert changes to make change as small as possible
* moving the removeQueryParam check to basename()
* chore: adding a changeset
* adding SSR test coverage for new picture test cases
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-06 15:53:11 +00:00
Dan Jutan
0bd6dddfcf
Docs: add yarn workaround to node integration docs ( #4978 )
...
* Add yarn workaround to troubleshooting section
* npm can also cause this error
2022-10-06 10:37:58 -04:00
João Araújo
50a397c4ba
Update @builder.io/partytown dependency ( #4989 )
2022-10-06 10:33:01 -04:00
matthewp
2459426e6a
[ci] format
2022-10-06 14:30:50 +00:00
Daniel
2dc582ac5e
adjusting cloudflare adapter and solid ssr to work together ( #4888 )
...
* adjusting cloudflare adapter (respecting user config)
define better solid ssr config
* only inline the framework
this needs to happen for worker build in order to have the correct build mode for the framework, which needs the nodejs no matter if it is for node or the browser.
Co-authored-by: AirBorne04 <daniel@floatingpixels.com>
2022-10-06 10:28:47 -04:00
Matthew Phillips
e5b526c3a5
Document Lit's limitations in SSR ( #4999 )
2022-10-06 10:18:08 -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
Bjorn Lu
a59731995b
Suppress eslint warnings ( #4953 )
2022-10-03 23:37:21 +08:00
Fred K. Bot
16688162b4
[ci] release ( #4945 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-01 08:11:59 -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
Chris Swithinbank
f9261ddd00
Fix missing language tag on README code block ( #4940 )
2022-10-01 00:29:11 +02: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
tony-sull
7fdd494236
[ci] format
2022-09-30 17:29:32 +00:00
Tony Sullivan
64a1d712ef
[@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props ( #4933 )
...
* fix: return the original file in dev if no image transforms were used
* chore: add changeset
2022-09-30 17:27:56 +00:00
tony-sull
849fefd8b0
[ci] format
2022-09-29 21:22:49 +00: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
bluwy
670d4bed45
[ci] format
2022-09-29 03:28:21 +00:00
Bjorn Lu
fd9d323a68
Support Vue JSX ( #4897 )
...
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-09-29 11:25:45 +08:00
matthewp
55a1b5bb58
[ci] format
2022-09-28 20:57:35 +00: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
Tony Sullivan
ec55745ae5
Fix: let Squoosh default image quality internally ( #4906 )
...
* removes our quality defaults, allowing Squoosh format-specific defaults to be used
* chore: add changeset
2022-09-28 20:55:09 +00:00
stijlmassi
9103ac57fb
Update README.md ( #4898 )
...
* Update README.md
In the astro.config.mjs: defineConfig() was missing.
* Update packages/integrations/tailwind/README.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2022-09-28 13:36:49 -03:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist ( #4842 )
2022-09-28 23:13:33 +08:00
tweenietomatoes
649e9080cb
fixed typing ( #4893 )
2022-09-27 14:57:11 -03: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
Deanmv
883ce82a11
docs: Fix links to Tailwind examples ( #4883 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-27 09:52:47 -03:00
Bjorn Lu
fb91d04a5c
Set SSR target webworker for Vercel edge ( #4884 )
2022-09-27 08:40:10 -04:00
bholmesdev
1dc651d74e
[ci] format
2022-09-26 22:25:48 +00: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
Jake Strawn
5fc73ba02c
docs: Standardize common integration READMEs ( #4874 )
2022-09-26 16:14:34 +02:00
Jake Strawn
b0f6216367
docs: Update references to support channel in Discord. ( #4872 )
2022-09-26 21:02:05 +08:00
Gerard de Brieder
944d24e9ee
Update Picture.astro so it no longer passes height and width attributes ( #4797 )
...
* Update Picture.astro
the image variable of getPicture contains a width and height property, which we usually require. In this case, the image is wrapped in a picture tag and the img tag itself should not have a width and height property as this will break the responsiveness of the image provided by the picture tag.
* added changeset
* fixing SSG picture tests that were expecting img dimensions
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-22 21:01:38 +00:00
tony-sull
426f3bb40f
[ci] format
2022-09-22 19:50:47 +00: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
Ben Holmes
e5f71142eb
docs: add MDXLayoutProps to README ( #4700 )
...
* docs: add MDXLayoutProps to README
* chore: changeset
* nit: remove "if you understand this diff"
* nit: AdD tYpE sAfEtY
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/mdx/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-22 14:35:37 -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
Michael Rienstra
b0efb83252
docs: integrations: yarn & pnpm ( #4836 )
2022-09-22 08:16:02 -03:00
matthewp
e3c78c5b16
[ci] format
2022-09-21 19:23:58 +00: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
Fred K. Bot
5684a016bb
[ci] release ( #4823 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 16:55:48 -04:00
tony-sull
b2c9059ed8
[ci] format
2022-09-20 20:28:39 +00:00
Oussama Bennaci
ea37de86e4
[@astrojs/image] flatten background only if alpha channel isn't supported ( #4800 )
...
* Use sharp flatten only when format doesnt support alpha
* Allow rgba for background prop
* Add changeset
* Adjust doc
* Fix tests
2022-09-20 20:25:45 +00:00
Fred K. Bot
a76b0aa27c
[ci] release ( #4822 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 16:05:13 -04:00
matthewp
0f4f514fd9
[ci] format
2022-09-20 19:34:51 +00:00
Matthew Phillips
9bfbd63f05
Fixes processing of images in Netlify functions ( #4820 )
2022-09-20 15:33:01 -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
matthewp
666d98e3ec
[ci] format
2022-09-20 16:39:24 +00:00
Daniel
ce0b92ba73
update cloudflare esbuild config (fixing solid ssr) ( #4815 )
...
* fixing esbuild platform setting, to enable solid build
* added changeset
* changed change to major
Co-authored-by: AirBorne04 <daniel@floatingpixels.com>
2022-09-20 12:36:58 -04:00
matthewp
91568bb055
[ci] format
2022-09-20 13:40:04 +00:00
Matthew Phillips
8d059faaed
Prevent errors in React components from crashing the dev server ( #4816 )
...
* Prevent errors in React components from crashing the dev server
* Add a changeset
* Fix test when running in the build
2022-09-20 09:38:17 -04:00
Aditya Jain
620f1d9e1e
fixed broken emoji for in "Getting started" section of integration docs ( #4795 )
...
* fixed broken emoji for "nest frameworks together"
* Add missing whitespace
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2022-09-19 12:58:06 -03: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
Chris Swithinbank
0398efa39f
Tailwind v2 docs ( #4758 )
...
* Add migration notes to Tailwind changelog
* Include `tailwindcss` in manual install steps
* add changeset
2022-09-14 22:43:10 +02: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
matthewp
04daafbbdf
[ci] format
2022-09-14 19:44:27 +00:00
Matthew Phillips
c271ed35ee
Only pass through children prop if there are children ( #4756 )
2022-09-14 15:42:38 -04:00
aFuzzyBear
098c76717a
[ci] format
2022-09-14 19:19:56 +00: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
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
Nate Moore
8cfb3fb535
Migrate examples to type: module
( #4662 )
...
* chore: move examples to type module
* chore: prefer astro.config.mjs to astro.config.js
* chore: reference CJS config file
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-13 14:02:57 -05:00
Ben Holmes
4bc70f3545
Fix route validation for Netlify Edge ( #4722 )
...
* fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
* chore: changeset
2022-09-12 19:33:44 -04: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
Juan Martín Seery
16113c3ae2
[vercel] Use Edge Functions instead of Edge Middlewares ( #4713 )
...
* Don't use middleware
* changeset
* breaking change
2022-09-12 14:40:48 -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
tony-sull
f226b677b8
[ci] format
2022-09-09 20:16:27 +00:00
Oussama Bennaci
1e5d8ba9af
[@astrojs/image] support additional resize options ( #4438 )
...
* working draft
* more sharp params
* add changeset
* fix typing
* wip
* add missing docblocks
* update lock file
* remove enlargement and reduction resize options
* add tests
* Add docs
* support crop options in pictures
* cleanup
* define crop types in docs
* cleanup
* remove kernel option
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-09 20:13:59 +00:00
Lloyd Atkinson
eb4f6faee6
docs: add section on .mdx file support in VS Code ( #4694 )
...
* docs: add section on .mdx file support in VS Code
* Update packages/integrations/mdx/README.md
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-09 13:13:09 -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
Happydev
4753d21949
docs: correct typo in @astrojs/node
integration ( #4688 )
2022-09-08 23:01:27 -04:00
Tony Sullivan
4c05c65a3d
[@astrojs/image] Build all optimized images to dist/assets ( #4678 )
...
* fix: build all optimized images to dist/assets
* chore: add changeset
2022-09-08 18:41:17 +00:00
matthewp
ef7ba4507a
[ci] format
2022-09-08 16:32:36 +00:00
Matthew Phillips
5986517b4f
Make React integration work with Deno ( #4679 )
...
* Remove removed packages folder
* fix
* Add a changeset
2022-09-08 12:30:49 -04:00
Benjamin Holmes
9290b24143
Fix component frameworks on Vercel Edge ( #4667 )
...
* fix: use while instead of "for await" in react integration
* fix: cast HTML to string to fix other integrations
* docs: add comment on encode(String(html))
* chore: changeset
Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-09-07 19:41:37 -04:00
Fred K. Bot
f165353e7a
[ci] release ( #4657 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-07 21:29:44 +00:00
Elian ☕️
808cfcdb1c
Docs Typo fixes ( #4664 )
2022-09-07 17:05:13 -03:00
natemoo-re
c01194b9d8
[ci] format
2022-09-07 18:50:48 +00:00
Marvin Hagemeister
999250d651
Automatically set up Preact DevTools in dev mode ( #4515 )
2022-09-07 13:49:07 -05:00
tony-sull
b5a91d40b7
[ci] format
2022-09-07 17:26:36 +00:00
Valentin Bersier
e4348a4eb4
@astrojs/image: add a background
option/prop to replace the alpha layer ( #4642 )
...
* Added `background` option and prop.
This optional color specifies which background to use when removing the
alpha channel if the output format doesn't support transparency.
* Modified existing tests
* Fixed wrong dimensions in tests
* Fixing a few instances of jpeg vs jpg
* Added color checking
* working on the tests
* tests are now passing
* Adding tests
* Added tests for background color
* no need to test with subpath
* Added fixture
* Renamed test fixture for background-color
* skipping test until fixed
* Typo
* Working on tests
* tests are passing
* Updated readme and added changeset
* Updated lockfile
* Updated lockfile
* Updated lockfile
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-07 17:22:11 +00:00
tony-sull
c080438b89
[ci] format
2022-09-07 13:57:52 +00:00
Tony Sullivan
db70afdcd5
[@astrojs/image] Fixes a regression in remote image filenames ( #4649 )
...
* fixes a bug in filename creation for remote images without a file extension
* chore: add changeset
2022-09-07 13:56:07 +00:00
Tibor Schiemann
d693e365ca
Integrations: Fix NPM instructions to use npx astro add
again ( #4653 )
...
* Fix install instructions to use `npx astro` again
* Replace joyful hiccups with regular issues :)
2022-09-07 12:08:58 +02:00
Fred K. Bot
481e0d1d8a
[ci] release ( #4620 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-06 15:40:15 -04:00
matthewp
91a9cb0764
[ci] format
2022-09-06 15:12:47 +00:00
Matthew Phillips
f08ca005e2
Add vueperslides to noExternal in vue integration ( #4639 )
2022-09-06 11:11:01 -04:00
tony-sull
29f044267f
[ci] format
2022-09-06 14:32:19 +00:00
Alan
494c2b8353
Parallelize @astrojs/image transforms ( #4626 )
2022-09-06 14:29:20 +00:00
Sarah Rainsberger
5231ec05d2
[docs] update adapter READMESs to include astro add ( #4595 )
...
* update adapter READMES to include astro add
* missing space
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-06 08:53:47 -04:00
Mohammed Elhaouari
63cd9d89e8
Fix AlpineJS homepage link ( #4622 )
...
* Update AlpineJS homepage
* Add changeset
2022-09-04 15:53:54 +02:00
Yan Thomas
893a02a1bb
Add deploy guides links to integrations READMEs ( #4612 )
2022-09-03 17:23:44 -03:00
Vinício Augusto
4d02f7775c
Typo in alpinejs integration README.md ( #4611 )
2022-09-03 21:46:51 +02:00
Fred K. Bot
592de3d703
[ci] release ( #4589 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-02 16:13:04 -04:00
Chris Swithinbank
eb4eebde9e
Fix image integration README ( #4599 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-02 17:05:04 +02:00
tony-sull
c62257f0b0
[ci] format
2022-09-01 21:26:15 +00:00
Jan Müller
72c760e9b8
feat(image): throw if alt text is missing ( #4511 )
...
* feat(image): throw if no `alt` is provided
* chore: add changeset
* docs(image): update README
* updated alt text stuff throughout
* fixing with-mdx test suite
* warn for missing alt text, will throw an error in a future release
* final README tweaks
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-01 21:24:07 +00:00
tony-sull
df402ddc93
[ci] format
2022-09-01 20:34:20 +00:00
Tony Sullivan
56f83be92a
Fix: [@astrojs/image] handle filenames with spaces ( #4593 )
...
* fix: decode file URLs to handle filenames with spaces
* chore: add changeset
2022-09-01 20:31:53 +00:00
Ben Holmes
db38f61b2b
[MDX] Fix: GFM and Smartypants missing by default ( #4588 )
...
* fix: apply Astro defaults on empty md config
* chore: changeset
2022-09-01 12:11:13 -04:00
tony-sull
ef0ed38339
[ci] format
2022-09-01 15:01:07 +00:00
Tony Sullivan
aeae89d6ae
refactor: Cleaning up all uses of hard-coded hashes in image tests ( #4579 )
2022-09-01 14:58:57 +00:00
Fred K. Bot
005d53145f
[ci] release ( #4555 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-31 18:03:27 -04:00
matthewp
fa48d01109
[ci] format
2022-08-31 20:14:25 +00:00
Zicklag
294122b4e4
Deno custom 404 pages ( #4562 )
...
* Add Failing Test For Deno Custom 404 Pages
* Make Deno SSR Serve Custom 404 Pages
2022-08-31 16:11:46 -04:00
tony-sull
6f1fbd8be0
[ci] format
2022-08-30 21:12:45 +00:00
Tony Sullivan
00c605ce35
Image integration refactor and cleanup ( #4482 )
...
* WIP: simplifying the use of `fs` vs. the vite plugin
* removing a few node deps (etag and node:path)
* adding ts defs for sharp
* using the same mime package as astro's core App
* fixing file URL support in windows
* using file URLs when loading local image metadata
* fixing a bug in the etag helper
* Windows compat
* splitting out dev & build tests
* why do these suites fail in parallel?
* one last windows compat case
* Adding tests for treating /public images the same as remote URLs
* a couple fixes for Astro's `base` config
* adding base path tests for SSR
* fixing a bad merge, lost the kleur dependency
* adding a test suite for images + MDX
* chore: add changeset
* simplifying the with-mdx tests
* bugfix: don't duplicate the period when using existing file extensions
* let Vite cache the image loader service
* adding some docs for using /public images
* fixing changeset
* Update packages/integrations/image/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/image/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: minor README syntax tweaks
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 21:09:44 +00:00
Tony Sullivan
7429664566
Adds the "withastro" keyword to adapter packages ( #4558 )
...
* adds the "withastro" keyword to adapter packages
* chore: add changeset
2022-08-30 20:19:19 +00:00
bholmesdev
385a8f052f
[ci] format
2022-08-30 17:41:06 +00:00
Ben Holmes
8f8dff4d33
[MDX] Extend Markdown plugin config, with customization options ( #4504 )
...
* test: new combined remark / rehype suite
* fix: use with-plugins fixture
* chore: remove old mdx plugin tests
* docs: add JS docs
* docs: update README with thorough example
* chore: changeset
* fix: add "extends" error message
* fix: ignore string-based plugins in md
* feat: add warning log for string plugins
* docs: highlight `extendPlugins`
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: highlight "extendPlugins"
* fix: md plugins type check
* chore: "defaults" -> "astroDefaults"
* nit: info log when inheriting markdown plugins
* refactor: one big log on new behavior
* dan: dan nit
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 13:38:35 -04:00
Fred K. Bot
e905784bf1
[ci] release ( #4520 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-30 12:45:04 -04:00
Kyle F Butts
8504cd79b7
Add custom components to mdx integration guide ( #4530 )
...
* Add custom components to mdx integration guide
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Incorporate Sarah and Ben's Feedback
* Fix what would be an ugly background lol
* Sarah taking liberty of removing double text
* Add changeset
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 11:55:52 -04:00
matthewp
65cc3f64f6
[ci] format
2022-08-30 15:47:42 +00:00
Matthew Phillips
2f05f5d307
Include trailingSlash in astro:build:done hook ( #4553 )
2022-08-30 11:45:16 -04:00
Sarah Rainsberger
00ea2267e2
[docs] remove confusing note added in wrong place ( #4551 )
2022-08-30 08:23:24 -04:00
Bjorn Lu
9adb7cca33
Vite ignore unknown import ( #4527 )
2022-08-30 15:25:34 +08:00
Matthew Phillips
1222ab9540
Configures Lit to work with its decorators ( #4503 )
...
* Configures Lit to work with its decorators
* Remove comment
2022-08-29 14:06:36 -04:00
Erika
b8a80bc42d
Fix image integration's types not referring to the base types for Vite client types ( #4534 )
2022-08-29 12:06:41 -03:00
Bjorn Lu
fc32e2d94c
Fix @astrojs/node
typo ( #4525 )
2022-08-29 17:02:44 +08:00
Tim Rinkel
9389517f63
Update README.md ( #4517 )
2022-08-29 16:42:27 +08:00
Juan Martín Seery
a2e8e76c30
chore: updated shiki ( #4519 )
...
* Upgraded shiki
* Use setColorReplacements
* no-shadow
* Changeset
2022-08-28 08:23:37 -03:00
Fred K. Bot
d85133393a
[ci] release ( #4502 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 13:03:04 -07:00
Fred K. Schott
8d6978b8d0
Update README.md
2022-08-26 11:50:30 -07:00
Mohammed Elhaouari
17e2178568
Add renderer
keyword to alpinejs integration ( #4501 )
...
* Add renderer keyword to alpinejs
* Add changeset
2022-08-26 11:50:11 -07:00
Fred K. Bot
ff03313848
[ci] release ( #4495 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 13:01:30 -04:00
Abdullah Mzaien
824a2adddd
chore: update to solid 1.5 ( #4496 )
2022-08-26 11:11:57 -04:00
Mark Spratt
7efbda97af
Edit Alpinejs content generation for Docs ( #4466 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-26 10:14:40 -03:00
Bjorn Lu
ba697da4c2
Note private env var handling with cloudflare builds ( #4490 )
2022-08-26 09:03:22 -04:00
Tc001
ca24a60b13
Earlier import snippet for @astrojs/image
( #4484 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-25 19:39:22 -03:00
Fred K. Bot
7960fb80a1
[ci] release (next) ( #4480 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25 17:27:35 -04:00
Ben Holmes
d4cd7a59fd
Update Markdown type signature to match behavior ( #4423 )
...
* feat: "file" and "url" top-level layout props
* test: markdown file and url
* test: mdx file and url
* feat: update MarkdownInstance + JSDoc improvements
* chore: changeset
2022-08-25 17:08:43 -04:00
matthewp
d48de5a06f
[ci] format
2022-08-25 18:53:12 +00:00
Sanjaiyan Parthipan
3b5f34d606
Adding time-slicing with startTransition
to prevent hydration from blocking the main thread for too long for those users who immediately scroll. ( #4313 )
...
* Adding timeslicing for hydrating :)
* update
2022-08-25 14:50:45 -04:00
Adam
62d98e4af3
Update Filter Section ( #4455 )
...
Add brief explanation and example of filtering multiple pages.
2022-08-24 16:14:50 -04:00
Fred K. Bot
5427e89491
[ci] release ( #4431 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23 15:27:10 -04:00
matthewp
77f9afa44a
[ci] format
2022-08-23 17:28:38 +00:00
Ben Holmes
adb2079796
Fix MDX style imports when layout is not applied ( #4443 )
...
* fix: add "astro.needsHeadRendering" to MDX
* test: style imports in pages without layout
* chore: changeset
2022-08-23 13:25:35 -04:00
Ben Holmes
a2414bf59e
Improve MDX glob perf - move Layout to async import ( #4428 )
...
* fix: move layout to async import
* chore: changeset
* docs: clarify async import
2022-08-22 18:18:30 -04:00
Fred K. Bot
c8d0fa4c4e
[ci] release ( #4425 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 16:53:44 -04:00
matthewp
a20e811795
[ci] format
2022-08-22 19:49:45 +00:00
Fred K. Bot
457e559cd5
[ci] release ( #4363 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 15:46:46 -04:00
Tony Sullivan
579e2daf8d
[@astrojs/image] Handle query params in remote image URLs during SSG builds ( #4338 )
...
* fix: SSG builds should remove query params when building local image files
* chore: add changeset
* handling an edge case related to stripping extensions from a filename
2022-08-22 19:45:34 +00:00
tony-sull
2c40fba0c8
[ci] format
2022-08-22 19:15:35 +00:00
Tony Sullivan
c4af8723bd
[@astrojs/image] adds a logger to the the image integration ( #4342 )
...
* WIP: adding a console logger that respect vite.logLevel
* adds an optional prefix for messages
* remove temporary debug log
* typo fix
* cleaning up log syntax
* fixing logger whitespace
* adding README docs
* test: disable integration logging in tests
* chore: add changeset
2022-08-22 19:13:19 +00:00
Nu11Terminator
4ac2718883
fix: vercel static export path ( #4370 )
...
This enables the use of `{ output: static, adapter: vercelStaticAdapter}`
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-22 14:50:15 -04:00
Fred K. Schott
7310e8a178
add an alpine integration and update example ( #4406 )
2022-08-22 14:25:57 -04:00
sergix
dd52b2192d
Include note about Tailwind per-component errors using '@apply' ( #4353 )
...
* add: @apply exceptions for component frameworks
Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. #2660 , #3073
* Update README.md
* Update README.md
2022-08-22 14:18:17 -04:00
EBits00
8f20b18875
Updated Express code to serve assets ( #4402 )
...
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
2022-08-22 12:33:54 -04:00
Maik Jablonski
8264f85f1d
Running Astro as SSG on Vercel without adapter ( #4299 )
...
Fixes the 404 handling.
2022-08-22 11:47:14 -04:00
Ben Holmes
7820096e1b
fix: correctly add react-dom
alias to Vercel edge ( #4421 )
...
* fix: correctly add react-dom alias to vercel edge
* chore: changeset
2022-08-22 11:46:02 -04:00
Fred K. Bot
1de82f0f78
[ci] release ( #4333 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-16 10:14:44 -04:00
Patrick Smith
45fdbc4650
Don’t use Buffer.byteLength() as Deno can’t use it ( #4324 )
...
* Don’t use Buffer.byteLength() as Deno can’t use it
* Add changeset
* Add tests for Markdown & MDX with Deno
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-16 10:08:40 -04:00
Chris Swithinbank
e2b3f8a3f4
integrations: update recommended method for running astro add ( #4340 )
2022-08-16 10:31:14 +02:00
bholmesdev
2edcb30c3d
[ci] format
2022-08-15 14:45:15 +00:00
Ben Holmes
f1a52c18af
[MDX] Switch from Shiki Twoslash -> Astro Markdown highlighter ( #4292 )
...
* freat: twoslash -> Astro shiki parser
* test: update shiki style check
* feat: always apply rehypeRaw
* deps: move remark-shiki-twoslash to dev
* test: add shiki-twoslash test
* docs: update readme with twoslash example
* chore: changeset
* nit: remove "describe('disabled')"
2022-08-15 10:43:12 -04:00
MoustaphaDev
3889a7fa75
docs: fixed typo in the tailwind integration docs ( #4308 )
...
## Changes
Corrected "aother" with "another" in (the tailwind integration docs)[https://docs.astro.build/en/guides/integrations-guide/tailwind/ ].
## Testing
No tests because this pr is just fixing a typo in the docs
## Docs
Well this PR fixes a typo in the docs
<!-- https://github.com/withastro/docs -->
2022-08-15 09:20:39 -05:00
Stinggyray
6227eaf9a2
Update README.md ( #4326 )
...
Removed a duplicate line.
2022-08-15 09:20:22 -05:00
Yash
63758ae35f
docs: specify lang for a codeblock ( #4314 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2022-08-15 15:34:45 +08:00
mundry
2bb4e3b812
add missing word in image integration-guide ( #4303 )
...
Co-authored-by: mundry <mundry@users.noreply.github.com>
2022-08-13 13:41:15 -03:00
Fred K. Bot
b1bd52e9ea
[ci] release ( #4290 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-12 17:40:47 -05:00
bholmesdev
695e9b34da
[ci] format
2022-08-12 22:19:32 +00:00
Ben Holmes
f7afdb889f
[MDX] Fix remaining inconsistencies with Markdown ( #4268 )
...
* feat: add "file" and "url" to layout props
* feat: add rawContent and compiledContent errs
* fix: add "file" and "url" to frontmatter
* fix: add separate MDX instance type
* types: add MarkdownLayoutProps and MDXLayoutProps
* refactor: simplify MDXLayoutProps
* test: pass file and url to layout
* test: glob components with .default and Content
* feat: add <Content /> to MDX
* feat: declare MDX type module
* fix: [MD] move file and url to layout props only
* chore: changeset
* chore: bump MDX to "minor" with more details
* refactor: remove "file" + "url" top-level props (save for minor)
* revert: MDInstance type def updates (save for minor)
* fix: MDXInstance "default" + "content" types
* fix: bad test layout
* chore: remove getHeaders fro *.mdx
2022-08-12 18:17:26 -04:00
natemoo-re
437bf73f26
[ci] format
2022-08-12 22:03:24 +00:00
Nate Moore
24d2f7a6e6
Fix namespaced component usage in MDX ( #4272 )
...
* fix(#4209 ): handle namespaced JSX and MDX
* chore: add changeset
* chore: update lockfile
* fix: throw error when componentExport is unresolved
* chore: bump compiler
* chore: bump compiler
* chore: revert example changes
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-12 17:01:05 -05:00
Fred K. Bot
bb3d7d4f39
[ci] release ( #4249 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-11 16:50:59 -07:00
Bjorn Lu
5b1facfe29
Clarify preact/compat integration docs ( #4267 )
...
* Clarify preact/compat integration
* Create long-lobsters-ring.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-11 16:34:07 -07:00
FredKSchott
a70d05bd44
[ci] format
2022-08-11 23:29:45 +00:00
Matthew Phillips
d3d09a2c9f
Add 404 routing logic to Netlify redirects file ( #4274 )
...
* Add 404 routing logic to Netlify redirects file
* changeset
2022-08-11 16:26:32 -07:00
FredKSchott
be6470688f
[ci] format
2022-08-11 23:26:19 +00:00
Fred K. Schott
42fd6936cd
fix astro image bad imports ( #4279 )
2022-08-11 16:24:17 -07:00
Ben Holmes
4116128082
[MDX] Pass injected frontmatter to layouts ( #4255 )
...
* fix: move layout generation to remark plugin
* test: frontmatter injection in layout
* chore: changeset
* fix: remove content fallback
2022-08-11 12:36:34 -05:00
Caleb Jasik
5afb5ef7af
Fix spelling mistake in @astrojs/image docs ( #4256 )
...
`intergration` -> `integration`
2022-08-11 11:07:11 -05:00
natemoo-re
9f6d8eb625
[ci] format
2022-08-11 16:06:04 +00:00
Maik Jablonski
ceb0eef944
Use passive listeners in prefetch ( #4207 )
...
* Use passive listeners in prefetch
Without passive=true, Lighthouse complains about not using passive listeners to improve scrolling performance.
* Create cold-shoes-drum.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-11 11:04:10 -05:00
Jakob Helgesson
869d009359
Mdx/plugin unshift ( #4248 )
...
* Add builtin rehype plugin to beginning
* Add Changeset
* Do the same to rehypeRaw for consistency
2022-08-10 17:10:06 -04:00
Fred K. Bot
1ee08baf91
[ci] release ( #4228 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-10 16:54:12 -04:00
Ben Holmes
9d5ab55086
[MDX] Astro.props.content -> frontmatter ( #4237 )
...
* docs: MDX Astro.props.content -> frontmatter
* chore: changeset
2022-08-10 15:43:35 -04:00
natemoo-re
d186c406b9
[ci] format
2022-08-10 19:13:28 +00:00
Obinna Ekwuno
bfbd32588f
[Docs]: Update Cloudflare README ( #4232 )
...
* update cloudflare readme
* Create modern-papayas-rhyme.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-10 14:11:19 -05:00
Matthew Phillips
0af5aa7a3b
Fix solid recursion bug ( #4215 )
...
* Fix solid recursion bug
* Fix types
* Remove debug code
* Remove logging from e2e test
2022-08-10 15:10:31 -04:00
StefanGussner
58941e93c3
Update code samples to match release version ( #4241 )
...
As I learned from a support Thread on Discord, the tagName convention was dropped during the beta period. Instead you need to export the class and use it in astro file.
I updated the code samples on this page accordingly.
2022-08-10 14:08:12 -05:00
Bjorn Lu
f8e3853394
Fix preact compat support for libraries ( #4213 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-10 22:22:10 +08:00
Fred K. Bot
74528a1973
[ci] release ( #4224 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-09 17:31:06 -07:00
Alexandre Desroches
92aa6a75ea
Updated @astrojs/image README.md missing formats prop as subtitle ( #4221 )
...
* Update README.md
Added missing subtitle for `formats` prop of the <Picture> component
* Create fast-drinks-visit.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-09 16:29:07 -07:00
Nate Moore
9f067dca27
Astro 1.0.0 ( #4214 )
...
* 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-09 11:10:25 -05:00
Sarah Rainsberger
63d43e1754
remove errant remaining details tags ( #4212 )
2022-08-09 09:09:16 -05:00
Fred K. Bot
4d29163d11
[ci] release ( #4197 )
...
* [ci] release
* Update CHANGELOG.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 18:10:55 -05:00
natemoo-re
7eb54fcb4f
[ci] format
2022-08-08 22:35:40 +00:00
Ben Holmes
4c2ca5352d
[MDX] Remove frontmatterOptions
( #4204 )
...
* feat: remove frontmatterOptions config
* test: remove custom frontmatter suite
* deps: remove remark-mdx-frontmatter
* docs: remove `frontmatterOptions` config
* chore: changeset
2022-08-08 17:33:35 -05:00
Erika
36cb503c8a
Update @astrojs/image README with mention of the new env.d.ts file ( #4206 )
2022-08-08 17:27:48 -04:00
Ben Holmes
6c9736cbc9
[MDX] Add frontmatter injection to README ( #4205 )
...
* docs: remove `remark-mdx-frontmatter` from README
* docs: remove remark-mdx-frontmatter link
* docs: MDX frontmatter injection
* chore: changeset
2022-08-08 17:16:06 -04:00
natemoo-re
d3ceb617a1
[ci] format
2022-08-08 17:12:48 +00:00
Richard Cooke
f4c571bdb0
feat: add support to @astrojs/cloudflare
directory deploy mode ( #3806 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 12:10:48 -05:00
Sarah Rainsberger
9894b3dcde
remove details tags from integration READMEs ( #4198 )
2022-08-08 12:07:38 -05:00
oliverpool
ad3d786e1f
tailwind: link to import doc for applyBaseStyles ( #4193 )
2022-08-08 09:38:28 -05:00
Fred K. Bot
4e4061f485
[ci] release ( #4159 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05 21:48:35 -07:00
FredKSchott
4de35f3b70
[ci] format
2022-08-06 04:39:26 +00:00
Ben Holmes
77cede720b
[MDX] Prevent overriding collect-headings
plugin ( #4181 )
...
* fix: make rehypeCollectHeadings a required plugin
* docs: update README on rehypePlugins
* test: remove collect-headings override test
* docs: remove extends from rehype docs
* chore: changeset
2022-08-05 20:51:38 -07:00
Corbin Crutchley
97cf0cd893
fix: export all of @astrojs/image dist ( #4146 )
...
* fix: export all of @astrojs/image dist
* chore: add changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 19:00:35 -05:00
natemoo-re
367cdd9ed8
[ci] format
2022-08-05 23:58:09 +00:00
Corbin Crutchley
c039ea93a1
Fix external astro image usage ( #4147 )
...
* fix: enable @astrojs/image to be used inside of non-vite contexts
* chore: add changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 18:56:12 -05:00
Ben Holmes
2675b8633c
Frontmatter injection for MD and MDX ( #4176 )
...
* feat: inject vfile data as exports
* feat: add vfile to renderMarkdown output
* feat: add safe astroExports parser to utils
* refactor: expose vite-plugin-utils on astro package
* feat: handle astroExports in mdx
* deps: vfile
* chore: lockfile
* test: astroExports in mdx
* refactor: merge plugin exports into forntmatter
* refactor: astroExports -> astro.frontmatter
* refactor: md astroExports -> astro.frontmatter
* feat: astro.frontmatter vite-plugin-markdown
* chore: remove unused import
* fix: inline safelyGetAstroData in MDX integration
* chore: check that frontmatter export is valid export name
* chore: error log naming
* test: mdx remark frontmatter injection
* fix: inconsistent shiki mod resolution
* fix: add new frontmatter and heading props
* test: remark vdata
* fix: spread astro.data.frontmatter
* test deps: mdast-util-to-string, reading-time
* fix: astro-md test package name
* test: md frontmatter injection
* fix: layouts
* deps: remove vite-plugin-utils export
* fix: package lock
* chore: remove dup import
* chore: changeset
* chore: add comment on safelyGetAstroData source
* deps: move mdast-util-to-string + reading-time to test fixture
* chore: move remark plugins to test fixture
* fix: override plugin frontmatter with user frontmatter
* test: md injected frontmatter overrides
* test: frontmatter injection overrides mdx
2022-08-05 18:55:38 -05:00
Jack Merrill
4678a3f358
feat(image): Add GIF -> WEBP support ( #4139 ) ( #4140 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 17:32:45 -05:00
matthewp
5be35fd69b
[ci] format
2022-08-05 21:15:28 +00:00
Matthew Phillips
8eb3a8c6d9
Add test for mdx + React usage ( #4174 )
...
* Add test for mdx + React usage
* Add a changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 17:13:30 -04:00
tony-sull
14d27c1d6f
[ci] format
2022-08-05 20:38:06 +00:00
Tony Sullivan
5811208182
Fixes local image resolution in SSR builds on Windows ( #4173 )
...
* fixing SSR local file resolution path on windows
* chore: add changeset
* nit: fixing typo in image README file
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 20:36:30 +00:00
Nate Moore
e569f0a5c7
Handle edge case in jsx-runtime ( #4158 )
...
* fix(#4135 ): handle edge case in jsx-runtime
* test: add mdx test case
* chore: fix utils reference
* test: fix mdx escape test
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 10:35:47 -05:00
Fred K. Schott
c7efcf57e0
fix missing newline bug in mdx ( #4145 )
2022-08-04 23:12:07 -07:00
Fred K. Bot
7300f094fd
[ci] release ( #4133 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-03 23:14:04 -07:00
Fred K. Schott
65f2d3b4b1
fix windows package export ( #4141 )
...
* fix windows package export
* Create neat-badgers-bow.md
2022-08-03 23:11:37 -07:00
bholmesdev
66319cb49f
[ci] format
2022-08-03 21:56:30 +00:00
Ben Holmes
2968ba2b6f
[MDX] Add headings
and frontmatter
to layout props ( #4134 )
...
* feat: expose headings on layout props
* test: frontmatter AND content
* test: headings in layouts
* chore: changeset
2022-08-03 17:54:55 -04:00
Fred K. Bot
acd0b6da3c
[ci] update lockfile ( #4100 )
...
* [ci] update lockfile
* fix: remove @ts-expect-error
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-03 11:16:07 -05:00
Zade Viggers
a28b441763
Remove renderer tag to fix a docs issue ( #4127 )
...
[This page](https://docs.astro.build/en/guides/integrations-guide/ ) is autogenerated based on the packages in this repo and said packages' tags. Removing the renderer tag here should stop it from appearing in the UI Framework category.
2022-08-03 10:36:38 -05:00
Fred K. Bot
077d78fddc
[ci] release ( #4116 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-02 14:50:21 -07:00
Erika
ac6ffdb310
Audit dependencies ( #4096 )
...
* Remove some unused dependencies
* Update lockfile
* Add util
* Remove util
2022-08-02 16:08:21 -04:00
Erika
64432bcb87
Refactor @astrojs/prism, fix Prism component import not working ( #4114 )
...
* 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-08-02 15:53:18 -04:00
Nate Moore
b60cc0538b
Add generic plugin for page-ssr
injection ( #4049 )
...
* feat: add generic page-ssr plugin
* refactor: remove page-specific logic from astro/markdown/mdx plugins
* refactor: revert changes to vite-plugin-scripts
* fix: handle injected `page` scripts in build
* fix: prepend injected `page` scripts with `/@id/` in dev
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02 14:07:17 -05:00
Isaac McFadyen
004995eecd
Update README.md ( #4119 )
2022-08-02 10:26:25 -05:00
Nate Moore
abfaf6bb0e
chore: skip cloudflare test for now ( #4117 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02 10:26:00 -05:00
matthewp
7d1f86d4b7
[ci] format
2022-08-02 12:10:35 +00:00
Matthew Phillips
e33fc9bc46
Load configs with Vite when loading with Proload fails ( #4112 )
...
* 4078 breaking test
* Use Vite for loading the config
* Try it
* Fallback to loading with Vite only when needed
* Remove console.error
* Remove extra console.log
* Add a changeset
* Use middlewareMode
2022-08-02 08:08:28 -04:00
bholmesdev
10a8fa5dcd
[ci] format
2022-08-01 21:25:50 +00:00
Ben Holmes
40ef43a59b
[MDX] Add getHeadings
+ generate anchor links ( #4095 )
...
* deps: mdx github-slugger
* feat: add getHeadings via rehype plugin
* chore: stray console.log
* test: getHeadings w/ & w/0 JSX expressions
* docs: add generated exports
* refactor: pass headings using vfile.data
* deps: vfile
* test: heading anchor IDs
* docs: add collect-headings to default rehype plugins
* chore: changeset
* deps: estree-util-value-to-estree
* refactor: inject getHeadings export the right way!
* deps: switch to acorn
* refactor: just use acorn
* docs: `getHeadings` info structuring
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* docs: clarify `url` example
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: move slugger inside plugin call
* refactor: cleanup code reassignment
* chore: lint
* deps: mdast-util-mdx, test utils
* refactor: add jsToTreeNode util
* feat: expose utils for lib authors
* test: rehype plugins w/ and w/o extends
* test: fixture
* refactor: remove utils from package exports
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-08-01 17:23:56 -04:00
Sarah Rainsberger
76ec35ff30
[docs content] Image README formatting ( #4082 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-07-30 09:29:03 -03:00
Fred K. Bot
268d44e25b
[ci] release ( #4086 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-30 00:29:04 -04:00
bholmesdev
8e20156638
[ci] format
2022-07-29 15:24:57 +00:00
Ben Holmes
1743fe140e
feat: support layout
in MDX frontmatter ( #4088 )
...
* deps: add gray-matter
* feat: support layout frontmatter property
* test: frontmatter, content prop
* docs: update layout recommendation
* deps: fix lockfile
* chore: changeset
* fix: inherit rollup plugin transform
* fix: avoid parsing frontmatter on custom parsers
* fix: match YAML err handling from md
* docs: absolute url to docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: formatting
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-29 11:22:57 -04:00
Matthew Phillips
09c1e586ee
Prevent hydration scripts from being rendered in the wrong order ( #4080 )
...
* Prevent hydration scripts from being rendered in the wrong order
* Remove comment
* Update jsx
* Remove promise for stop
* Try skipping lit tests
* Stringify these chunks too
* Unskip lit
2022-07-29 10:46:09 -04:00
Fred K. Bot
84193e3ea1
[ci] release ( #4081 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28 15:53:57 -04:00
matthewp
22f76b8a7e
[ci] format
2022-07-28 15:00:32 +00:00
Matthew Phillips
6120a71e54
Ensure file and url are always present in MDX for Astro.glob ( #4076 )
2022-07-28 10:58:44 -04:00
Sarah Rainsberger
6fb95dbdd6
[docs content] MDX layouts ( #4077 )
2022-07-28 10:06:23 -03:00
Fred K. Bot
6d103ddceb
[ci] release ( #4056 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28 08:17:45 -04:00
matthewp
3a599f2144
[ci] format
2022-07-27 20:17:38 +00:00
Matthew Phillips
a198028b04
Fixes cloudflare throwing over process ( #4072 )
...
* Fixes cloudflare throwing over process
* Up the timeout for slower CI servers
* Fix linting
* Up the timeout a bit
2022-07-27 16:15:19 -04:00
matthewp
6fa6369678
[ci] format
2022-07-27 15:52:44 +00:00
Matthew Phillips
54b33d50fd
Add errors to cloudflare/vercel adapters when no output config ( #4068 )
2022-07-27 11:50:48 -04:00
tony-sull
57770bbae2
[ci] format
2022-07-27 15:41:22 +00:00
Tony Sullivan
a397b981f5
Fixes type definitions @astrojs/image
and adds more documentation to the README ( #4045 )
...
* WIP: moving to a static .d.ts types file
* fixing named exports for getImage and getPicture
* removing the exports.astro map for now
* WIP: adding readme docs for component attributes
* Adding docs for getImage and getPicture
* leaning fully on TSC to build .d.ts files
* finally found the solution for proper ESM import types
* adding a note to the README for tsconfig updates
* chore: add changesets
* typo
* docs: removing the "Images in Markdown" example
* removing the need for publishing src to NPM
* fix: make type re-export explicit
* updating image module defs to match InputFormat
* using astro syntax highlighting for README code blocks
* nit: missing backtick in README
* make sure Astro component directives aren't recommended twice
2022-07-27 15:39:05 +00:00
matthewp
c57242d534
[ci] format
2022-07-26 18:06:03 +00:00
Matthew Phillips
40251118f8
Prevent Svelte HMR warning during the build ( #4057 )
2022-07-26 14:04:26 -04:00
Matthew Phillips
44694d8a90
Fixes binary data request bodies in the Node adapter ( #4055 )
...
* Fixes binary data request bodies in the Node adapter
* Fix type
2022-07-26 10:31:54 -04:00
Fred K. Bot
d790eabd98
[ci] release ( #3972 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26 09:58:38 -04:00
Fred K. Schott
9ab66c4ba9
add support for injected page-ssr scripts ( #4050 )
2022-07-26 00:26:47 -04:00
tony-sull
2a13e430b1
[ci] format
2022-07-25 21:16:11 +00:00
Tony Sullivan
e60d6d9c1d
Removes fileURLToPath
dependency from @astrojs/image
SSR production endpoint ( #4048 )
...
* removing fileURLToPath dependency from SSR production endpoint
* chore: add changeset
2022-07-25 21:14:03 +00:00
FredKSchott
d2148ce982
[ci] format
2022-07-25 04:20:38 +00:00
Matthew Phillips
6fd161d769
Add the output
option ( #4015 )
...
* 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-25 00:18:02 -04:00
tony-sull
cb1db133ba
[ci] format
2022-07-22 23:04:01 +00:00
Tony Sullivan
ef9345767b
WIP: [image] Fixing SSR support and improving error validation ( #4013 )
...
* fix: SSR builds were hitting an undefined error and skipping the step for copying original assets
* chore: update lockfile
* chore: adding better error validation to getImage and getPicture
* refactor: cleaning up index.ts
* refactor: moving SSG build generation logic out of the integration
* splitting build to ssg & ssr helpers, re-enabling SSR image build tests
* sharp should automatically rotate based on EXIF
* cleaning up how static images are tracked for SSG builds
* undo unrelated mod.d.ts change
* chore: add changeset
2022-07-22 23:01:56 +00:00
Okiki Ojo
0cc6ede362
SSR 404 and 500 routes in adapters ( #4018 )
...
* fix(WIP): SSR 404 and 500 routes
* Implement the feature
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-22 16:30:17 -04:00
matthewp
4392083cca
[ci] format
2022-07-22 19:24:58 +00:00
Matthew Phillips
4ca6a0933d
Fixes Node adapter receiving a request body ( #4023 )
...
* Fixes Node adapter receiving a request body
* Updated lockfile
2022-07-22 15:22:31 -04:00
Chris Swithinbank
9aecf7c7c7
Handle EXIF orientation flag ( #4021 )
...
* Handle EXIF orientation flag
* Create gentle-mails-mate.md
2022-07-22 19:14:00 +00:00
Juan Martín Seery
1666fdb4c5
feat(vercel): remove requirement of ENABLE_VC_BUILD=1
( #4020 )
...
* Remove requirement of `ENABLE_VC_BUILD=1`
* Changeset
2022-07-22 10:13:35 -05:00
bholmesdev
c2968b0542
[ci] format
2022-07-21 20:46:16 +00:00
Ben Holmes
3b8a744524
[MDX] Add Prism and Shiki support ( #4002 )
...
* deps: add rehype-prism, shiki, rehype-pretty-code
* wip: apply rehype plugins depending on config
* wip: cherry-pick jsx-runtime fix?
* deps: rehype-pretty-code -> shiki-twoslash, add rehype-raw
* wip: add jsx-runtime fix
* feat: get shiki working!
* deps: add @astrojs/prism, prismjs, unist-util-visit
* feat: add prism support
* example: add small syntax highlight demo to with-mdx
* deps: remove rehype-prism
* chore: remove unused async
* chore: add .test.js to all mdx tests
* test: shiki, shikiConfig, prism
* fix: remove "is:raw" from prism output
* docs: add syntax highlighting section
* chore: add changeset
* nit: "Shiki config" -> Shiki config
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Revert "wip: add jsx-runtime fix"
This reverts commit 07f4528f44
.
* docs: link to integration README from example
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-21 16:43:58 -04:00
Sarah Rainsberger
ef9c4152b2
[READMEs] removed "experimental" from astro add instructions ( #4004 )
2022-07-21 14:33:59 -03:00
matthewp
ce2994c9c0
[ci] format
2022-07-21 16:28:25 +00:00
Matthew Phillips
01ba07d8fa
Make the Lit integration be compat with Vite 3.0.1 ( #4009 )
...
* Make the Lit integration be compat with Vite 3.0.1
* Changeset
* Pin Vite version
* Update lockfile
2022-07-21 12:25:57 -04:00
bholmesdev
29eef85ce5
[ci] format
2022-07-21 01:36:26 +00:00
Ben Holmes
b2b367c969
[MDX] Support YAML frontmatter ( #3995 )
...
* chore: remove old comment
* deps: add remark-frontmatter
* deps: add remark-mdx-frontmatter
* fix: handle null or undefined frontmatter key
* feat: configure frontmatter plugins with defaults
* test: frontmatter and custom frontmatter name
* docs: add frontmatterOptions config
* docs: add "variables" and "frontmatter" docs
* chore: excessible -> accessible
* chore: changeset
* chore: remove bad mdx comment
2022-07-20 21:34:21 -04:00
Erika
40a45e3ef6
Properly support and type optional props in Svelte components ( #3993 )
...
* Properly support and type optional props in Svelte components
* Change output to support documentating components
* Add changeset
2022-07-20 17:32:46 -04:00
bholmesdev
74b0099cd1
[ci] format
2022-07-20 18:16:33 +00:00
Ben Holmes
19433eb4a4
[MDX] Support remark and rehype plugins, with defaults ( #3977 )
...
* feaet: allow remark and rehype plugin config
* deps: add remark-gfm, remark-smartypants
* feat: add gfm and smartypants by default
* test: add GFM and remark plugin tests
* feat: preserve default plugins with "extends"
* docs: add remarkPlugins
* docs: add rehypePlugins
* chore: changeset
* fix: remove skip from mdx tests
* chore: dup hyperlink flavor text
* chore: authGen -> autoGen
* nit: markdown -> Markdown
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: markdown -> Markdown 1
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: markdown -> Markdown 2
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: markdown -> Markdown 3
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: markdown -> Markdown 4
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-07-20 14:14:23 -04:00
bholmesdev
66012e334a
[ci] format
2022-07-20 14:58:33 +00:00
Ben Holmes
61fec63044
[MDX] Include url
in glob result ( #3981 )
...
* deps: add es-module-lexer
* feat: inject url export on mdx files
* fix: apply url transform in prod
* test: page urls with overrides
* fix: revert test skips
* chore: changeset
* fix: add newline before export
2022-07-20 10:56:32 -04:00
Tony Sullivan
eaf187f2c4
Fixing TypeScript type definitions for image components ( #3980 )
...
* moving back to importing from components directory
* exporting components with a .ts file instead of .js
* chore: changeset
2022-07-20 00:33:11 +00:00
matthewp
4ee997da43
[ci] format
2022-07-19 20:11:53 +00:00
Matthew Phillips
5a23483efb
Adds support for Astro.clientAddress ( #3973 )
...
* Adds support for Astro.clientAddress
* Pass through mode and adapterName in SSG
* Pass through the mode provided
* Provide an adapter specific error message when possible
2022-07-19 16:10:15 -04:00
Tony Sullivan
d73c04a9e5
<Picture> component should pass all unknown attributes to the <img> element ( #3961 )
...
* <Picture /> should pass all unrecognized props down to the <img> element
* chore: add changeset
* Adding test coverage for custom <img> attributes
* chore: adding a README note for passing attributes to the picture's img
* Revert "<Picture /> should pass all unrecognized props down to the <img> element"
This reverts commit ce3e33930f
.
* Picture should pass alt text to the img
2022-07-19 19:21:58 +00:00
Astroalex
b37d7078a0
minor: updating the README for @astrojs/sitemap@0.2.0
changes ( #3978 )
...
* fix: updating the README for `v0.2.0` changes
* Create chilled-cherries-decide.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-07-19 14:02:30 -05:00
Matthew Phillips
04070c0c12
Migrate to Vite 3 ⚡ ️ ( #3570 )
...
* Vite 3 test
* deps: bump to Vite beta.1
* refactor: move to use optimizeDeps.force option
* refactor: stub out new updateModuleInfo params
* nit: remove comment on deprecated Vite feature
* nit: remove comment on deprecated vite feature
* hail mary: destroy all ssr external / noexternal!
* fix: use new middlewareMode config settings
* fix: resolve npm package paths for rollup input
* wip: revert to unresolved. Issue reported!
* sad refactor: use legacy devDepsScanner for component HMR
* fix: add astro/components to noExternal for Code component
* refactor: use ALWAYS_NOEXTERNAL array
* refactor: add package.json to all test runners for noExternal error
* deps: bump to latest vite 3 beta
* wip: add package.json to smoke
* fix: remove accidental "force true" on create-vite
* refactor: write smoke package.json programmatically
* refactor: add fontsource to noExternal
* fix: only add to ssr.noExternal if present in project
* wip: what if we just... didn't have a memory test
* deps: bump to latest vite beta
* Revert "wip: what if we just... didn't have a memory test"
This reverts commit 173729dbdc685e52881fc3333487b8f744add55f.
* fix: add type check for plugin.name
* feat: remove legacy.devDepsScanner. Vite 3 strat is now Vite 2.x strat!
* fix: add ssr.noExternal to components ex
* wip: ignore with-mdx starter
* fix: add serviceEntryPoint to ssr.noExternal
* temp: reset NODE_ENV on prod builds
* fix: missing async tag
* VITE 3 IS STABLE BABY
* deps: bump svelte to vite 3
* deps: bump vue to vite 3
* fix: resolve plugins for proper sorting
* sad fix: regex "export default" out of CSS ssr
* chore: add TODO to understand sad fix
* Revert "fix: resolve plugins for proper sorting"
This reverts commit e67c194d3a8e11070487ed325947e7c59e8d69cd.
* Revert "sad fix: regex "export default" out of CSS ssr"
This reverts commit 721d40b62b61440dc9e488787901c915579659db.
* fix: sort plugins WITHOUT resolveConfig
* Revert "wip: ignore with-mdx starter"
This reverts commit 7d4f7338e6
.
* chore: revert memory test changes
* chore: add nanostores/preact ot noexternal
* chore: changeset
* chore: changeset
* deps: use Vite ^3.0.0
* fix: add back third party astro pkg scanner
Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-18 22:19:23 -07:00
Fred K. Bot
37534004f0
[ci] release ( #3939 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-18 21:54:25 -07:00
FredKSchott
167ed5486a
[ci] format
2022-07-19 04:50:06 +00:00
Tony Sullivan
299b4afcab
Feat/image url hash ( #3965 )
...
* Including a hash of the full remote URL when building for SSG
* chore: add changeset
2022-07-18 21:48:22 -07:00
Juan Martín Seery
60e38f6eb4
ci: fix eslint issues ( #3969 )
2022-07-18 19:59:53 -03:00
tony-sull
f6d61e6e72
[ci] format
2022-07-18 19:45:31 +00:00
Tony Sullivan
2a7dd040e8
Improving support for third-party hosted image services ( #3957 )
...
* WIP: always use the built-in sharp service for local images in `dev`
* adding type definitions for the integration's use of globalThis
* simplifying the globalThis type checking
* chore: adding changeset
* removing temp hosted service used for testing
2022-07-18 19:43:40 +00:00
Chris Swithinbank
31f9c0bf02
Roll back supported Node engines ( #3937 )
...
Fixes #3936
2022-07-15 08:15:04 -04:00
Fred K. Bot
f7fa39e682
[ci] release ( #3925 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14 15:36:23 -04:00
Matthew Phillips
d6dfef0caa
Add @babel/core dependencies to react/preact integrations ( #3928 )
...
* Add @babel/core dependencies
* Adds a changeset
2022-07-14 14:39:58 -04:00
Fred K. Bot
056d4d5fd2
[ci] release ( #3903 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13 17:16:24 -04:00
Randall
b487679853
Rollback Nodejs Dependancy ( #3914 )
...
* Rollback Nodejs Dependancy
Closes #3908
Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
* Create ninety-apes-talk.md
2022-07-13 17:06:37 -04:00
Fred K. Bot
c2b14d5253
[ci] release ( #3894 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12 09:08:15 -04:00
Chris Swithinbank
bf5d1cc1e7
More integration README fixes ( #3885 )
...
* Integration README fixes
* More tweaks (mostly code backticks for filenames)
* Update changeset
* Few more tweaks
* Make sure code blocks all have a code language
* Use URLs of new docs pages for package homepage
* One more stray `<br>` 👢
* Standardise to `sh` instead of `shell`
2022-07-11 21:10:34 +02:00
Fred K. Bot
1554a37622
[ci] release ( #3887 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11 13:38:42 -05:00
Nate Moore
1cc5b78905
fix( #3071 ): update supported node versions ( #3871 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-11 11:32:53 -05:00
Fred K. Bot
16fdc01322
[ci] release ( #3877 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-09 19:03:22 +00:00
Tony Sullivan
f961412862
Updating the <Picture /> component to default to async image decoding ( #3876 )
...
* defaulting pictures to use decoding=async
* chore: add changeset
2022-07-09 18:44:31 +00:00
Fred K. Bot
1785e568a0
[ci] release ( #3850 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-08 20:54:39 -04:00
Erika
f9ed77bb0d
Add editor integrations to language integrations ( #3864 )
2022-07-08 17:47:01 -04:00
tony-sull
d2f68345f9
[ci] format
2022-07-08 21:40:22 +00:00
Tony Sullivan
89d76753a0
Adds a new <Picture>
component to the image integration ( #3866 )
...
* moving all normalization logic out of the Image component
* refactor: only require loaders to provide the image src
* Adding a `<Picture />` component
* fixing types.ts imports
* refactor: moving getImage to it's own file
* updating component types to use astroHTML.JSX
* Revert "updating component types to use astroHTML.JSX"
This reverts commit 6e5f578da8
.
* going back to letting loaders add extra HTML attributes
* Always use lazy loading and async decoding
* Cleaning up the Picture component
* Adding test coverage for <Picture>
* updating the README
* using JSX types for the Image and Picture elements
* chore: adding changeset
* Update packages/integrations/image/src/get-image.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* allow users to override loading and async on the <img>
* renaming config to constants, exporting getPicture()
* found the right syntax to import astro-jsx
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-07-08 21:37:55 +00:00
bholmesdev
ec392589f6
[ci] format
2022-07-08 20:57:10 +00:00
Ben Holmes
b012ee55b1
[astro add] Support adapters and third party packages ( #3854 )
...
* feat: support adapters and third part integrations by keywords
* refactor: add keywords to all official integrations
* docs: add adapter ex to astro add help
* nit: clarify astro add usage
* nit: highlight link
* fix: use process.exit(1) on error
* chore: changeset
* nit: bold integration name
* fix: log install instructions for adapters instead
* nit: change to logAdapterConfigInstructions
* Revert "fix: log install instructions for adapters instead"
This reverts commit 1a459f152b
.
* feat: add hardcoded adapter export map
* refactor: inline adapter config log
2022-07-08 16:55:33 -04:00
tony-sull
9300af9bc2
[ci] format
2022-07-08 20:20:57 +00:00
Tony Sullivan
0aaef1c48b
fix: Always add @astrojs/image to vite.ssr.noExternal ( #3869 )
...
* fix: always add @astrojs/image to vite.ssr.noExternal
* chore: add changeset
2022-07-08 20:19:27 +00:00
Chris Swithinbank
1f9e4857ff
Integration README fixes ( #3865 )
...
* Remove stray XML tag in sitemap integration README
* Fix link errors
* Add changeset
2022-07-08 21:56:24 +02:00
Isaac McFadyen
37401cc3e6
Fixed broken Markdown link ( #3868 )
2022-07-08 14:47:16 -05:00
Chris Williams
f84a1552ec
Fix manual import ( #3857 )
2022-07-08 10:01:23 -05:00
Joaquín Sánchez
c6ba6ec4d9
fix: lint failing on astro and some integrations ( #3794 )
...
* fix: lint failing on astro and some integrations
* chore: fix telemetry lint
* chore: fix turbo cache (thx nate)
* chore: fix runtime server
2022-07-07 16:06:44 -05:00
Fred K. Schott
515e876598
update solid peer dependencies
2022-07-07 12:11:27 -07:00
Fred K. Schott
2b7b626629
update lockfile ( #3828 )
2022-07-07 12:06:56 -07:00
matthewp
9f54fa3cd9
[ci] format
2022-07-07 17:51:24 +00:00
Matthew Phillips
502f063131
Allow importing Image component from @astrojs/image ( #3848 )
...
* Allow importing Image component from @astrojs/image
* Adds a changeset
* Export the Image type
2022-07-07 13:49:46 -04:00
Fred K. Bot
568960f175
[ci] release ( #3818 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-06 21:00:18 -04:00
Randall
2f56664f85
Fix example on README.md
on @astrojs/node ( #3817 )
...
* Fix example on `README.md`
The example was suggesting `import deno from '@astrojs/node';` which doesn't work. It needs to be `import node from '@astrojs/node';`.
* Create itchy-bottles-rhyme.md
Co-authored-by: Peter Singh <afuzzybear@outlook.com>
2022-07-04 22:51:30 +01:00
Fred K. Bot
822befc59b
[ci] release ( #3813 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-04 15:22:09 +00:00
Tony Sullivan
5ccccace0c
Updates how the new Image component is exported to support older versions of Astro ( #3812 )
...
* don't use typescript for the components named export file
* Adding a readme example for images in markdown
* chore: add changeset
2022-07-04 14:52:32 +00:00
Tony Sullivan
b9d26f39e2
manually correcting import ordering to unblock CI ( #3798 )
2022-07-01 20:24:45 +00:00
Fred K. Bot
5953a6ca0d
[ci] release ( #3797 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01 20:13:33 +00:00
tony-sull
88dad63322
[ci] format
2022-07-01 20:06:01 +00:00
Tony Sullivan
d143d24c72
Updates the images integration to automatically mark optimizeDeps
for sharp ( #3795 )
...
* including src in npm publish
* bugfix: always round dimensions before passing to sharp.resize
* automatically add optimizeDeps vite config
* chore: changeset
2022-07-01 19:56:43 +00:00
Fred K. Bot
94143fcdba
[ci] release ( #3789 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01 17:43:26 +00:00
Tony Sullivan
e8593e7ead
Adds an @astrojs/image
integration for optimizing images ( #3694 )
...
* 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-07-01 15:47:48 +00:00
Fred K. Bot
0f73ece26b
[ci] release ( #3783 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01 03:09:17 +00:00
Tony Sullivan
976e1f175a
Adding an option to disable HTTP streaming ( #3777 )
...
* Adding a flag to disable HTTP streaming
* refactor: adding support for SSG builds
* handling string responses in the server runtime, adding tests
* removing streaming CLI flag
* removing import.meta.env.STREAMING
* include Content-Length header when streaming is disabled
* Verifying content-length header in dev
* fix: default streaming to enabled in the base App server
* TEMP: disabling the production test to investigate the test-adapter
* re-enabling the test with an adapter option to disable streaming for the test
* fix: use the existing TextEncoder to get the body's byte length
* moving config to build.streaming, ignoring it in `dev`
* fixing dev test to expect response streaming
* chore: add changsets
* removing the new config option all together 🎉
* remove temp debug log
* Updating astro changeset now that streaming isn't a config option
2022-07-01 02:29:59 +00:00
Fred K. Bot
d07ad8a782
[ci] release ( #3774 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30 11:39:44 -07:00
natemoo-re
af23bdd515
[ci] format
2022-06-30 18:11:12 +00:00
Nate Moore
032ad1c047
MDX support ( #3706 )
...
* 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-30 13:09:09 -05:00
hippotastic
91635f05df
Fix integration name (prefetch
instead of lit
) ( #3778 )
2022-06-30 12:53:01 -05:00
Dan Jutan
8045c8ade1
Integration Docs Next Steps ( #3677 )
...
* sitemap readme skeleton + first sections
* Revert "sitemap readme skeleton + first sections"
This reverts commit cc55b312b6
.
* sitemap readme skeleton + first sections
* remove canonicalURL option from sitemap
* add customPages option to readme
* sitemap examples
* partytown
* deno run command
* reference deno example
* node readme
* netlify & vercel readmes
* note that telemetry is installed
* telemetry is *enabled*, not installed
* Update packages/integrations/vercel/README.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/vercel/README.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* readme -> README
* Update packages/integrations/deno/readme.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/deno/readme.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* qualify they
* Update packages/integrations/sitemap/README.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Uppercase README names
* Update packages/integrations/partytown/README.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* imports -> import typo
* update changeset
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-06-30 12:02:39 -04:00
Fred K. Bot
8cbe92b74b
[ci] release ( #3772 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30 08:08:09 -05:00
hippotastic
40fa87c274
[ci] format
2022-06-30 12:12:27 +00:00
hippotastic
b934ab5d86
Fix "Invalid hook call" warning ( #3769 )
...
* Fix "Invalid hook call" warning
* Fix eslint warnings
* Apply code review suggestions
2022-06-30 14:10:56 +02:00
Fred K. Bot
38f2fd7723
[ci] release ( #3759 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-29 17:11:48 -05:00
Fred K. Schott
4bc6c7ceaa
manual lockfile update ( #3751 )
...
* lockfile update
* update lockfile gen script
* Update index.ts
2022-06-29 14:54:40 -07:00
delucis
e667477103
[ci] format
2022-06-29 15:48:55 +00:00
Chris Swithinbank
e3fdc9b403
Add preact/compat
support to @astrojs/preact
( #3712 )
...
* Add preact/compat renderer (likely broken)
Based on the current Preact renderer and the old preact/compat implementation: f892aeb52f/packages/renderers/renderer-preact/compat/index.js
* Make sure name is consistent
* Switch to single integration with compat option
* fix: add module-resolver to alias react => preact/compat
* fix: preact/compat mode
* chore: remove client-compat entrypoint
* chore: add e2e test for preact/compat
* Try to fix frozen lock file error
* Add changeset
* Update README to new structure & document `compat`
* Fix changeset wording
* Fix README typo
* Tweak wording
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
2022-06-29 17:42:47 +02:00
Fred K. Bot
a59a27eb0c
[ci] release ( #3733 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 15:11:59 +00:00
natemoo-re
27d8c351bb
[ci] format
2022-06-28 13:40:53 +00:00
Nate Moore
53bf0be280
chore(lint): fix lint issues ( #3743 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-28 08:39:10 -05:00
Fred K. Bot
768c8ed21d
[ci] update lockfile ( #3740 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-28 08:33:13 -05:00
Victor
6360f474fb
Fix Tailwind integration Typescript warning ( #3732 )
...
* Make options optional
* chore: add changeset
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-28 07:49:08 -05:00
bholmesdev
efd6548d49
[ci] format
2022-06-27 21:22:26 +00:00
Ben Holmes
4acd245d8f
Refactor: remove Deno shim to esbuild "banner" ( #3734 )
...
* refactor: remove Deno shim to esbuild "banner"
* refactor: move shim to const
* refactor: add shim to netlify edge
* chore: changeset
2022-06-27 17:20:28 -04:00
Sarah Rainsberger
0bcc969cd4
removed experimental warning from astro add command ( #3727 )
2022-06-27 13:44:32 -05:00
tony-sull
cb3fcdde6a
[ci] format
2022-06-27 18:28:16 +00:00
Tony Sullivan
79fe09fa30
Adds a prefetch integration for near-instant page navigations ( #3725 )
...
* Adds a basic @astrojs/prefetch integration
* adding tests for custom selectors
* missed in last commit
* Adding a few docs, removing the option for `selectors` to be an element array
* adding an option for the concurrency limit
* fixing test for updated integration options
* Update packages/labs/prefetch/src/client.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: removing the NodeJS.Timer type to allow typescript to infer the return
* updating docs for default selector with ~=
* Skip prefetching on 2G connections, or when data saver is enabled
* refactor: moving to packages/integrations, Astro Labs TBD down the road
* README typo fix
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-27 18:26:21 +00:00
FredKSchott
7d0c3f9ecb
[ci] format
2022-06-27 18:12:43 +00:00
Oleksii Tymoshenko
52f75369ef
feat: better behavior for 'undefined' return values from 'serialize… ( #3723 )
...
* feat: better behavior with 'undefined' return values after 'serialize' func
* build: changeset added
2022-06-27 13:02:00 -05:00
github-actions[bot]
67b5aa4ca4
[ci] release ( #3701 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 16:05:02 -04:00
Richard Cooke
0d667d0e57
fix: @astrojs/clooudflare
404 handling ( #3695 )
2022-06-24 14:30:47 -05:00
github-actions[bot]
6a6047483b
[ci] release ( #3692 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 12:55:36 -05:00
bholmesdev
589b840f5a
[ci] format
2022-06-23 15:33:20 +00:00
Ben Holmes
3f8ee70e2b
Fix: document sitemap + SSR use case ( #3689 )
...
* fix: offer suggestion for SSR sitemap users
* docs: add customPages to README
* chore: changeset
2022-06-23 11:31:54 -04:00
natemoo-re
059d00bd5d
[ci] format
2022-06-23 15:12:46 +00:00
Nate Moore
7373d61cdc
Enable named slots in renderers ( #3652 )
...
* 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-23 10:10:54 -05:00
github-actions[bot]
19cd962d0b
[ci] release ( #3684 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-23 09:14:17 -04:00
matthewp
16cdfeef81
[ci] format
2022-06-23 13:05:55 +00:00
Matthew Phillips
b36ecb717e
Include partytown scripts in SSR manifest ( #3686 )
...
* Include partytown scripts in SSR manifst
* Adds a changeset
2022-06-23 09:03:43 -04:00
bholmesdev
9133a42831
[ci] format
2022-06-22 23:55:00 +00:00
Ben Holmes
3d554fdbfb
Fix: pass Astro config postcss to Svelte preprocess ( #3685 )
...
* fix: pass Astro config postcss to Svelte preprocess
* test: preset env for nested styles
* chore: changeset
2022-06-22 19:52:32 -04:00
tony-sull
ae7415612e
[ci] format
2022-06-22 16:01:42 +00:00
Tony Sullivan
b8c6dabfb7
Enables eslint on the full repo and adds a rule for no only()
tests ( #3659 )
...
* enabling eslint on the all packages and tests
* enabling for all packages
* TEMP: adding an only() test to verify it fails CI
* using our eslint config and ignore in CI
* removing the temporary .only() test
* update lock file
* lint: fixing new test with a no-shadow warning
* chore: update lock file
2022-06-22 15:59:49 +00:00
github-actions[bot]
119283775a
[ci] release ( #3666 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-22 10:05:21 -04:00
hippotastic
ba5ad7855c
Fix react dependencies to improve test reliability ( #3673 )
...
* Fix local react tests by unifying versions
* Add missing dependencies to react tests
* Add changeset
* Fix lockfile
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-22 09:11:48 -04:00
github-actions[bot]
e13ce4d751
[ci] release ( #3662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 11:50:06 -04:00
Matthew Phillips
2ff11df438
Add .js to imports in the sitemap package ( #3661 )
...
* Add .js to imports in the sitemap package
* Adds a smoke test
* Adds a changeset
2022-06-21 11:29:18 -04:00
github-actions[bot]
e67171252c
[ci] release ( #3615 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-21 09:43:19 -04:00
matthewp
948f82048b
[ci] format
2022-06-21 12:33:55 +00:00
Matthew Phillips
f5afaf2498
Support re-exporting astro components containing client components ( #3625 )
...
* Support re-exporting astro components containing client components
* Include metadata for markdown too
* Fix ssr, probably
* Inject post-build
* Remove tagName custom element test
* Allows using the constructor for lit elements
* Fix hoisted script scanning
* Pass through plugin context
* Get edge functions working in the edge tests
* Fix types for the edge function integration
* Upgrade the compiler
* Upgrade compiler version
* Better release notes for lit
* Update .changeset/unlucky-hairs-camp.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Properly test that the draft was not rendered
* Prevent from rendering draft posts
* Add a changeset about the build perf improvement.
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-21 08:32:05 -04:00
natemoo-re
9532d56b50
[ci] format
2022-06-20 19:31:39 +00:00
Oleksii Tymoshenko
facfc4682f
refactor: better typings ( #3634 )
2022-06-20 14:29:53 -05:00
Tony Sullivan
56937563c3
disabling Netlify Edge Functions tests for now ( #3631 )
2022-06-17 22:12:04 +00:00
bholmesdev
8ce5b824ab
[ci] format
2022-06-17 00:32:29 +00:00
Ben Holmes
fca58cfd91
Fix: Netlify edge deployment when using markdown ( #3612 )
...
* wip: revert sitemap PR
* fix: extract SSR-ready "slug" helper to separate module
* Un-revert sitemap PR. Not to blame!
This reverts commit 7cd2a8a5ea
.
* fix: use .netlify for edge deployment test
* refactor: add md file to edge function fixture
* fix: add netlify edge tests to ci
* chore: remove stray console log
* wip: undo "dist" change on edge tests
* chore: changeset
* Revert "wip: undo "dist" change on edge tests"
This reverts commit 70e565ef06
.
* temp: add ignore to breaking edge tests
2022-06-16 20:31:08 -04:00
Richard Cooke
9716747879
feat: update @astrojs/cloudflare
readme ( #3616 )
2022-06-16 15:16:25 -05:00
tony-sull
1c944a148a
[ci] format
2022-06-16 19:08:44 +00:00
Oleksii Tymoshenko
1031c06f9c
feat: improved sitemap ( #3579 )
...
* feat: extended sitemap functionality
* docs: del samples
* docs: readme
* feat: new sitemap
* feat: createLinkInHead removed
* docs: updated changeset text
* refactor: 'zod' function() instead of self made refine()
* Revert "refactor: 'zod' function() instead of self made refine()"
This reverts commit 036bac730d
.
undo function()
2022-06-16 19:06:48 +00:00
github-actions[bot]
81104a9335
[ci] release ( #3604 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-16 12:05:10 -04:00
matthewp
5d11c6d56f
[ci] format
2022-06-16 14:14:44 +00:00
Richard Cooke
7f42358141
feat: add SSR adaptor for cloudflare pages functions ( #3600 )
2022-06-16 10:12:25 -04:00
tony-sull
a4c78b544e
[ci] format
2022-06-15 19:50:36 +00:00
Tony Sullivan
0ddcef2043
Adds support base64 encoding in Netlify Functions ( #3592 )
...
* Adding support for base64 encoded responses in Netlify Functions
* chore: add changeset
* removing the regex check for a more simple header-based check
* nit: cleaning up the readme a bit
2022-06-15 19:49:09 +00:00
github-actions[bot]
c54b024803
[ci] release ( #3569 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 21:07:03 -05:00
natemoo-re
43dda86ce2
[ci] format
2022-06-10 18:20:21 +00:00
Oleksii Tymoshenko
098031294f
unused dependency 'sitemap', 'filter' option should return boolean ( #3563 )
...
* refactor: @astrojs/sitemap does't use 'sitemap' pkg
* refactor: 'filter' option should return boolean instead of string
* fix: forgotten `pnpm install`
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-10 13:16:08 -05:00
github-actions[bot]
d02578fd4c
[ci] release ( #3549 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 15:03:52 +00:00
natemoo-re
073bab5ec1
[ci] format
2022-06-08 15:09:17 +00:00
Caio Ferrarezi
c601ce59b5
Prevent sitemap URLs without pathname ( #3553 )
...
* fix(@astrojs/sitemap): handle base/pathname correctly
* chore: add changeset
2022-06-08 10:07:12 -05:00
github-actions[bot]
ec89def67d
[ci] release ( #3534 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 12:45:50 -04:00
matthewp
0a978e22fd
[ci] format
2022-06-07 15:43:33 +00:00
Matthew Phillips
f3ab822e32
Allow dynamic imports when using Netlify Edge Functions ( #3535 )
...
* Allow dynamic imports when using Netlify Edge Functions
* Update deno test script and changeset
2022-06-07 11:41:32 -04:00
FredKSchott
f0f6a3332f
[ci] format
2022-06-06 16:49:53 +00:00
Fred K. Schott
5b06398b7b
format: automatically organize imports and removed unused ( #3499 )
...
* add import formatting
* chore: update lockfile
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-06 09:47:28 -07:00
matthewp
8bb28b48ee
[ci] format
2022-06-06 16:03:17 +00:00
Matthew Phillips
c22a07db13
Fix use of dynamic imports / Astro.glob with Deno Deploy ( #3532 )
...
* Fix use of dynamic imports / Astro.glob with Deno Deploy
* Adds a changeset
* Mark the markdown package as external
2022-06-06 12:02:13 -04:00
github-actions[bot]
9029c43549
[ci] release ( #3512 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-06 09:40:09 -04:00
Fred K. Schott
25fa0f527d
[ci] update lockfile ( #3515 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-03 13:00:47 -04:00
Nate Moore
2fedb97489
Patch Lit server shim to fix sass compatability ( #3511 )
...
* fix(#2623 , #3508 ): patch lit server shim to allow sass compat
* chore: add changeset
2022-06-02 14:45:11 -05:00
github-actions[bot]
a74cf98002
[ci] release ( #3509 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 15:31:44 -04:00
William Tetlow
207f58d171
fix: alias astro to @types/astro ( #3503 )
...
* fix: alias astro to @types/astro
* fix: handle resolve.alias being array
* chore: add integrations patch to changeset
* chore: remove empty file
2022-06-02 12:54:35 -05:00
github-actions[bot]
67ad33debf
[ci] release ( #3488 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 13:42:18 -04:00
bholmesdev
b6b045c3f1
[ci] format
2022-06-02 17:35:51 +00:00
Ben Holmes
2b35650b5d
Fix: newline characters in Solid ( #3505 )
...
* fix: remove source map consumption from babel transform
* refactor: move inputSourceMap to integration option
* tests: add newline ex to test build and dev
* chore: change back to babel.transformAsync
* chore: changeset
2022-06-02 13:35:03 -04:00
Dan Jutan
5c32c7a4c3
Integration Docs: Tailwind ( #3429 )
...
* test commi
* add video
* test video include
* actually close the tag
* try directly pasting the video link
* remove the quote I forgot about
* figured out how to properly upload a video to github
* remove unneeded media directory
* why tailwind
* Installation and Usage
* Troubleshooting
* Add examples section
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* TOC + layout tweaks
* separated, and example re: warning to not use Tailwind with other styling method
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-06-01 17:30:36 -05:00
Fred K. Schott
cfb85ee10e
[ci] update lockfile ( #3495 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-01 10:39:32 -05:00
github-actions[bot]
b2f955ec1b
[ci] release ( #3485 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-31 13:40:19 -04:00
natemoo-re
e02c72f445
[ci] format
2022-05-31 16:47:13 +00:00
Fred K. Schott
c9d8b10a85
[ci] update lockfile ( #3448 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-31 11:46:13 -05:00
Nate Moore
e9a77d8619
Improve nested and client:only
hydration ( #3455 )
...
* wip: fix nested islands
* fix: improve hydration for dynamic content
* chore: fix bundle-size script for new files
* chore: allow-list client:* directive files
* fix(#3362 ): fix client:only behavior for React, Vue, Solid
* test: add client-only e2e test
* chore: update lockfile
* test: fix e2e tests
* test: add framework nesting e2e tests
* Update packages/astro/src/runtime/client/events.ts
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* chore: add changeset
* fix(preact): ignore hydrate roots
* chore: remove `ssr` check in integrations
* Revert "chore: remove `ssr` check in integrations"
This reverts commit ba27eaae55
.
* chore: add changeset
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-05-31 11:29:36 -05:00
Matěj Volf
b795a085f0
Load environment variables in deno SSR ( #3483 )
...
* Properly shim env in Deno
* Add test for loading env vars in Deno
* Add changeset
2022-05-31 11:41:33 -04:00
matthewp
1aeb1d0a00
[ci] format
2022-05-31 15:41:24 +00:00
Matthew Phillips
55820fa784
Lit polyfill - wait to polyfill on DOMContentLoaded ( #3484 )
...
* Lit polyfill - wait to polyfill on DOMContentLoaded
* Adds changeset
2022-05-31 11:40:26 -04:00
github-actions[bot]
f200ddadbc
[ci] release ( #3435 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-25 10:42:03 -05:00
Caio Ferrarezi
78e962f744
Add base config option to partytown snippet generation ( #3437 )
...
* fix: add base config option to partytown snippet generation
* add changeset
* fix: handle config.base for partytown
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-24 15:44:40 -05:00
Fred K. Schott
ccaea99765
[ci] update lockfile ( #3419 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-24 11:43:37 -05:00
github-actions[bot]
8eec97fdd1
[ci] release ( #3409 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-23 13:26:07 -04:00
Fred K. Schott
a7480452b1
[ci] update lockfile ( #3404 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-19 10:22:27 -05:00
github-actions[bot]
f54072bd3f
[ci] release ( #3378 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-17 11:50:18 -04:00
Fred K. Schott
d102cab126
[ci] update lockfile ( #3386 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-17 11:44:50 -04:00
Tony Sullivan
387ed0cfa1
Deprecate @astrojs/turbolinks ( #3383 )
...
* deprecating the Turbolinks integration
* chore: add changeset
2022-05-16 18:08:49 -05:00
Sarah Etter
43d922277a
Update out directories for Netlify Functions ( #3381 )
...
* Change out directories for Netlify Functions
* Changeset
* Update test
2022-05-16 14:44:21 -04:00
Juan Martín Seery
9d01f93b1c
feat(vercel): remove nodeVersion
( #3368 )
...
* Remove `nodeVersion`
* Changeset
2022-05-16 13:34:46 -05:00
Fred K. Schott
9dd16bace5
[ci] update lockfile ( #3363 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-16 13:33:16 -05:00
natemoo-re
58cca31e79
[ci] format
2022-05-16 18:32:54 +00:00
Mark Leung
31b0bc87a4
Add options to partytown integration ( #3380 )
...
* Add options to partytown integration
* Update doc
2022-05-16 13:32:05 -05:00
matthewp
77beab072f
[ci] format
2022-05-16 16:17:25 +00:00
Daniel Vivar
fe61e469b2
test(@astrojs/lit): adding tests ( #3375 )
...
* test(@astrojs/lit): adding tests
* changeset
2022-05-16 12:16:30 -04:00
Sarah Etter
e1294c422b
Netlify outdirectory ( #3377 )
...
* Change dist directory, and functions out directory
* Add changeset
* update docs
* Fix changeset
2022-05-16 11:58:31 -04:00
github-actions[bot]
2e414c3e70
[ci] release ( #3356 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 16:11:35 -06:00
Juan Martín Seery
945f5c68e8
fix(vercel): added type definitions ( #3355 )
...
* Added missing types
* Changeset
2022-05-12 16:59:07 -05:00
github-actions[bot]
cedb9a2105
[ci] release ( #3334 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 14:48:58 -06:00
Eloi-Perez
ea104dde91
Add config option customPages ( #3315 )
...
* Add config option customPages
Add config option customPages to be able to add custom URL pages to the sitemap.xml
* add comment to document customPages option
2022-05-12 14:19:58 -06:00
Fred K. Schott
7cd4b1bc12
[ci] update lockfile ( #3287 )
...
* [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-12 11:42:34 -05:00
matthewp
8666f22a0f
[ci] format
2022-05-12 16:06:40 +00:00
Ben Holmes
678c2b7523
Fix: React - Use "createRoot" instead of "hydrateRoot" for client:only
( #3337 )
...
* feat: pass "client" directive to clientEntrypoints
* refactor: remove hydration warning suppression react 17
* feat: remove hydration warning suppression react 18
* chore: changeset
* fix: change metadata to options bag
2022-05-12 10:05:55 -06:00
Juan Martín Seery
114bf63e11
refactor(vercel): Build Output API v3 ( #3216 )
...
* Removed ignores
* Migration to v3
* More changes
* Remove legacy redirects
* Fail when there is no ENABLE_VC_BUILD
* Fix edge
* Updated readme
* Changeset
* Added static mode
* Updated documentation
* Updated shim
* Made edge work!
* Updated changeset
* Ensure empty dir
* Fixed redirects for dynamic paths
* Removed extra declaration
* Splited imports
* Updated readme
* Fixed some urls
* Deprecated shim!
* [test]: Vercel NFT
* Beautify
* Edge bundle to node 14.19
Vercel runs 14.19.1 (I've checked it manually)
* Re-added shim (#3304 )
* Added `node:` prefix
* Use the same bundling as Deno for Edge
* Remove esbuild
* Fixed shim
* Moved nft
* Updated changeset
* Added note about Edge
* fix typo
* Added support for Node 16 (vercel/vercel#7772 )
2022-05-11 15:10:38 -06:00
Jonas Luebbers
abc5b219bb
Remove try/catch from solid component check ( #3282 )
...
* Remove try/catch from solid component check
* Move try/catch to renderComponent
* Add solid to integrations-playground example
2022-05-11 10:23:34 -06:00
Fred K. Schott
ce6d798282
Fix peer deps issue in svelte and vue plugins ( #3333 )
...
* fix peer deps issue
* add changeset
* rebuild lockfile
2022-05-11 09:23:32 -06:00
matthewp
3bb07a01e0
[ci] format
2022-05-11 15:14:43 +00:00
Pascal Schilp
352fc3166f
Fix/netlify edge redirects ( #3342 )
...
* fix: create redirects file for netlify edge adapter
* chore: changeset
* chore: distinguish between edge/regular
2022-05-11 09:13:23 -06:00
github-actions[bot]
58862fbf76
[ci] release ( #3284 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 17:14:26 -07:00
Tony Sullivan
9ad8aefdd7
Turbolinks: clean up injected scripts and styles on page navigation ( #3283 )
...
* client hydration scripts should be removed before navigation
* chore: adding a changeset
* also cleanup injected styles on page navigation
2022-05-03 22:30:46 +00:00
Nate Moore
15d9408678
Update @proload/core
( #3211 )
...
* chore: bump proload
* chore: update @proload/core
2022-04-26 17:26:01 -05:00
github-actions[bot]
8d8433ee50
[ci] release ( #3182 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 16:49:09 -04:00
Juan Martín Seery
eaad17694f
fix(vercel): trailingSlash
fix for non-html pages ( #3185 )
...
* fix(vercel): `trailingSlash` fix for non-html pages
* Changeset
2022-04-26 16:00:26 -04:00
Ben Holmes
7a61977db1
Feat: support astro add
without npm installing ( #3183 )
...
* deps: update to latest proload
* feat: avoid parsing config on resolveConfigUrl
* chore: changeset
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 14:35:44 -04:00
tony-sull
7ccda57c1d
[ci] format
2022-04-22 18:00:08 +00:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte ( #3181 )
...
* updating svelte integration to allow custom user config
* test: adding a test to verify that svelte options are piped through the integration
* updating the README with docs on overridding svelte options
* chore: adding changeset
* fix: copy/paste bug in test validation
* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
matthewp
738fb958c3
[ci] format
2022-04-22 14:04:54 +00:00
Fred K. Schott
bd76716c88
[ci] update lockfile ( #3162 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -04:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash
( #3176 )
2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets ( #3170 )
...
* Netlify Edge: forward requests for static assets
* Adds a changeset
* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
Fred K. Schott
9c0fc6877a
Update Vercel adapter readme
2022-04-21 14:31:45 -07:00
Fred K. Schott
0b432c087a
Update README.md
2022-04-21 14:24:09 -07:00
github-actions[bot]
84939b2ff2
[ci] release ( #3172 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
natemoo-re
b6f14c3b14
[ci] format
2022-04-21 20:13:54 +00:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook ( #3166 )
2022-04-21 15:13:09 -05:00
github-actions[bot]
0406bdc35b
[ci] release ( #3165 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 12:19:52 -04:00
matthewp
8768f23f95
[ci] format
2022-04-21 16:11:09 +00:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense ( #3160 )
...
* Revert "Revert "Fixes using React.lazy and Suspense""
This reverts commit e621c2f7d3
.
* Adds a changeset
* Fix ts errors
* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
github-actions[bot]
3cdc5f1bfb
[ci] release ( #3161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 11:34:03 -04:00
matthewp
9fcac8e551
[ci] format
2022-04-21 15:13:24 +00:00
Matthew Phillips
e85b16e2b3
Make 'lit' always be bundled in SSR ( #3164 )
...
* Make 'lit' always be bundled in SSR
* Adds a changeset
2022-04-21 11:12:21 -04:00
Matthew Phillips
e621c2f7d3
Revert "Fixes using React.lazy and Suspense"
...
This reverts commit 700d4f9649
.
2022-04-20 17:17:36 -04:00
unknown
700d4f9649
Fixes using React.lazy and Suspense
2022-04-20 17:17:11 -04:00
Matthew Phillips
eea9090ed5
Netlify adapter, add --build flag in the readme ( #3157 )
2022-04-20 12:25:22 -04:00
Fred K. Schott
00b8343844
[ci] update lockfile ( #3153 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-20 09:42:31 -04:00
github-actions[bot]
fce98d5552
[ci] release ( #3151 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 22:45:07 -07:00
natemoo-re
b3a423849b
[ci] format
2022-04-19 18:38:14 +00:00
hippotastic
5e28b79095
Fix location of SolidJS pre-hydration code ( #3140 )
...
* Run before hydration instead of inlining a script after each component
2022-04-19 13:37:27 -05:00
github-actions[bot]
9e00f6d546
[ci] release ( #3149 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:30:27 -04:00
matthewp
0f984473cf
[ci] format
2022-04-19 17:14:44 +00:00
Matthew Phillips
05cf1a5067
Adjustments for Netlify Edge Functions ( #3150 )
...
* Adjustments for Netlify Edge Functions
* Adds a changeset
2022-04-19 13:13:52 -04:00
Tony Sullivan
44e294c9cb
Support custom vue compiler options in @astrojs/vue ( #3143 )
...
* adds support for passing options to @vitejs/plugin-vue
* updating vue integration README with options details
* adding a tests for custom vue compiler options
* chore: adding changeset
2022-04-19 16:31:32 +00:00
Matthew Phillips
550c7d0a94
Ignore test folder in Netlify
2022-04-19 11:45:19 -04:00
github-actions[bot]
95d0db5a44
[ci] release ( #3120 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 11:30:34 -04:00
matthewp
13b1bdd972
[ci] format
2022-04-19 15:23:07 +00:00
Matthew Phillips
4cf54c60aa
Netlify Edge function support ( #3148 )
...
* Netlify Edge function support
* Update readme with edge function information
* Adds a changeset
* Disable running edge function test in CI for now
2022-04-19 11:22:15 -04:00
Juan Martín Seery
4ac3797344
feat(vercel): added warning when ENABLE_FILE_SYSTEM_API=1
is missing ( #3139 )
...
* Added warning in buildtime
* Updated readme
* Changeset
2022-04-18 19:19:46 -03:00
matthewp
089ce68f08
[ci] format
2022-04-15 21:02:19 +00:00
Matthew Phillips
e5383cd357
Handle static file serving in Deno adapter's start command ( #3121 )
...
* Handle static file serving in Deno adapter's start command
* Adds a changeset
* Ignore a .ts imort
2022-04-15 17:01:33 -04:00
Juan Martín Seery
b0ba22c5ff
fix(vercel): CJS bundle fix ( #3051 )
...
* fix(vercel): CJS bundle fix
* Changeset
2022-04-15 15:58:57 -04:00
github-actions[bot]
254048dc82
[ci] release ( #3103 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:10:29 +00:00
matthewp
c6551289ee
[ci] format
2022-04-14 13:52:56 +00:00
Matthew Phillips
4ac0d5d4e7
Support the Markdown component in SSR ( #3036 )
...
* Support the Markdown component in SSR
* Adds a changeset
* Support runtime markdown in Node.js
* Remove option from test adapter
2022-04-14 09:51:53 -04:00
Nate Moore
a391f5dc07
chore: add build:ci script to integrations ( #3104 )
2022-04-13 13:31:50 -04:00
tony-sull
1c8524505e
[ci] format
2022-04-13 15:05:59 +00:00
Tony Sullivan
254a8f3749
Fixing bug that could lose Tailwind's default presets ( #3099 )
...
* fixing bug that could lose Tailwind's default presets
* updating integration README
* chore: adding changeset
* test: fixing the tailwind tests
2022-04-13 15:05:00 +00:00
github-actions[bot]
b23f6b1596
[ci] release ( #3101 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
github-actions[bot]
21926278ba
[ci] release ( #3090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-12 20:15:14 -07:00
matthewp
6d0b0597bd
[ci] format
2022-04-12 20:50:59 +00:00
Matthew Phillips
a5caf08e24
Allow setting multiple cookies in Netlify adapter ( #3092 )
...
* Allow setting multiple cookies in Netlify adapter
* Adds a changeset
* Set the response status code
* Add a comment on why this is needed
2022-04-12 16:50:10 -04:00
Juan Martín Seery
f665d1a250
fix(vercel): support dynamic paths ( #3081 )
...
* fix(vercel): support dynamic paths
* Changeset
2022-04-12 10:02:59 -04:00
github-actions[bot]
0966a432a8
[ci] release ( #3080 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-11 19:59:32 -07:00
hippotastic
9f248b0563
Make Netlify adapter actually append redirects ( #3079 )
2022-04-11 12:30:47 -07:00
github-actions[bot]
791a524411
[ci] release ( #3064 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 21:13:11 -07:00
FredKSchott
83d83a7b04
[ci] format
2022-04-11 03:30:44 +00:00
Fred K. Schott
83613120a9
fix up changelogs
2022-04-10 20:29:51 -07:00
github-actions[bot]
21c74e572c
[ci] release ( #3061 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:15:02 -07:00
Fred K. Schott
2bb6a06ebb
revert release
2022-04-10 20:11:34 -07:00
FredKSchott
e2e28ca23e
[ci] format
2022-04-11 03:02:11 +00:00
github-actions[bot]
46f02d9cf4
[ci] release ( #3060 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:01:00 -07:00
Fred K. Schott
77c0be5b26
update lockfile ( #3059 )
2022-04-10 19:12:30 -07:00
Fred K. Schott
c05a544acd
update tailwind integration readme
2022-04-10 18:12:34 -07:00
FredKSchott
39e0a7d757
[ci] format
2022-04-10 21:35:37 +00:00
Fred K. Schott
fbc32cf655
remove site requirement from netlify adapter ( #3041 )
...
* remove site requirement from netlify adapter
* update readme
2022-04-10 14:34:49 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild ( #3028 )
...
* chore: updated esbuild
* Changeset
2022-04-10 14:33:10 -07:00
github-actions[bot]
a5aea2ce56
[ci] release (beta) ( #3023 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-07 15:22:47 -04:00
matthewp
c757427fca
[ci] format
2022-04-07 17:23:16 +00:00
Matthew Phillips
8c04ff1f0b
Allow an adapter to export default ( #3022 )
...
* Allow an adapter to export default
* Adds a changeset
2022-04-07 13:21:56 -04:00
natemoo-re
5b51d81889
[ci] format
2022-04-06 21:41:37 +00:00
github-actions[bot]
1d0c1d8977
[ci] release (beta) ( #3007 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 16:40:46 -05:00
matthewp
340cc1c8e4
[ci] format
2022-04-06 20:22:36 +00:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes ( #3011 )
...
* Fix Netlify adapter and dynamic routes
* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done
dir now matches SSR client output ( #3008 )
...
* `dir` now matches client output
* Updated integrations
* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid ( #3003 )
...
* fix: solid nested hydration
* Create ten-rice-unite.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes ( #3000 )
...
* Fixed outDir
* Updated server out
* changeset
* Renamed out to tmp
2022-04-06 14:15:46 -03:00
Nate Moore
ba90ef53d3
Update readme.md
2022-04-06 10:27:16 -05:00
matthewp
cf92954e5a
[ci] format
2022-04-05 19:29:23 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) ( #2997 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement ( #2996 )
...
* feat: human-readable error on bad site or base
* fix: human-readable error should have 1 config option
* docs: update README
* chore: changeset
* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
github-actions[bot]
2552db0d09
[ci] release ( #2975 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
JuanM04
bf2199e1df
New astro config
2022-04-02 18:59:03 -03:00
JuanM04
ccce433994
Formatted
2022-04-02 18:56:13 -03:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter
2022-04-02 18:53:00 -03:00
Fred K. Schott
1335797903
update prettier width ( #2968 )
2022-04-02 14:15:41 -06:00
FredKSchott
d63213f119
[ci] format
2022-04-02 19:50:17 +00:00
github-actions[bot]
7fe149ae43
[ci] release ( #2969 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6
Revert "[ci] release ( #2925 )"
...
This reverts commit 48c9b142cc
.
2022-04-02 13:46:25 -06:00
FredKSchott
d047baad11
[ci] format
2022-04-02 19:41:44 +00:00
github-actions[bot]
48c9b142cc
[ci] release ( #2925 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode ( #2967 )
2022-04-02 13:37:28 -06:00
Nate Moore
17c02925c5
Migrate to new config ( #2962 )
...
* wip: config migration
* fix: formatting
* refactor: projectRoot -> root
* refactor: pageUrlFormat -> format
* refactor: buildOptions.site -> site
* refactor: public -> publicDir
* refactor: dist -> outDir
* refactor: styleOptions -> style
* fix: some dist tests -> outDir
* refactor: remove legacyBuild (with TODOs)
* refactor: more legacyBuild cleanup
* refactor: server host and port
* fix: remove experimentalStaticBuild CLI flag
* refactor: src -> srcDir
* refactor: devOptions.trailing -> trailing
* refactor: remove sitemap + related flags
* refactor: experimentalSSR -> experimental.ssr
* fix: last devOptions
* refactor: drafts -> markdown.drafts
* fix: TS error on port as const
* refactor: remove pages
* refactor: more --project-root updates
* refactor: markdownOptions -> markdown
* fix: remaining type errors
* feat: update AstroUserConfig
* refactor: update CLI flag mapper + server mapper
* fix: loadFixture projectRoot
* fix: merge CLI flags before validating / transforming
* wip: attempt to fix bad createRouteManifest config
* refactor: combine config.base and config.site
* fix: skip route manifest test for now
* fix: site and base handling
* refactor: update failing config testes
* fix: build failure
* feat: update config types with migration help
* chore: update types
* fix(deno): update deno fixture
* chore: remove config migration logic
* chore: remove logLevel
* chore: clean-up config types
* chore: update config warning
* chore: add changeset
* Sitemap Integration (#2965 )
* feat: add sitemap filter config option
* feat: add canonicalURL sitemap config option
* docs: update sitemap README
* fix: update for new config
* fix: filter not being applied
* chore: changeset
Co-authored-by: bholmesdev <hey@bholmes.dev>
* fred pass
* fix: Astro.resolve typo
* fix: public => publicDir
Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
Tony Sullivan
226822cbbf
Allows projects to opt out of the base Tailwind styles ( #2959 )
...
* adding an option to opt-out of the Tailwind base styles
* chore: adding changeset description
2022-04-01 13:45:43 +00:00
JuanM04
60c5823ae1
Added some comments
2022-03-31 15:37:33 -03:00
JuanM04
56cb78bd40
Reverted config hook changes
2022-03-31 15:31:56 -03:00
JuanM04
c2f4dd44e3
Removed extra code
2022-03-31 15:14:04 -03:00
JuanM04
437e08e5ca
Updated readme
2022-03-31 15:12:43 -03:00
JuanM04
764467a21d
Merge branch 'main' into feat/vercel-adapter
2022-03-31 15:11:56 -03:00
Juan Martín Seery
d10c3dea21
fix: --experimental-ssr
fixes ( #2937 )
...
* Replaced `--experimental-ssr` with `isBuildingToSSR`
* changest
* Improved `isBuildingToSSR` a bit
* Added `isBuildingToSSR` to more places!!1!
* Added `@deprecated` tag
* Replaced missing experimentalSsr
* Added failing test
* Removed test
* Re-added experimental ssr flag
* Fixed typo
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Fixed deno tests
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:58:03 -04:00
matthewp
355c966f80
[ci] format
2022-03-31 17:02:05 +00:00
Fred K. Schott
3a4dc9e0a7
React 18 monorepo upgrade ( #2948 )
...
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* update React to React 18 across the board
Co-authored-by: delucis <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:01:05 -04:00
matthewp
bdb9ba1c34
[ci] format
2022-03-31 16:52:34 +00:00
Fred K. Schott
57f48b2701
Add support for React 18 in @astrojs/react ( #2947 )
...
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* add changeset
* add docs
Co-authored-by: delucis <swithinbank@gmail.com>
2022-03-31 12:51:29 -04:00
JuanM04
e890b528c4
Build to CommonJS
2022-03-30 23:08:39 -03:00
JuanM04
20c3969a43
Merge branch 'main' into feat/vercel-adapter
2022-03-30 21:50:41 -03:00
matthewp
6a1a40eef8
[ci] format
2022-03-30 12:43:13 +00:00
Matthew Phillips
13b271bc7d
Deno adapter ( #2934 )
...
* Bundle everything, commit 1
* Get everything working
* Remove dependency on readable-stream
* Adds a changeset
* Fix ts errors
* Use the node logger in tests
* Callback the logger when done writing
* Fix test helper to await the callback
* Use serialize-javascript again
* Remove dead code
* Rename hook
* Oops
2022-03-30 08:42:19 -04:00
JuanM04
8c65f13327
Updated readme
2022-03-29 23:11:27 -03:00
JuanM04
0555099619
Removed changes no longer necessary
2022-03-29 23:04:53 -03:00
JuanM04
697ff4dfb4
Rework - now it's all SSR
2022-03-29 23:01:37 -03:00
JuanM04
7e5f6f1cbb
Merge branch 'main' into feat/vercel-adapter
2022-03-29 17:36:10 -03:00
Fred K. Schott
23b8ee2738
[ci] update lockfile ( #2930 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-29 08:59:46 -07:00
JuanM04
a878a5cb77
Updated some types + added webapi
2022-03-28 17:55:03 -03:00
JuanM04
f946687bea
Build API Routes
2022-03-28 15:13:14 -03:00
JuanM04
d4cff2333d
Basic Filesystem API
2022-03-28 10:05:55 -03:00
github-actions[bot]
779b5dd37c
[ci] release ( #2892 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 18:03:58 -05:00
Zade Viggers
71c12b9047
Correct package name in solid intergration readme ( #2889 )
...
* Correct package name in solid intergration readme
* Create polite-mirrors-fix.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:54:18 -05:00
natemoo-re
192d703563
[ci] format
2022-03-25 22:01:50 +00:00
github-actions[bot]
109693bb05
[ci] release ( #2884 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 17:00:49 -05:00
Ben Holmes
6b004363f9
Docs: remaining integration READMEs ( #2885 )
...
* docs: partytown README
* docs: sitemap README
* docs: tailwind README
* docs: turbolinks README
* chore: changeset
* update: make partytown 10% less fun
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* docs: add summaries for each integration
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:45:34 -04:00
Ben Holmes
7c39389a3f
Docs: READMEs for component framework integrations ( #2880 )
...
* docs: add base integration readme temp for Vue
* docs: copy integration temp across renderers
* feat: add get started with components section
* feat: adapt comp integration docs for lit
* nit: THERES TWO WAYS SPECIFICALLY
* nit: there's more edits wait "there are" dangit
2022-03-25 12:15:38 -04:00
matthewp
4edccae534
[ci] format
2022-03-25 16:08:51 +00:00
Matthew Phillips
80034c6cbc
Netlify adapter ( #2879 )
...
* Netlify adapter
* Remove package.json export that doesnt exist
* Fix out path
* Make netlifyFunctions the default
* Make the dist configurable
* Add an export for the functions
* Append of the file exists
2022-03-25 12:08:02 -04:00
github-actions[bot]
c78d7a46c9
[ci] release (next) ( #2860 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-24 17:37:49 -05:00
matthewp
f5b48bc0ae
[ci] format
2022-03-24 21:09:40 +00:00
Matthew Phillips
e4025d1f53
Build to a single file ( #2873 )
...
* Build to a single file
* Updates based on initial code review
* Adds a changeset
* Use the default export for cjs module
* Await generatePages
* Prevent timing from causing module to not import
* Fix shared CSS
* Properly handle windows ids
* Dont shadow
* Fix ts errors
* Remove console.log
2022-03-24 17:08:36 -04:00
Ben Holmes
098f6f6b06
Fix: is self accepting
pt 2 module graph boogaloo ( #2872 )
...
* fix: isSelfAccepting Preact error
* refactor: add .js ext to preact entrypoints for consistency
* chore: changeset
* fix: remove ./client and ./server from preact pkg exp
2022-03-24 12:28:50 -04:00
matthewp
99414f76cf
[ci] format
2022-03-24 11:27:15 +00:00
Matthew Phillips
5e52814d97
Adapters v0 ( #2855 )
...
* Adapter v0
* Finalizing adapters
* Update the lockfile
* Add the default adapter after config setup is called
* Create the default adapter in config:done
* Fix lint error
* Remove unused callConfigSetup
* remove unused export
* Use a test adapter to test SSR
* Adds a changeset
* Updated based on feedback
* Updated the lockfile
* Only throw if set to a different adapter
* Clean up outdated comments
* Move the adapter to an config option
* Make adapter optional
* Update the docs/changeset to reflect config API change
* Clarify regular Node usage
2022-03-24 07:26:25 -04:00
Nate Moore
5c96145527
add build:ci command which skips tsc
( #2869 )
2022-03-23 19:46:16 -05:00