Commit graph

1049 commits

Author SHA1 Message Date
Nate Moore
77ebab8bb2
chore: fix missing postcss-load-config dependency (#2835) 2022-03-18 19:02:42 -07:00
natemoo-re
d812fbda97 [ci] format 2022-03-18 23:23:25 +00: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
Nate Moore
910cae3b95
fix(windows): fix build script on windows (#2830) 2022-03-18 17:44:59 -05:00
Fred K. Schott
6386c14d00
Astro Integration System (#2820)
* update examples

* add initial integrations

* update tests

* update astro

* update ci

* get final tests working

* update injectelement todo

* update ben code review

* respond to final code review feedback
2022-03-18 15:35:45 -07:00
bholmesdev
0f376a7c52 [ci] format 2022-03-18 21:30:38 +00: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
Fred K. Schott
9327b56e82
[ci] update lockfile (#2822)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-17 13:33:52 -05:00
Nate Moore
915ab92204
test: add tailwind escape test (#2816) 2022-03-17 11:09:11 -05:00
matthewp
4cfbd402a4 [ci] format 2022-03-17 12:32:03 +00: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
Tony Sullivan
4914e1f70d
Adds tests for tailwind support in dev and build (#2809)
* adding basic dev and build tests for TailwindCSS

* adding tests to validate tailwind classes are maintained in HTML output

* fixing indent spacing

* updating lock file
2022-03-16 17:35:49 +00:00
matthewp
279774c48e [ci] format 2022-03-16 16:17:34 +00: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
Fred K. Schott
498ef59b0e
[ci] update lockfile (#2810)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-16 09:53:46 -05:00
Nate Moore
5cb7e0366b fix: mark static build pkg as private 2022-03-15 19:50:25 -05:00
natemoo-re
34bfedc9d8 [ci] format 2022-03-16 00:41:53 +00: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
Ben Holmes
79282163e2
fix: Svelte PostCSS config error (#2807)
* fix: Svelte PostCSS config error

* chore: changeset
2022-03-15 19:32:39 -04:00
Nate Moore
8654e841ff chore: fix internal package 2022-03-15 17:29:39 -05:00
natemoo-re
267d20d207 [ci] format 2022-03-15 22:17:54 +00: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
matthewp
fc50fbb47a [ci] format 2022-03-15 16:05:38 +00: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
matthewp
1325fe90fc [ci] format 2022-03-15 12:38:13 +00:00
Fred K. Schott
c36527f46d
fix flakey windows tests (#2795) 2022-03-15 08:37:29 -04:00
natemoo-re
2b52c72b5d [ci] format 2022-03-14 23:20:37 +00: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
FredKSchott
75f4c17e4c [ci] format 2022-03-14 17:24:30 +00:00
Fred K. Schott
2314eba9a4
[ci] update lockfile (#2773)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-14 10:23:35 -07: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
natemoo-re
d1a7f6a1c5 [ci] format 2022-03-11 22:48:55 +00: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
Fred K. Schott
1634172ff9
[ci] update lockfile (#2763)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-11 16:38:28 -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
bholmesdev
d4dbfe8974 [ci] format 2022-03-11 22:26:21 +00: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
bholmesdev
4c975dc4da [ci] format 2022-03-11 16:57:36 +00:00
Fred K. Schott
6ce97b1ebe
fix sitemapFilter docs (#2762) 2022-03-11 11:56:54 -05:00
natemoo-re
3a6ef130dd [ci] format 2022-03-10 23:36:11 +00:00