Commit graph

180 commits

Author SHA1 Message Date
Juan Martín Seery
6fe1b0279f
Add Shiki as an alternative to Prism (#2497)
* [ci] yarn format

* Added shiki to markdown-remark

* Upgraded astro shiki

* Added minimal example

* Changed defaults to match <Code />

* Replace `shiki` with `astro` classes

* Added documentation

* Updated Astro code to use new `codeToHtml`

* Added changesets

* Added basic test

* Updated tests a bit

Co-authored-by: JuanM04 <JuanM04@users.noreply.github.com>
2022-01-31 16:14:07 -06:00
Nate Moore
618a16f59d
Deprecate unescaped HTML inside of expressions (#2489)
* feat: implement automatic escaping

* feat: deprecate automatic escaping

* fix: cast unescapeHTML as string

* fix: slot fallback behavior

* fix: unescaped content

* Update escape.ts

* Update escape.ts

* feat: update internal components to use `set:html`

* chore: update compiler

* chore: update changeset
2022-01-31 16:13:22 -06:00
Matthew Phillips
3d2c184962
Fix define:vars in the static build flag (#2511)
* Fix define:vars in the static build flag

* Adds a changeset

* linting
2022-01-31 16:56:14 -05:00
Fred K. Schott
1e746e1071
[ci] update lockfile (#2495)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-31 16:28:41 -05:00
Fred K. Schott
de9fadbaed
refactor the route cache and other build internals (#2503)
* refactor dev to use vite server

* refactor the route cache and other build internals

* use debug package for debug logs (#2504)

Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2022-01-31 15:05:42 -05:00
Fred K. Schott
d7149f9b2f
refactor dev to use vite server (#2494) 2022-01-31 14:44:40 -05:00
Fred K. Schott
52f8fbe37c
[ci] update lockfile (#2458)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-28 18:20:32 -05:00
Fred K. Schott
2a223fae0e
[ci] update lockfile (#2439)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-24 09:04:02 -05:00
Matthew Phillips
9e1bc1752f
Upgrade compiler to latest (#2432)
* Upgrade compiler to latest

* Updates the changeset
2022-01-20 15:37:09 -05:00
Fred K. Schott
59634a9d20
[ci] update lockfile (#2427)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-20 09:50:08 -05:00
Fred K. Schott
b52a38ac4d
[ci] update lockfile (#2397)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-19 17:30:24 -05:00
Matthew Phillips
a7967530df
Fixes Lit support in the static build (#2370)
* [ci] collect stats

* [ci] update lockfile (#2388)

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>

* Fixes for blog and docs examples (#2373)

* Fixes for blog and docs examples

* Adds a changeset

* Upgrade the compiler version

* Use a global style tag

* Skip on windows temporarily

* [ci] yarn format

* Fixes Lit support in the static build

* Adds a changeset

* test

* Upgrade lit-labs/ssr

* Conditional

* Testing again

* remove debugging code

* changeset

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-01-14 14:02:44 -05:00
Matthew Phillips
92532b8882
Fixes for blog and docs examples (#2373)
* Fixes for blog and docs examples

* Adds a changeset

* Upgrade the compiler version

* Use a global style tag

* Skip on windows temporarily
2022-01-14 12:11:56 -05:00
Fred K. Schott
0257419af8
[ci] update lockfile (#2388)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-14 11:12:29 -05:00
Fred K. Schott
a9b44f2936
[ci] update lockfile (#2368)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-13 09:25:08 -05:00
Fred K. Schott
d3d2b89159
[ci] update lockfile (#2356)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-12 10:39:51 -05:00
Jonathan Neal
eaa626de88
Restore accessibility check on docs site (#2362) 2022-01-11 15:39:19 -05:00
Fred K. Schott
296634b518
[ci] update lockfile (#2351)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-10 16:58:47 -05:00
Fred K. Schott
27fe803fd1
[ci] update lockfile (#2344)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-08 08:25:46 -05:00
Matthew Phillips
180dfcf2fc
Handle loading the Code package in the static build (#2337)
* Handle loading the Code package

Fixes #2329

* Use Code the normal way

* Adds a changeset

* Only resolve browser path if there is no common ancestor

* Update examples/fast-build/src/pages/index.astro

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-01-07 16:28:27 -05:00
Fred K. Schott
c3c054c912
[ci] update lockfile (#2334)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-07 10:10:06 -05:00
Fred K. Schott
4aa395c75e
[ci] update lockfile (#2327)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-06 16:32:55 -05:00
Nate Moore
77ef43e66c
chore: update compiler (#2324) 2022-01-05 18:32:42 -06:00
Fred K. Schott
0b55918738
[ci] update lockfile (#2311)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-05 12:04:08 -06:00
Nate Moore
c0204c0a41
chore: update compiler (#2318) 2022-01-05 12:03:16 -06:00
Jonathan Neal
e6379d514d
Bump WebAPI (#2319)
* bump webapi

* changeset
2022-01-05 13:02:42 -05:00
Nate Moore
e98659b7d6
Update compiler to 0.7.2 (#2308)
* chore: update compiler

* chore: add changeset

* chore: upgrade compiler again
2022-01-04 16:06:57 -06:00
Matthew Phillips
2770588867
Remove rehype-add-classes (#2309)
* Remove rehype-add-classes

* Fix the markdown plugin test
2022-01-04 15:09:10 -05:00
Fred K. Schott
e5019271a5
[ci] update lockfile (#2298)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-01-04 08:46:04 -08:00
Matthew Phillips
193ca60f40
Upgrade language server (#2305)
* Upgrade language server

Fixes #2297

* Adds a changeset
2022-01-04 11:06:47 -05:00
moritzlaube
344866762c
Update svelte version in renderer-svelte (#2300)
* Update svelte version in renderer-svelte

I am having funny console logs saying that my svelte component `received an unexpected slot "default".`. This issue is described here: https://github.com/sveltejs/kit/issues/981

Supposedly, updating svelte to version 3.44.3 solves this issue. I couldn't test it, though.

* Update Svelte to 3.44.3 to get rid of console warning that component receives an unexpected slot "default".
2022-01-04 10:17:21 -05:00
Matthew Phillips
9db22b97b6
Only resolve inline script specifiers in the static build (#2302)
* Revert "Revert "Implement hydrated components in the static build (#2260)""

This reverts commit 17ac18e88c.

* Only resolve specifiers in the static build

* Adding a changeset

* Fix the client-only test
2022-01-04 09:35:07 -05:00
Matthew Phillips
2e55dc2686
Revert "Implement hydrated components in the static build (#2260)" (#2292)
* Revert "Implement hydrated components in the static build (#2260)"

This reverts commit ae5255dd25.

* Adds a changeset
2021-12-30 11:52:22 -05:00
Fred K. Schott
3db2334ea8
[ci] update lockfile (#2289)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-30 09:03:18 -05:00
Matthew Phillips
ae5255dd25
Implement hydrated components in the static build (#2260)
* Work on removing vite-postprocess

* Gets hydration totally working

* Formatting

* Update based on PR comments

* Bring back vite transform for non-static builds

* Upgrade compiler version

* Update the client-only test

* Add debugging for windows

* More debugging

* Pass pathname into the markdown plugin as well

* Include vite changes

* Revert "Include vite changes"

This reverts commit dee6348b233b6d6c6fea1e4dcc41c98c0452846c.
2021-12-30 09:01:00 -05:00
Fred K. Schott
faf0b9aa8b
[ci] update lockfile (#2269)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-29 08:58:49 -05:00
Jonathan Neal
160b45bf4d
bump webapi (#2263) 2021-12-23 14:35:26 -05:00
Fred K. Schott
5f14458d88
[ci] update lockfile (#2257)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-23 08:25:52 -05:00
Fred K. Schott
ff684c085d
[ci] update lockfile (#2248)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-22 23:04:39 -05:00
Jonathan Neal
3f08b45955
bump webapi (#2249) 2021-12-22 10:08:15 -05:00
Fred K. Schott
e07c1cbd7e
[ci] update lockfile (#2240)
* [ci] update lockfile

* fix package dependency issue

* Create heavy-pianos-obey.md

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-21 10:37:09 -08:00
Matthew Phillips
9aff6eee71
Flagged static (performance optimized) build (#2168)
* Progress on build demo

* Go back to ESM

* Some more progress on the new build

* More progress here

* Add support for hot reload

* Almost done

* Remove debugging stuff

* chore(lint): Prettier fix

* Pass through the origin

* Do not use ssr mode

* Use the logger

* chore(lint): Prettier fix

* Update yarn lock

* Fix types

* Only build chunks that are astro pages

* Debugging windows

* Prevent compilation race condition

* Read the file if not found in the cache

* Give a better error message when we can't find a page

* chore(lint): Prettier fix

* Fix windows maybe

* chore(lint): Prettier fix

* Some more windows debugging

* chore(lint): Prettier fix

* Remove console logs

* More debugging

* chore(lint): Prettier fix

* More debugging info

* chore(lint): Prettier fix

* Remove logging again

* Try to prevent port conflicts

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-21 11:57:50 -05:00
Fred K. Schott
ccb2c77321
[ci] update lockfile (#2228)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-19 14:45:03 -05:00
Jonathan Neal
ac7f944d6a
Bump @astropub/webapi (#2218)
* bump polyfill

* chore(lint): Prettier fix

* chore: force ci

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-19 14:44:30 -05:00
Fred K. Schott
29bfe79b48
[ci] update lockfile (#2220)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2021-12-17 09:40:37 -08:00
Jonathan Neal
45cea6aec5
Support Node v14.15+ (#2202)
* Support Node v14.15+

* changeset

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* ES2020

* update yarn.lock

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-12-16 18:53:22 -05:00
Nate Moore
b8be7e868e Revert "[ci] update lockfile (#2212)"
This reverts commit 3f3eceb16b.
2021-12-16 17:03:56 -06:00
Nate Moore
a4a6b7d871 fix: pin with-vite-plugin-pwa example 2021-12-16 16:32:13 -06:00
Nate Moore
b8c821a074
chore: release pinned version of Svelte renderer (#2216)
* chore: release pinned version of Svelte renderer

* chore(lint): Prettier fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-16 16:24:35 -06:00
Fred K. Schott
3f3eceb16b
[ci] update lockfile (#2212)
* [ci] update lockfile

* bump vite,@astropub/webapi

* exclude document

* chore(lint): Prettier fix

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-16 09:05:41 -05:00