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
hippotastic
ba5ad7855c
Fix react dependencies to improve test reliability ( #3673 )
...
* Fix local react tests by unifying versions
* Add missing dependencies to react tests
* Add changeset
* Fix lockfile
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-22 09:11:48 -04:00
hippotastic
ef6282d5d9
Fix import.meta.env
also without trailing dot ( #3675 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-22 08:58:20 -04:00
Matthew Phillips
46d1ea941b
Revert "add Astro Deno Example ( #3645 )" ( #3674 )
...
This reverts commit e88b23ea52
.
2022-06-22 08:30:22 -04:00
Elian ☕️
e88b23ea52
add Astro Deno Example ( #3645 )
...
* add Astro Deno Example
* add changeset
* update pnpm lock
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-06-21 13:07:07 -04:00
github-actions[bot]
b4db008e53
[ci] release ( #3664 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 12:47:04 -04:00
Matthew Phillips
c20b93c484
Resolve .jsx -> .tsx in hydrated components ( #3663 )
2022-06-21 12:35:11 -04:00
github-actions[bot]
e13ce4d751
[ci] release ( #3662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 11:50:06 -04:00
Matthew Phillips
2ff11df438
Add .js to imports in the sitemap package ( #3661 )
...
* Add .js to imports in the sitemap package
* Adds a smoke test
* Adds a changeset
2022-06-21 11:29:18 -04:00
Yuji Sugiura
7d4699b8f9
Check null for props serialization ( #3657 )
...
* Check null for props serialization
* Add changeset
2022-06-21 10:26:27 -05:00
github-actions[bot]
e67171252c
[ci] release ( #3615 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-21 09:43:19 -04:00
Matthew Phillips
f5afaf2498
Support re-exporting astro components containing client components ( #3625 )
...
* Support re-exporting astro components containing client components
* Include metadata for markdown too
* Fix ssr, probably
* Inject post-build
* Remove tagName custom element test
* Allows using the constructor for lit elements
* Fix hoisted script scanning
* Pass through plugin context
* Get edge functions working in the edge tests
* Fix types for the edge function integration
* Upgrade the compiler
* Upgrade compiler version
* Better release notes for lit
* Update .changeset/unlucky-hairs-camp.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Properly test that the draft was not rendered
* Prevent from rendering draft posts
* Add a changeset about the build perf improvement.
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-21 08:32:05 -04:00
Nate Moore
d9f6dcf6ea
fix: properly catch falsy components ( #3650 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-20 14:14:54 -05:00
Tony Sullivan
48e67fe053
Encode ampersands in markdown code blocks ( #3630 )
...
* encode ampersands in markdown code blocks
* chore: add changeset
* nit: fixing test case description
2022-06-20 19:09:35 +00:00
Tony Sullivan
80c71c7c56
Fixes rendering of HTML comments inside markdown code blocks ( #3638 )
...
* JS comment wrappers should be removed from HTML comments in code blocks
* chore: add changeset
2022-06-20 17:12:42 +00:00
hippotastic
6ab749be5c
Add component hydration in .md E2E tests, refactor ( #3610 )
...
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-17 22:34:19 +00:00
hippotastic
05aa72442c
Remove extra newlines around Markdown components ( #3620 )
2022-06-17 11:52:37 -05:00
Ben Holmes
fca58cfd91
Fix: Netlify edge deployment when using markdown ( #3612 )
...
* wip: revert sitemap PR
* fix: extract SSR-ready "slug" helper to separate module
* Un-revert sitemap PR. Not to blame!
This reverts commit 7cd2a8a5ea
.
* fix: use .netlify for edge deployment test
* refactor: add md file to edge function fixture
* fix: add netlify edge tests to ci
* chore: remove stray console log
* wip: undo "dist" change on edge tests
* chore: changeset
* Revert "wip: undo "dist" change on edge tests"
This reverts commit 70e565ef06
.
* temp: add ignore to breaking edge tests
2022-06-16 20:31:08 -04:00
Oleksii Tymoshenko
1031c06f9c
feat: improved sitemap ( #3579 )
...
* feat: extended sitemap functionality
* docs: del samples
* docs: readme
* feat: new sitemap
* feat: createLinkInHead removed
* docs: updated changeset text
* refactor: 'zod' function() instead of self made refine()
* Revert "refactor: 'zod' function() instead of self made refine()"
This reverts commit 036bac730d
.
undo function()
2022-06-16 19:06:48 +00:00
Okiki Ojo
9c8a7c0b09
fix(@astrojs/telemetry): add optional integrations field ( #3614 )
...
* fix: filter out falsy integration from telemetry
Falsy integrations are now ignored in `@astrojs/telemetry`
This error should no longer occur,
```ts
error Cannot read properties of null (reading 'name')
at file:///workspaces/bundle/node_modules/.pnpm/@astrojs+telemetry@0.1.2/node_modules/@astrojs/telemetry/dist/events/session.js:53:117
...
```
* ci: add tests for optional integrations
* ci: add changeset
* fix(@astrojs/telemetry): count number of optional integrations in use
* ci: add test for counting the total number of optional integrations in use
* ci: update changeset
* chore: make the changes @tony-sull sugested
* revert(@astrojs/webapi): mod.d.ts -> a4c78b5
: [ci] format
* ci: remove `@astrojs/webapi` patch change
* chore(@astrojs/telemetry): remove totalIntegrations payload field
* fix(@astrojs/telemetry): add optional integrations field
* ci: add changeset
2022-06-16 14:53:07 -04:00
github-actions[bot]
81104a9335
[ci] release ( #3604 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-16 12:05:10 -04:00
Richard Cooke
7f42358141
feat: add SSR adaptor for cloudflare pages functions ( #3600 )
2022-06-16 10:12:25 -04:00
Matthew Phillips
4916b733c2
Inline hydration directive scripts ( #3605 )
...
* Inline hydration scripts
* Adds a changeset
* Update directiveAstroKeys type
2022-06-16 09:54:09 -04:00
Tony Sullivan
0ddcef2043
Adds support base64 encoding in Netlify Functions ( #3592 )
...
* Adding support for base64 encoded responses in Netlify Functions
* chore: add changeset
* removing the regex check for a more simple header-based check
* nit: cleaning up the readme a bit
2022-06-15 19:49:09 +00:00
Ari Gibson
0ffc350c8d
fix: check node version and find acceptable host accordingly ( #3599 )
2022-06-15 10:26:55 -05:00
github-actions[bot]
31e3224319
[ci] release ( #3596 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-14 15:46:51 -05:00
Matthew Phillips
330fef448e
Handle importing multiple CSS packages in same bundle ( #3595 )
...
* Handle importing multiple CSS packages in same bundle
* Changeset
2022-06-14 16:27:21 -04:00
Nate Moore
d1f3406d85
chore: add changeset
2022-06-14 15:26:18 -05:00
Don Denton
48161b77ca
Fix unintentional missing type data in MarkdownInstance
( #3397 )
...
* Update MarkdownInstance type
The return of the `default` function includes the same `frontmatter`
data as the parent object, merged with the `astro` data. The inclusion
of that frontmatter type was previously not recognized by TS, and fell
back to a `Record<string, any>`. This change persists the more accurate
type, as the runtime code does.
* fixup! Update MarkdownInstance type
(This change is what I'd personally do, but I don't really know how you
expect people to use `MarkdownContent` in practice, or if there is some
deeper benefit you wish to exploit by leaving it as an interface instead
of a type.
2022-06-14 15:20:13 -05:00
github-actions[bot]
acc8afbdda
[ci] release ( #3594 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-14 15:51:10 -04:00
Matthew Phillips
0e2314d8e5
Fix inlined hoisted scripts and SSR ( #3593 )
...
* Fix inlined hoisted scripts and SSR
* Adds a changeset
2022-06-14 15:14:15 -04:00
Okiki Ojo
d46f8fb14d
feat: support optional and conditional integrations ( #3590 )
...
* feat(integrations): support optional integrations
By making integration optional, Astro can now ignore null or undefined Integrations instead of giving an internal error most devs can't read/won't understand.
This also enables optional integrations,
e.g.
```ts
integration: [
// Only run `compress` integration in production environments, etc...
import.meta.env.production ? compress() : null
]
```
* ci: add tests for optional integration
* docs: add changelog
2022-06-14 14:08:14 -04:00
github-actions[bot]
c54b024803
[ci] release ( #3569 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 21:07:03 -05:00
hippotastic
5c73f614e8
Fix remarkMdxish performance issue on huge sites ( #3572 )
2022-06-10 17:32:23 -05:00
Nate Moore
3ec41f284c
Improve YAML error handling ( #3557 )
...
* chore: improve YAML errors
* chore: add changeset
2022-06-10 13:18:29 -05:00
Oleksii Tymoshenko
098031294f
unused dependency 'sitemap', 'filter' option should return boolean ( #3563 )
...
* refactor: @astrojs/sitemap does't use 'sitemap' pkg
* refactor: 'filter' option should return boolean instead of string
* fix: forgotten `pnpm install`
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-10 13:16:08 -05:00
Matthew Phillips
614769a39b
Preoptimize renderers and hydration directives ( #3568 )
...
* Preoptimize renderers and hydration directives
* Adds a changeset
* Upgrade to Vite 2.9.12
2022-06-10 12:38:19 -04:00
github-actions[bot]
d02578fd4c
[ci] release ( #3549 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-10 15:03:52 +00:00
hippotastic
76fb01cff1
Fix autolinking of URLs inside links in Markdown ( #3564 )
2022-06-09 22:31:36 -05:00
hippotastic
c549f161ca
Allow AlpineJS syntax extensions in Markdown ( #3554 )
...
* Allow AlpineJS syntax extensions in Markdown
* Remove unwanted MDX ESM import/export support
2022-06-08 12:41:36 -05:00
Caio Ferrarezi
c601ce59b5
Prevent sitemap URLs without pathname ( #3553 )
...
* fix(@astrojs/sitemap): handle base/pathname correctly
* chore: add changeset
2022-06-08 10:07:12 -05:00
Tony Sullivan
3eb96a7ab7
Fix: Astro.site should default to localhost if not provided in config ( #3552 )
...
* Astro.site should be defaulted to localhost
* test: verify Astro.site default value
* chore: add changeset
* test: matching a URL regex to ignore specific port numbers
2022-06-07 21:20:20 +00:00
Ben Holmes
a83d581714
Fix: --host
flag logs when no network IPs are found ( #3547 )
...
* feat: add fallback log if no network interfaces found
* fix: extra newline on missing network log
* chore: changeset
2022-06-07 17:12:35 -04:00
Tony Sullivan
7816403306
Fix: bubbling up a more useful error message for unresolve imports in Astro components ( #3540 )
...
* vite-astro-plugin should ignore unresolved relative imports
* test: add error test for unresolved imports
* chore: add changeset
* moving the test to it's own describe
* chore: cleaning up the test's dev server
* TEMP: skipping the old test again to see if that's breaking CI
* test: verifying the dev server recovers
* TEMP: is it the new test breaking ubuntu CI?
* testing whether the errors suite only handles one test case in ubuntu
* disabling the Errors suite on linux for now to avoid reliability issues
2022-06-07 17:53:15 +00:00
github-actions[bot]
ec89def67d
[ci] release ( #3534 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-07 12:45:50 -04:00
Matthew Phillips
f3ab822e32
Allow dynamic imports when using Netlify Edge Functions ( #3535 )
...
* Allow dynamic imports when using Netlify Edge Functions
* Update deno test script and changeset
2022-06-07 11:41:32 -04:00
Matthew Phillips
51c60de76c
Fix importing CSS packages in frontmatter ( #3537 )
...
* Fix importing CSS packages in frontmatter
* Formatting
* Only update if the source code contains the import
* Consolidate the two plugins
* we do need a pre and a post
* Adds a changeset
2022-06-06 18:26:15 -04:00
Matthew Phillips
d7688f05c2
Prevent minifying server JS ( #3533 )
...
* Prevent minifying server JS
* Add a changeset
2022-06-06 14:45:58 -04:00
Nate Moore
a87ce4412c
Improve HMR handling for styles, persisted islands ( #3492 )
...
* feat: improve HMR handling for styles, persisted islands
* Also using data-persist to keep injected <style>'s during HMR
* Updating E2E tests to validate that .astro HMR doesn't blow away component styles
* chore: add changeset
* copy/paste error when cleaning up tests
* big change - using inline <style> blocks instead of <link>s in dev
* Updating tests that were expecting <link> stylesheets in dev
* updating all E2E tests to use workspace versions for astro deps
* TEMP: adding debug logging to see why the Ubuntu test only fails in CI
* fix: Svelte styles are automatically handled by Vite, we can skip them in dev
* fix: svelte is more interesting, we need Astro to inject styles only until hydration
* avoiding extra HMTL noise by only including the data-astro-injected URL for svelte components
* TEMP: ubuntu CI doesn't like the svelte HMR test...
* disabling the svelte component test on ubuntu for now
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-06 18:39:48 +00:00
Matthew Phillips
c22a07db13
Fix use of dynamic imports / Astro.glob with Deno Deploy ( #3532 )
...
* Fix use of dynamic imports / Astro.glob with Deno Deploy
* Adds a changeset
* Mark the markdown package as external
2022-06-06 12:02:13 -04:00
github-actions[bot]
9029c43549
[ci] release ( #3512 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-06 09:40:09 -04:00
Ben Holmes
85b905495d
Fix: refusing to accept isSelfAccepting
for JSX ( #3521 )
...
* fix: generate client directive scripts from metadata
* chore: changeset
* feat: add all runtime client scripts to optimized deps
* fix: remove hmr.js from optimized deps (monorepo-specific issue)
* Revert "fix: generate client directive scripts from metadata"
This reverts commit 56530a86ef
.
* refactor: move optimizedeps to dev only
* docs: add comment on why optimizdeps
* nit: indentation
2022-06-06 09:27:35 -04:00
Matthew Phillips
df7c43df63
Allow importing .ts files with .js extension ( #3518 )
...
* Allow importing .ts files with .js extension
* Adds a changeset
* Make it also work in .md files
2022-06-03 13:00:28 -04:00
hippotastic
6c955ca643
Fix Markdown errors missing source filename ( #3514 )
2022-06-03 08:38:57 -05:00
hippotastic
3057801591
Fix: Allow self-closing tags in Markdown ( #3516 )
2022-06-03 08:38:45 -05:00
nokazn
939fe15925
Fix cases for JSX-like expressions in code blocks of headings ( #3502 )
...
* chore: fix typo in remark tests
* test: add test cases for markdown expressions in header
* fix: avoid evaluating JSX-like expressions inside inline code in heading
* fix: generate slug for id including values in backtick blocks
2022-06-03 08:26:39 -04:00
Nate Moore
2fedb97489
Patch Lit server shim to fix sass compatability ( #3511 )
...
* fix(#2623 , #3508 ): patch lit server shim to allow sass compat
* chore: add changeset
2022-06-02 14:45:11 -05:00
github-actions[bot]
a74cf98002
[ci] release ( #3509 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 15:31:44 -04:00
Matthew Phillips
4a23b5aaed
provide import.meta.env.SITE when there are private envs ( #3498 )
...
* provide import.meta.env.SITE when there are private envs
* Adds a changeset
* Handle destructing of import.meta.env.SITE
2022-06-02 13:21:10 -05:00
Nate Moore
cf2fb3004e
Pass optimizeDeps.include
to silence build warning ( #3507 )
...
* fix(build): pass `optimizeDeps.include` to silence build warning
* chore: add changeset
2022-06-02 13:03:59 -05:00
Nate Moore
d41540cc77
Fix <link>
tag not being self-closing ( #3506 )
...
* fix(#392 ): ensure link tags are rendered as void elements
* test: ensure html does not include a `</link>` end tag
* chore: add changeset
2022-06-02 13:03:37 -05:00
William Tetlow
207f58d171
fix: alias astro to @types/astro ( #3503 )
...
* fix: alias astro to @types/astro
* fix: handle resolve.alias being array
* chore: add integrations patch to changeset
* chore: remove empty file
2022-06-02 12:54:35 -05:00
github-actions[bot]
67ad33debf
[ci] release ( #3488 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 13:42:18 -04:00
Ben Holmes
2b35650b5d
Fix: newline characters in Solid ( #3505 )
...
* fix: remove source map consumption from babel transform
* refactor: move inputSourceMap to integration option
* tests: add newline ex to test build and dev
* chore: change back to babel.transformAsync
* chore: changeset
2022-06-02 13:35:03 -04:00
Ben Holmes
9c2ba13748
Add console warning on fs.strict=false ( #3464 )
...
* chore: add warning on fs.strict=false
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-01 17:32:29 -05:00
Matthew Phillips
d588bc4a9c
Update rollup to prevent empty slot bug ( #3496 )
...
* Update rollup to prevent empty slot bug
* Adds a changeset
* Updated lockfile
* provide import.meta.env.SITE when there are private envs
2022-06-01 12:21:32 -04:00
Tony Sullivan
10b2589093
Fixing HMR for hoisted scripts ( #3427 )
...
* WIP: the leading /@fs broke script HMR
* Revert "WIP: the leading /@fs broke script HMR"
This reverts commit 84fce366268033261369aed48f909e59e78bf3e4.
* Metadata needs to strip off /@fs from hoisted script URLs
* adding a test for hoisted script HMR support
* removing 2 second timeout on navigation, allow default 30 seconds
* simplifying the hoisted script test sync
* TEMP: bubbling up console logs to track down windows failure
* removing temp logging
* disabling the test on windows for now
* chore: adding changeset
2022-05-31 18:13:05 +00:00
github-actions[bot]
b2f955ec1b
[ci] release ( #3485 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-31 13:40:19 -04:00
hippotastic
119ecf8d46
Fix components in markdown regressions ( #3486 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-31 12:16:43 -05:00
Nate Moore
e9a77d8619
Improve nested and client:only
hydration ( #3455 )
...
* wip: fix nested islands
* fix: improve hydration for dynamic content
* chore: fix bundle-size script for new files
* chore: allow-list client:* directive files
* fix(#3362 ): fix client:only behavior for React, Vue, Solid
* test: add client-only e2e test
* chore: update lockfile
* test: fix e2e tests
* test: add framework nesting e2e tests
* Update packages/astro/src/runtime/client/events.ts
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* chore: add changeset
* fix(preact): ignore hydrate roots
* chore: remove `ssr` check in integrations
* Revert "chore: remove `ssr` check in integrations"
This reverts commit ba27eaae55
.
* chore: add changeset
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-05-31 11:29:36 -05:00
Ben Holmes
d145b8689c
Chore: remove rss helper from getStaticPaths
( #3462 )
...
* chore: remove rss() with helpful error message
* docs: add context on "getStaticPaths" removal
* chore: changeset
* deps: remove fast-xml-parser from core!
* chore: update lockfile
2022-05-31 12:08:09 -04:00
Matěj Volf
b795a085f0
Load environment variables in deno SSR ( #3483 )
...
* Properly shim env in Deno
* Add test for loading env vars in Deno
* Add changeset
2022-05-31 11:41:33 -04:00
Matthew Phillips
efccebb964
Set the correct content-type for CSS HMR ( #3459 )
...
* Set the correct content-type for CSS HMR
* Adds a changeset
2022-05-31 11:40:34 -04:00
Matthew Phillips
55820fa784
Lit polyfill - wait to polyfill on DOMContentLoaded ( #3484 )
...
* Lit polyfill - wait to polyfill on DOMContentLoaded
* Adds changeset
2022-05-31 11:40:26 -04:00
github-actions[bot]
16345032aa
[ci] release ( #3479 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-30 13:06:41 -04:00
hippotastic
75fa58f13f
Fix using Vite env var names in Markdown ( #3412 ) ( #3471 )
2022-05-30 12:18:43 -04:00
hippotastic
429b65d60b
Fix */
breaking HTML comments in Markdown ( #3477 )
2022-05-30 12:18:33 -04:00
github-actions[bot]
42aa6daa96
[ci] release ( #3463 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-27 18:09:20 -04:00
Ben Holmes
47d1a8d59c
Feat: markdown content.raw()
and content.compiled()
helpers ( #3452 )
...
* feat: add rawContent obj with html helper
* refactor: change toString to function call
* test: rawContent helpers
* chore: update MarkdownInstance type
* refactor: parseHtml -> html
* chore: changeset
* fix: remove needless async heading on content version
* fix: fixLineEndings helper on unit tests
* refactor: change api to raw and compiled
* chore: add new type to env.d.ts
* docs: JSdocs for raw and compiled
* refactor: change API AGAIN to rawContent, compiledContent
* chore: update changeset
2022-05-27 16:56:08 -04:00
github-actions[bot]
e6d8670168
[ci] release ( #3453 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-26 14:25:10 -04:00
Matthew Phillips
ac3c60d48d
Fix VITE_ASSET bug ( #3439 )
...
* Fix VITE_ASSET bug
* Updated test that depended on esbuild output
* Fix some more tests
* Fix css config and postcss tests
* Git client only working
* Fix static build test
* Update tailwind tests
* Fix build
* Fix css bundling tests
* Updated some more tests for windows
* Remove tests that are no longer relevant
* Cause it to break
* Fix bug and add explanation
* Adds a changeset
* Inline comments about what the hashing is doing
* Update packages/astro/src/vite-plugin-build-css/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update to the lockfile
* Minify css
* Update tailwind tests
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-26 14:00:36 -04:00
Joaquín Sánchez
79b9ebc83a
feat: expose route dist URL on SSG ( #3438 )
...
* feat: expose route dist URL on SSG
* chore: add changeset
* chore: add test for `distURL`
* cleanup: remove console.log from test
2022-05-26 10:19:19 -04:00
github-actions[bot]
8a49ad23bf
[ci] release ( #3446 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-26 06:48:47 -04:00
Ben Holmes
51db2b9b4e
Fix: markdown imports failing ( #3444 )
...
* fix: revert JSX expression hack (temporary!)
* chore: changeset
* fix: skip stray JSX expression test
* Revert "fix: skip stray JSX expression test"
This reverts commit fd3042d003
.
* Revert "fix: revert JSX expression hack (temporary!)"
This reverts commit b78883fca1
.
* fix: add markdown-remark to external deps!
2022-05-25 20:47:28 -04:00
github-actions[bot]
f200ddadbc
[ci] release ( #3435 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-25 10:42:03 -05:00
Nate Moore
cfae9760b2
Improve Markdown + Components usage ( #3410 )
...
* feat: use internal MDX tooling for markdown + components
* fix: improve MD + component tests
* chore: add changeset
* fix: make tsc happy
* fix(#3319 ): add regression test for component children
* fix(markdown): support HTML comments in markdown
* fix(#2474 ): ensure namespaced components are properly handled in markdown pages
* fix(#3220 ): ensure html in markdown pages does not have extra surrounding space
* fix(#3264 ): ensure that remark files pass in file information
* fix(#3254 ): enable experimentalStaticExtraction for `.md` pages
* fix: revert parsing change
* fix: remove `markdown.mode` option
2022-05-24 17:02:11 -05:00
Caio Ferrarezi
78e962f744
Add base config option to partytown snippet generation ( #3437 )
...
* fix: add base config option to partytown snippet generation
* add changeset
* fix: handle config.base for partytown
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-24 15:44:40 -05:00
Nate Moore
4ca60e9344
Ensure hoisted scripts are deduplicated in build ( #3433 )
...
* fix(build): ensure hoisted scripts are deduplicated in build
* chore: add changeset
2022-05-24 14:39:23 -05:00
Nate Moore
62036eefc8
fix: use error
log level since warnings are irrelevant and noisy ( #3436 )
2022-05-24 14:38:39 -05:00
Nate Moore
296fff2cff
fix: properly handle scoped class injection with spread attributes ( #3384 )
...
* fix: properly handle scoped class injection when a spread attribute is present
* chore: update lockfile
* chore: revert lockfile
* chore: update compiler
* test: add spread scope test
* test: fix spread scoped test
2022-05-24 11:58:21 -05:00
Ben Holmes
946630a112
Fix: add "CSS" to noExternal hint ( #3426 )
...
* chore: add "CSS" to noExternal hint
* chore: changeset
2022-05-24 11:43:07 -05:00
Nate Moore
4e3b405e9e
Update changesets ( #3434 )
...
* chore: remove @e2e from changesets
* chore: add missing changeset
2022-05-24 11:38:25 -05:00
Matthew Phillips
463a1c2147
Fix: Relative imports inside of hosited script on windows ( #3423 )
...
* Failing test
* Add some debugging
* Normalize filename to remove @fs prefix
* Adds a changeset
* Break it again
* Fix it
* Update assertion
2022-05-24 11:34:08 -04:00
Tony Sullivan
0209d6276c
Updates hydration scripts to use absolute paths ( #3422 )
...
* WIP: proof of concept fix to use absolute paths
* correct fix to handle absolute paths and config.base
* adding tests for hydration scripts with config.base
* chore: add changeset
* fix: ensure posix paths are used for Windows compat
2022-05-23 20:52:48 +00:00
github-actions[bot]
8eec97fdd1
[ci] release ( #3409 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-23 13:26:07 -04:00
Tony Sullivan
ff56f083bc
Adding E2E tests for client hydration and HMR ( #3374 )
...
* adding Tailwind E2E tests with Playwright
* package.json updates
* adding e2e tests to CI workflow
* using e2e for dev tests, mocha for build tests
* refactor: sharing test-utils helpers
* chore: update lockfile
* Adding contributing docs
* Revert "refactor: sharing test-utils helpers"
This reverts commit 48496f43bc99eab30747baf6e83041ba4932e786.
* refactor: simpler solution to resolving e2e test fixtures
* chore: updating lockfile
* refactor: cleaning up how URLs are resolved in e2e tests
* install playwright deps in CI
* ensure playwright deps are installed during CI
* adding a basic HMR test for tailwind styles
* using @e2e for playwright test packages
* adding react hydration and HMR tests
* adding hydration and HMR tests for preact
* adding svelte hydration and HMR tests
* adding solid-js hydration and HMR tests
* adding solid hydration and HMR tests
* adding vue hydration and HMR tests
* adding client:media tests
* fixing Lit hydration and HMR tests
* fixing up the Vue e2e tests
* fixing up svelte tests
* chore: test cleanup
* chore: cleaning up test element IDs
* chore: updating lock file
* chore: update lockfile after merge
* TEMP: disabling React e2e tests
* Revert "TEMP: disabling React e2e tests"
This reverts commit ed1bad9cbc
.
* updating to use the new editFiles helper
* chore: updating lock file
* updating lock file
* updating lockfile
* TEMP: watching for console logs
* TEMP: testing typescript tests
* updating test:e2e scripts for config file
* seems like it didn't find the config file?
* use a fresh dev server for each test
* removing Lit tests for now
* Revert "removing Lit tests for now"
This reverts commit 4970a8093e
.
* updating test config for CI
* WIP: disabling HMR tests to track down why they're unreliable
* TEMP: logging to debug HMR test
* afterEach isn't a global in Playwright
* fix: the test's file reset helper was using a URL not filepath
* one last try, why is the HMR test hanging at cleanup?
* resetting files after tailwind HMR test
* create the onNextChange watcher before editFile is called
* moving the file changed sync into editFile()
* code refactor + Astro Component HMR test
* chore: lint fixes
* adding a test suite for the framework-multiple example app
2022-05-23 16:56:45 +00:00
Pranav Karawale
63c26c1b24
Fix GitHub Issue creation link ( closes #3257 ) ( #3421 )
...
* Add IDs to bug report issue form
* Replace 'body' with correct input id for prefilling form
2022-05-23 11:02:03 -05:00
Ben Holmes
4de53eccef
Fix: support FormData
object on fetch body ( #3417 )
...
* refactor: make node-fetch external in rollup build
* deps: make node-fetch standard dep
* refactor: switch to node-fetch pkg ref in fetch.ts
* chore: changeset
* chore: bump webapi to minor change
2022-05-20 17:26:41 -04:00
Tony Sullivan
d372d29ef8
Fix: Only trim /1
from the canonical URL for paginate() routes ( #3393 )
...
* only trim /1 from canonical URLs for paginate() routes
* chore: fixing eslint warning
* chore: add changeset
* typo: copy paste error
* adding a test validation error message
* verifying canonical for all three test routes
* TEMP: extra test logging to track down the failure
* TEMP: additional test logging to see what the failing CLI messages are
* TEMP: digging deeper, it's getting stuck on port 3000 is taken
* TEMP: why is it breaking when LOCAL isn't logged?
* TEMP: still digging, strange how consistent this failure is
* finally found it - the new test wasn't closing the dev server...
2022-05-20 20:07:30 +00:00
Tony Sullivan
6373508458
Enforcing routing priority during production builds ( #3407 )
...
* WIP: have a few test failures to track down
* WIP: still a few failures to fix
* WIP: fixes the issue of dynamic routes stepping on static routes
* Resolve route priority before building routes for `getStaticPaths()`
* chore: adding comments explaining why this filter is needed
* chore: adding changeset
* got too fancy with the test suite, these routes weren't valid
* simplifying the test cases
* TEMP: is this test breaking my CI run?
* Revert "TEMP: is this test breaking my CI run?"
This reverts commit 291af2a1b6f075ebfc74002886e43110731b3e1b.
* slots-preact didn't list @astrojs/preact as a dep
* reverting copy/paste error
2022-05-20 19:58:59 +00:00
Ben Holmes
fb5572bebd
Fix: components in imported markdown ( #3398 )
...
* test: add with-components to astro-markdown fixture
* fix: markdown pathname with /@fs prefix
* feat: add loadMetadata helper for md
* feat: fix components in Astro.glob results!
* fix: md import path
* Revert "feat: add loadMetadata helper for md"
This reverts commit 76cf96f4be3d0e19589f84025c0131352d0b6cc8.
* fix: add back $$loadMetadata helper
* feat: add second comp framework to md test
* chore: core/render/dev lint
* chore: changeset
* fix: short circuit if mod doesn't have metadata
* fix: skip mod graph preloading in dev
* refactor: make md metadata check recursive
* refactor: extract metadata helper to util
* fix: remove unecessary mod graph query
* fix: move md import flag to util for deno bundling issue
* fix: remove 'dev' mode from test utils build
* feat: add global hashset for seen metadata
* refactor: flip Promise.all to for await for perf!
* Revert bc I was wrong! "refactor: flip Promise.all to for await for perf!"
This reverts commit da8a6873f5
.
2022-05-20 15:03:21 -04:00
Nate Moore
b26d48d275
Defer head injection until renderPage
( #3408 )
...
* fix(#3195 , #3197 ): only perform head injection for renderPage
* chore: add changeset
2022-05-19 15:21:48 -05:00
github-actions[bot]
4dfd341928
[ci] release ( #3405 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-19 13:35:19 -04:00
Matthew Phillips
4007aebc6a
Provide a good error message when loading react spectrum ( #3406 )
...
* Provide a good error message when loading react spectrum
* Adds a changeset
2022-05-19 13:12:04 -04:00
Nate Moore
d34859d750
Expose file
and url
for Astro files ( #3385 )
...
* feat: update test
* feat: return `file` and `url` for astro files
* chore: add changeset
* fix: use private names $$file and $$url
* test: update markdown test
* chore: update fileId logic to strip query params
2022-05-19 10:49:14 -05:00
Matthew Phillips
0c9f770e8a
Include server CSS in the manifest assets ( #3402 )
...
* Include server CSS in the manifest assets
* Adds a changeset
2022-05-19 08:38:27 -04:00
github-actions[bot]
b330c5b72e
[ci] release ( #3400 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-18 21:36:32 +00:00
Tony Sullivan
0d3c673dd9
Fix: Support .html requests in dev ( #3401 )
...
* WIP: this regex should handle .html as well
* much simpler! Just fix the req.url, don't touch the manifest
* only handle .html requests when config.build.format === 'file'
* chore: add changeset
2022-05-18 20:09:23 +00:00
Matthew Phillips
2939be5f2d
Allow overriding build vite config options ( #3392 )
...
* Allow overriding build vite config options
* Adds a changeset
* Test svelte
* Move plugins down
* Assign after for the client too
* Spread output options on manually
* Remove .only
2022-05-18 15:11:40 -04:00
Ben Holmes
1bf12260af
Fix: update "building for SSR" messaging on SSG ( #3399 )
...
* fix: update "building for SSR" messaging on SSG
* chore: changeset
2022-05-18 11:45:23 -04:00
Nate Moore
cf8015eaa2
fix: locale handling for logger ( #3391 )
...
* fix(#3309 ): use system default locale
* fix(#3309 ): use system default locale in create-astro
* test: add locale regression tests
* test: add i18n regression test
2022-05-18 10:45:09 -05:00
github-actions[bot]
f54072bd3f
[ci] release ( #3378 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-17 11:50:18 -04:00
Matthew Phillips
4d00473dbd
Error recovery test and more ( #3388 )
...
* Add test to verify errors are recovered from
* Fix nested style components not be added in dev on initial load
* Adds a changeset
2022-05-17 11:43:49 -04:00
Tony Sullivan
387ed0cfa1
Deprecate @astrojs/turbolinks ( #3383 )
...
* deprecating the Turbolinks integration
* chore: add changeset
2022-05-16 18:08:49 -05:00
Sarah Etter
43d922277a
Update out directories for Netlify Functions ( #3381 )
...
* Change out directories for Netlify Functions
* Changeset
* Update test
2022-05-16 14:44:21 -04:00
Matthew Phillips
0259d7658b
Fix for loading markdown pages with spaces in the name ( #3379 )
...
* Fix for loading markdown pages with spaces in the name
* Adds a changeset
2022-05-16 14:44:15 -04:00
Juan Martín Seery
9d01f93b1c
feat(vercel): remove nodeVersion
( #3368 )
...
* Remove `nodeVersion`
* Changeset
2022-05-16 13:34:46 -05:00
Mark Leung
31b0bc87a4
Add options to partytown integration ( #3380 )
...
* Add options to partytown integration
* Update doc
2022-05-16 13:32:05 -05:00
Daniel Vivar
fe61e469b2
test(@astrojs/lit): adding tests ( #3375 )
...
* test(@astrojs/lit): adding tests
* changeset
2022-05-16 12:16:30 -04:00
Sarah Etter
e1294c422b
Netlify outdirectory ( #3377 )
...
* Change dist directory, and functions out directory
* Add changeset
* update docs
* Fix changeset
2022-05-16 11:58:31 -04:00
Matthew Phillips
b1230152ff
Support alias use with hydration scripts ( #3376 )
...
* Support alias use with hydration scripts
* Adds a changeset
* Updated lockfile
2022-05-16 11:37:51 -04:00
github-actions[bot]
2e414c3e70
[ci] release ( #3356 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 16:11:35 -06:00
Juan Martín Seery
945f5c68e8
fix(vercel): added type definitions ( #3355 )
...
* Added missing types
* Changeset
2022-05-12 16:59:07 -05:00
github-actions[bot]
cedb9a2105
[ci] release ( #3334 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 14:48:58 -06:00
Juan Martín Seery
8685506174
fix: vite types ( #3352 )
...
* Re-export vite types and added them to zod schema
* Removed casted typed
* Changeset
2022-05-12 13:55:29 -03:00
Fred K. Schott
e48aa2fd1e
add error hints ( #3350 )
...
* add error hints
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-12 10:29:59 -06:00
Ben Holmes
678c2b7523
Fix: React - Use "createRoot" instead of "hydrateRoot" for client:only
( #3337 )
...
* feat: pass "client" directive to clientEntrypoints
* refactor: remove hydration warning suppression react 17
* feat: remove hydration warning suppression react 18
* chore: changeset
* fix: change metadata to options bag
2022-05-12 10:05:55 -06:00
Tony Sullivan
b463ddb3ce
Resolve components by module ID during compilation ( #3300 )
...
* WIP: adding test coverage
* test fixes
* moving the shared lib up a directory to reproduce the bug
* fix: transform with the module ID instead of parsing the filepath
* adding the shared lib to the workspaces list
* fix: client-only assets now get the full URL from vite
* why is this needed for windows?
* WIP: using /@fs to handle windows filepaths
* fix: remove /@fs from hoisted script imports
* nit: removing unused imports
* fix: strip off the path root when mapping client:only styles
* had to reverse the `/@fs` handling to work on windows and unix
* chore: adding comments to explain the fix
* chore: adding changeset
2022-05-12 10:04:01 -06:00
Nate Moore
43e411eed8
Exclude node-fetch
from vite.optimizeDeps ( #3348 )
...
* fix: exclude `node-fetch` from vite.optimizeDeps
* chore: format
2022-05-11 15:26:01 -06:00
Juan Martín Seery
114bf63e11
refactor(vercel): Build Output API v3 ( #3216 )
...
* Removed ignores
* Migration to v3
* More changes
* Remove legacy redirects
* Fail when there is no ENABLE_VC_BUILD
* Fix edge
* Updated readme
* Changeset
* Added static mode
* Updated documentation
* Updated shim
* Made edge work!
* Updated changeset
* Ensure empty dir
* Fixed redirects for dynamic paths
* Removed extra declaration
* Splited imports
* Updated readme
* Fixed some urls
* Deprecated shim!
* [test]: Vercel NFT
* Beautify
* Edge bundle to node 14.19
Vercel runs 14.19.1 (I've checked it manually)
* Re-added shim (#3304 )
* Added `node:` prefix
* Use the same bundling as Deno for Edge
* Remove esbuild
* Fixed shim
* Moved nft
* Updated changeset
* Added note about Edge
* fix typo
* Added support for Node 16 (vercel/vercel#7772 )
2022-05-11 15:10:38 -06:00
Matthew Phillips
46cd8b9eb4
Fix APIRoute type ( #3344 )
...
* Fix APIRoute type
* Adds a changeset
* Update usage of the two API route signatures
2022-05-11 15:07:40 -06:00
Ben Holmes
1a5335ed9a
[create-astro] Finalize developer experience... with gradients 🚀 ( #3313 )
...
* wip: port gradient helpers from sandbox ideas
* feat: wire up rocket gradient 🚀
* feat: wire up rocket gradient on install step
* refactor: update "next steps" wording
* deps: add chalk (for rendering gradient)
* chore: changeset
* chore: clean up sstray template string
2022-05-11 10:38:42 -06:00
Matthew Phillips
f40705d906
Adding a changeset for solidjs error swallowing fix
2022-05-11 10:25:24 -06:00
Fred K. Schott
ce6d798282
Fix peer deps issue in svelte and vue plugins ( #3333 )
...
* fix peer deps issue
* add changeset
* rebuild lockfile
2022-05-11 09:23:32 -06:00
Matthew Phillips
ccea6a0a1a
HMR hoisted scripts ( #3336 )
...
* HMR hoisted scripts
* Add to the dep graph
* Remove example change
* Adds changeset
* Fix markdown test
2022-05-11 09:23:11 -06:00
Pascal Schilp
352fc3166f
Fix/netlify edge redirects ( #3342 )
...
* fix: create redirects file for netlify edge adapter
* chore: changeset
* chore: distinguish between edge/regular
2022-05-11 09:13:23 -06:00
Pascal Schilp
3dc68e148e
fix: inject script for ssr mode ( #3339 )
...
* fix: inject script for ssr mode
* chore: changeset
2022-05-11 08:53:53 -06:00
Tony Sullivan
e22f7364ce
Fixes custom 404 pages in astro dev ( #3331 )
...
* Fixing pathname matching for custom 404 pages
* fixes custom 404 routes in dev
* refactor: removing node path dependency
* refactor: using core's path utils
2022-05-10 21:05:30 +00:00
Fred K. Schott
d04928e8f2
rename dts to ts file ( #3332 )
...
* rename dts to ts file
* Create new-carrots-cough.md
* add back missing types
2022-05-10 14:54:01 -06:00
github-actions[bot]
4639a048d7
[ci] release ( #3308 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-06 09:28:57 -04:00
Matthew Phillips
8021998bb6
Add new configKeys prop for telemetry ( #3299 )
...
* Add new configKeys prop for telemetry
This property lets us known which AstroConfig keys are being used, for anonymous telemetry.
* Adds a changeset
* Restructure how the telemetry event is shaped
2022-05-06 09:22:27 -04:00
Tony Sullivan
19e1686b87
Allowing Vite to handle base config for deploying to subpaths ( #3178 )
...
* Revert "Improvements to build and dev when building for subpaths (#3156 )"
This reverts commit 637919c8b6
.
* letting Vite handle base paths
* test updates to expect Astro.request.url to no longer include subpaths
* bringing back the fix for including subpaths in injects scripts and styles
* fixing the static-build test to handle subpaths for injected CSS
* fixing asset import URLs when using base subpaths
* chore: fixing typo in the comments
* Astro needs to manage base in dev to maintain Astro.request.url
* fix: reverting dev routing tests to expect existing behavior
* reverting Astro global test to verify existing behavior
* chore: adding changeset
* test: update static-build tests to verify the subpath is used in asset imports
2022-05-05 22:39:16 +00:00
github-actions[bot]
f67832ebf7
[ci] release ( #3307 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 18:21:27 -04:00
Ben Holmes
0efaf110fc
Fix: make RSS canonicalUrl required ( #3301 )
...
* chore: make canonicalUrl required
* docs: explain env variable on required canonicalUrl
* refactor: rename "canonicalUrl" to "site"
* chore: changeset
2022-05-05 18:03:25 -04:00
github-actions[bot]
9b98633cc8
[ci] release ( #3302 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 16:27:40 -04:00
Matthew Phillips
3d901ca59d
Revert "refactor: remove serialize-javascript ( #3278 )" ( #3304 )
...
* Revert "refactor: remove serialize-javascript (#3278 )"
This reverts commit 13c1f5ff6b
.
* Adds a changeset
2022-05-05 15:56:29 -04:00
Matthew Phillips
61e1a267a8
Implement the Astro.response RFC ( #3289 )
...
* Implement the Astro.response RFC
* Adds a changeset
* Mark Astro.response.headers as readonly
2022-05-05 12:21:53 -04:00
github-actions[bot]
d0a4064d80
[ci] release ( #3293 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 09:56:45 -04:00
Matthew Phillips
6643a3931d
Conform to API route signature ( #3272 )
...
* Conform to API route signature
* Rename to API route
* Update ssr test
* Update packages/astro/test/fixtures/ssr-dynamic/src/pages/api/products/[id].js
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Adds a changeset
* Make PR review changes
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-05-04 14:55:37 -04:00
github-actions[bot]
9b6a2e2d87
[ci] release ( #3288 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-04 08:59:10 -04:00
Pascal Schilp
e5f6de4edb
feat: expose pages ( #3286 )
...
* feat: expose pages
* chore: changeset
* fix: build
2022-05-04 08:27:51 -04:00
github-actions[bot]
58862fbf76
[ci] release ( #3284 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 17:14:26 -07:00
Fred K. Schott
82345fdd54
Create silent-hornets-double.md
2022-05-03 17:09:57 -07:00
Fred K. Schott
1032e450cc
Revert "[ci] release ( #3279 )"
...
This reverts commit 9fb2c4744c
.
2022-05-03 17:04:44 -07:00
github-actions[bot]
9fb2c4744c
[ci] release ( #3279 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 18:33:18 -04:00
Tony Sullivan
9ad8aefdd7
Turbolinks: clean up injected scripts and styles on page navigation ( #3283 )
...
* client hydration scripts should be removed before navigation
* chore: adding a changeset
* also cleanup injected styles on page navigation
2022-05-03 22:30:46 +00:00
Ben Holmes
fbfb6190ab
Feat: @astrojs/rss
package! ( #3271 )
...
* feat: introduce @astrojs/rss package!
* feat: add config "site" to env variable
* docs: add @astrojs/rss readme
* chore: changeset
* fix: testing script
* deps: add mocha, chai, chai-promises
* tests: add rss test!
* feat: add canonicalUrl arg
* chore: remove console.log
* fix: remove null check on env (breaks build)
* docs: stray `
* chore: update error message to doc link
* chore: remove getStylesheet
* docs: update stylesheet reference
2022-05-03 18:26:13 -04:00
Juan Martín Seery
e2a037be94
refactor: internalize shorthash ( #3281 )
...
* Shorthash has been internalized
* Remove shorthash
* Optimized shorthash
* Changeset
* Added license
2022-05-03 19:25:35 -03:00
Juan Martín Seery
13c1f5ff6b
refactor: remove serialize-javascript ( #3278 )
...
* Replaced serialize-javascript with devalue
* Changeset
2022-05-03 17:55:12 -03:00
github-actions[bot]
1de48ce4eb
[ci] release ( #3277 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 15:50:21 -04:00
Fred K. Schott
6d5ef41b1e
fix cannot exit astro bug ( #3276 )
...
* fix cannot exit astro bug
* Create loud-tigers-draw.md
2022-05-03 15:29:34 -04:00
Matthew Phillips
8f8f05c1b9
Revert "Consolidate inline hydration scripts into one ( #3244 )" ( #3275 )
...
* Revert "Consolidate inline hydration scripts into one (#3244 )"
This reverts commit 48a35e6042
.
* Fix types
* Adds changeset
2022-05-03 15:18:17 -04:00
Pascal Schilp
adada1ba01
Feat/ssr manifest ( #3262 )
...
* feat: expose pagesVirtualModuleId
* feat: add astro:build:ssr hook
* fix: missing import for pagesVirtualModuleId
* test: fix tests
* refactor: move exports to index.ts
* chore: changeset
2022-05-03 10:55:25 -04:00
github-actions[bot]
8b17d3ebcf
[ci] release ( #3243 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 09:16:57 -04:00
Matthew Phillips
f76038ac7d
Telemetry ( #3256 )
...
* feat: add @astrojs/telemetry
* feat: add telemetry events, add queueing system
* feat(telemetry): record CLI events
* chore: add note
* feat: support generic TELEMETRY_DISABLED env var
* Fix test script
* shim telemetry in tests
* Shim telemetry in other commands
* Stub telemetry in the memory leak test
* Disable telemetry in smoke tests
* Adds a changeset
* Run the formatter
* few updates
* Include config keys
* Add shallow viteKeys array:
:
* Add vite keys and tests
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
Matthew Phillips
48a35e6042
Consolidate inline hydration scripts into one ( #3244 )
...
* Consolidate inline hydration scripts into one
* Adds changeset
* Update custom element test
* Provide a better name for tracking if we have added a hydration script
2022-05-03 09:07:16 -04:00
Juan Martín Seery
de123b28b3
refactor(markdown): removed rehype-slug
in favor of our own implementation ( #3234 )
...
* Moved types arround
* Removed `rehype-slug` in favor of our own implementation
* Changeset
* Removed rehype-slug from examples
* Remove rehype-slug from tests
* Updated reference
* rehypeCollectHeaders is a function again
* Reverted rehype-slug removes
* Re-added rehype-slug to reference
2022-04-29 21:07:09 -03:00
github-actions[bot]
9984f8ea24
[ci] release ( #3242 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 22:30:12 +00:00
Tony Sullivan
d25dc4c448
Fixes variable definitions in <style define:vars> ( #3241 )
...
* adding SSRResult.styles back to the rendered head
* adding test for define:vars in static build
* chore: adding changeset
2022-04-29 21:15:56 +00:00
github-actions[bot]
f244b1c6e4
[ci] release ( #3238 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 15:16:18 -04:00
Ben Holmes
c8f5fa35c4
Feat: [create astro] git step ( #3227 )
...
* feat: add git init step
* fix: update unit tests
* feat: simplify next steps for copy pasteability
* docs: add clarifying comment on test stdin spoofing
* docs: remove "empty" from git repo message
* fix: update git step text for test
* fix: remove redundant --dryrun flag
* refactor: simplify next steps with &&
* chore: changeset
2022-04-29 11:45:43 -04:00
github-actions[bot]
ed7aba2e8b
[ci] release ( #3229 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 09:31:47 -04:00
Ben Holmes
b7cd695884
Feat: [create astro] replace component selector with "astro add" ( #3223 )
...
* feat: remove component framework selector
* feat: update templates to use "basics"
* feat: add "astro add" cli step
* tests: astro add step
* fix: reset env for pnpm tests
* fix: update install step test
* chore: remove "frameworks" step from tests
* deps: remove node-fetch from create-astro
* chore: changeset
* fix: use "preferLocal" for astro add command
* refactor: remove POSTPROCESS_FILES
* feat: add --yes flag to simplify astro add
* feat: bring back minimal option as "completely empty"
2022-04-27 20:58:18 -04:00
github-actions[bot]
7937852395
[ci] release ( #3215 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-27 16:23:53 -04:00
Juan Martín Seery
3d6e382b58
fix: replaced deprecated String.substr with String.slice ( #3224 )
2022-04-27 15:43:43 -03:00
Ben Holmes
f23d6c528e
chore: changeset ( #3221 )
2022-04-27 10:14:07 -04:00
Ben Holmes
00fc1326ed
Refactor/clean create astro logs ( #3212 )
...
* refactor: simplify dir error log to avoid wrapped text
* refactor: remove redundant "issue" callout
* chore: changeset
* chore: update tests for new dir log
2022-04-26 20:38:31 -04:00
github-actions[bot]
8d8433ee50
[ci] release ( #3182 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 16:49:09 -04:00
Juan Martín Seery
eaad17694f
fix(vercel): trailingSlash
fix for non-html pages ( #3185 )
...
* fix(vercel): `trailingSlash` fix for non-html pages
* Changeset
2022-04-26 16:00:26 -04:00
Matthew Phillips
22cb4b7b32
Prevent watcher from running during the build ( #3207 )
...
* Prevent watcher from running during the build
* Adds a changeset
2022-04-26 15:59:31 -04:00
Erika
fdd607c575
Add missing is:raw in AstroBuiltinAttributes ( #3209 )
2022-04-26 15:26:20 -04:00
Ben Holmes
7a61977db1
Feat: support astro add
without npm installing ( #3183 )
...
* deps: update to latest proload
* feat: avoid parsing config on resolveConfigUrl
* chore: changeset
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 14:35:44 -04:00
Erika
e4bb2767d5
Add Astro attributes to svg elements ( #3205 )
2022-04-26 11:29:25 -04:00
Ben Holmes
38e5e9e982
Feat: create astro
add install step ( #3190 )
...
* feat: add instlal step with pkg manager detection
* feat: add package emoji for style points
* feat: update next steps to match pkg manager
* refactor: extract some create-astro test utils
* refactor: extract promp msgs to utils
* chore: add install step tests
* chore: changeset
* fix: remove directory test skip
* fix: unset env variables after install step test
* deps: add execa to create-astro
* refactor: use execa for install step
* chore: remove old comment
* fix: rework install step test for node 14?
* chore: remove "politely stolen" footnote
* temp: show stdout dialog
* feat: remove debugging logs, add dryrun flag for testing
* chore: more stray logs
* fix: remove rmdir
2022-04-26 11:24:24 -04:00
Juan Martín Seery
1a86e77c37
fix(markdown): file.url fixes ( #3198 )
...
* fix(markdown): file.url fixes
* Added tests
* Changed the default of `base` from `./` to `/`
* Make the url work with subpath
* Changeset
* Forgot to change this comparison
2022-04-25 13:38:46 -03:00
Juan Martín Seery
205d1f07f1
feat(markdown): Improved types ( #3191 )
...
* feat(markdown): Improved types
* More MarkdownMetadata
2022-04-24 16:13:33 -07:00
Fred K. Schott
cafd36ef77
Create angry-cheetahs-walk.md
2022-04-22 14:26:04 -07:00
Ben Holmes
2b702d6aba
Fix: astro add
generating config outside project root ( #3186 )
...
* fix: astro.config generated outside project dir
* chore: changeset
2022-04-22 15:17:16 -04:00
Ben Holmes
75dab3ca3d
chore: changeset ( #3187 )
2022-04-22 15:10:15 -04:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte ( #3181 )
...
* updating svelte integration to allow custom user config
* test: adding a test to verify that svelte options are piped through the integration
* updating the README with docs on overridding svelte options
* chore: adding changeset
* fix: copy/paste bug in test validation
* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash
( #3176 )
2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets ( #3170 )
...
* Netlify Edge: forward requests for static assets
* Adds a changeset
* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
github-actions[bot]
f3586cff41
[ci] release ( #3173 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 16:00:18 -05:00
github-actions[bot]
84939b2ff2
[ci] release ( #3172 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
Ben Holmes
7c49194ca2
Feat: [create astro] add directory prompt ( #3168 )
...
* wip: add prompt for directory with validation
* feat: wire up dir response to cwd
* feat: improve error handling on non-empty dirs
* fix: update test helpers to execaSync
* chore: add .skipped to old tests for clarity
* deps: add mocha and chai to create-astro
* feat: add directory step test with fixture
* feat: update turbo to run create-astro tests again 🥳
* chore: changeset
2022-04-21 16:36:48 -04:00
Nate Moore
908fffb5ec
chore: upgrade compiler ( #3171 )
2022-04-21 15:26:14 -05:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook ( #3166 )
2022-04-21 15:13:09 -05:00
github-actions[bot]
bd66527e7d
[ci] release ( #3169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 14:08:37 -04:00
Tony Sullivan
637919c8b6
Improvements to build and dev when building for subpaths ( #3156 )
...
* `astro build` should include the `base` provided in astro config
* test: updating build test to expect the base path in links/scripts
* ignore the default "base" value when building links/scripts
* fix: handling config that provides a base but no site
* fix: config.site was being ignored since it's a URL not a string
* hack: handle base path in dev for /public assets
* fix: dev redirect needs to ignore base default of ./
* fix: extra safety checks for the base path redirect
* refactor: simplifying it to remove the regex
* one last safety check - only redirect GET and use a 302 status
* fix: lost the leading slash when redirecting
* nit: adding comments to the test explaining how base is verified
* Remove extra console.log
* Adds a changeset
Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00
github-actions[bot]
0406bdc35b
[ci] release ( #3165 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 12:19:52 -04:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense ( #3160 )
...
* Revert "Revert "Fixes using React.lazy and Suspense""
This reverts commit e621c2f7d3
.
* Adds a changeset
* Fix ts errors
* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
github-actions[bot]
3cdc5f1bfb
[ci] release ( #3161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 11:34:03 -04:00
Matthew Phillips
e85b16e2b3
Make 'lit' always be bundled in SSR ( #3164 )
...
* Make 'lit' always be bundled in SSR
* Adds a changeset
2022-04-21 11:12:21 -04:00
Nate Moore
37a7a8347c
Improved HMR ( #3138 )
...
* WIP: improved HMR
* fix(hmr): improve hmr filtering to avoid full reloads
* chore: add changeset
2022-04-20 16:46:40 -05:00
github-actions[bot]
fce98d5552
[ci] release ( #3151 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 22:45:07 -07:00
Fred K. Schott
0c6bbee4c9
Create neat-mails-peel.md
2022-04-19 22:25:47 -07:00
Fred K. Schott
08715b8c15
Delete mighty-teachers-fail.md
2022-04-19 22:21:01 -07:00
Ben Holmes
9ba1f4f825
Fix: markdown JSX expression inconsistencies ( #3152 )
...
* fix: remove micromark-extension-mdx-expression to unbreak JSX expressions
* chore: changeset
* deps: update lockfile
* tests: jsx expressions in markdown
2022-04-19 16:37:11 -04:00
hippotastic
5e28b79095
Fix location of SolidJS pre-hydration code ( #3140 )
...
* Run before hydration instead of inlining a script after each component
2022-04-19 13:37:27 -05:00
Ben Holmes
0247b54270
Refactor: remove all legacy build logic from codebase ( #3141 )
...
* refactor: remove legacy build flag
* refactor: remove legacy style maps
* chore: changeset
* refactor: nuke vite-plugin-build-html
* deps: remove parse5
* tests: restore user provided doctype support!
* deps: remove @web/parse5-utils
* deps: change srcset-parse to dev dep
* chore: remove unused utils
* refactor: remove unused style mapping
* unrelated fix: add .test to astro-markdown-css
* refactor: remove unused astro-style with test update
* chore: remove unused buildTime var
2022-04-19 13:52:15 -04:00
github-actions[bot]
9e00f6d546
[ci] release ( #3149 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:30:27 -04:00
Matthew Phillips
05cf1a5067
Adjustments for Netlify Edge Functions ( #3150 )
...
* Adjustments for Netlify Edge Functions
* Adds a changeset
2022-04-19 13:13:52 -04:00
Tony Sullivan
44e294c9cb
Support custom vue compiler options in @astrojs/vue ( #3143 )
...
* adds support for passing options to @vitejs/plugin-vue
* updating vue integration README with options details
* adding a tests for custom vue compiler options
* chore: adding changeset
2022-04-19 16:31:32 +00:00
github-actions[bot]
95d0db5a44
[ci] release ( #3120 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 11:30:34 -04:00
Matthew Phillips
b287a9e4f3
Remove test packages from changesets
2022-04-19 11:27:01 -04:00
Matthew Phillips
4cf54c60aa
Netlify Edge function support ( #3148 )
...
* Netlify Edge function support
* Update readme with edge function information
* Adds a changeset
* Disable running edge function test in CI for now
2022-04-19 11:22:15 -04:00
Fred K. Schott
ef198ff835
handle diff symbols in shiki ( #3108 )
...
* handle diff symbols in shiki
* Create violet-cups-glow.md
2022-04-18 22:36:42 -07:00
Juan Martín Seery
4ac3797344
feat(vercel): added warning when ENABLE_FILE_SYSTEM_API=1
is missing ( #3139 )
...
* Added warning in buildtime
* Updated readme
* Changeset
2022-04-18 19:19:46 -03:00
Ben Holmes
facf8016e2
Fix: show correct error log on 5xx error ( #3137 )
...
* fix: show correct error log on 5xx error
* chore: changeset
2022-04-18 18:12:30 -04:00
Ben Holmes
44bacd2011
Fix: component styles within imported markdown files ( #3116 )
...
* fix: replace markdown path prefix with suffix flag
* fix: avoid non-encoded colons for flag
* fix: remove needless ?
* fix: dev server load order
* fix: production build crawl dynamic imports
* fix: remove unused virtual_module_id const
* fix: remove unsafe "!" on getmodbyid
* fix: remove needless @id path check
* fix: add list of SSR-able file extensions
* docs: virtual_mod_id change
* fix: support id prefix on resolved ids
* fix: switch to ?mdImport flag to resolve glob imports
* tests: imported md styles for dev and build
* chore: changeset
2022-04-18 15:44:42 -04:00
Tony Sullivan
394ab90547
Perf: reuse Shiki highlighters per theme/lang ( #3130 )
...
* reuse Shiki highlighters per theme/lang
* chore: adding changeset
2022-04-18 16:30:19 +00:00
Chris Swithinbank
9e35758ec3
Roll back to React 17 in docs template ( #3129 )
...
The docs example template includes Algolia’s Docsearch components to provide a search bar but this doesn’t support React 18 yet, so will error when dependencies are being installed.
See https://discord.com/channels/830184174198718474/965413318678425600
2022-04-18 10:09:57 -04:00
Matthew Phillips
e5383cd357
Handle static file serving in Deno adapter's start command ( #3121 )
...
* Handle static file serving in Deno adapter's start command
* Adds a changeset
* Ignore a .ts imort
2022-04-15 17:01:33 -04:00
Juan Martín Seery
b0ba22c5ff
fix(vercel): CJS bundle fix ( #3051 )
...
* fix(vercel): CJS bundle fix
* Changeset
2022-04-15 15:58:57 -04:00
Tony Sullivan
e0f838ca39
Fix/numeric path params ( #3087 )
...
* adding support for numeric params in getStaticPaths()
* chore: adding changeset
* ignore undefined params in type validation
2022-04-15 14:16:11 -05:00
github-actions[bot]
c1336ae41c
[ci] release ( #3114 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:28:42 -04:00
Matthew Phillips
1687009f31
Add client:only CSS to their pages ( #3113 )
...
* Add client:only CSS to their pages
* Adds a changeset
* Use viteID for windows
2022-04-14 12:19:03 -04:00
github-actions[bot]
254048dc82
[ci] release ( #3103 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:10:29 +00:00
Matthew Phillips
4ac0d5d4e7
Support the Markdown component in SSR ( #3036 )
...
* Support the Markdown component in SSR
* Adds a changeset
* Support runtime markdown in Node.js
* Remove option from test adapter
2022-04-14 09:51:53 -04:00
Tony Sullivan
254a8f3749
Fixing bug that could lose Tailwind's default presets ( #3099 )
...
* fixing bug that could lose Tailwind's default presets
* updating integration README
* chore: adding changeset
* test: fixing the tailwind tests
2022-04-13 15:05:00 +00:00
github-actions[bot]
b23f6b1596
[ci] release ( #3101 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
Matthew Phillips
5acf77dd22
Re-enable custom element test and fix "undefined" child ( #3095 )
...
* Re-enable custom element test and fix "undefined" child
* Remove outdated comment
* Adds a changeset
2022-04-13 08:44:22 -04:00
github-actions[bot]
21926278ba
[ci] release ( #3090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-12 20:15:14 -07:00
Fred K. Schott
5316253445
add missing changeset
2022-04-12 20:08:09 -07:00
Fred K. Schott
d33e177817
handle delete resrved word ( #3078 )
2022-04-12 19:57:05 -07:00
Fred K. Schott
81e210e03c
fix build base bug ( #3068 )
...
* fix ssr url search params bug
* fix build base bug
* safer slash removal
2022-04-12 19:54:07 -07:00
Ben Holmes
564caf24c2
Fix: React hydration failure ( #3094 )
...
* fix: react hydration failure
* chore: changeset
2022-04-12 17:00:52 -04:00
Matthew Phillips
a5caf08e24
Allow setting multiple cookies in Netlify adapter ( #3092 )
...
* Allow setting multiple cookies in Netlify adapter
* Adds a changeset
* Set the response status code
* Add a comment on why this is needed
2022-04-12 16:50:10 -04:00
Juan Martín Seery
f665d1a250
fix(vercel): support dynamic paths ( #3081 )
...
* fix(vercel): support dynamic paths
* Changeset
2022-04-12 10:02:59 -04:00
github-actions[bot]
0966a432a8
[ci] release ( #3080 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-11 19:59:32 -07:00
Juan Martín Seery
b835e285de
feat: markdown config typechecking ( #2970 )
...
* Added schemas to markdown plugin
* Added new schemas to main package
* Changesets
* typeraw
* Explaination about the weird type hack
* Added markdown.mode to config
* Added comment
* Formatted
* Moved validation to `astro` and added RemarkPlugin ad RehypePlugin
* Removed the ability to have a custom markdown renderer internally
* Fixed plugin type
* Removed unused renderMarkdownWithFrontmatter
* Added missing dependency
* Dynamically import astro markdown
* Cache import
2022-04-11 16:01:12 -07:00
Fred K. Schott
5b3464a803
fix ssr url search params bug ( #3066 )
2022-04-11 15:57:18 -07:00
hippotastic
9f248b0563
Make Netlify adapter actually append redirects ( #3079 )
2022-04-11 12:30:47 -07:00
github-actions[bot]
791a524411
[ci] release ( #3064 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 21:13:11 -07:00
Fred K. Schott
815d62f151
trigger re-release changeset
2022-04-10 21:09:30 -07:00
Fred K. Schott
55c4321b25
trigger re-release changeset
2022-04-10 21:04:52 -07:00
Fred K. Schott
bb0015c8f9
trigger re-release changeset
2022-04-10 21:02:10 -07:00
github-actions[bot]
21c74e572c
[ci] release ( #3061 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:15:02 -07:00
Fred K. Schott
2bb6a06ebb
revert release
2022-04-10 20:11:34 -07:00
github-actions[bot]
46f02d9cf4
[ci] release ( #3060 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:01:00 -07:00
Fred K. Schott
9f9189ed8e
update changeset
2022-04-10 19:53:36 -07:00
Fred K. Schott
8ca5bfad1a
update changeset
2022-04-10 19:44:17 -07:00
Fred K. Schott
4ab1a12481
correct changesets
2022-04-10 18:45:58 -07:00
Steve Lee
7b0fbd731e
Fix SSR static build public file copying. fixes #3016 ( #3037 )
...
* Fix SSR static build public file copying
* chore: update lockfile
* remove dirname and use URL constructor
* Cleanup test and actually test what it says it tests
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-10 18:23:17 -07:00
Fred K. Schott
a9ecefb8ac
fix our weird beta release issues ( #3031 )
2022-04-10 18:17:39 -07:00
Fred K. Schott
c05a544acd
update tailwind integration readme
2022-04-10 18:12:34 -07:00
Fred K. Schott
732ea3881e
Create dry-candles-behave.md
2022-04-10 14:36:08 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild ( #3028 )
...
* chore: updated esbuild
* Changeset
2022-04-10 14:33:10 -07:00
Erika
d1f292199c
Update JSDoc comments that get shown in editor ( #2999 )
2022-04-07 17:08:27 -04:00
github-actions[bot]
a5aea2ce56
[ci] release (beta) ( #3023 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-07 15:22:47 -04:00
Matthew Phillips
4b0f27d9ff
Fixes adding set-cookie headers multiple times ( #3026 )
...
* Fixes adding set-cookie headers multiple times
* Adds a changeset
2022-04-07 15:18:08 -04:00
Matthew Phillips
7e9d82d75e
Warn when trying to access headers in SSG mode ( #3021 )
...
* Warn when trying to access headers in SSG mode
* Adds a changeset
* Warn when accessing headers at all + a test
2022-04-07 15:17:05 -04:00
Tony Sullivan
c773dcde31
Exclude any ?raw or ?url css imports when adding asset links ( #3020 )
...
* exclude any ?raw css imports when adding css asset links
* ?url imports should be ignored as well
* chore: adding changeset
2022-04-07 18:26:26 +00:00
Matthew Phillips
8c04ff1f0b
Allow an adapter to export default ( #3022 )
...
* Allow an adapter to export default
* Adds a changeset
2022-04-07 13:21:56 -04:00
github-actions[bot]
1d0c1d8977
[ci] release (beta) ( #3007 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 16:40:46 -05:00
Nate Moore
25cc9218f8
fix( #2987 ): relative config handling with --config
flag ( #3001 )
...
* fix(#2987 ): relative config handling with `--config` flag
* test: fix tests
* fix: improve config test for failure case
* fix: test on windows?
* fix: test on windows?
2022-04-06 16:37:49 -05:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes ( #3011 )
...
* Fix Netlify adapter and dynamic routes
* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done
dir now matches SSR client output ( #3008 )
...
* `dir` now matches client output
* Updated integrations
* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid ( #3003 )
...
* fix: solid nested hydration
* Create ten-rice-unite.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
Peter Singh
d0777ad3af
Astro add docs ( #2958 )
...
* So This works 😎
* need to add to the cli next
* Renamed Files and Export
Applied creditation to where I found the
'inspiration' for this application.
* applied `astro docs` to cli
* Trying to add to CLI,
Not working 🤷♂️
* Converted into async method,
* 🎆 🎆 It works!!! 🥳 🎉 🥳
Embarrasing as it is I totally missed the part where logic was to be in.
* Moved `docs` cmd to `supportedCommands`
* refactor: cleanup docs command
* chore: add changeset
* chore: rename browser to open
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-06 12:19:05 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes ( #3000 )
...
* Fixed outDir
* Updated server out
* changeset
* Renamed out to tmp
2022-04-06 14:15:46 -03:00
github-actions[bot]
013150e2de
[ci] release (beta) ( #3005 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 13:06:36 -04:00
Matthew Phillips
68e1e2dd31
Fixes dynamic API routes in SSR ( #3006 )
...
* Fixes dynamic API routes in SSR
* Adds a changeset
2022-04-06 13:01:22 -04:00
Tony Sullivan
9724d844b3
fix( #2981 ): keeps astro preview
server alive ( #3004 )
...
* fix(#2981 ): keeps server alive
* chore: adding changeset
* keep alive until the 'close' or 'error' event fires
2022-04-06 15:33:07 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) ( #2997 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement ( #2996 )
...
* feat: human-readable error on bad site or base
* fix: human-readable error should have 1 config option
* docs: update README
* chore: changeset
* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
github-actions[bot]
4e021f70e1
[ci] release (beta) ( #2992 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 18:07:09 -07:00
Fred K. Schott
572ca3dcbe
add missing changeset for #2991
2022-04-04 18:02:52 -07:00
github-actions[bot]
ac34a5a03a
[ci] release (beta) ( #2989 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 15:19:57 -07:00
Fred K. Schott
bc12edf09c
Create thin-cameras-clean.md
2022-04-04 12:09:53 -07:00
github-actions[bot]
a68885c0d6
[ci] release (beta) ( #2986 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 11:35:25 -05:00
Fred K. Schott
9d7a4b59b5
enter beta pre mode ( #2979 )
...
* enter beta pre mode
* Update shiny-rice-worry.md
* Update shiny-rice-worry.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-04 11:24:21 -05:00
github-actions[bot]
2552db0d09
[ci] release ( #2975 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
Nate Moore
3f0bc5af57
fix: edge case with slotted children ( #2978 )
2022-04-03 23:18:07 -07:00
Tony Sullivan
dff89a0fa3
Merge branch 'main' of github.com:withastro/astro
2022-04-03 20:42:41 +02:00
Juan Martín Seery
824458790a
fix(cli): prevent CLI from hanging ( #2974 )
...
* fix(cli): prevent hanging CLI
* Changeset
2022-04-03 14:32:39 -03:00
Juan Martín Seery
ad3c391696
fix(markdown): escape when mode == 'md' ( #2971 )
...
* Fix rehype escape
* Changeset
2022-04-03 14:32:12 -03:00
Tony Sullivan
75919537be
Fixing the new config defaults (docs only) ( #2973 )
...
* updating the default listed in config jsdocs
* chore: adding changeset
* outDir had the wrong default listed as well
* chore: updating changeset description
2022-04-03 17:05:30 +00:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter
2022-04-02 18:53:00 -03:00
github-actions[bot]
7fe149ae43
[ci] release ( #2969 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6
Revert "[ci] release ( #2925 )"
...
This reverts commit 48c9b142cc
.
2022-04-02 13:46:25 -06:00
github-actions[bot]
48c9b142cc
[ci] release ( #2925 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode ( #2967 )
2022-04-02 13:37:28 -06:00
Nate Moore
17c02925c5
Migrate to new config ( #2962 )
...
* wip: config migration
* fix: formatting
* refactor: projectRoot -> root
* refactor: pageUrlFormat -> format
* refactor: buildOptions.site -> site
* refactor: public -> publicDir
* refactor: dist -> outDir
* refactor: styleOptions -> style
* fix: some dist tests -> outDir
* refactor: remove legacyBuild (with TODOs)
* refactor: more legacyBuild cleanup
* refactor: server host and port
* fix: remove experimentalStaticBuild CLI flag
* refactor: src -> srcDir
* refactor: devOptions.trailing -> trailing
* refactor: remove sitemap + related flags
* refactor: experimentalSSR -> experimental.ssr
* fix: last devOptions
* refactor: drafts -> markdown.drafts
* fix: TS error on port as const
* refactor: remove pages
* refactor: more --project-root updates
* refactor: markdownOptions -> markdown
* fix: remaining type errors
* feat: update AstroUserConfig
* refactor: update CLI flag mapper + server mapper
* fix: loadFixture projectRoot
* fix: merge CLI flags before validating / transforming
* wip: attempt to fix bad createRouteManifest config
* refactor: combine config.base and config.site
* fix: skip route manifest test for now
* fix: site and base handling
* refactor: update failing config testes
* fix: build failure
* feat: update config types with migration help
* chore: update types
* fix(deno): update deno fixture
* chore: remove config migration logic
* chore: remove logLevel
* chore: clean-up config types
* chore: update config warning
* chore: add changeset
* Sitemap Integration (#2965 )
* feat: add sitemap filter config option
* feat: add canonicalURL sitemap config option
* docs: update sitemap README
* fix: update for new config
* fix: filter not being applied
* chore: changeset
Co-authored-by: bholmesdev <hey@bholmes.dev>
* fred pass
* fix: Astro.resolve typo
* fix: public => publicDir
Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
Nate Moore
d55658f061
Implement new default script
behavior, style is:global
( #2961 )
...
* feat: implement RFC0016
* chore: update to latest compiler
* chore: update compiler
* test: fix script tests
* test: update public tests
* feat: throw a warning when referencing scripts in `public/` without `is:inline`
2022-04-02 12:34:25 -05:00
Tony Sullivan
226822cbbf
Allows projects to opt out of the base Tailwind styles ( #2959 )
...
* adding an option to opt-out of the Tailwind base styles
* chore: adding changeset description
2022-04-01 13:45:43 +00:00
Nate Moore
80e6e759e2
Update compiler ( #2957 )
...
* chore: update compiler
* chore: add changeset
2022-03-31 22:33:07 -05:00
JuanM04
e30aa4dfef
Added changeset
2022-03-31 20:44:15 -03:00
Nate Moore
d81b6d9ebc
Add function-based slot support to Astro.slots.render()
( #2954 )
...
* feat(slots): add function-based slot support to Astro.slots.render()
* test(slots): add render tests
2022-03-31 13:11:26 -05:00
Matthew Phillips
cebdc85428
SSR - copy public folder when there is no client JS ( #2955 )
...
* SSR - copy public folder when there is no client JS
* Changest
* Use isBuildingToSSR
Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-31 14:04:09 -04:00
Juan Martín Seery
d10c3dea21
fix: --experimental-ssr
fixes ( #2937 )
...
* Replaced `--experimental-ssr` with `isBuildingToSSR`
* changest
* Improved `isBuildingToSSR` a bit
* Added `isBuildingToSSR` to more places!!1!
* Added `@deprecated` tag
* Replaced missing experimentalSsr
* Added failing test
* Removed test
* Re-added experimental ssr flag
* Fixed typo
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Fixed deno tests
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:58:03 -04:00
Fred K. Schott
57f48b2701
Add support for React 18 in @astrojs/react ( #2947 )
...
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* add changeset
* add docs
Co-authored-by: delucis <swithinbank@gmail.com>
2022-03-31 12:51:29 -04:00
Matthew Phillips
c989f106f9
Allow components to return a Response ( #2944 )
...
* Allow components to return a Response
* Changeset
2022-03-30 15:55:22 -04:00
Matthew Phillips
13b271bc7d
Deno adapter ( #2934 )
...
* Bundle everything, commit 1
* Get everything working
* Remove dependency on readable-stream
* Adds a changeset
* Fix ts errors
* Use the node logger in tests
* Callback the logger when done writing
* Fix test helper to await the callback
* Use serialize-javascript again
* Remove dead code
* Rename hook
* Oops
2022-03-30 08:42:19 -04:00
Matthew Phillips
f048cdff70
Fixes API route compat with Node 14 ( #2936 )
...
* Fixes API route compat with Node 14
* Changeset
2022-03-29 16:59:06 -04:00
Matthew Phillips
ecc6a4833f
Implement the Astro.request RFC ( #2913 )
...
* Implement the Astro.request RFC
* Disable console warnings eslint
* Use our logger
* Adds a changeset
* Fix tests that depend on params, canonicalURL, URL
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-29 07:35:03 -04:00
Michael Marino
030fd48bdd
[fix] 2924 Update import in astro config of portfolio starter ( #2926 )
...
* fix: update import in Portfolio starter astro config file
* chore: add changeset
2022-03-28 20:54:25 -07:00
Fred K. Schott
4299ab303b
New Markdown API ( #2862 )
...
* Implement new markdown plugin with deferred markdown rendering
* feat: switch from `getContent()` fn to `<Content />` API
* update types
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* update types
* Create forty-coins-attend.md
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-28 17:16:06 -07:00
Fred K. Schott
f70207082a
Restyle error messages ( #2902 )
...
* clean up error logging in astro
* update from ben feedback
* Update packages/astro/src/core/build/generate.ts
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-03-28 16:55:36 -07:00
Matthew Phillips
b7ee8554f5
Enable next mode ( #2920 )
...
* Enable next mode
* update next mode
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-28 16:55:12 -07:00
github-actions[bot]
425139f912
[ci] release ( #2923 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-28 16:52:04 -07:00
Chris Swithinbank
22b1432e3e
Fix typing of integrations
array in user config ( #2907 )
...
* Fix type of `integrations` in config
As per [docs](https://docs.astro.build/en/reference/integrations-reference/#combining-plugins ), an integration can return an array of `AstroIntegration` objects to support bundling a collection of integrations as a preset. This change reflects that usages in the typing for the user config object.
* Add changeset
2022-03-28 17:07:07 -05:00
github-actions[bot]
8b7220f5e4
[ci] release ( #2919 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-28 16:52:23 -04:00
Matthew Phillips
77354c89bd
Prevent CSS from being added to pages not using it ( #2918 )
...
* Prevent CSS from being added to pages not using it
* Adds a changeset
* Add clarification when the CSS is appended to the pageData
* Move addStyles up a level
2022-03-28 16:48:06 -04:00
github-actions[bot]
273919328a
[ci] release ( #2896 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 17:16:33 -07:00
Fred K. Schott
f268451268
small tailwind example config fix ( #2893 )
...
* fix tailwind config example
* Create shaggy-bulldogs-beam.md
2022-03-25 17:11:45 -07:00
Fred K. Schott
9d6e0b5dba
add experimental integrations flag ( #2894 )
2022-03-25 17:11:36 -07:00
github-actions[bot]
779b5dd37c
[ci] release ( #2892 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 18:03:58 -05:00
Nate Moore
a0d67b1d25
Fix missing execa
dependency ( #2891 )
...
* fix: update dependencies
* chore: add changeset
2022-03-25 18:01:13 -05:00
Zade Viggers
71c12b9047
Correct package name in solid intergration readme ( #2889 )
...
* Correct package name in solid intergration readme
* Create polite-mirrors-fix.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:54:18 -05:00
github-actions[bot]
109693bb05
[ci] release ( #2884 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 17:00:49 -05:00
Nate Moore
e232fcda0a
chore: update incorrect changeset
2022-03-25 16:56:42 -05:00
Nate Moore
29723ddcd8
Exit pre
mode ( #2888 )
...
* chore: update docs link
* chore: exit pre
2022-03-25 16:54:11 -05:00
Ben Holmes
6b004363f9
Docs: remaining integration READMEs ( #2885 )
...
* docs: partytown README
* docs: sitemap README
* docs: tailwind README
* docs: turbolinks README
* chore: changeset
* update: make partytown 10% less fun
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* docs: add summaries for each integration
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:45:34 -04:00
Nate Moore
72ef7ae64a
feat(cli): scaffold out astro add
command ( #2849 )
...
* feat(cli): scaffold out `astro add` command
* added first babel transforms
* Format output
* Added changes confirmation
* Error flow
* Add dependencies
* feat(cli): astro add cleanup pass
* feat: add support for tailwind
* chore: update lockfile
* fix: types
* chore: rever @proload/core bump
* chore: add changeset
* chore: rollback dep update
* Added spinners
* chore: remove extra deps
* Removed extra argument
* Use `execa` instead of `exec`
* Changed how lines are trimmed within diffLines
* refactor: move add to core
* refactor: remove old add entrypoint
* refactor: simplify wording
* feat: improve diff
* feat: improve diff and logging, add interactive prompt when no args passed
* Formatted files
* Added --yes
* feat: improve logging for install command
* Fixed execa
* Added help message to add
* refactor: extract consts to own file
* feat: remove implicit projectRoot behavior
* feat: improve error handling, existing integrations
* fix(tailwind): ensure existing tailwind config is not overwritten
* refactor: prefer cwd to projectRoot flag
* chore: add refactor notes
* refactor: throw createPrettyError > implicit bail
* refactor: cleanup language
* feat(cli): prompt user before generating tailwind config
* fix(cli): update config generation to use cwd
* fix: resolve root from cwd
* chore: update changelog
Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-25 16:26:55 -05:00
Matthew Phillips
80034c6cbc
Netlify adapter ( #2879 )
...
* Netlify adapter
* Remove package.json export that doesnt exist
* Fix out path
* Make netlifyFunctions the default
* Make the dist configurable
* Add an export for the functions
* Append of the file exists
2022-03-25 12:08:02 -04:00
github-actions[bot]
c78d7a46c9
[ci] release (next) ( #2860 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-24 17:37:49 -05:00
Ben Holmes
2db97f10dc
Refactor: move prism to @astrojs/prism/components
( #2878 )
...
* feat: add `<Prism/>` to @astrojs/prism/components
* feat: remove `<Prism/>` from astro/components
* refactor: point to index.mjs in import
* refactor: change exp to @astrojs/prism/component
* refactor: remove unecessary index.js
* chore: changeset
2022-03-24 17:48:07 -04:00
Matthew Phillips
e4025d1f53
Build to a single file ( #2873 )
...
* Build to a single file
* Updates based on initial code review
* Adds a changeset
* Use the default export for cjs module
* Await generatePages
* Prevent timing from causing module to not import
* Fix shared CSS
* Properly handle windows ids
* Dont shadow
* Fix ts errors
* Remove console.log
2022-03-24 17:08:36 -04:00
Fred K. Schott
5029382a8c
fix markdown page script injection ( #2871 )
2022-03-24 12:30:54 -07:00
Ben Holmes
1061d6477a
Feat: improve production build logging ( #2857 )
...
* feat: log setup, vite, and route gen steps
* refactor: add back "build" + timestamp for consistency
* feat: improve ms increase logs to match old debug output
* feat: add log for server assets
* chore: remove redundant debug logs
* feat: add logs for ssr steps
* fix: hide per-page log for ssr builds
* fix: hide "index.html" from debug log in SSR
* feat: add log for "collecting page data" step
* feat: add timeout logs for longer data imports
* chore: add changeset
* remove (includes setup + teardown)
* refactor: add newline to separate ssr from client build
* fix: move "gen static routes" heading to pages
* fix: only show client build ms when triggered
* fix: remove dup render loop
* chore: remove unused static-build imports
2022-03-24 15:23:37 -04:00
Fred K. Schott
5571227718
fix adblock issue ( #2875 )
2022-03-24 11:20:34 -07:00
Fred K. Schott
d763ec183e
fix shiki perf issue ( #2870 )
2022-03-24 09:49:54 -07:00
Ben Holmes
098f6f6b06
Fix: is self accepting
pt 2 module graph boogaloo ( #2872 )
...
* fix: isSelfAccepting Preact error
* refactor: add .js ext to preact entrypoints for consistency
* chore: changeset
* fix: remove ./client and ./server from preact pkg exp
2022-03-24 12:28:50 -04:00
Matthew Phillips
5e52814d97
Adapters v0 ( #2855 )
...
* Adapter v0
* Finalizing adapters
* Update the lockfile
* Add the default adapter after config setup is called
* Create the default adapter in config:done
* Fix lint error
* Remove unused callConfigSetup
* remove unused export
* Use a test adapter to test SSR
* Adds a changeset
* Updated based on feedback
* Updated the lockfile
* Only throw if set to a different adapter
* Clean up outdated comments
* Move the adapter to an config option
* Make adapter optional
* Update the docs/changeset to reflect config API change
* Clarify regular Node usage
2022-03-24 07:26:25 -04:00
Nate Moore
c781b12f87
fix: ensure private API is not enumerable ( #2859 )
2022-03-22 16:27:35 -05:00
github-actions[bot]
d082689385
[ci] release (next) ( #2851 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-21 20:27:46 -07:00
Ben Holmes
96372e6beb
Fix: isSelfAccepting
? More like isBanishedToTheShadowRealm
( #2852 )
...
* fix: restore renderer caching strategy
* fix: restore old URL constructor for HMR
* docs: comment why we need the rendererCache
* refactor: remove needless "else"
* chore: changeset
2022-03-21 20:14:58 -07:00
Ben Holmes
5315c3f7bc
Feat: support tailwind config files ( #2831 )
...
* feat: support custom tailwind config files
* fix: make config options optional
* feat: use existing utilities to resolve config path
* deps: add @proload/core to tailwind integration
* deps: update pnpm lock
* chore: clarify config docs
* refactor: extract user config fetch to helper
* refactor: rename function and function options
* refactor: throw error on bad custom config path
* deps: move @proload/core to regular deps
* chore: add changeset
* fix: apply astro preset when user config exists
* fix: use resolveConfig to preserve defaults
2022-03-21 17:27:32 -04:00
Fred K. Schott
981e2a839b
add injected scripts to markdown pages ( #2848 )
...
* add injected scripts to markdown pages
* Create twenty-kiwis-tease.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-21 13:05:11 -07:00
Tony Sullivan
3b621f7a61
chore: integration keywords ( #2847 )
...
* updating integration package keywords
* adding a changeset
2022-03-21 19:31:15 +00:00
Nate Moore
0bc3b72958
chore: update changeset
2022-03-21 12:34:42 -05:00
Juan Martín Seery
1fdb63b5d0
feat(create-astro): add peer dependencies to package.json ( #2843 )
...
* Install dependencies automatically
* Added spinners
* Updated lockfile
* changeset
* Sort dependencies
* Reverted autoinstall
* Updated changeset
2022-03-21 12:33:31 -05:00
Juan Martín Seery
41110ebe72
chore: remove @astrojs/parser
( #2845 )
...
* Removed parser from astro
* Removed parser files
* Updated changeset config
* Removed from license
2022-03-21 12:30:23 -05:00
Fred K. Schott
078b6cde6c
[ci] release (next) ( #2838 )
...
This reverts commit 935e6fa0c8
.
2022-03-20 21:02:08 -07:00
Fred K. Schott
935e6fa0c8
Revert "[ci] release (next) ( #2838 )"
...
This reverts commit 5df8d68094
.
2022-03-20 21:01:42 -07:00
github-actions[bot]
5df8d68094
[ci] release (next) ( #2838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-19 10:34:59 -07:00
Nate Moore
77ebab8bb2
chore: fix missing postcss-load-config
dependency ( #2835 )
2022-03-18 19:02:42 -07:00
github-actions[bot]
b5a8418f82
[ci] release (next) ( #2812 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-18 18:20:21 -05:00
Nate Moore
7954541291
Update Compiler with new CSS Parser ( #2833 )
...
* chore: update compiler
* Update eighty-trees-thank.md
* test: update css test
2022-03-18 18:16:32 -05:00
Fred K. Schott
31a1b40cb8
Enter prerelease mode ( #2832 )
...
* update lockfile
* enter pre-release mode
2022-03-18 15:47:51 -07:00
Ben Holmes
0a3d3e51a6
Feat: change to shiki default md renderer ( #2824 )
...
* feat: change Shiki to default
* refactor: update blog styles for shiki
* feat: update examples/docs styles for Shiki
* refactor: remove Prism-ish examples/docs styles
* refactor: simplify rules with `all: unset`
* refactor: remove Prism styles
* refactor: examples/with-md remove Prism-specific line-highlight
* chore: add changeset
* chore: update changeset versions
* refactor: update syntax highlight test for scoped styles
* fix: apply scoped style class to pre and span lines
* feat: test that scoped styles cascade to shiki code
* refactor: pass scopedClassName explicitly
2022-03-18 17:29:51 -04:00
Hlynur Sveinbjornsson
1cd7184ca6
Fix island deduplication ignoring props. ( #2825 )
...
* Fix island deduplication ignoring props.
Re-resolves an issue initially patched in https://github.com/withastro/astro/pull/846 but seemingly lost in the 0.21.0 mega-merge (d84bfe719a
).
This change makes the component render step account for all props, even if they don't affect the generated HTML, when deduplicating island mount.
* Fix React component test using different rendered props to test deduplication.
* fix: improve serialization support for non-JSON objects
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-18 09:00:14 -04:00
Matthew Phillips
7b9d042dde
Allow SSR dynamic routes to not implement getStaticPaths ( #2815 )
...
* Allow SSR dynamic routes to not implement getStaticPaths
* Adds a changeset
* Update based on code-review comments
2022-03-17 08:31:01 -04:00
Matthew Phillips
4c25a1c2ea
Implements redirects, headers for SSR ( #2798 )
...
* Implements redirects, headers for SSR
* Move away from an explicit Request
* Properly handle endpoint routes in the build
* chore(lint): ESLint fix
* Update based on review comments
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-16 12:16:21 -04:00
github-actions[bot]
2b89613539
[ci] release ( #2808 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 19:40:27 -05:00
Nate Moore
9a5d58d5ba
fix: do not ignore astro-scripts
2022-03-15 19:40:16 -05:00
Nate Moore
fb26d395f5
fix: ignore astro-scripts
2022-03-15 19:31:19 -05:00
Nate Moore
9e59ec921f
Disable sourcemaps for build ( #2806 )
...
* fix: disable sourcemaps for build
* chore: add changeset
2022-03-15 19:25:24 -05:00
Ben Holmes
79282163e2
fix: Svelte PostCSS config error ( #2807 )
...
* fix: Svelte PostCSS config error
* chore: changeset
2022-03-15 19:32:39 -04:00
github-actions[bot]
b36d16eb8f
[ci] release ( #2802 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 17:06:40 -05:00
Nate Moore
86419d9ed7
Ignore test fixture for changesets ( #2804 )
...
* test: move fixtures to `@test/` scope
* chore: ignore `@test/` scope
* chore: add changeset
* test: renamed missed package
* chore: delete test file
* fix: @test package references
* fix: @test package references
2022-03-15 16:17:23 -05:00
Fred K. Schott
6eb494796e
update HTML escape logic ( #2793 )
2022-03-15 15:33:55 -05:00
Nate Moore
2b76ee8d75
Export defineConfig helper ( #2803 )
...
* feat: add astro/config entrypoint
* chore: update examples to use `defineConfig` util
* chore: prettier fix
* chore: add changeset
2022-03-15 15:27:17 -05:00
Ben Holmes
2d95541b52
Fix missing style imports on initial load ( #2791 )
...
* fix: missing style imports on initial load
* chore: changeset
* fix: update comment on using URL map
* fix: use getModulesByFile to match on ID properly
* refactor: use imperative loop for performance
* fix: update scan from each matching mod
* fix: update scan from importedMod loop
* fix: avoid scanning all related mods
2022-03-15 15:02:29 -04:00
Fred K. Schott
11fb3745dd
[windows:ci] handle CLI output in a cross-compat way ( #2801 )
...
* handle readline in a cross-compat way
* Create modern-feet-lay.md
2022-03-15 10:30:25 -07:00
github-actions[bot]
973d398074
[ci] release ( #2786 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 11:40:51 -04:00
Matthew Phillips
58d8686e94
Fix for allowing space in folder name ( #2797 )
...
* Fix for allowing space in folder name
* Adds a changeset
* Prepend a forward slash, for windows
2022-03-15 11:26:46 -04:00
Nate Moore
6b34840d3d
Fix set:html
behavior with null
( #2790 )
...
* feat: improve set:html behavior for null/undefined
* chore: add changeset
* refactor: improve set:html and set:text documentation
* test: improve set:html tests
* refactor: better types for server API
2022-03-14 18:19:53 -05:00
Fred K. Schott
b4d34e2d2c
improve build perf ( #2772 )
2022-03-14 10:23:05 -07:00
Ben Holmes
2c4fd919fa
Fix: Astro.props missing properties ( #2785 )
...
* Fix: Astro.props missing properties
* chore: add changeset
2022-03-14 13:03:44 -04:00
github-actions[bot]
30e78a0bd8
[ci] release ( #2770 )
...
* [ci] update lockfile (#2763 )
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: exit prerelease mode
* [ci] release
* chore: update lockfile
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-11 16:47:57 -06:00
Nate Moore
47f5576a3f
chore: exit prerelease mode
2022-03-11 16:39:13 -06:00
Matthew Phillips
49c0d9970f
Fix dev resolution of client modules on Windows ( #2768 )
...
* Fix dev resolution of client modules on Windows
* Adds a changeset
2022-03-11 17:28:48 -05:00
Ben Holmes
77b9c95352
Feat: expose server on local network with new --host flag ( #2760 )
...
* feat: update config to support bool --hostname
* fix: show localhost for --hostname=true
* feat: address logging feature parity w/ Vite
* chore: update type docs
* refactor: extract local, network prefs to variable
* feat: add --host to --help output
* feat: deprecate --hostname, add --host
* feat: add --host tests
* feat: update preview to support new flags
* fix: show --host in dev server log
* feat: update config tests for --host flag
* chore: test lint
* chore: update lock with new fixture
* chore: add changeset
* refactor: add more details to JSdocs
* fix: update path tests
* feat: only expose when --host is not local
* fix: make flag --help less verbose
* fix: address @types comments
* fix: lint
* chore: remove unused import
* fix: use host flag for config test
* fix: ensure local logs come before network
* refactor: switch up that network logging one last time!
* feat: update unit tests
* chore: remove debugging block
* fix: only parse network logs if network is present
2022-03-11 17:25:26 -05:00
Nate Moore
2bb2c2f7d1
Update compiler ( #2767 )
...
* chore: update compiler
* chore: add changeset
2022-03-11 16:20:20 -06:00
github-actions[bot]
e032e89a64
[ci] release (next) ( #2754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-10 17:31:45 -06:00
Nate Moore
499fb6a335
CLI: add prerelease warning ( #2758 )
...
* feat(cli): add prerelease and outdated warnings
* refactor: cleanup getLatestVersion code
* refactor: simplify isPrerelease logic
* chore: add changeset
* fix: do not require devStart for preview
* refactor: extract prerelase/outdated into own templates
* feat: remove upgrade warning
* feat: make prerelease less scary
* chore: update prerelease wording
* chore: update feedback copy
2022-03-10 17:25:06 -06:00
Nate Moore
10843aba63
Add sitemap filter option ( #2755 )
...
* Add filter for sitemap
* chore: add changeset
* fix: types
* docs: add sitemapFilter docs
Co-authored-by: David Rothmann <david@rothmann.it>
2022-03-10 14:14:45 -06:00
Ben Holmes
a14075e2a4
Feat: show 404 when getStaticPaths
doesn't match URL ( #2743 )
...
* WIP: return 404 for unmatched getStaticPaths route
* feat: regex on static paths to 404 in dev
* Revert "WIP: return 404 for unmatched getStaticPaths route"
This reverts commit 9c395a2586ca40d44c3ab18edc7ffbc1c4660ed8.
* feat: call getParamsAndProps pre-ssr to catch errs
* fix: remove unused cache regex check
* fix: revert getPattern changes
* fix: remove unused preload props
* fix: log 404 for custom 404 pages
* refactor: rename fixture for clarity
* feat: add getStaticPaths status code tests
* fix: pas rootRelativeUrl to handle subpaths
* fix: update dev-routing tests from 500 -> 404
* refactor: make error handling more explicit
* lint: use typescript no shadow to fix enum issue
* chore: add changeset
* refactor: clarify test names
* refactor: remove variable reassignment
* fix: update dev-routing tests 500 > 404
* refactor: update test file structure
* Fix: revert to old logging
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Chore: use `const enum` instead
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: format
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-10 13:02:37 -05:00
Fred K. Schott
79fc320480
update deps: esbuild, typescript ( #2750 )
...
* update dep: typescript
* update dep: esbuild
* update types
* update types
* update dep: es-module-lexer
* update tests
2022-03-10 09:55:40 -06:00
github-actions[bot]
6ead80db47
[ci] release (next) ( #2734 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-09 19:01:26 -06:00
Nate Moore
ae8d925666
Improve Astro.slots
API ( #2695 )
...
* feat: update Astro.slots API
* fix: migrate Markdown to public `Astro.slots.render` API
* chore: update internal AstroGlobal types
* chore: add changeset
* Update clean-bottles-drive.md
* refactor(test): update slot tests to new syntax
2022-03-09 18:09:48 -06:00
Nate Moore
af075d8157
chore: add changeset
2022-03-09 17:45:25 -06:00
Nate Moore
e8d4e56803
Improve logger (deduping, new help and version) ( #2737 )
...
* feat: improve logger by removing repeat messages
* feat(hmr): only send HMR updates when files change
* feat: improve hmr formatting
* feat(logger): improve welcome formatting
* feat(logger): improve hmr formatting
* chore(test): update cli test output
* feat(logger): improve logging output
* feat(logger): improve help/version flags
* chore: remove checksum checks
* fix(test): update cli tests
* refactor(test): cleanup astro dev cli tests
* chore: add changeset
* chore(test): skip doctype test
2022-03-09 17:37:59 -06:00
Nate Moore
05b66bd68b
Escape HTML by default ( #2747 )
...
* feat: escape HTML by default
* feat(test): add escaping test
2022-03-09 17:02:25 -06:00