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
Matthew Phillips
2f05f5d307
Include trailingSlash in astro:build:done hook ( #4553 )
2022-08-30 11:45:16 -04:00
Ben Holmes
69b640b87c
Fix "failed to load for SSR" error when removing Astro <style>
blocks ( #4548 )
...
* wip: try removing ssrLoadModule on styles
* chore: changeset
* fix: invalidate mod before crawling graph
* Revert "fix: invalidate mod before crawling graph"
This reverts commit 883710d21c
.
* Revert "wip: try removing ssrLoadModule on styles"
This reverts commit 880e73d94a
.
* SAD fix: try/catch on ssrLoadModule
* refactor: isFile -> isRootFile
* docs: update comments for new findings
2022-08-30 11:27:19 -04:00
Bjorn Lu
9adb7cca33
Vite ignore unknown import ( #4527 )
2022-08-30 15:25:34 +08:00
Ben Holmes
bb71be78db
[astro add] Add an Adapter -> Add an SSR Adapter ( #4546 )
...
* nit: Add an Adapter -> Add an SSR Adapter
* chore: changeset
2022-08-29 17:05:12 -04: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
Bjorn Lu
046bfd908d
Skip clean SSR output if page generation fails ( #4526 )
2022-08-29 23:59:25 +08:00
Bjorn Lu
2d2e38e473
Remove hardcoded Vite middleware handling ( #4531 )
2022-08-29 23:11:18 +08:00
Erika
ca28d7578b
Add missing slot attribute to possible attributes on SVG elements ( #4535 )
2022-08-29 12:06:50 -03: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
applemonkey496
d431fbe4e1
fix: config type import ( #4524 )
2022-08-29 00:12:58 -03: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
270852370a
[ci] release ( #4508 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 21:30:37 -03:00
Erika
4e1af3f0e8
Fix import-meta.d.ts not being included in the package ( #4507 )
2022-08-26 19:28:34 -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
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
Erika
9874c7bf42
Update astro check to use latest version of the language server ( #4500 )
...
* Update @astrojs/language-server to latest version
* Add changeset
* Update lockfile
2022-08-26 12:54:38 -03:00
Erika
1f42c0791c
Vendor Vite's importMeta.d.ts inside our repo to workaround issue with tsc
on Linux ( #4499 )
...
* Update @astrojs/language-server to latest version
* Vendor importMeta.d.ts from Vite inside our repo to workaround TypeScript issue on Linux
* Remove unnecessary change
* Add changeset
2022-08-26 12:47:39 -03:00
Ben Holmes
78e06c8ec0
Only print file output only for 404 and 500 routes ( #4497 )
...
* fix: print file output only for 404 and 500 routes
* chore: changeset
2022-08-26 11:35:30 -04:00
Abdullah Mzaien
824a2adddd
chore: update to solid 1.5 ( #4496 )
2022-08-26 11:11:57 -04:00
Matthew Phillips
62fd846ea8
Exit prerelease mode for 1.1 release ( #4493 )
2022-08-26 10:16:29 -04: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
ac03218247
[MD] extendDefaultPlugins
to preserve default remark plugins ( #4474 )
...
* feat: add { extends } to markdown config
* test: remark plugins with extends
* deps: pnpm lock
* chore: changeset
* fix: remarkPlugins -> rehypePlugins
* docs: update markdown config reference
* Revert "feat: add { extends } to markdown config"
This reverts commit 5d050bbcf9a2c0d470cae79c4d0a954d489f4e8c.
* feat: new "extendDefaultPlugins" flag
* docs: update config
* nit: We -> Astro applies
* fix: backticks on `false`
* nit: Note -> REAL note
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: note -> caution
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-25 17:21:56 -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
gtnbssn
839097c84e
make Remark rehype options available in astro config ( #4138 )
...
* make remark-rehype config available in astro.config.mjs
* add test for remark-rehype config, checks that footnotes can be translated
* update lockfile to take the added test into account
* omit handlers and unkownHandler from the RemarkRehype type
* define RemarkRehype with proper references to the handler and handlers types
* formatting
* changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-25 16:30:16 -04:00
Matthew Phillips
cd154e447b
Make Astro.url conform to build.format during the build ( #4352 )
...
* Make Astro.url conform to build.format during the build
* Adding a changeset
* Better implementation
* fix some stuff that tests failed on
* Add docs
* Change to minor
* account for empty path
2022-08-25 15:20:59 -04:00
Erika
77ce6be30c
Add template tsconfigs for users to extend from ( #4439 )
...
* Add tsconfig templates to extend from
* Add changeset
* Right order for assign parameters
* Add tsconfigs to export map
2022-08-25 15:15:27 -04:00
Aleksander Heintz
fcc36ac908
Make astro package play nice with node16 module resolution ( #4182 )
...
* Make astro package play nice with node16 module resolution
Projects using node16 module resolution in typescript uses the new
exports and imports configuration from typescript to find definition
files. This mirrors how nodejs resolves the files. If a package contains
an exports map in the package.json, typescript will ignore the "types"
field (not sure how it plays with typesVersions). This moves the typings
hirearchy of definition files into the same hierarchy that astro
produces output files in, so that typescript can discover them.
Fixes : #4172
* Add changeset
* Reorder export keys
* Update paths inside .d.ts files
Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-08-25 14:57:11 -04:00
Matthew Phillips
243525b156
Add changeset for @astrojs/react minor ( #4478 )
2022-08-25 14:56:10 -04:00
Matthew Phillips
1aa5208cbe
Enter prerelease mode for 1.1 ( #4477 )
2022-08-25 14:50:26 -04:00
Fred K. Bot
0b66ff39b8
[ci] release ( #4453 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25 12:00:17 -04:00
Erika
47e71ae8f8
Added more clarification around using Astro.slots.render
( #4456 )
...
* Add an error message for when something that's not an array is passed to Astro.slots.render
* Add changeset
* Add more details
2022-08-25 11:42:27 -04:00
Matthew Phillips
78334b9765
Revert "Fix invalid hook usage for exports ( #4385 )" ( #4475 )
...
* Revert "Fix invalid hook usage for exports (#4385 )"
This reverts commit 8164fa6f1a
.
* Adding a changeset
2022-08-25 11:42:02 -04:00
Matthew Phillips
9490f0e223
Include styles imported by hoisted scripts ( #4457 )
...
* Include styles imported by hoisted scripts
* Add changeset
* remove unused imports
2022-08-25 11:14:22 -04:00
Bjorn Lu
467108730e
Remove optional chaining in astro-island ( #4473 )
2022-08-25 22:01:22 +08:00
kagankan
8a2d6958f1
Fix load base
option in build ( #4469 )
2022-08-25 09:35:28 -04:00
Bjorn Lu
aa555932be
Support vite.build.cssCodeSplit: false
option ( #4458 )
2022-08-25 16:34:13 +08:00
Bjorn Lu
a38a568299
Fix incorrect css test ( #4451 )
2022-08-24 22:11:42 +08:00
Bjorn Lu
85646918ac
Refactor CSS preprocess and HMR ( #4422 )
2022-08-24 21:06:48 +08: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
Ben Holmes
df4e999284
Add logs for long-running integration hooks ( #4445 )
...
* feat: basic logging for long astro:build:done hooks
* feat: add long time msg to all build hooks
* feat: use logger for long time msg
* chore: changeset
2022-08-23 14:07:09 -04:00
Matthew Phillips
27ac6a03a1
Use CSS depth to sort CSS in production ( #4446 )
...
* Use CSS depth to sort CSS in production
* Adds a changeset
2022-08-23 13:26:49 -04: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
Erika
ca0c7e8b83
Allow string as a valid value for the target attribute ( #4441 )
2022-08-23 11:39:02 -03:00
Bjorn Lu
baa2ddd010
Warn hydration directive for Astro components in JSX ( #4330 )
...
* Warn hydration directive for Astro components in JSX
* Add changeset
* Better comment
2022-08-23 10:38:31 -04:00
Ben Holmes
dc42f2c00f
Fix astro add @example-org/integration
( #4430 )
...
* fix: parse third-party org names
* chore: changeset
2022-08-23 10:09:39 -04:00
Matthew Phillips
f40065f510
Ensure index pages are generated on paginated results ( #4426 )
...
* Ensure index pages are generated on paginated results
* Changeset
2022-08-23 08:47:20 -04:00
Kiril Shevchuk
8164fa6f1a
Fix invalid hook usage for exports ( #4385 )
...
* Add proper support functional components exports
* Add changeset
* Add support for `export default X`
2022-08-23 08:46:51 -04:00
Cameron McEfee
b2e976f39c
fix (core): allow falsy values in astro config integrations arrays ( #4427 )
...
* allow falsy values in astro config integrations arrays
* add changeset
2022-08-23 08:23:08 -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
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 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
Fred K. Schott
7310e8a178
add an alpine integration and update example ( #4406 )
2022-08-22 14:25:57 -04:00
Fred K. Schott
a70f69a06c
refactor the JSX plugin to improve performance ( #4405 )
2022-08-22 14:25:09 -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
Bjorn Lu
39088e11db
Bump Vite to 3.0.9 ( #4415 )
2022-08-22 10:58:50 -04:00
Matthew Phillips
5e82f6c245
Fix race condition with directive definitions ( #4375 )
2022-08-22 10:39:16 -04:00
Bjorn Lu
77b068086d
Preserve all error stack lines ( #4364 )
2022-08-18 14:36:31 +08:00
Chris Swithinbank
beed20be4a
Provide correct MIME type for dynamic endpoint routes in dev ( #4356 )
2022-08-17 20:07:14 +02:00
Bjorn Lu
500332a426
Refactor static build config merge ( #4344 )
2022-08-17 23:24:14 +08:00
Joseph Lozano
aa5118e854
Fallback to undefined rather than false when resolving CLI flags ( #4362 )
2022-08-17 15:47:38 +08: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
Ben Holmes
166b3b8a54
Fix: TS lint on MDXLayoutProps
( #4347 )
...
* fix: extends interface -> type
* chore: changeset
2022-08-16 09:45:10 -04:00
Tony Sullivan
0274b8d47b
SSR doesn't need to block multiple routes that match the same URL ( #4329 )
...
* fix: SSR doesn't need to block multiple routes that match the same URL
* chore: add changeset
2022-08-15 13:57:10 -04:00
Matthew Phillips
b55f76c1ca
Fix double injecting of head content in md pages ( #4334 )
...
* Fix double injecting of head content
* Refactor
* Changeset
* Break into a separate util fn
* fix oops
* remove unused code
2022-08-15 13:10:28 -04: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
Fred K. Bot
16edf0c773
[ci] release ( #4296 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-13 10:09:17 -07:00
Fred K. Schott
1d3a0a16f3
Revert "Ensure hydration scripts inside of slots render ASAP ( #4288 )" ( #4302 )
...
* Revert "Ensure hydration scripts inside of slots render ASAP (#4288 )"
This reverts commit c218100684
.
* Create khaki-dots-press.md
2022-08-13 10:00:12 -07:00
Fred K. Schott
73f367c77b
add protection if astro preview is run with server output ( #4284 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-13 00:09:58 -07: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
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
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
Ben Holmes
3ca9051749
[astro add] Set output: 'server'
when adding adapter ( #4289 )
...
* fix: add `output: 'server'` when setting adapter
* chore: changeset
2022-08-12 13:16:19 -04:00
Matthew Phillips
8f845ca950
Prevents automatic trailingSlash behavior with getStaticPaths ( #4265 )
...
* Prevents automatic trailingSlash behavior with getStaticPaths
* Testing
* weird change
2022-08-12 12:19:32 -04:00
Matthew Phillips
c218100684
Ensure hydration scripts inside of slots render ASAP ( #4288 )
...
* Ensure hydration scripts inside of slots render ASAP
* Changeset
* fix type errors
* Update packages/astro/src/runtime/server/render/page.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-12 12:18:41 -04:00
Nate Moore
c0992e1fef
fix( #4194 ): remove Astro runtime from browser ( #4282 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-12 10:48:53 -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
Nate Moore
7127b1bb35
Fix astro add
with third-party integrations ( #4270 )
...
* fix: nicer third-party integration names
* chore: add changeset
* fix: better handling for package names
* update changelog
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-11 16:31:28 -07:00
Erika
0022f46b57
Fix build output for endpoints route ( #4273 )
...
* Fix build output for endpoints route
* Add changeset
2022-08-11 16:28:06 -07: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
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
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
Nate Moore
1f0dd31d92
fix( #4246 ): fix Prism indentation and class ( #4251 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-11 10:59:48 -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
Bjorn Lu
a9baa45af3
Simulate Vite resolve id to url ( #4239 )
...
* Simulate Vite resolve id to url
* Add changeset
2022-08-10 16:53:52 -04:00
Matthew Phillips
714a8399e2
Return 404 status code for 404.astro in SSR ( #4247 )
...
* Return 404 status code for 404.astro in SSR
* Adding a changeset
2022-08-10 16:22:31 -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
Matthew Phillips
561a34d912
Include astro components for HMR invalidation ( #4240 )
...
* Include astro components for HMR invalidation
* Changeset
* remove extra vite server passing
2022-08-10 15:26:58 -04: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
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
Bjorn Lu
c38e7f1890
Remove dev server during build ( #4234 )
2022-08-10 22:06:02 +08:00
Mayank
e918b3883e
feat: Support -y
in astro add
( #4225 )
2022-08-09 21:29:51 -07: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
Fred K. Schott
3a7f2385ea
Revert "[ci] release ( #4223 )"
...
This reverts commit d4ad409875
.
2022-08-09 17:28:02 -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
Masataka Yakura
fe3b423982
Markdown component: fix package name in readme.md ( #4208 )
...
* Markdown component: fix package name in readme.md
readme says it's `@astrojs/markdown`, but package name is actually `@astrojs/markdown-component`.
* Create dry-deers-vanish.md
* Update dry-deers-vanish.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-09 16:28:48 -07:00
Fred K. Bot
d4ad409875
[ci] release ( #4223 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-09 19:25:15 -04:00
Ben Holmes
b5ef1c2113
[MD] Add rawContent
and compiledContent
to MD layout props ( #4222 )
...
* fix: add subs for astro.source and astro.html
* fix: define "source" property
* test: raw and compiled content from layout
* chore: changeset
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-08-09 19:18:34 -04: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
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
Nate Moore
ec376369a8
fix: ensure jsx does not reference server entrypoint ( #4203 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 16:26:36 -05: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
Matthew Phillips
25d36d9558
Refactor runtime ( #4201 )
...
* Refactor runtime
* Add back in generator change
* Adding a changeset
* Fix build
2022-08-08 15:35:01 -04:00
Nate Moore
f207c417e0
Add Astro.generator ( #4012 )
...
* feat: add generator property and component
* chore: remove `Generator` component
* chore: update generator description
* chore: include generator in examples
* chore: update lockfile
* chore: format
* fix: do not reference core from server runtime
* chore: remove component test
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 12:34:05 -05: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
Maik Jablonski
5e71a8720e
fix: astro preview does not serve custom 404 (4113) ( #4189 )
...
* fix: astro preview does not serve custom 404 (4113)
* fix: use exists instead of stat
* Create thick-ducks-sparkle.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 09:40:07 -05:00
Bjorn Lu
28ab273a3d
Fix client build sourcemap generation ( #4195 )
2022-08-08 21:55:18 +08:00
Fred K. Bot
3a7e0221b3
[ci] release ( #4186 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-06 09:06:57 -07:00
Erika
77c018e515
Fix relaxed and default TypeScript settings not working ( #4183 )
...
* Fix relaxed and default TypeScript settings not working
* Create itchy-hats-exist.md
2022-08-06 07:04:39 -07: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
Erika
d344f9e3ec
Add a TypeScript step to create-astro
( #4179 )
...
* Add a TypeScript step to create-astro
* Add changeset
* fred pass
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-05 21:06:18 -07: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
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
Nate Moore
9afa4611cb
Support Fragment in MDX files ( #4136 )
...
* fix: Fragment for MDX files
* Update core.ts
* fix: better type guard for `render`
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 17:16:34 -05:00
Nate Moore
c56a9227c7
Fix [Object object] in MDX output ( #4180 )
...
* fix: use stringifyChunk in `renderToString` fn
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 17:12:18 -05:00
Matthew Phillips
69db0298d0
Update compiler version ( #4175 )
...
* Update compiler version
* Adds a changesetp
* Update lockfile
* Skip old non-html5 doctype test
* update compiler to 0.23.1
2022-08-05 17:41:35 -04: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 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
Ben Holmes
471c6f784e
[markdown] Harder, better, faster, stronger vite-plugin-markdown
( #4137 )
...
* refactor: vite-plugin-md -> vite-plugin-md-legacy
* wip: add vite-plugin-md
* feat: always apply jsx renderer
* fix: markHTMLString on VNode result
* feat: apply new vite-plugin-markdown!
* fix: add meta export to md
* fix: remove needless $$metadata export
* fix: toggle to legacy plugin on flag
* fix: pass fileId to renderMarkdown
* test: raw and compiled content on plain md
* fix: escape vite env refs
* refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown
* fix: import.meta.env refs with tests
* fix: add pkg.json to clientAddress
* fix: prefer JSX integration over Astro runtime
* Revert "fix: prefer JSX integration over Astro runtime"
This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1.
* fix: remove .mdx check on importSource
* chore: changeset
* chore: remove TODO
* fix: add back getHeadings
* fix: add pkg.json to astro-head fixture
* fix: default to Astro renderer for MDX and MD
* feat: add "headings" and "frontmatter" to md layouts
* refactor: remove legacy flag conditionals from legacy plugin
* fix: add back MDX warning when legacy is off
* test: getHeadings() glob
* fix: add error on "astro.headings" access
* feat: update docs example astro.headings => headings
* refactor: readFile as string w/ utf-8
* chore: remove astro metadata TODO
* refactor: stringify HTML once
* fix: add pkg.json to glob-pages-css
2022-08-05 15:43:50 -04:00
Nate Moore
36223f663e
Add getViteConfig
helper ( #4154 )
...
* feat: add astro/compat entrypoint for vitest
* chore: add with-vitest example
* chore: add vitest as optional peer dependency
* chore: update lockfile
* refactor: remove astro/compat, use astro/config
* feat: allow arbitrary modes for `create-vite`
* feat: pass vite mode and command when using `getViteConfig`
* chore: remove vitest from peer deps
* chore: add changeset
* chore: update lockfile
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 14:41:01 -05:00
Nate Moore
025743849d
Fix duplicate CSS in dev
mode ( #4157 )
...
* fix(hmr): remove SSR styles once HMR styles are injected
* refactor: remove data-astro-injected tag
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 13:36:03 -05: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
hippotastic
16034f0dd5
Fix double-escaping of non-highlighted code blocks in Astro-flavored markdown ( #4169 )
2022-08-05 16:23:16 +02:00
Matthew Phillips
82a1063cc2
Include CSS when child component uses Astro.glob on page ( #4156 )
...
* Include CSS when child component uses Astro.glob on page
* windows compat
* Make work on windows
* Remove unnecessary concat
2022-08-05 09:52:12 -04:00
Fred K. Schott
c7efcf57e0
fix missing newline bug in mdx ( #4145 )
2022-08-04 23:12:07 -07:00
Fred K. Schott
3321aace06
improve an error message for getstaticpaths ( #4153 )
2022-08-04 23:11:58 -07:00
kagankan
81c9ad9a6b
Add vite.build.cssTarget
support for CSS build ( #4155 )
...
* Add `vite.build.cssTarget` support for CSS build
* chore: update lockfile
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-04 14:39:43 -05:00
Fred K. Bot
32580d4fdc
[ci] release ( #4152 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-04 12:21:38 -04:00
Matthew Phillips
4d64752274
Order server CSS the same as static ( #4149 )
...
* Order server CSS the same as static
* Adds a changeset
2022-08-04 11:43:25 -04: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
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
Viktor Persson
ec5518fe30
Add mdx extension to tailwind content glob. ( #4063 )
...
* Add mdx extension to tailwind content glob.
* Create wicked-hairs-rescue.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-03 14:04:44 -05:00
Nate Moore
5f3b3b44db
Improve style HMR ( #4125 )
...
* feat: improve style HMR
* chore: add inline comments
* Update hmr.ts
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-03 14:03:56 -05:00
Matthew Phillips
09eca9be5e
Only rethrow renderer error when no renderer found ( #4131 )
...
* Only rethrow renderer error when no renderer found
* Adds a changeset
2022-08-03 14:33:31 -04:00
Alan
08432d5b01
Allow globbed mdx files to have typed frontmatter ( #4108 )
...
* Allow frontmatter typing for .mdx files from glob
`Astro.glob<T>("*.md")` is special cased to allow `T` to be a type for the frontmatter in the markdown. Since .mdx files also get frontmatter added to the globbed result, let's type it as such.
* Add changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-08-03 10:45:31 -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
Matthew Phillips
2ee8e881d4
Upgrade Vite to 3.0.4 ( #4124 )
...
* Upgrade Vite to 3.0.4
* Add a changeset
2022-08-02 14:25:38 -07: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
Adrian Dimitrov
9cc3a11c44
Do not send body with HEAD and GET on node integration ( #4105 )
...
* Do not send body with HEAD and GET on node integration
* Create seven-suits-sit.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-02 11:19:43 -05:00
Nate Moore
26cc0bbf78
Do not crawl non-style deps imported by styles ( #4115 )
...
* fix: do not crawl non-style deps imported by styles
* Update vite.ts
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02 10:26:38 -05: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
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
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
Tony Sullivan
a0d1731a7e
Updates the dev server to handle multiple routes matching the same URL ( #4087 )
...
* updates the dev server to handle multiple routes matching the same URL
* Adding an error message when multiple routes match in SSR
* resetting the flag used by the `calledTwiceTest`
* injected routes should be sorted with a higher priority than user-defined routes
* adding routing priority tests for injected routes
* chore: add changeset
* adding a dev test to make sure getStaticPaths is called once
2022-07-29 20:54:51 +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
Erika
c15cb36636
Fix shape of Markdown component to work with the language-server ( #4085 )
...
* Fix shape of Markdown component to work with the language-server
* Add changeset
2022-07-28 16:00:11 -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
Erika
cc10a5c8e0
Fix misc create-astro issues ( #4075 )
...
* Add prompt to automatically fix cache issue
* Throw an error when an invalid template is used
* Use already existing util
* Add changeset
2022-07-28 12:05:39 -04: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
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
Alfredo González Martínez
c565465a96
Add properties (url, file) to MarkdownContent type ( #4028 )
...
'url' and 'file' properties were missing in MarkdownContent type,
but they should there according to:
https://docs.astro.build/en/guides/markdown-content/#markdown-layouts
2022-07-28 08:13:27 -04: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
Matthew Phillips
13b4f8ad88
Add fontsource packages to always be noExternal ( #4073 )
...
* Add fontsource packages to always be noExternal
* Adds a changesetp
2022-07-27 15:48:21 -04:00
Matthew Phillips
54b33d50fd
Add errors to cloudflare/vercel adapters when no output config ( #4068 )
2022-07-27 11:50:48 -04: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
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
Matthew Phillips
453c026aa7
Move getStaticPaths call to happen during generation ( #4047 )
...
* Move getStaticPaths call to happen during generation
* Adds a changeset
* Update routing-priority.test.js
* revert test change, clarify test purpose
* Keep track of paths that have already been built
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-26 08:54:49 -04:00
Fred K. Schott
9ab66c4ba9
add support for injected page-ssr scripts ( #4050 )
2022-07-26 00:26:47 -04: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
Matthew Phillips
c811be49ab
Add warnings on markdown deprecations ( #4046 )
...
* Warn when using content.astro.headers
* Warn when using setup without the legacy flag enabled
* Adds a changeset
2022-07-25 15:14:53 -04:00
Matthew Phillips
7e5ac1f45c
Build the before-hydration script ( #4042 )
...
* Build the before-hydration script
* Adding a changeset
2022-07-25 12:14:41 -04:00
András Torma
6f88597c36
Added missing "loading" attribute for "IFrameHTMLAttributes" ( #4044 )
...
* Add missing "loading" attr to iFrame
* Add changeset
* re-ordering attributes
2022-07-25 11:11:08 -04: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
Ari Gibson
beddf073b5
Fix: (patching old PR) Check node version and find acceptable host accordingly ( #4032 )
...
* fix: check node version and find acceptable host accordingly
* Update for Node v18.4+
* Removed unrelated changesets
* Revert "Removed unrelated changesets"
This reverts commit e77ffc0fed
.
* chore: remove duplicate changeset
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-23 18:27:35 -05:00
Nate Moore
6e27a5fdc2
Rename Markdown util getHeaders()
to getHeadings()
( #4031 )
...
* Renamed getHeaders() to getHeadings(), according to RFC #208 .
* chore: update changeset
* fix: expose MarkdownHeading type from `astro`
Co-authored-by: Félix Sanz <me@felixsanz.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-23 17:23:15 -05:00
Nate Moore
1215e731b8
Preserve authored CSS specificity ( #4024 )
...
* feat: preserve authored CSS specificity
* chore: update tests to use :where()
* test: fix HTML and CSS test
* test: fix imported markdown CSS test
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-23 13:11:12 -05: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
Ben Holmes
00fab4ce13
Feat: new legacy.astroFlavoredMarkdown
flag ( #4016 )
...
* refactor: add legacy.jsxInMarkdown flag to config
* refactor: jsxInMarkdown -> astroFlavoredMarkdown
* refactor: remove `markdown.mode`
* feat: wire up legacy.astroFlavoredMarkdown
* test: add legacy to astro-markdown fixture
* test: remark autolinking
* test: remark components
* test: remark expressions
* test: remark strictness
* chore: remove "mode" from md component
* chore: remove "mode: md" from tests
* Fixing legacy MD tests, adding named slots tests for MDX pages
* chore: update lock file
* WIP: debugging named slots in MDX
* fix: handle named slots in MDX properly
* chore: re-enabling slots tests for MDX pages
* fixing test validation for svelte & vue
* removing unused Tailwind test
* legacy flag for Markdown component tests
* adding is:raw to Markdown component test
* adding is:raw to all Markdown component test fixtures
* can't use is:raw when nesting markdown components
* another nested test can't use is:raw
* one more <Markdown> test fix
* fixing another JSX markdown component test
* chore: add changeset
* e2e tests were missing the legacy flag
* removing the broken tailwind E2E markdown page
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-22 22:45:16 +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
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
Nate Moore
27ee8b97ae
Overhaul HMR handling for .astro
files ( #3932 )
...
* feat(hmr): overhaul HMR handling for `.astro` files
* test: remove irrelevant hmr-css test
* fix: ignore HMR logs for monorepo files
* fix: explicitly call import.meta.hot.decline()
* chore: add changeset
* fix: run smoke tests in serial
* chore: bump postcss test timeout
* test: fix undefined `this`
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-22 13:37:20 -05:00
Nate Moore
7250e4e86d
Add .html
support ( #3867 )
...
* feat: add html package
* feat: support assets in HTML
* feat(html): upgrade html integration
* feat(html): add `@astrojs/html` integration
* feat(html): add html support to astro core
* test(html): update html tests with package.json files
* chore: add changeset
* fix: remove import cycle
* chore: fix types
* refactor: remove @astrojs/html, add to core
* chore: update types for `*.html`
* fix: move *.html to astro/env
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-22 10:32:36 -05:00
Nate Moore
fbef6a7f72
New handling for define:vars
scripts and styles ( #3976 )
...
* feat: new handling for `define:vars` scripts and styles
* fix: handle new script hoisting pattern
* refactor: compiler handles sourcemaps
* chore: update to handle is:inline define:vars
* chore: bump compiler to latest
* chore: update define:vars tests
* fix: output of `define:vars` is not object style
* fix: appease ts
* chore: remove unused file
* chore: revert unecessary refactors
* chore: prefer sync `defineScriptVars`
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Okiki Ojo <okikio.dev@gmail.com>
2022-07-22 10:14:25 -05: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
Ben Holmes
399d7e2698
Fix: use set:html
when markdown mode is md
( #4008 )
...
* refactor: add legacy.jsxInMarkdown flag to config
* fix: use `set:html` when `markdown.mode` is 'md'
* Revert "refactor: add legacy.jsxInMarkdown flag to config"
This reverts commit 5572e8d9b3
.
* fix: move `remarkUnwrap, remarkEscape` to MDX only
* fix: only apply scary HTML passthroughs on MDX
* fix: move all JSX-specific rehype plugins under `isMDX`
* fix: "allowDangerousHtml" for md (required for Shiki)
* fix: apply `set:html` for non-layouts too
* test: JSX expressions, components, syntax highlighting
* chore: changeset
* fix: ignore "setup" and "components" in plain MD mode
* refactor: create new fixture to avoid weird caching error
* fix: dup package name
* chore: update lock
* fix: apply rehypeCollectHeaders to md
2022-07-21 18:01:26 -04: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
Fred K. Schott
ddefb172f6
Replace/Rename Astro.canonicalURL with new Astro.url helper ( #3959 )
...
* add Astro.url
* Add examples of how to create the canonicalURL
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-21 13:45:59 -04:00
Matthew Phillips
d503c5bf3d
Fixes using tsconfig to set aliases ( #4010 )
2022-07-21 13:45:20 -04:00
Allan Chain
21462feb4a
fix: better dev routing with base using middleware ( #3942 )
2022-07-21 12:37:26 -05:00
Sarah Rainsberger
ef9c4152b2
[READMEs] removed "experimental" from astro add instructions ( #4004 )
2022-07-21 14:33:59 -03: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
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
Tony Sullivan
1c1b9da624
Updates SSR routing to always give priority to public assets ( #4000 )
...
* matchRoute should ignore requests for public assets
* chore: add changeset
2022-07-20 20:54:46 +00:00
Matthew Phillips
bccd88f0eb
Move the Markdown component to its own package ( #3986 )
...
* Move the Markdown component to its own package
* Update the examples
* Updated lockfile
* Use is:raw
* Add a main field
* Update the formatting of the readme
* Rename to @astrojs/markdown-component
2022-07-20 16:45:05 -04:00
Matthew Phillips
ccae431426
Removes warnings / flags for integrations and ssr ( #3992 )
2022-07-20 15:52:10 -04:00
Nate Moore
4dd341c8a1
chore: add changeset ( #3991 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-20 14:25:44 -05: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
Erika
9841c21e8e
Fix astro check
file paths not handling URL paths correctly ( #3988 )
...
* Fix `astro check` file paths not handling URLs path correctly
* Add changeset
2022-07-20 11:16:22 -04: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
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
Ben Holmes
95eaa207d8
Feat: log warning on astro.config
change, restart server on astro.config
added ( #3968 )
...
* feat: log on config change, restart on config add
* chore: changeset
* chore: remove unused export
2022-07-19 13:48:07 -04:00
Mihkel Eidast
e82ff13f18
fix: add export keyword to file stub ( #3944 )
2022-07-19 10:55:59 -05:00
Erika
54865612ea
Add missing media attribute on MetaHTMLAttributes ( #3974 )
...
* Add missing media attribute on MetaHTMLAttributes
* Fixed media not being optional, oops
* Add changeset
2022-07-19 11:41:29 -04:00
Tony Sullivan
e6e2160614
Adds back create-astro
support for GitHub repos ( #3971 )
...
* adding create-astro support for GitHub repos
* chore: add changeset
* nit: adding a comment to document what the fix is doing
2022-07-19 14:24:19 +00:00
Rafid Muhymin Wafi
ba11b33996
Removes trailing dash from generated slugs in markdown ( #3044 )
...
* fixed header slugs in markdown if ends with a dash
* added changeset
* removes trailing dash only if slug was created
* updated test
* updated change level from patch to minor
2022-07-18 22:21:56 -07: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
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
Charles Vandevoorde
5d0edfc3b9
add missing props in markdown layout ( #3588 )
...
The `url` props was missing but should there according to [this
document](https://docs.astro.build/en/guides/markdown-content/#markdown-layouts ).
The `file` props was not initially there but is quite useful when you
need to resolve file which are relative to the markdown file itself.
2022-07-18 19:58:36 -03:00
Vlad Esafev
57e529e4c1
Throw the error when site
option is missing ( #3956 )
...
* Throw the error when site option is missing
* Update index.ts
* Update index.ts
* Update rss.test.js
* Update index.ts
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-18 15:01:04 -07:00
Fred K. Schott
f5c9d8e829
Revert "Removes trailing dash from generated slugs in markdown ( #3044 )"
...
This reverts commit 8530cce14f
.
2022-07-18 14:32:51 -07:00
Fred K. Schott
4555c8cb0b
Revert "Revert "Removes trailing dash from generated slugs in markdown ( #3044 )""
...
This reverts commit 7160bbeede
.
2022-07-18 14:32:29 -07:00
Fred K. Schott
7160bbeede
Revert "Removes trailing dash from generated slugs in markdown ( #3044 )"
...
This reverts commit 8530cce14f
.
2022-07-18 14:08:51 -07:00
Matthew Phillips
ceda294e13
Fixes hydration of Maps and Sets ( #3960 )
2022-07-18 16:43:09 -04:00
Matthew Phillips
5fde2fd8bc
Moves Debug component's styles to be inlined ( #3963 )
2022-07-18 16:42:57 -04: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
Erika
b37695c34c
Improve astro check ( #3906 )
...
* Improve astro check
* Fix lockfile
* Update to latest language-server version
* Add simple tests
* Fix lock file, again
* Fix `astro check` not working on Windows, speeds up tests
* Add changeest
2022-07-18 15:34:35 -04:00
Fred K. Schott
07fb544dab
remove ssr-utils file ( #3924 )
2022-07-18 12:12:45 -04:00
Erika
8eba6d9d97
Fix expected types for Element in our JSX definitions ( #3958 )
...
* Fix expected types for Element in our JSX definitions
* Add changeset
2022-07-18 11:45:50 -04:00
Matthew Phillips
3acb9ec264
Hoist Astro.globbed hoisted scripts in dev ( #3930 )
...
* Hoist Astro.globbed hoisted scripts in dev
* Adds a changeset
* Increase the timeout for the HMR test
* Fix e2e tests
* Refactor test
2022-07-18 11:33:13 -04:00
Matthew Phillips
92b48b1525
Sets import.meta.env.BASE_URL correctly in dev ( #3955 )
2022-07-18 11:32:56 -04:00
Rafid Muhymin Wafi
8530cce14f
Removes trailing dash from generated slugs in markdown ( #3044 )
...
* fixed header slugs in markdown if ends with a dash
* added changeset
* removes trailing dash only if slug was created
* updated test
* updated change level from patch to minor
2022-07-16 15:45:41 +06:00
Nate Moore
f5d4ebf0e2
Handle metadata for MDX files during build ( #3915 )
...
* fix: metadata handling for MDX files
* chore: add changeset
* chore: update mdx example
* fix: protect against infinite loops in jsx-runtime, properly hook console.error
* chore: remove unused import
* feat(mdx): support `client:only`
* fix: prefer Symbol.for
* fix(jsx): handle vnode check properly
* chore: appease ts
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-15 11:25:29 -04: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
Erika
7c5c4106d7
Use a .ts file to export built-in components so they're typed ( #3927 )
...
* Use a .ts file to export built-in components so they automatically have types
* Add changeset
2022-07-14 14:33:10 -04:00
Nate Moore
7094d6a45f
Handle false
properly in class:list
( #3922 )
...
* fix(#3920 ): properly handle false in `class:list`
* fix: allow 0 in `class:list`
* fix: output empty `class:list` as `''` rather than `class=''`
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-14 12:01:17 -05:00
Fred K. Bot
78e765dc65
[ci] release ( #3921 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14 11:36:33 -05:00
Nate Moore
6a7a17f735
chore: update compiler ( #3918 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-14 11:09:44 -05:00
Fred K. Schott
01a55467d5
add back missing ssr-utils.ts file ( #3919 )
2022-07-14 09:05:20 -07: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
Matthew Phillips
cd2dbfedb1
Provide a better error message for when RSS is missing link
field ( #3913 )
...
* Provide a better error message for when RSS is missing `link` field
* Adds a changeset
2022-07-13 16:37:17 -04:00
Juan Martín Seery
ca45c0c270
fix: don't throw when Shiki doesn't recognize a language ( #3911 )
...
* Don't throw when Shiki doesn't recognise a language
* Changeset
2022-07-13 19:31:59 +00:00
Ben Holmes
d8af02a944
fix: add github-slugger to ALWAYS_EXTERNAL ( #3902 )
...
* fix: add github-slugger to ALWAYS_EXTERNAL
* chore: changeset
2022-07-12 14:28:14 -04:00
Fred K. Bot
ba67a924ca
[ci] release ( #3900 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12 12:18:13 -04:00
Fred K. Bot
4bf4736768
[ci] release ( #3899 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12 11:16:15 -04:00
Chris Swithinbank
4097f06226
Centralise community health files in .github
repo ( #3830 )
...
* Centralise community health files in `.github` repo
* Clean up links
* Add changeset
2022-07-12 17:16:08 +02:00
Corbin Crutchley
402c4181dc
Fix md mode comment ( #3880 )
...
* fix: fix a bug where md mode markdown breaks on comments
* chore: add changeset
2022-07-12 11:15:53 -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
Corbin Crutchley
b4cb4a40df
fix: add TypeScript type and documentation for markdown "mode" config ( #3883 )
...
* fix: add TypeScript type and documentation for markdown "mode" config
* chore: add changeset
2022-07-12 09:07:51 -04:00
Yuji Sugiura
c4f6fdf372
Remove unused(and also vulnerable) libs from @astro/telemetry ( #3898 )
...
* Remove unused(and also vulnerable) libs from @astro/telemetry
* Add changeset
2022-07-12 09:07:21 -04:00
Nate Moore
93e1020b1e
Fix: reintroduce smoke tests across example projects ( #3669 )
...
* chore: update smoke tests
* chore: bump smoke tests to node@16
* chore: remove gitmodules
* chore(ci): prefer node@14
* wip: remove path from smoke clone step
* feat: run build:examples from test:smoke
* fix: remove no-frozen-lockfile
* fix: checkout monorepo last for pnpm setup
* wip: replace @astrojs/markdown/remark import from md
* fix: remove type defs from generated file
* fix: function order
* chore: remove ssr-utils export
* wip: remove windows from smoke test
* fix: instantiate slugger in snippet
* fix: exclude with-mdx from smoke (for now)
* fix: add quotes on filter flag for safety
* chore: changeset
* wip: try reintroducing windows smoke
* sad chore: remove client: directive from with-mdx
* Revert "wip: try reintroducing windows smoke"
This reverts commit 9529b1a45c
.
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11 22:51:17 -04:00
Matthew Phillips
5f4ecbad1b
Allow defining Astro components in Vite plugins ( #3889 )
...
* Allow defining Astro components in Vite plugins
* Adds a changeset
* Move non-main compilation into load
* Use the cachedCompilation in the markdown plugin
* Fix HMR test
* Simplify getNormalizedID
* Use a windows-friendly virtual module id for the test
2022-07-11 16:13:21 -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
7c49096e86
Update compiler ( #3892 )
...
* chore: update @astrojs/compiler
* chore: add changeset
* chore: update test
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-11 13:34:29 -05:00
Matthew Phillips
9cf7e40641
Properly await on children before hydrating in Safari ( #3891 )
2022-07-11 14:10:23 -04: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
Tom Lienard
cb6a973839
fix: portfolio example JSX error ( #3886 )
...
* fix: portfolio example JSX error
* chore: add changeset
* chore: update description
2022-07-11 11:10:05 -05:00
Matthew Phillips
21869a614a
Move client types into Astro ( #3851 )
...
* Move client types into Astro
* Adds a changeset
* Fix path to local client
* Reference vite/client in our HMR types
* Add back in the expect-error
* Update types comment
2022-07-11 08:12:18 -04: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
Ben Holmes
957fb50541
chore: changeset ( #3873 )
2022-07-08 19:04:27 -04:00
Erika
f9ed77bb0d
Add editor integrations to language integrations ( #3864 )
2022-07-08 17:47:01 -04: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
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 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
Matthew Phillips
c2c4e5c238
Better response.arrayBuffer() handling in Node ( #3860 )
...
* Better response.arrayBuffer() handling in Node
* Adds a changeset
2022-07-08 11:38:06 -04:00
Ben Holmes
08fa0772ab
Docs: add adapter heading for configuration docs ( #3842 )
...
* Docs: add adapter heading for configuration docs
* docs: add adapter example, rework doc links
* chore: changeset
2022-07-07 18:19:39 -04:00
Fred K. Schott
515e876598
update solid peer dependencies
2022-07-07 12:11:27 -07:00
Erika
b84bd7db63
Improve JSX definitions ( #3801 )
2022-07-07 14:44:15 -04:00
Nate Moore
5afb807688
Fix slot attribute inside expressions ( #3837 )
...
* fix: use slots inside expressions
* test: add test for conditional named slots
* test: fix incorrect test fixture
* chore: update `@astrojs/compiler`
* chore: add test coverage for `switch`
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-07 13:23:51 -05:00
Fred K. Schott
eedb32c797
detect package manager and improve types ( #3847 )
2022-07-07 11:12:31 -07:00
Fred K. Schott
4fb08502a9
small create-astro wording changes ( #3831 )
2022-07-07 11:05:59 -07: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
Ben Holmes
820a26dde5
Fix: Infer content type with charset in dev and prod ( #3841 )
...
* fix: add text/plain;charset;utf-8 header in dev
* test: ensure content type for body shorthand
* chore: changeset
* feat: infer content type by pathname
* feat: add charset to prod build handler
* test: update for charset in prod build test
2022-07-06 20:48:14 -04:00
Ben Holmes
cd3f6348c4
Fix client:visible
directive in safari ( #3839 )
...
* fix: client visible on safari
* chore: changeset
* refactor: wait for children with mutation observer
* fix: remove unecessary settimeout
* refactor: remove unecessary awaits
2022-07-06 16:58:28 -04:00
Matthew Phillips
c2165c34a7
Ensure that maybeRenderHead runs last ( #3821 )
...
* Ensure that maybeRenderHead runs last
* Adds a changeset
* Make work with MDX
2022-07-06 08:10:19 -04:00
Fred K. Schott
e4b2dca1f3
fix piped telemetry error output ( #3822 )
2022-07-05 14:46:57 -05: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
Fred K. Bot
08d068496d
[ci] release ( #3800 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01 15:56:49 -05:00
Nate Moore
5fe52737cb
Update MDX example to address failure ( #3799 )
...
* fix: do not use symbol in JSX runtime
* chore: update MDX example
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-01 15:51:28 -05: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 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
f4943e0fbc
Chore/image changeset ( #3788 )
...
* chore: missed the changeset commit on the images PR
* revert unrelated .d.ts file
* lint fix
2022-07-01 15:54:45 +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
Fred K. Schott
192c4bcfd6
await error reporter ( #3779 )
2022-06-30 11:17:32 -07: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. Schott
913591d137
refactor to provide better cli error handling ( #3768 )
2022-06-30 14:16:39 +00: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
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
dd176ca58d
add error event to telemetry ( #3750 )
2022-06-29 14:54:33 -07:00
Tony Sullivan
1eab496e9d
adding missing changeset for #3766 ( #3767 )
2022-06-29 21:25:54 +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
Tony Sullivan
54cd6b8dd1
Fixes a bug in how injectRoute
parses route patterns on Windows ( #3763 )
...
* always remove a leading slash in the `injectRoute` pattern
* chore: add changeset
2022-06-29 09:46:23 -05:00
Ben Holmes
660abd3dee
Chore: remove memory test from CI ( #3758 )
...
* chore: remove memory test
* chore: remove memory test from ci
* chore: changeset
* Revert "chore: remove memory test"
This reverts commit 31b97c9df9
.
* chore: update changeset to say "CI only"
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-06-28 15:47:21 -04:00
Fred K. Bot
789dc1fabc
[ci] release ( #3757 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 11:02:59 -07:00
Fred K. Bot
b0c1ed1513
[ci] release ( #3754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 10:49:15 -07:00
Ben Holmes
507cd5c868
Chore: remove complex install step test ( #3756 )
...
* chore: remove complex install step test
* chore: changeset
2022-06-28 13:46:54 -04:00
Fred K. Schott
cabd9dcc80
anonymize non-git project id ( #3753 )
2022-06-28 10:29:24 -07:00
Fred K. Bot
be3c99316a
[ci] release ( #3749 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 19:00:40 +02:00
Chris Swithinbank
012f093eeb
Add changeset to release create-astro
( #3748 )
2022-06-28 18:41: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
Ben Holmes
fb9ef4019b
Fix: prevent sourcemap warnings in monorepo "dev" mode ( #3744 )
...
* fix: avoid esbuild sourcemaps in astro-scripts dev
* chore: changeset
2022-06-28 10:20:21 -04: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
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
Fred K. Schott
ebd7e7ad81
update telemetry to support more anonymized project id ( #3713 )
...
* update telemetry to support more anonymized project id
* Create strange-laws-kick.md
* respond to nate feedback
2022-06-27 14:16:07 -07:00
Fred K. Schott
4d6d8644e6
SImplify "astro add" by removing confusing multi-select ( #3715 )
...
* wip
* update create-astro for new astro add
* update copy
* update git prompt
* Update packages/astro/src/core/logger/node.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/create-astro/test/install-step.test.js
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* update git prompt
* update test
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-06-27 14:15:51 -07:00
Tony Sullivan
bd4dac0e1a
Add missing changeset for @astrojs/prefetch ( #3736 )
2022-06-27 21:13:18 +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]
0ae1365533
[ci] release ( #3726 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-27 10:40:35 -04:00
Matthew Phillips
86635e035b
Inline define:var styles rendered after the head ( #3724 )
...
* Inline define:var styles rendered after the head
* Adds a changeset
* Remove tests that don't work with streaming
2022-06-27 10:36:41 -04:00
github-actions[bot]
701a3bd698
[ci] release ( #3707 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 17:02:11 -04:00
Matthew Phillips
b5e3403fa1
Simplified Response#text() implementation ( #3705 )
...
* Simplified Response#text() implementation
* Adds a changeset
* Fix tsignore
2022-06-24 16:58:14 -04:00
Matthew Phillips
b11e3b38eb
Ensure import.meta.env.SSR is true in SSR mode ( #3702 )
...
* Ensure import.meta.env.SSR is true in SSR mode
* Define in the env plugin instead
2022-06-24 16:14:00 -04: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
Matthew Phillips
47c81effa6
Make Astro.redirect use a 302 status code ( #3700 )
...
* Make Astro.redirect use a 302 status code
* Adds a changeset
* Add a package.json
2022-06-24 15:55:06 -04:00
Matthew Phillips
3daaf510ea
Streaming ( #3696 )
...
* Start of streaming
* New lockfile
* Base should be Uint8Arrays
* Remove the ability to throw from a component
* Add a warning when returning a Response from a non-page component
* Adds a changeset
2022-06-24 15:35:21 -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
Matthew Phillips
fa7ed3f3a9
Remove post-rendering head injection ( #3679 )
...
* Remove post-rendering head injection
* Adds a changeset
* Use a layout component for vue
2022-06-23 15:37:55 -04:00
d-suke
446f8c4f13
Added test for dir parameter in astro:build:done. ( #3649 )
...
* Added test for dir in astro:build:done
* Added changeset
* Change pathname for Windows
* Change changeset generated file summary
* Eliminate testing of branches by os
* Eliminate OS dependence
* Change changeset generated file summary
* Using fileURLToPath
* Cross-platform fixes.
* Use posix for everything.
* Pass an empty string for relative from
* Use path.join for the correct value
* Update packages/astro/test/static-build-dir.test.js
* Update packages/astro/test/static-build-dir.test.js
* Update packages/astro/test/static-build-dir.test.js
* Remove trailing slash
* add toString
* fix syntax error
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-23 14:04:10 -05: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
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
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
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
Fred K. Schott
921d9a27e2
simplify a complex peer semver used by astro add ( #3633 )
...
* fix peer semver used by astro add
* Create pink-shirts-mix.md
* update with regex over `' '` split
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-06-22 16:13:32 -05:00
Matthew Phillips
9a813268db
Allow TypeScript in hoisted scripts ( #3665 )
...
* Allow TypeScript in hoisted scripts
* Pass skipSelf
* Fix linting
2022-06-22 12:47:52 -04:00
Matthew Phillips
85c33751c2
Allow specifying entryFileNames for client JS ( #3676 )
...
* Allow specifying entryFileNames for client JS
* Adds a changeset
2022-06-22 12:32:17 -04:00
github-actions[bot]
8ad146a5d7
[ci] release ( #3683 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-22 12:19:43 -04:00
Matthew Phillips
aeab890971
Inline small hoisted scripts ( #3658 )
...
* Inline small hoisted scripts
This makes it so that small hoisted scripts get inlined into the page rather than be fetched externally.
* Ensure we don't inline when there are imports
* Fix ts
* Update tests with new url structure
* Adds a changeset
2022-06-22 12:02:42 -04:00
Ben Holmes
df02fad13e
Add @nanostores/preact
to ALWAYS_NOEXTERNAL ( #3667 )
...
* chore: add nanostores/preact to ALWAYS_NOEXTERNAL
* chore: update comment to reference pR
* chore: changeset
2022-06-22 11:38:59 -04:00
Matthew Phillips
898845402c
Include all client build artifacts in SSRManifest ( #3678 )
...
* Include all client build artifacts in SSRManifest
* Adds a changeset
2022-06-22 11:35:54 -04: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
unknown
7f5770be4d
Remove @examples/docs from a changeset
2022-06-22 09:41:30 -04:00