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