natemoo-re
d46746c34f
[ci] yarn format
2021-07-09 22:04:00 +00:00
Nate Moore
5077ff2e11
feat: improve handling of undefined components ( #650 )
2021-07-09 17:02:39 -05:00
Nate Moore
fb78b76cc6
Improve error handling in unsupported node versions ( #649 )
...
* feat: improve error handling for unsupported node versions
* chore: add changeset
2021-07-09 14:29:51 -05:00
natemoo-re
924369b502
[ci] yarn format
2021-07-09 14:47:26 +00:00
Nate Moore
d93f768c8c
Fix injection behavior for pages which contain no elements ( #638 )
...
* chore: add changeset
* fix(#605 ): inject HMR/styles even when page includes no elements
* chore: update test description
2021-07-09 09:46:19 -05:00
matthewp
a9f2f6f6f9
[ci] yarn format
2021-07-09 13:41:50 +00:00
Matthew Phillips
44a69f7dcb
Protect again no metadata being passed ( #644 )
...
If using Astro <= 0.17.0 there is no `metadata` being passed. Even though no one should be using that version with this, adding some extra protection just in case.
2021-07-09 09:40:42 -04:00
github-actions[bot]
e70d9508d9
Version Packages ( #639 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-09 09:32:15 -04:00
matthewp
00cdbc4a46
[ci] yarn format
2021-07-09 13:01:57 +00:00
Matthew Phillips
1e01251454
Use correct React rendering API or hydration ( #636 )
...
* Use correct React rendering API or hydration
* Add changeset
2021-07-09 09:00:32 -04:00
natemoo-re
0af70d68c2
[ci] yarn format
2021-07-08 21:48:26 +00:00
Nate Moore
42a6acee28
Add support for components defined in frontmatter ( #637 )
...
* fix: add support for components defined in frontmatter
* chore: add changeset
* test: update test to match example use case
2021-07-08 16:47:23 -05:00
Nate Moore
b4f145a0e7
Update component-hydration.md
2021-07-08 15:19:30 -05:00
github-actions[bot]
958ca11e7e
Version Packages ( #634 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-08 14:40:42 -04:00
Matthew Phillips
36e104bee0
Add create-astro changeset
2021-07-08 14:33:33 -04:00
Matthew Phillips
5570bf7958
Use new client:visible syntax in create-astro ( #633 )
2021-07-08 14:31:05 -04:00
github-actions[bot]
b2428b3999
Version Packages ( #632 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-08 14:14:55 -04:00
matthewp
c0d4e8430f
[ci] yarn format
2021-07-08 18:09:16 +00:00
Tony Sullivan
0a7b6deaec
Move hydration directives to special attributes ( #618 )
...
* feat: ♻️ updating hydration to work with the directive syntax
* test: ✅ Updating tests for the hydration directive syntax
* refactor: Updating example projects for the hydration directive syntax
* test: ✅ Found a test fixture still needing an update to the hydration directive syntax
* style: Prettier strikes again! Reverting code formatting changes
* refactor: ♻️ moving directive matching to a Set
* refactor: Updating syntax to `client:load`
* refactor: ♻️ Simplifying the `client:` directive match
Per PR feedback from @matthewp
* chore: errant console.warn() snuck into the last commit
* feat: 🔊 Adding a super fancy build warning to update to the directive syntax
* refactor: ♻️ Removing unnecessary checks when matching supported hydration directives
`val` isn't being used for now, but leaving it in the attr destructuring as a reminder since it'll be needed for `client:media`
* test: ✅ Including the original hydration syntax in a test to make sure it builds
* style: 📝 Adding a comment to make it clear why the old hydration syntax is included in a the test markup
* fix: 🐛 updating `head` logic to recognize hydration directive syntax
* docs: Adding changeset
* refactor: 🔥 Removing unnecessary `!hasComponents` check
* docs: 📝 Adding more detail to the changset
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-07-08 14:07:56 -04:00
Nate Moore
ea5afcd633
Update component-hydration.md
2021-07-08 11:55:52 -05:00
Nate Moore
ee4bcb5729
docs( #628 ): Clarify component rendering
...
Every component is rendered on the server at build time. Hydration directives _optionally_ add client-side hydration at runtime.
2021-07-08 11:50:12 -05:00
Caleb Jasik
6287ec2b8e
Remove prettier-plugin-astro
from root package.json ( #624 )
...
* Remove `prettier-plugin-astro` from `yarn test` while it is outside the monorepo.
* Apply suggestions from code review
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-07-08 10:56:08 -05:00
Jim Nielsen
f841d57d2a
fix: sorting key for blog posts ( #629 )
...
The posts use a `publishDate` key, not a `date` key, so this wasn't sorting on anything.
2021-07-08 10:55:23 -05:00
github-actions[bot]
2d1998647c
Version Packages ( #626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-07 20:34:17 -04:00
Matthew Phillips
5d1ff62c79
Pin to snowpack 3.7.1 ( #625 )
...
* Pin to snowpack 3.7.1
Issues reported on discord
* Add a changeset
2021-07-07 20:31:03 -04:00
github-actions[bot]
97d5a2ba18
Version Packages ( #622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-07 16:36:13 -05:00
natemoo-re
8e01a3c463
[ci] yarn format
2021-07-07 21:32:45 +00:00
Nate Moore
ff89a6a7a6
fix: make create-astro component injection less brittle ( #623 )
2021-07-07 16:31:42 -05:00
Nate Moore
bcf715df7a
chore: update starter with magic comments
2021-07-07 15:46:02 -05:00
natemoo-re
1bbe98ae54
[ci] yarn format
2021-07-07 20:10:09 +00:00
Caleb Jasik
53fcae1a9a
Remove prettier-plugin-astro
to fix Prettier CI ( #614 )
...
* Disable embedded languages formatting so that Astro code blocks don't make prettier hang
* chore: remove prettier-plugin-astro
* chore: enable embedded languages
* chore: update yarn lock
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-07-07 15:09:05 -05:00
Nate Moore
20b4a600f5
fix: do not override snowpack alias ( #610 )
2021-07-07 14:53:00 -05:00
Nate Moore
5d5d67c8f9
Add framework-specific prompt and setup to create-astro
( #620 )
...
* feat(create-astro): add framework-specific prompt and setup
* chore: normalize example `astro.config.mjs` files
2021-07-07 14:52:44 -05:00
Caleb Jasik
42a1fd7c16
Add the cli flag --silent
to astro which sets astro and snowpack logging to output nothing ( #613 )
2021-07-07 14:51:54 -05:00
Matthew Phillips
047652295b
Move vercel.json to the root ( #617 )
2021-07-07 13:44:25 -04:00
Matthew Phillips
b9bd6875bb
Update with changes to the yarn lock
2021-07-06 15:32:36 -04:00
github-actions[bot]
e7be675685
Version Packages ( #609 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-06 15:31:12 -04:00
Matthew Phillips
d8ceff5fac
Implements templates from external repos ( #603 )
...
* Implements templates from external repos
* Adds a changeset
2021-07-06 15:14:22 -04:00
github-actions[bot]
2ab625bee8
Version Packages ( #602 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 16:30:52 -04:00
Matthew Phillips
2d3e369da7
Don't alias builtins if polyfillNode is used ( #601 )
...
* Don't alias builtins if polyfillNode is used
* Add the changeset
* Make test be OS agnostic
2021-07-01 16:22:47 -04:00
github-actions[bot]
816797e350
Version Packages ( #597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 15:06:18 -05:00
Matthew Phillips
4b89f4ed08
Allow Preact components to return an empty Fragment ( #599 )
2021-07-01 14:30:48 -05:00
Nate Moore
f83407e09a
Expose content.astro.html
to Astro.fetchContent
( #583 )
...
* feat: expose `content.astro.html` to Astro.fetchContent
* docs: add `astro.html` note to docs
2021-07-01 12:07:26 -05:00
Pavel Mineev
d3969436dc
Remark and rehype plugins ( #562 )
...
* remark plugins
* remove unused dependency
* enable codeblocks
* backward compatibility with remark-code-titles
* add support for rehype plugins
* add proper types for plugins
* fixes after review
- connect plugins by name
- make plugins configurable
- connect gfm and footnotes if no plugins provided from config
- add more plugins to example
* update and rename example
* add documentation for markdown plugins
* chore: rename with-markdown-plugins example
* chore: restructure dependencies
* feat: add back smartypants, fix mdx expressions
* chore: remove log
* test: add markdown plugin tests
* chore: add changeset
* docs: update markdown doc
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-07-01 11:55:22 -05:00
github-actions[bot]
e773771b91
Version Packages ( #596 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 10:57:09 -04:00
Matthew Phillips
7b4c97c3c7
Adds a changeset for hydrationPolyfills support
2021-07-01 10:51:44 -04:00
Matthew Phillips
fd80381db2
Adds hydrationPolyfills config for renderers ( #594 )
...
Some renderers, such as Lit, need special polyfills only for hydration. We have the `polyfills` array, but that is intended for polyfills that always need to run. This adds a second type hydrationPolyfills that only run on elements that are `:load`, `:idle`, etc.
2021-07-01 10:42:56 -04:00
github-actions[bot]
0de30ef01a
Version Packages ( #593 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 08:45:35 -04:00
Fred K. Schott
67ef02534f
update example readmes ( #591 )
...
* update example readmes
* Update README.md
2021-07-01 08:43:25 -04:00
Fred K. Schott
8f74b3bdbb
update example astro inline docs ( #592 )
2021-07-01 08:43:02 -04:00