Carter Snook
268186c27d
fix(parser): html entities evaluated ( #738 )
2021-07-20 12:18:42 -07:00
FredKSchott
4e6d38aa76
[ci] yarn format
2021-07-20 04:40:06 +00:00
Maksim Markelov
0e761b9bdf
Add ability to specify hostname in devOptions ( #733 )
...
* Add ability to specify hostname in devOptions
* Update packages/astro/test/config-hostname.test.js
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-07-19 21:38:55 -07:00
FredKSchott
50f82e1a53
[ci] yarn format
2021-07-20 04:07:49 +00:00
FredKSchott
15cd6c1708
[ci] yarn format
2021-07-20 01:56:54 +00:00
Bryan Pan
d45431d246
fix: add force to rm script in create-astro ( #729 )
...
* fix: add force to rm script in create-astro
* add changeset
* edit overwrite prompt
* rm cannot remove '.' or '..' -- creating a helper function to empty the directory
* delete symlinks
* comments
2021-07-19 18:55:35 -07:00
FredKSchott
3153306953
[ci] yarn format
2021-07-20 01:42:33 +00:00
Vl
40c882a253
Fix url to find page with "index" at the end file name ( #722 ) ( #736 )
...
Co-authored-by: Neverage <vl>
2021-07-19 18:41:09 -07:00
Fred K. Schott
f4e0818b3f
update changelog for patch release
2021-07-19 18:34:31 -07:00
FredKSchott
ed83424fdb
[ci] yarn format
2021-07-20 01:24:59 +00:00
Fred K. Schott
a7e66666e4
tsconfig fix ( #752 )
2021-07-19 18:23:39 -07:00
Carter Snook
b8a90b1e7d
feat(parser): remove trim utils ( #728 )
2021-07-17 15:39:11 -04:00
Caleb Jasik
6d06fce6d2
Update docs in compiler messages ( #710 )
...
* `github.com/snowpackjs/astro/blob/main/docs/*.md` -> `docs.astro.build/*/`
* convert links to docs site links
* Fix broken links that didn't work w/ the regex.
* Add changeset
* Delete five-weeks-destroy.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-07-16 07:01:31 -04:00
Fred K. Schott
d7a8a8c4e2
Update README.md
2021-07-15 15:38:33 -04:00
Fred K. Schott
af358ecee1
Update README.md
2021-07-15 15:37:59 -04:00
Fred K. Schott
e146969571
Update README.md
2021-07-15 15:36:34 -04:00
Fred K. Schott
f412aedd4c
Update README.md
2021-07-15 15:36:19 -04:00
Fred K. Schott
efa8b3b421
Update README.md
2021-07-15 15:35:56 -04:00
Fred K. Schott
20a213699b
Update README.md
2021-07-15 15:35:21 -04:00
Mihkel Eidast
fb8bf7ec43
select random ports if defaults are taken ( #695 )
...
* select random port if default ports are taken
* add changeset
2021-07-14 16:00:21 -05:00
FredKSchott
5814f2faca
[ci] yarn format
2021-07-14 18:16:46 +00:00
Fred K. Schott
007c22065d
move Astro.fetchContent to runtime API ( #652 )
2021-07-14 14:15:36 -04:00
github-actions[bot]
8e87d5da4c
Version Packages (next) ( #678 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-13 11:21:58 -04:00
Matthew Phillips
e3182c7670
Add missing dependency ( #676 )
...
* Add missing dependency
* Adds a changset
2021-07-13 11:10:31 -04:00
github-actions[bot]
a22a601e9f
Version Packages (next) ( #663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-13 08:31:28 -04:00
matthewp
59f6792b00
[ci] yarn format
2021-07-13 12:28:50 +00:00
Matthew Phillips
48851c9d25
Adds support for a Lit renderer ( #665 )
...
* Adds support for a Lit renderer
This adds `@astrojs/renderer-lit`. An experimental Lit renderer.
* Removed cached submodule, mistake
* Prevent globals clobbering
* Add docs on globals
2021-07-13 08:27:40 -04:00
Nate Moore
7583a8b42a
Update build script to avoid bundling ( #304 )
...
* fix: simplify astro-scripts build
* fix: remove source-map-support, add missing `.js` extensions
* refactor: use `module` for `@astrojs/markdown-support`
* fix: missing `.js` extension
* fix: missed @astrojs/parser
* fix: remove old file
* fix: merge conflict
* fix: CJS weirdness
2021-07-12 17:01:33 -05:00
Ryan Christian
9859f53903
Docs: Correcting minor typo in ReadMe ( #666 )
...
* docs: Correcting minor typo in ReadMe
* docs: Adding changeset
2021-07-12 15:30:00 -05:00
matthewp
ea7ef71a6e
[ci] yarn format
2021-07-12 20:28:13 +00:00
Matthew Phillips
0340b0f0b1
Adds support for client:media hydrator ( #664 )
...
* Adds support for client:media hydrator
* Include a changeset
* Pass in undefined when not hydrating
2021-07-12 16:27:08 -04:00
natemoo-re
7aa8d4719f
[ci] yarn format
2021-07-12 18:08:45 +00:00
Nate Moore
8f4562afbe
Add support for named slots ( #661 )
...
* feat: support named slots, slot fallback content
* docs: document slots
* chore: add changeset
* fix: build errors
* chore: prefer `patch` version
2021-07-12 13:07:39 -05:00
Matthew Phillips
f62973b5ca
Upgrade to snowpack@3.8.0 ( #621 )
...
* Upgrade to snowpack@3.8.0
* Try with 3.8.1-pre.0
* Newest yarn lock
* Add postcss plugin and autoprefixer to the root
* Update the yarn lock
* Prevent typescript recursion
* Use snowpack@3.8.1
2021-07-12 13:59:11 -04:00
github-actions[bot]
23dcc649fe
Version Packages ( #646 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-12 11:19:29 -04:00
Johan Stenehall
1b73f95806
Only display notice if needed ( #659 )
2021-07-12 09:25:14 -04:00
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
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
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
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
natemoo-re
1bbe98ae54
[ci] yarn format
2021-07-07 20:10:09 +00: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
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
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
Matthew Phillips
6a660f1b08
Implements low-level custom element support ( #587 )
...
* Implements low-level custom element support
* Changes based on self review
* Adds a changeset
* Polyfills are added even when not hydrating
* Remove hydrationMethod option
Punting on this idea until it's really needed.
2021-07-01 08:42:07 -04:00
github-actions[bot]
81ea010906
Version Packages ( #589 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-30 10:03:52 -04:00
DawnOfMidnight
66d62fca37
Make it clear that Yarn 2 does support ESM when you disable Plug 'n Play ( #584 )
2021-06-30 09:57:32 -04:00
Drew Powers
d1785d80c3
Add test for React SSR + window ( #581 )
...
* Add test for React SSR + window
* Add helpful error message on window undefined in SSR
Fixes #551
2021-06-29 21:37:50 -04:00
github-actions[bot]
e4fe7c0d02
Version Packages ( #567 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-29 16:46:41 -04:00
Matthew Phillips
1e735bb331
Pass in scoped class name to child components ( #579 )
...
* Pass in scoped class name to child components
If a class is being passed into child components, pass in the scoped class name as well.
* Adds the changeset
2021-06-29 16:40:30 -04:00
Nate Moore
f721275f33
Fix <Markdown {content} />
closing parent tag ( #575 )
...
* test(#494 ): add failing test
* chore: update with-markdown example
* fix(#494 ): avoid early close with <Markdown content />
* chore: add changeset
2021-06-29 15:33:56 -05:00
Fred K. Schott
9c7921300c
Merge branch 'docs-sync-1'
2021-06-29 13:12:27 -07:00
natemoo-re
4df98a79f8
[ci] yarn format
2021-06-29 16:38:55 +00:00
Nate Moore
e28d5cb9de
Allow .astro
files to throw new Error()
( #572 )
...
* fix(#526 ): enable `throwExpressions`
* chore: add test for throwing inside of `.astro`
* fix: improve build error handling
* chore: add test when throwing on `build`
* chore: fix changeset bot
* chore: add changeset
2021-06-29 11:37:36 -05:00
Adam Ochayon
13f50564cb
Fix: Redundant acronym for ESM ( #570 )
2021-06-28 08:08:56 -07:00
natemoo-re
436783d059
[ci] yarn format
2021-06-28 11:23:20 +00:00
Tony @ Navillus
aa8605761b
Fix collections regex ( #557 )
...
* fix: 🐛 Fixes bug #532
Matching for collection routes should look for exact filename matches
* test: ✅ Adding test coverage to make sure collection routes are matched exactly
* chore: Adding changeset
2021-06-28 06:22:15 -05:00
Fred K. Schott
279a252462
astro-docs sync
2021-06-27 23:30:57 -07:00
Fred K. Schott
7b21dc0063
Update README.md ( #550 )
2021-06-25 15:32:25 -07:00
github-actions[bot]
f3e005de6f
Version Packages ( #548 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 15:14:04 -04:00
Matthew Phillips
8865158f7f
Upgrade postcss snowpack plugin ( #547 )
...
* Upgrade postcss snowpack plugin
* Increase the startup time more
* Add changeset
2021-06-25 15:12:10 -04:00
github-actions[bot]
91e11aee2a
Version Packages ( #543 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 09:51:28 -04:00
matthewp
7b3047f097
[ci] yarn format
2021-06-25 13:31:17 +00:00
Matthew Phillips
028d4e0114
Fix code from bad merge ( #540 )
...
* Fix code from bad merge
* Dont wrap the raw
* Wrap the expression in quotes
* remove react-dom just to test
* Add back react-dom as a known entrypoint
* Make startup time even longer
2021-06-25 09:29:57 -04:00
Drew Powers
56293499e8
Fix PostCSS support upstream in Snowpack ( #538 )
...
Fixes #481
2021-06-24 17:49:42 -05:00
natemoo-re
d8a162aeee
[ci] yarn format
2021-06-24 22:49:30 +00:00
Nate Moore
a136c85e6b
New Props API ( #515 )
...
* wip: update props api
* feat(#139 , #309 ): enable new props api
* chore: migrate examples to new props API
* docs: update syntax guide for new props API
* chore: update examples to new props API
* chore: update docs to new Props API
* fix: hide __astroInternal from `Astro.props` consumers
* chore: remove scratchpad file
* chore: fix script error
* test: fix failing collection tests
* fix: set __astroInternal to `enumerable: false`
* chore: add changeset
* feat: warn users using old props api
2021-06-24 17:48:24 -05:00
natemoo-re
bc9e0f180c
[ci] yarn format
2021-06-24 22:42:22 +00:00
Nate Moore
47ac2ccd17
Fix {...spread}
props ( #522 )
...
* fix(#521 ): allow spread props
* chore: add spread prop tests
* fix: falsy expressions should only be skipped in 'Expression' case
* fix: support primitives in expressions (objects, arrays)
2021-06-24 17:41:10 -05:00
Mats
4cd84c6607
Removed unused console.warn trap function ( #537 )
2021-06-24 16:07:49 -05:00
Matthew Phillips
feb9a3141e
Always add the HMR script in dev ( #536 )
...
* Always add the HMR script in dev
for livereload
* Adds the changeset
2021-06-24 17:05:55 -04:00