Commit graph

1358 commits

Author SHA1 Message Date
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
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
natemoo-re
a940354b38 [ci] format 2022-03-10 23:26:18 +00: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
Fred K. Schott
da826a6ba4
Update util.ts (#2761) 2022-03-10 15:17:24 -08:00
Nate Moore
5f55af9cce
fix(#2753): unescape define:vars (#2756)
* fix(#2753): unescape `define:vars`

* test: add directives suite

* chore: update lockfile
2022-03-10 14:36:07 -06:00
natemoo-re
7b18d4c226 [ci] format 2022-03-10 20:15:34 +00: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
Fred K. Schott
602bf2f181
fix eperm ci issue on windows (#2757) 2022-03-10 13:40:27 -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
natemoo-re
7f99d0de9e [ci] format 2022-03-10 17:54:39 +00:00
Fred K. Schott
3d56123f25
Refactor fs utils, fix flakey windows tests (#2749)
* cleanup our fs util usage

* fix fs url support  for node v14

* update to fix windows

* making sure the dir exists before calling readdirSync

* chore: remove debug code

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-10 11:53:59 -06:00
natemoo-re
5d7a92b563 [ci] format 2022-03-10 15:56:29 +00: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
FredKSchott
c5c445f94b [ci] format 2022-03-10 01:13:16 +00: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
natemoo-re
518331f560 [ci] format 2022-03-10 00:10:48 +00: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
natemoo-re
2acfef741f [ci] format 2022-03-09 23:38:46 +00: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
natemoo-re
8c0a8fee32 [ci] format 2022-03-09 23:03:26 +00: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
natemoo-re
658a92915d [ci] format 2022-03-09 22:39:48 +00:00
Fred K. Schott
2906110c04
Update tests for legacy build (#2746)
* move fast-build example into a test fixture for legacy build

* update tests for legacy build
2022-03-09 16:38:46 -06:00
natemoo-re
43a5c06a93 [ci] format 2022-03-09 21:45:28 +00:00
Nate Moore
72c2c86e9d
merge next into main (#2705)
* Unflag the static build (#2652)

* Unflag the static build

* Only set legacyBuild to false if experimentalSSR is true

* Use legacy build when we have to

* Put a few more tests into legacy mode

* Last two

* Make astro-basic use the legacy build

* Adds a changeset

* Mark the lit test as legacy

* Update yarn lock

* Update based on feedback

* Add --legacy-build flag

* Move astro-basic test to use static build (#2682)

* Move some tests over to the static build (#2677)

* Move some tests over to the static build

* Fix assets tests

* Fix the assets tests

* Fix for the client:only components

* Moves asset tests to the static build

* Move postcss test over to static build

* Bring back legacy build for astro-basic test

* Move astro-basic test to use static build

* Migrate more tests to the static build (#2693)

* fix: disable HMR during build (#2684)

* Migrate more tests to the static build

* Only prepend links in non-legacy mode

* Add the 0-css tests

* Convert all CSS tests to the static build

* Migrate Astro global tests

* Remove .only

* Fix static build tests

* Migrate a few more

* More tests

* Move the lit test back to legacy

* Increase the test timeout

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

* Improve `head` injection behavior (#2436)

* feat: add renderHead util to server

* feat: remove `layouts` from config, Vite plugin

* fix: improve head injection during rendering

* chore: update compiler

* fix: do not escape links

* chore: enter `pre` mode

* Replace `send` with `sirv` (#2713)

* remove send

* Create thick-ravens-chew.md

* I feel like I'm going to screw something up

* working finally!

* rewrite req.url

* Add tiny bit of doc

* Update .gitignore

Co-authored-by: Evan Boehs <evan@boehs.org>

* Move remaining tests to the static build (#2712)

* Move lit test to the static build

* Migrate astro-env plugin to work in the static build

* Do not remove vite:define

* Adds a changeset

* Add a warning when passing the --experimental-static-build flag (#2718)

* Add a warning when passing the --experimental-static-build flag

* Disable the lint warning

* [ci] release (next) (#2721)

* [ci] release (next)

* chore: update changeset

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>

* 404 page (#2719)

* Fix: build to 404.html in the static build

* Adds a changeset

* fix pnpm install missing peer deps

* fix svelte version in workspace

* fix lockfile

* fix(webapi): add dev script

* improve preview reliability (#2739)

* improve preview reliability - fix broken tests

* shamefully hoist to unblock

* remove lit from test running

* chore: update lockfile

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Evan Boehs <evan@boehs.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-09 15:44:26 -06:00
Matthew Phillips
c139829b10
Fixes windows test flakiness (#2744)
* Fixes windows test flakiness

* Tighten up the try/catch
2022-03-09 15:44:12 -06:00
Fred K. Schott
240d88aefe
fix format (#2736) 2022-03-08 15:20:04 -08:00
Ben Holmes
0ae96bb749
Fix/2177/log missing local network ip (#2732)
* feat: show "localhost" for local network IPs

* refactor: remove timestamps from addr logs

* fix: hide timestamp on null types

* feat: add emoji OS helper

* feat: make logs 100% nicer

* refactor: extract isLocalHost to util

* feat: update preview logs to match

* chore: add changeset

* fix: pull pkg version from package.json

* refactor: remove 👉 guys

* fix: devStart return type

* feat: inject process.env.PACKAGE_VERSION at build time

* feat: update unit test for hostname checks

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-08 17:11:18 -05:00
Fred K. Schott
6bf124fb2f
remove a bad dev warning from static-build (#2733) 2022-03-08 14:03:33 -08:00
Nate Moore
d08ddaf5b9
Move from yarn to pnpm (#2455)
* chore: `yarn` => `pnpm`

* docs: `yarn` => `pnpm`

* chore(ci): yarn => pnpm

* chore(ci): update pnpm cache path

* fix: add missing deps

* fix: add missing deps

* test: add package.json to all test fixtures

* chore: improve hoisting behavior

* chore: move turbo into package.json

* chore: update npmrc

* fix: add missing `debug` dependency

* chore: remove prepare script

* test: fix new tests

* fix: fully resolve renderer paths and `astro/internal` path

* chore: update lockfile

* chore: remove log

* fix: resolve renderers in vite-plugin-jsx

* fix: prefer public-hoist-pattern to shamefully-hoist

* chore: ignore @babel/core peer warning

* chore: update dependencies

* test: add autoprefixer as explicit dep

* chore: update `.npmrc` file in examples

* chore: update dependencies

* fix: resolve renderer dependencies in static build

* fix: static build renderer resolution

* chore: fix smoke tests

* chore: hoist autoprefixer

* chore: update lockfile

* attempt: use full file:// path on Windows

* attempt: use astro/internal

* attempt: optimize astro/internal

* attempt: expose ./internal.js

* chore: add missing package.json files

* attempt: resolve astro/internal path

* chore: tidy package.json

* chore: update lockfile

* chore: update deps

* chore: update deps

* chore: yarn -> pnpm

* attempt: explicit /@fs urls

* attempt: explicit /@fs urls

* chore: update all examples for pnpm

* chore: fix hoisting for with-vite-plugin-pwa

* chore(ci): fix sharp install

* chore: update with-vite-plugin-pwa example

* fix: pin vite-plugin-pwa to 0.11.11

* fix: add workbox-window to vite-plugin-pwa deps

* refactor: use pnpm update --recursive

Co-authored-by: JuanM04 <me@juanm04.com>

* chore: yarn => pnpm

* chore: yarn => pnpm

* fix: update smoke test to skip examples which don't work in static build

* update lockfile

* chore: update .npmrc files

* chore: update lockfile

* fix: smoke script

* chore: update .npmrc file

* fix: return to shamefully-hoist (shamefully)

* chore: update lockfile

* fix(smoke): ignore scripts for smoke tests

* fix: update example to disable renderers

* chore: bump version

* chore(ci): fix smoke tests

* attempt: disable --frozen-lockfile for smoke tests

* chore: update smoke test

* chore: fix rebase issue

* chore: update lockfile

* fix: smoke tests

* fix(ci): run external smoke tests first

* fix(ci): run syntax

* chore: update lockfile

* fix(ci): ensure submodules are up-to-date

* fix(ci): ensure submodules are up-to-date

* chore: update lockfile

* chore: update for webapi

* chore: silence node:* warnings

* chore: update deps

* fix(ci): persist generated webapi assets

* fix(ci): webapi build script

* chore(ci): remove custom node caching

* chore: keep turbo.json

* chore: update turbo, ignore create-astro

* chore: update deps

* fix(ci): test command

* chore(ci): update test script

Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-08 15:46:11 -06:00
natemoo-re
63adaeec34 [ci] yarn format 2022-03-07 21:37:50 +00:00
Nate Moore
f18ee36dc0
Add @astrojs/webapi package (#2729)
* chore: add @astrojs/webapi

* chore: update package.json

* fix: update file case

* fix: remove lowercase file

* chore: update tests to use mocha

* chore: update LICENSE
2022-03-07 15:36:22 -06:00
natemoo-re
e02438ce1f [ci] yarn format 2022-03-04 21:30:35 +00:00
github-actions[bot]
a6ee42fa17
[ci] release (#2724)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 15:29:27 -06:00
Nate Moore
0d37f8e0a5
chore: revert #2715 (#2722) 2022-03-04 15:25:59 -06:00
natemoo-re
1a7dfb1426 [ci] yarn format 2022-03-04 17:29:53 +00:00
github-actions[bot]
88ccb2d696
[ci] release (#2720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 11:28:59 -06:00
natemoo-re
a286a75cc4 [ci] yarn format 2022-03-04 17:20:00 +00:00
Nate Moore
5f91e007cb
Remove postcss-load-config warning for Svelte users (#2715)
* chore: update dependencies

* fix(svelte): use experimental vite preprocessor rather than svelte-preprocess

* chore: add changeset
2022-03-04 11:18:55 -06:00
natemoo-re
1fd5106364 [ci] yarn format 2022-03-03 17:54:01 +00:00
github-actions[bot]
92447974f2
[ci] release (#2714)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-03 11:52:40 -06:00
Juan Martín Seery
b2c37385f9
chore: changed data-astro-raw to is:raw (#2706)
* chore: changed `data-astro-raw` to `is:raw`

* changesets
2022-03-03 11:34:36 -06:00
Erika
519a5d84d1
Add .d.ts file to astro package for language-tools consumption (#2711)
* Add .d.ts file for user and language-server consumption

* Update according to feedback
2022-03-03 11:34:04 -06:00
Matthew Phillips
5b1d700134
Remove the after in the Lit test (#2710) 2022-03-03 10:01:30 -05:00
natemoo-re
955c4df5b6 [ci] yarn format 2022-03-02 22:25:22 +00:00
github-actions[bot]
4f924b8cea
[ci] release (#2692)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-02 16:23:55 -06:00
Fred K. Schott
91765d79b1
Improve build perf (#2697)
* improve md perf

* chore: add changesets

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-02 16:09:18 -06:00
Juan Martín Seery
caf9135c48
fix: upgraded vite (#2678)
* fix: upgraded vite

* chore: changeset

* Upgraded to vite v2.8.6

* Updated changeset

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-02 15:51:13 -06:00
Fred K. Schott
e24a7896f3 fix bad descirption jsdoc tag, post-merge 2022-03-02 12:15:01 -08:00
FredKSchott
a719a74733 [ci] yarn format 2022-03-02 20:11:12 +00:00
Fred K. Schott
f957e46724
Add detailed type annotations to AstroUserConfig (#2698)
* add detailed type definitions

* final cleanup
2022-03-02 12:09:08 -08:00
Fred K. Schott
d9263c8427
fix vite version (#2694) 2022-03-01 09:31:15 -08:00
Nate Moore
c7bbb11289
fix: disable HMR during build (#2684) 2022-03-01 09:13:39 -05:00
natemoo-re
a217c6608d [ci] yarn format 2022-02-28 22:16:16 +00:00
github-actions[bot]
9cc6f26946
[ci] release (#2683)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-28 16:15:09 -06:00
Mateus Esdras
8fb1f53e96
fix(runtime): do not render empty Fragment (#2667)
This commit fixes the bug when returning an empty Fragment which makes
it undefined. This is because unescapeHTML (raw) will create a String object
with an 'undefined' string.

To fix this we need to check if the `children` is null or undefined
before marking a string as raw.
2022-02-28 16:03:28 -06:00
Nate Moore
046af36475
fix(hmr): HMR regression related to .astro updates (#2681) 2022-02-28 16:00:09 -06:00
Jonathan Neal
bfaff255f7
Fix HTMLElement expression warning (#2675) 2022-02-28 15:03:22 -05:00
natemoo-re
ede96b1b10 [ci] yarn format 2022-02-25 23:29:59 +00:00
github-actions[bot]
c0a6e3e80a
[ci] release (#2666)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-25 17:29:08 -06:00
natemoo-re
a5a1563094 [ci] yarn format 2022-02-25 23:04:58 +00:00
Fred K. Schott
fca6407318
fix astro scoping of "@import" inside of style tags (#2656)
* fix astro scoping of "@import" inside of style tags

* Create lovely-lies-dress.md

* Update compile.ts

* fix smoke test

* Update package.json
2022-02-25 17:04:04 -06:00
Nate Moore
0494f74e4e
feat: improve third-party Astro package compatability (#2665) 2022-02-25 17:03:05 -06:00
natemoo-re
51b04f39f4 [ci] yarn format 2022-02-24 20:49:48 +00:00
github-actions[bot]
e31246f7ac
[ci] release (#2641)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-24 14:48:44 -06:00
Fred K. Schott
a0fc5cb5ff
ensure utf8 encoding when serving html (#2654)
* ensure utf8 encoding on servers

* Create spicy-tomatoes-act.md

* Update spicy-tomatoes-act.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-02-24 14:39:41 -06:00
Javier Cortés
2e5c3b5126
fix(core): Issue #2625. error with process.env.LANG larger than 5 (#2645)
* Update logger.ts

Solving #2625

* chore: add changeset

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-02-24 14:38:31 -06:00
Nate Moore
17032cd064
chore: upgrade compiler (#2653) 2022-02-24 14:15:29 -06:00
natemoo-re
30106e584f [ci] yarn format 2022-02-24 19:12:33 +00:00
Nate Moore
5091d788f6
Add fine-grained HMR support (#2649)
* feat: add fine-grained HMR support

* chore: lint

* chore: lint

* fix: handle hmr with custom event handler

* refactor: cleanup hmr script
2022-02-24 13:11:18 -06:00
Juan Martín Seery
a2128f8e47
Fixed incorrect types and imports (#2630)
* Fixed incorrect types and imports

* Changeset
2022-02-23 17:14:39 -06:00
Shinobu Hayashi
fe31eca414
Fix(component): align starting position in Markdown slot (#2631)
* Fix: align markdown starting position in each line

* Chore: add testcase for aligning starting position in each line

* Chore: update the test case on astro-markdown custom language

* Update: remove trimmed only startWith trimmed space
2022-02-23 17:08:17 -06:00
Juan Martín Seery
9b7e2ab251
Fixed shiki import to work with "type": "module" (#2628)
* Fixed shiki import to work with "type": "module"

* Changeset

* Separated types import

* Add "* as" to type import
2022-02-22 08:46:04 -08:00
tony-sull
664a221a24 [ci] yarn format 2022-02-22 09:54:23 +00:00
Joel Kuzmarski
f165b78ad2
Make Non-HTML Pages work for static build (#2638)
* Make Non-HTML Pages work for static build

* Check hasOwnProperty instead of length

* Fix typo "> 0"
2022-02-22 09:53:21 +00:00
natemoo-re
38fc7d64a7 [ci] yarn format 2022-02-18 22:34:54 +00:00
github-actions[bot]
1d9f8a57f5
[ci] release (#2619)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-18 16:33:56 -06:00
natemoo-re
aaa61ff254 [ci] yarn format 2022-02-18 22:07:52 +00:00
Nate Moore
39cbe50085
Expose private .env variables to import.meta.env during SSR (#2612)
* chore(examples): add env-vars example

* feat: improve import.meta.env support

* chore: add changeset

* test: update astro-envs test

* refactor: cleanup code based on feedback

* fix: import.meta guard

* fix: update memory test threshold to 10%
2022-02-18 16:06:56 -06:00
Matthew Phillips
23783648b6
Adds memory leak test in CI (#2616)
* Add a memory leak test

* Add memory leak smoke test to CI

* Update the latest compiler

* Update yarn.lock

* Remove entries optimization

* Calculate as 5% higher
2022-02-18 14:23:47 -06:00
matthewp
137b08efc2 [ci] yarn format 2022-02-17 16:12:12 +00:00
github-actions[bot]
85eb3141cd
[ci] release (next) (#2607)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-17 11:11:06 -05:00
Matthew Phillips
96609d4c9e
Static build - fixes path to HMR script (#2606)
* Static build - fixes path to HMR script

* Changeset
2022-02-17 10:35:01 -05:00
Matthew Phillips
87762410f3
Fix loading of styles in static build (#2605)
* Fix loading of styles in static build

* Adds a changeset
2022-02-17 10:32:24 -05:00
natemoo-re
b2f34862bf [ci] yarn format 2022-02-16 23:46:41 +00:00
github-actions[bot]
8dcfc1bb15
[ci] release (next) (#2600)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 17:45:49 -06:00
Nate Moore
929fae684f
chore: upgrade @astrojs/compiler (#2599) 2022-02-16 17:33:43 -06:00
matthewp
b238b8c248 [ci] yarn format 2022-02-16 16:33:50 +00:00
github-actions[bot]
097d7777c4
[ci] release (next) (#2595)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 11:32:57 -05:00
Tony Sullivan
40c0e2b3f6
Bug fix: Order of params for routing has to match (#2593)
* make sure route params are sorted before comparing stringified keys

* including changeset for a patch release
2022-02-16 15:49:03 +00:00
matthewp
b4dcc0f8d3 [ci] yarn format 2022-02-16 15:13:06 +00:00
Matthew Phillips
102161761d
Pass children to client components even if they do not render them (#2588)
* Pass children to client components even if they do not render them

* Handle when no children are provided

* Adds a changeset

* Use roots directly i guess

* Use an attribute to signal that the template is needed
2022-02-16 10:11:54 -05:00
natemoo-re
19d548f400 [ci] yarn format 2022-02-16 14:50:05 +00:00
github-actions[bot]
ebe7f4d0ae
[ci] release (next) (#2580)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 08:49:12 -06:00
Nate Moore
085468e949
chore: upgrade compiler (#2594) 2022-02-16 08:45:15 -06:00
Erika
41d6b39694
Move SASS to devDependencies (#2572) 2022-02-15 20:49:14 -05:00
matthewp
911b15588e [ci] yarn format 2022-02-15 21:56:06 +00:00
Matthew Phillips
ec6f148fc8
Resolve relative imports from hoisted scripts (static build) (#2581)
* Resolve relative imports from hoisted scripts

* Adds a changeset

* Windows fix

* Set a longer timeout for the Lit test

* blah

* Handle windows properly

* Only if the from is astro

* Windows debugging

* This might fix it

* another try

* use only

* More debugging

* Does this work

* Final cleanup

* Update the lockfile
2022-02-15 16:55:07 -05:00
tony-sull
160c41403b [ci] yarn format 2022-02-15 17:48:39 +00:00
Tony Sullivan
d6d35bcafc
Support non-HTML pages (#2586)
* adds support for build non-html pages

* add non-html pages to the static build test suite

* adds getStaticPaths() test for non-html pages

* adds dev server tests for non-html pages

* ading a changeset

* updating changeset description

* testing for building non-html files with async data

* fixing typo in changeset docs
2022-02-15 17:47:42 +00:00
matthewp
f84848226d [ci] yarn format 2022-02-14 17:50:16 +00:00
Matthew Phillips
ba5e2b5e6c
Flagged SSR support (#2548)
* Checkpoint, basics are working

* Add the `--experimental-ssr` flag

* Adds the changeset

* Fixes population of getStaticPaths results

* Pass through the imported module

* Route manifest test

* Fix remaining tests

* Fix remaining tests

* Copy server assets over

* Fix types

* Allowing passing in the request to the Node version of App

* Improve the example app

* Gets CI to pass
2022-02-14 12:48:52 -05:00
matthewp
5272be3fa5 [ci] yarn format 2022-02-11 22:12:48 +00:00
github-actions[bot]
9e6f437429
[ci] release (next) (#2573)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 17:12:00 -05:00
Matthew Phillips
34317bc05c
Use noExternal config on 'astro' (#2570)
* Use noExternal config on 'astro'

* Changeset
2022-02-11 16:22:16 -05:00
matthewp
ba54e014e1 [ci] yarn format 2022-02-11 15:42:45 +00:00
github-actions[bot]
b1afce896a
[ci] release (next) (#2565)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 10:41:47 -05:00
tony-sull
3c682f2668 [ci] yarn format 2022-02-11 14:44:47 +00:00
Matthew Phillips
82544e4134
Fixes pageUrlFormat: 'file' in static build (#2569)
* Fixes pageUrlFormat: 'file' in static build

* Adds a changeset
2022-02-11 14:43:42 +00:00
Fred K. Schott
78319dfff0 format 2022-02-09 12:34:06 -08:00
github-actions[bot]
3e24341f17
[ci] release (next) (#2555)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-09 13:18:10 -06:00
Nate Moore
a907a73b8c
chore: upgrade vite and renderer dependencies (#2563) 2022-02-09 13:01:17 -06:00
Nate Moore
1abb9ed080
Upgrade Vite to latest (#2424)
* chore: unvendor vite

* chore: upgrade vue and svelte

* feat(renderer-solid): upgrade for vite@2.7.x

* chore: update yarn.lock

* fix(solid): upgrade solid renderer for vite@2.7.x

* test: improve css test

* chore: upgrade to vite@2.8.0-beta.3

* fix: replace hacky serialization with 'serialize-javascript'

* fix: externalize serialize-javascript

* fix: explicitly add execa@6.x.x to devDependencies

* test(css): skip css?url test

* chore: update vite-plugin-svelte

* fix: ssr option

* chore: update changeset

* chore: remove changeset

* chore: add changeset

* chore: add back missing changeset

* chore: update vite

* chore: update to latest vite

* test: update proload?

* chore: update dependencies

* fix: remove preact from nanostores example

* fix: update static-build-pkg to use `.mjs` extension

* fix: exclude './server.js' from custom-elements test

* chore: remove unused file
2022-02-08 17:38:00 -06:00
github-actions[bot]
cc436b4ce8
[ci] release (next) (#2554)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-08 16:58:42 -05:00
Matthew Phillips
e81bc3cf14
Prevent the server plugin from running during the build (#2552)
* Prevent the server plugin from running during the build

* Adds a changeset

* More all before blocks to inside of a describe()
2022-02-08 16:55:22 -05:00
Juan Martín Seery
f0952a8e5b
fix: curly braces inside Shiki (#2545) 2022-02-08 00:48:00 -05:00
Don Denton
c88a9951e4
Fix type FetchContentResultBase['url'] (#2425)
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-02-07 15:19:34 -05:00
Tony Sullivan
41b659b12e
adding test coverage for boolean and enum HTML attributes (#2544) 2022-02-07 15:14:26 -05:00
Nate Moore
d9ac85ea94
Improve error handling (#2539)
* feat: improve error handling

* fix: run renderer
2022-02-07 15:11:32 -05:00
matthewp
3f4d54282f [ci] yarn format 2022-02-07 20:09:13 +00:00
github-actions[bot]
4078dc529b
[ci] release (next) (#2533)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-07 15:08:22 -05:00
Jonathan Neal
a911d14eab
Remove docs from monorepo (#2517)
* Remove docs from monorepo

* Update PULL_REQUEST_TEMPLATE.md

* Update relative doc references with links or todo
2022-02-07 13:39:53 -05:00
Juan Martín Seery
2bc91543ce
feat: Added the ability to add custom themes/languages to Shiki (#2518)
* Replaced `shikiTheme` with `shikiConfig`

* Code.astro now accepts custom themes/langs

* Updated docs

* Updated tests

* Fixed language loading

* Added customization examples

* Updated documentation

* Added more tests

* Changelogs

* Changed some spaces to tabs

* Fixed typo in changesets

* Moved tests fixtures

* Rolled back changes to with-markdown-shiki

* Removed lang example in docs

* Optimized Code component

* Try to fix windows errors

* Try to see if this new tests work
2022-02-07 08:31:02 -08:00
matthewp
b95cd19512 [ci] yarn format 2022-02-07 13:24:45 +00:00
Fred K. Schott
b066628693
improve debug logs (#2537)
* improve debug logs

* Update logger.ts
2022-02-07 08:23:01 -05:00
natemoo-re
539e4d55d8 [ci] yarn format 2022-02-04 23:39:12 +00:00
Nate Moore
16d532fe17
fix: HTML/SVG boolean attributes (#2538)
* fix: HTML/SVG boolean attributes

* fix: update case-sensitivity of attributes

* Update packages/astro/src/runtime/server/index.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-02-04 17:38:14 -06:00
Juan Martín Seery
cfeaa9414a
fix: import local plugins into markdown (#2534)
* Replaced "UnifiedPluginImport" for a function

* Updated tests

* Updated docs

* Updated examples

* Added changeset

* Fixed tests

* Removed unused "UnifiedPluginImport"

* Duplicated add-classes.mjs
2022-02-04 13:49:50 -05:00
Matthew Phillips
b210fd008b
Append to list of HMR modules, don't override (#2532)
* Append to list of HMR modules, don't override

* Changeset
2022-02-03 16:41:48 -05:00
Fred K. Schott
ef1d81effd
add back dev server host support (#2531) 2022-02-03 13:40:40 -08:00
Fred K. Schott
069e497a74 simplify status code regex 2022-02-03 12:16:08 -08:00
Astroalex
eb29cd5d33
Adding StackUp Digital to the list of sponsors (#2521)
* adding svg files for stackup

* Change list of sponsors w/testing

* change back to withastro, done testing
2022-02-03 12:12:06 -08:00
FredKSchott
10d97b60b8 [ci] yarn format 2022-02-03 05:40:29 +00:00
Zade Viggers
ed4969d113
Handles all http error code file names the same as 404 files. (#2525)
* Fix #2195

* Filter out error code files from sitemap
2022-02-02 21:39:18 -08:00
Mark Pinero
81238bf77d
fix(sitemap): remove debug if sitemap disabled (#2514) 2022-02-02 21:27:11 -08:00
matthewp
8b7ba73004 [ci] yarn format 2022-02-02 17:13:03 +00:00
github-actions[bot]
e49f581bc2
[ci] release (next) (#2523)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-02 12:11:57 -05:00
matthewp
eecc996d7e [ci] yarn format 2022-02-02 16:36:23 +00:00
Matthew Phillips
3e8844fa87
Fix support for scss in static build (#2522)
* Fix support for scss in static build

* Adds a changeset

* Pass the normalizedID to transformWithVite
2022-02-02 11:35:13 -05:00
matthewp
ee7e1ce61a [ci] yarn format 2022-02-01 13:54:03 +00:00
github-actions[bot]
dd1a14a2eb
[ci] release (next) (#2492)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-01 08:52:57 -05:00
natemoo-re
f3b35023fd [ci] yarn format 2022-01-31 22:15:39 +00:00
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
Jonathan Neal
187d5128af
Fix issue rendering content within HTMLElement (#2506) 2022-01-31 16:50:55 -05:00
matthewp
de9ab4f306 [ci] yarn format 2022-01-31 21:30:29 +00:00
Fred K. Schott
f3dafd33e7
Fix a regression in vite.build() base option (#2502)
* Fixes subpath bugs

* Remove trailing slash appending

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-01-31 16:27:59 -05:00
matthewp
11841d17b7 [ci] yarn format 2022-01-31 21:12:35 +00:00
Astroalex
95b9740431
Add Astro.resolve deprecation warning case for script tags (#2493)
* Adding script.ts util for checking scripts files path

* Adding deprecation message `Astro.resolve()` case for scripts files with suggestions
2022-01-31 16:11:22 -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
jonathantneal
ff8e18d2ff [ci] yarn format 2022-01-29 01:31:04 +00:00
Fred K. Schott
c9bb1147cb
[MINOR] standardize trailing subpath, fix fetchContent url issue (#2471)
* standardize trailing subpath, and fix fetchcontent issue

* debug windows ci

* improve ci test

* fix windows test issue?

* fix only usage

* end debugging
2022-01-28 20:29:53 -05:00
Matthew Phillips
6bd165f84c
Handle project folders containing a space in the static build (#2486)
* Handle project folders containing a space

* Adds a changeset

* Bump the test package version

* Use server relative paths as entries

* Fix windows

* A hoisted fix

* Correctly handle facadeIds on windows
2022-01-28 20:29:28 -05:00
jonathantneal
b3e0b80ab6 [ci] yarn format 2022-01-29 01:07:23 +00:00
github-actions[bot]
1cac6c974a
[ci] release (#2482)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-28 20:06:07 -05:00
Rafid Muhymin Wafi
dac0692631
Changed vite.build target to esnext (#2487) 2022-01-28 19:56:47 -05:00
jonathantneal
8844bdb920 [ci] yarn format 2022-01-28 23:21:43 +00:00
Jonathan Neal
9f27941b4f
Render Custom Element Tag (#2473)
* Support rendering web components

* nit: remove addition of script
2022-01-28 18:19:55 -05:00
matthewp
0a112e1f56 [ci] yarn format 2022-01-28 22:11:55 +00:00
Matthew Phillips
69d5b70900
Fix use of preprocessors with the static build (#2490)
* Fix use of preprocessors with the static build

* Adds a changeset
2022-01-28 17:10:52 -05:00
natemoo-re
d97d61ec45 [ci] yarn format 2022-01-28 02:38:13 +00:00
Nate Moore
005751a920
Add escapeHTML to astro/internal (#2479)
* feat: add escapeHTML to astro/internal

* Update packages/astro/src/runtime/server/escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

* Update escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-01-27 20:36:47 -06:00
matthewp
ebaa3f0934 [ci] yarn format 2022-01-27 16:41:21 +00:00
github-actions[bot]
10db1ca75e
[ci] release (#2454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-27 11:40:08 -05:00
Fred K. Schott
b088d81070
add a new test:match command script (#2470) 2022-01-26 22:05:03 -08:00
Fred K. Schott
c70c4ea211
clean up config loading and flag merging (#2469) 2022-01-25 15:07:51 -08:00
Jonathan Neal
a764264d29
Remove node-fetch (#2462)
* remove node-fetch

* use webapi polyfill like astro
2022-01-25 11:37:06 -05:00
Evan Boehs
894b66e32f
Update package.json (#2463) 2022-01-25 09:54:06 -05:00
Jonathan Neal
4c4c801378
Remove vite-plugin-fetch (#2460)
This plugin is not used in the project
2022-01-25 09:49:17 -05:00
Jonathan Neal
9a0c76a4a5
run lit test separately to prevent error (#2446)
* Run strict tests

* run tests as before without `lit-element.test.js`

* update tests to run lit-element separately

* restore parallel run
2022-01-25 09:21:14 -05:00
Matthew Phillips
462e315956
Fix HMR in static build + @import HMR (#2440)
* Fix HMR in static build + @import HMR

* Changeset

* Add a comment on what cleanUrl is doing

* Running prettier

* Improve comments on how the static build compilation

works differently.
2022-01-24 12:58:10 -05:00
Anima
1d95ff58d9
Set channel link in rss.xml to site index (#2450)
* Set channel link in rss.xml to site index

This is the RSS 2.0 spec and fixes issue with pretty-feed-v3 "View Website" link pointing back to the feed

* tests: edited rss gen test
2022-01-24 11:19:36 -05:00
matthewp
ef85fcc7ab [ci] yarn format 2022-01-24 14:40:29 +00:00
github-actions[bot]
3059cc8e39
[ci] release (#2437)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-24 09:39:26 -05:00
Matthew Phillips
dfe1f8b4e7
Pass user's viteConfig.ssr to the build (#2442)
* Pass user's viteConfig.ssr to the build

* Changeset
2022-01-24 08:55:26 -05:00
natemoo-re
72ac198eb0 [ci] yarn format 2022-01-21 22:40:03 +00:00
Nate Moore
ed0b46f96f
Fix pre-generated RSS URLs (#2443)
* Allow pre-generated urls to be passed in rss feeds

* Fix variable name

* Add isValidURL helper function

* Remove scary RegEx and tidy up code

* add test for using pregenerated urls

* fix: allow rss to be called multiple times

* test: normalize rss feed in test

* chore: add changeset

Co-authored-by: Zade Viggers <74938858+zadeviggers@users.noreply.github.com>
Co-authored-by: zadeviggers <zade.viggers@gmail.com>
2022-01-21 16:38:48 -06:00
Chris Swithinbank
ebe414f05b
Resolve sitemap URLs in relation to full site path (#2423)
* Resolve sitemap URLs in relation to full site path

Fixes #2422

* Test generated sitemap contains base directory in URLs

* Add changeset

* test: Add `clean` helper to loaded fixture API

Adds a method that when called will remove the loaded fixture’s dist directory using `rimraf`.

* test: Clean up between sitemap/RSS tests

* See if letting rimraf retry more helps…

* Add logging to double check nothing’s running in parallel

* Remove logging & double check clean up actually succeeds

* Try using basic Node.js to clean up dist

* Remove logging/checks

* Remove stray unnecessary `async` keyword
2022-01-20 19:27:47 -05:00
jonathantneal
a32eee3900 [ci] yarn format 2022-01-21 00:24:33 +00:00
github-actions[bot]
4c802e25a0
[ci] release (#2433)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 19:23:30 -05:00
jonathantneal
f5adc023b2 [ci] yarn format 2022-01-21 00:14:18 +00:00
Matthew Phillips
f2b8372c0c
Supports hoisted scripts in the static build (#2414)
* Supports hoisted scripts in the static build

* Adds a changeset

* Update packages/astro/src/core/build/internal.ts

Co-authored-by: Evan Boehs <evan@boehs.org>

* Update based on feedback

* Fix lint

* Fix getting hoist script for Windows

* Try with the pre compiler

* use compiler 0.8.2

* update compiler version

* update yarn.lock

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:13:05 -05:00
Mikkel Tønder
fda857eb22
Add a verbose flag to create-astro (#2429)
* Add verbose logging to create-astro

* Tell user to use the verbose flag when encountering the MISSING_REF error

* Create changeset

* Add information in README

* Format

* Use switch statement instead of if and if else blocks

* Update packages/create-astro/src/logger.ts

Make if statement easier to read

Co-authored-by: Evan Boehs <evan@boehs.org>

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:00:22 -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
jonathantneal
d1b8fa9b04 [ci] yarn format 2022-01-20 15:05:35 +00:00
github-actions[bot]
e3731e5fa8
[ci] release (#2430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 10:04:29 -05:00
Matthew Phillips
3ad236ba01
Pin to the compiler 0.8.1 (#2428)
* Pin to the compiler 0.8.1

* Changeset
2022-01-20 09:49:33 -05:00
jonathantneal
97ebc82fa9 [ci] yarn format 2022-01-20 03:13:50 +00:00
github-actions[bot]
5d79bd7e93
[ci] release (#2420)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-19 22:12:32 -05:00
jonathantneal
18bb39f0d4 [ci] yarn format 2022-01-19 20:36:00 +00:00
Nate Moore
85ad1aab67
feat: add support for styled RSS feeds (#2371) 2022-01-19 15:34:52 -05:00
Jang Rush
e0def89697
Update .degit cache path in error message (#2400)
astro's repo changed from snowpack/astro to withastro/astro.

Thank @raph5
2022-01-19 15:19:04 -05:00
Pranav Karawale
24aa3245ae
Implement support for draft pages (#2392)
* feat: support draft pages

* implemented support for draft pages
* added integration test
* updated relevant documentation (english only)

* docs: explicitly mention "markdown draft pages"

* chore: add changeset

* chore: modify changeset

- changed type to 'patch'
- added more description
2022-01-19 15:18:51 -05:00
Nate Moore
9278ecdc4c
Update README banner 2022-01-19 12:32:17 -06:00
matthewp
b7e8b5dff3 [ci] yarn format 2022-01-19 13:26:51 +00:00
Matthew Phillips
5208c88aeb
Add Astro.resolve deprecation warning for the static build (#2416)
* Add Astro.resolve deprecation warning for the static build

* Adds a changeset
2022-01-19 08:25:42 -05:00
Nate Moore
d9998a03ac
fix(readme): update image path 2022-01-18 17:04:45 -06:00
Nate Moore
df3d71b41a
Update Astro README (#2413)
* feat: update hero image

* feat: update banner

* feat: slower scroll

* feat: add link to readme

* chore: add target _blank

* fix: respect prefers reduced motion

* fix: do not specify height

* fix: reduced motion

* fix: slow banner

* docs: update README

* docs: update README

* docs: update README

* feat: force full width

* Update README.md
2022-01-18 16:32:18 -06:00
matthewp
6ade95313b [ci] yarn format 2022-01-18 13:39:41 +00:00
github-actions[bot]
bcec8adc9a
[ci] release (#2412)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-18 08:38:15 -05:00
matthewp
63ffcb3486 [ci] yarn format 2022-01-18 13:35:26 +00:00
Matthew Phillips
bcc617f9dc
Update examples to move away from Astro.resolve on styles (#2393)
* Update examples to move away from Astro.resolve on styles

* Prepend the subpath

* Adds a changeset

* Switch to @import for the starter
2022-01-18 08:34:12 -05:00
matthewp
46ed4c6c81 [ci] yarn format 2022-01-14 21:20:23 +00:00
github-actions[bot]
d3be8d944d
[ci] release (#2394)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14 16:19:25 -05:00
matthewp
72096858e8 [ci] yarn format 2022-01-14 21:15:26 +00:00
Matthew Phillips
c8a257adc4
Improve static build performance on large sites (#2391)
* Improve static build performance on large sites

* Changeset

* Remove debugging code

* Pass through the rss fn
2022-01-14 16:14:04 -05:00
matthewp
5d6b29ae37 [ci] yarn format 2022-01-14 19:41:22 +00:00
github-actions[bot]
f5ce6edb5b
[ci] release (#2372)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14 14:40:12 -05:00
matthewp
bd931a0a14 [ci] yarn format 2022-01-14 19:04:47 +00: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
matthewp
6a7c5aa582 [ci] yarn format 2022-01-14 17:13:12 +00: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
matthewp
b3150121d1 [ci] yarn format 2022-01-13 18:29:57 +00:00
Matthew Phillips
20eaddb2a7
Fix for using React in the static build (#2369)
* Fix react in the static build

* Adds a changeset
2022-01-13 13:28:29 -05:00
matthewp
500295395c [ci] yarn format 2022-01-13 14:39:09 +00:00
github-actions[bot]
834e5299f1
[ci] release (#2366)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-13 09:37:44 -05:00
matthewp
365972582e [ci] yarn format 2022-01-13 14:24:25 +00:00
Matthew Phillips
2aa5ba5c52
Fix use of frameworks in the static build (#2367)
* Fix use of frameworks in the static build

* Adding a changeset

* fix typescript

* Empty out the directory before running the builds

* Use a util to empty the directory

* Only empty the outdir if needed

* Move prepareOutDir to its own module

* Prepare outDir is actually sync
2022-01-13 09:23:03 -05:00
matthewp
babed02876 [ci] yarn format 2022-01-12 17:04:04 +00:00
Matthew Phillips
20d0cce681
Fix for shared CSS when using the static build (#2365)
* Fix for shared CSS when using the static build

* Adds a changeset
2022-01-12 12:02:36 -05:00
jonathantneal
c388e6800f [ci] yarn format 2022-01-12 16:31:34 +00:00
github-actions[bot]
983bf72aa1
[ci] release (#2340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-12 11:30:01 -05:00
matthewp
7555fc3789 [ci] yarn format 2022-01-11 21:53:47 +00:00
Matthew Phillips
7e0b32c569
Fix: static-build with .md pages (#2363)
* Fix: static-build with .md pages

This fixes the `--experimental-static-build` flag to work with markdown
pages.

* Adds a changeset

* Account for difference in specifier on windows
2022-01-11 16:52:46 -05:00
Matthew Phillips
1007497297
Fix build output in static build mode (#2358)
* Fix build output in static build mode

* Adds a changeset

* Formatting
2022-01-11 11:24:57 -05:00
toSayNothing
f482c626a6
Fix renderer-solid (fix #2336) (#2359) 2022-01-11 10:31:26 -05:00
Jonathan Neal
c0cb7eead5
Fix Astro Preview Pathing Issues (#2338)
* Fix preview issues triggered by pageUrlFormat & trailingSlash options

* format

* changeset

* nit: fix host message
2022-01-10 12:43:24 -05:00
Jonathan Neal
f008a19c9d
Fix sitemap.xml page urls (#2335)
* For pages, use the expected pathname, not the file name

* changeset
2022-01-08 08:25:37 -05:00
Jonathan Neal
69af658b00
Fix issue with plugins running twice in dev and build (#2323)
* Fix issue with plugins running twice in dev and build

* nit: only patch plugins

* nit: only patch plugins

* nit: only solve for create-vite

* nit: only solve for create-vite

* Create seven-mice-do.md

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-01-07 15:00:19 -08:00
matthewp
b4d62e10ad [ci] yarn format 2022-01-07 21:44:16 +00:00
github-actions[bot]
5ba2650be1
[ci] release (#2339)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-07 16:43:19 -05:00
matthewp
76195ba404 [ci] yarn format 2022-01-07 21:29:41 +00: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
matthewp
320ca687bc [ci] yarn format 2022-01-07 14:45:30 +00:00
github-actions[bot]
4c826ad5b5
[ci] release (#2333)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-07 09:44:14 -05:00
matthewp
778adc662a [ci] yarn format 2022-01-06 21:34:01 +00:00
Matthew Phillips
71ca09125a
Fix subpath support regressions (#2330)
* Fix subpath support regressions

* Adds a changeset

* Update tests to reflect relative URL change

* Pick a different port and hopefully windows works

* Remove bad lint warning

* Better handling of relative paths

* or

* Fixes use with pageUrlFormat

* Update the pageDirectoryUrl test
2022-01-06 16:32:24 -05:00
FredKSchott
c3770dd120 [ci] yarn format 2022-01-06 00:57:38 +00:00
github-actions[bot]
f80800857e
[ci] release (#2320)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-05 16:56:34 -08:00
Nate Moore
77ef43e66c
chore: update compiler (#2324) 2022-01-05 18:32:42 -06:00
Caleb Jasik
8eca6eb990
Add <guid> to RSS feed based on page link to uniquely identify rss … (#2321)
* Add `<guid>` to RSS feed based on page link to uniquely identify rss feed entries.

ex: <https://www.rssboard.org/rss-validator/check.cgi?url=https%3A%2F%2Frainsberger.ca%2Frss.xml>

* Update RSS feed generation test
2022-01-05 16:25:39 -08: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
matthewp
21e9e02740 [ci] yarn format 2022-01-05 16:21:38 +00:00
github-actions[bot]
fa396750ef
[ci] release (#2307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-05 11:20:39 -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
matthewp
79f8cfee60 [ci] yarn format 2022-01-04 20:10:42 +00: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
Georges Gomes
eae959f1a7
Adds ‹div›RIOTS logo to the list of sponsors (#2271)
* Sponsor divRIOTS logos

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update packages/astro/README.md

Co-authored-by: Astroalex <alexis31.balthazard@gmail.com>

Co-authored-by: Astroalex <alexis31.balthazard@gmail.com>
2022-01-04 12:38:02 -06:00
Tadeu Zagallo
5fbdd56f15
Fix dynamic routes for sites with subpath (#2299) 2022-01-04 13:22:06 -05:00
matthewp
64c02dff92 [ci] yarn format 2022-01-04 16:29:25 +00:00
github-actions[bot]
d11c7b8c5c
[ci] release (#2304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-04 11:28:19 -05: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
matthewp
e75b50d55d [ci] yarn format 2022-01-04 14:48:03 +00:00
github-actions[bot]
69f4ff5473
[ci] release (#2303)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-04 09:46:45 -05:00
matthewp
670bebe9ae [ci] yarn format 2022-01-04 14:36:34 +00: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
Caleb Jasik
f26eb7b745
Docs/move-english-docs-to-"en"-folder (#2268)
* Move english pages under `/en` and fix broken links hopefully

* Add meta refresh tags for `/` to `/en/` url moves + make `/index.astro` work without js

* update languageselect for new en format

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-01-03 11:59:34 -08:00
matthewp
4fd2abc606 [ci] yarn format 2021-12-30 17:04:12 +00:00
github-actions[bot]
c5a67b4275
[ci] release (#2293)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-30 12:03:19 -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
matthewp
ae1e61aec8 [ci] yarn format 2021-12-30 14:15:29 +00:00
github-actions[bot]
1da4682a50
[ci] release (#2291)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-30 09:14:21 -05:00
matthewp
9b9d935840 [ci] yarn format 2021-12-30 14:04:33 +00:00
Matthew Phillips
c77cf52e16
Don't overwrite the stack when using verbose logging (#2290)
* Don't overwrite the stack when using verbose logging

This makes it so that if the compiler panics and `--verbose` logging is
on (debug level), we don't replace the stack trace.

* Adds a changeset
2021-12-30 09:03:03 -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
matthewp
57773b932f [ci] yarn format 2021-12-23 21:02:26 +00:00
github-actions[bot]
458e57b84f
[ci] release (#2264)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 15:34:11 -05:00
Matthew Phillips
991c30a72a
Don't run dev mode tests on windows (#2262)
* Don't run dev mode tests on windows

* Debugging

* chore(lint): Prettier fix

* remove the throw

* Skip a different way

* chore(lint): Prettier fix

* Skip the error test on windows too

* chore(lint): Prettier fix

* Move the after into the closure

* chore(lint): Prettier fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 15:24:02 -05:00
Jonathan Neal
160b45bf4d
bump webapi (#2263) 2021-12-23 14:35:26 -05:00
Matthew Phillips
f14c1fb4e4
Fix formatting issues caused by release (#2261)
* Run formatting on the release notes

* Update version in test due to releases GH
2021-12-23 12:41:55 -05:00
github-actions[bot]
b8e3efa7bb
[ci] release (#2219)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 11:49:30 -05:00
Matthew Phillips
db79d2e9ec
Fixes includes remote @imports in inline styles (#2258)
* Fixes includes remote @imports in inline styles

* chore(lint): Prettier fix

* Adds a changeset

* Fix empty style tags

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 09:24:29 -05:00
Jonathan Neal
6ddd7678ff
Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
Jonathan Neal
305ce4182f
Cleanup test debugging (#2250) 2021-12-22 14:25:22 -05:00
Jonathan Neal
b214b095f3
Improve CLI & CLI Testing (#2245)
* Fix astro --version, astro --help

* Improve CLI testing

* nit: fix for windows

* nit: try different async cli tests

* fix: core dev

* nit: cleanup core

* nit: change port for config test

* nit: write config differently than project-root

* nit: cleanup AstroDevServer properties
2021-12-22 14:23:15 -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
ptrxyz
83053bcae9
Update index.js (#2236)
Enables PostCSS in Svelte components. Fixes #2211
2021-12-19 18:14:25 -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
Nate Moore
bd246f0b2d docs: add deprecation notice to @astrojs/parser 2021-12-16 18:00:02 -06: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
810aeb321a chore: release @astrojs/renderer-svelte@0.2.3 2021-12-16 17:36:48 -06:00
Nate Moore
b8be7e868e Revert "[ci] update lockfile (#2212)"
This reverts commit 3f3eceb16b.
2021-12-16 17:03:56 -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
Jonathan Neal
91173fe938
Replace fetch walk-n-replace with polyfill (#2206)
* Replace fetch replacer with genuine polyfill

* chore(lint): Prettier fix

* changeset

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-15 14:11:14 -05:00
Sarah Rainsberger
bd1956b72f
Revert default RSS feed generated to rss.xml (0.21 changed to feed.xml) (#2172)
* Create sandbox.config.json specifying port 3000

* Update sandbox.config.json

* Create sandbox.config.json for blog example

* Create sandbox.config.json for multiple authors blog

* added sandbox config to portfolios

* [ci] yarn format

* added sandbox.config.json to more frameworks examples

* [ci] yarn format

* reverted default rss to rss.xml

Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2021-12-13 16:30:24 -05:00
Jonathan Neal
6570a20442
rebase (#2087) 2021-12-13 16:18:21 -05:00
Francois Valdy
5f5dc60976
Add missing licenses to published packages (#2166)
* chore: add missing licenses

* chore: update package.json info

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-12-13 15:14:34 -06:00
Jonathan Neal
c3db1eb4ef
Upgrade dependencies (#2085)
* yarn upgrade

* yarn upgrade --latest yargs-parser

* yarn upgrade --latest mime

* yarn upgrade --latest execa

* yarn upgrade --latest globby

* yarn upgrade --latest @docsearch/react

* yarn upgrade --latest es-module-lexer

* yarn upgrade --latest fast-xml-parser

* yarn upgrade --latest @astrojs/compiler @astrojs/language-server

* yarn upgrade --latest acorn

* clean yarn.lock

* chore: put `@docsearch/react` back to v1

* chore: remove unused @snowpack/plugin-dotenv

* Update yarn.lock

* Patch tests based on newer versions of tooling

* remove lerna

* Update yarn.lock

* Update yarn.lock

* Pin @sveltejs/vite-plugin-svelte

* update yarn.lock
2021-12-13 15:59:08 -05:00
github-actions[bot]
c16e7f3433
chore: release (#2171)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-09 10:45:03 -08:00
Fred K. Schott
5af24efb34
pin preact to 10.5 to resolve preact issue (#2170)
* pin preact to 10.5 to resolve preact issue

* fix: use current yarn.lock and only update preact

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-12-09 10:33:53 -08:00
github-actions[bot]
9ac4259d2e
chore: release (#2149)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-09 04:57:08 -08:00
Drew Powers
ef3950c647
Fix missing styles (#2156)
#2101
2021-12-07 15:01:45 -07:00
Qoddi App Platform
b87891f50e
Added Qoddi inside the sponsor list (#2141)
Registered on Open collective, thanks!
2021-12-07 12:23:24 -06:00
Fred K. Schott
d5ebd9d178
fix create-astro export map entry (#2150) 2021-12-07 10:21:42 -08:00
Fred K. Schott
0ef682c924
Validate Astro frontmatter JS/TS on compiler error (#2115)
* validate the astro component frontmatter ahead of compilation

* add test, update existing tests

* chore(lint): Prettier fix

* Update index.ts

* remove macos skip lines, no longer needed

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-07 08:18:41 -08:00
github-actions[bot]
a7e2070abc
chore: release (#2136)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-06 17:10:43 -06:00
Drew Powers
da7b41f5b8
Fix build missing styles (affecting docs) (#2112)
* Revert "remove odd docs regression caused by Astro.fetchContent()"

This reverts commit df47077978.

* Fix build missing styles
2021-12-06 16:01:32 -07:00
Nate Moore
cc1dae55c8
fix(#2129): exclude 404 from sitemap (#2137)
* fix(#2129): exclude 404 from sitemap

* chore(lint): Prettier fix

* chore: trigger ci

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-06 16:50:30 -06:00
Nate Moore
ddac977748
Skip flaky macOS Sass test (#2138)
* test: skip flaky macOS test

* test: skip flaky macOS test
2021-12-06 16:32:07 -06:00
Nate Moore
77c3fda379
Make fetch injection safe to existing code (#2135)
* fix: inject `fetch` only if not declared

* test: improve fetch test

* chore(lint): Prettier fix

* chore: trigger ci

* fix: improve type narrowing

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-06 16:08:00 -06:00
github-actions[bot]
1298fd8678
chore: release (#2133)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-06 15:15:14 -06:00
GitHub Action
ec6cdef62d chore(lint): Prettier fix 2021-12-06 19:24:10 +00:00
Elliott Marquez
d9d3906a3c
test(lit): add reflected property tests (#2116) 2021-12-06 13:23:09 -06:00
Leosvel Pérez Espinosa
c0f29bcf8c
Parse --renderers flag correctly when passed to the create-astro cli (#2124) 2021-12-06 09:19:22 -05:00
github-actions[bot]
fe11bdb5f7
chore: release (#2118)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-03 16:29:11 -06:00
Nate Moore
8346a1f2b9
Update Compiler (#2117)
* chore: update compiler

* chore: update compiler

* Revert "chore: update compiler"

This reverts commit 5742c24542.
2021-12-03 16:10:05 -06:00
Mikkel Tønder
3e4cfea4e2
Make aliases work on windows (#2109)
* Make aliases work on windows

Change all occurrences of path.posix to path.

* Remove console log statement

* Update index.ts

* Update index.ts

* Update index.ts

* Edit changeset
2021-12-03 10:53:11 -05:00
github-actions[bot]
4f546173b4
chore: release (#2108)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-03 09:30:45 -05:00
Matthew Phillips
583459d0b6
Fix support for ?url on CSS (#2106)
* Fix support for ?url on CSS

* Adds a changeset

* chore(lint): Prettier fix

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-03 09:19:37 -05:00
Matthew Phillips
4c44467668
Remove use of URL module in runtime (#2107)
* Remove use of URL module

We can't use this module due to Vite not having a shim and this needing
to run inside Vite.

* Adding a changeset
2021-12-03 09:13:20 -05:00
github-actions[bot]
787e4e6497
chore: release (#2098)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-02 17:45:56 -05:00
Jonathan Neal
11798a3209
Update Astro dependencies (#2096)
* Update Astro dependencies

* changeset

* chore: update `@astro/compiler`
2021-12-02 17:33:24 -05:00
github-actions[bot]
e57308d70c
[ci] release (#2071)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-02 13:01:17 -05:00
Drew Powers
0a826c999c
Allow special characters in filenames (#2091)
#2089
2021-12-02 10:45:54 -07:00
Matthew Phillips
97174e6ff4
Add tests for assets using imports (#2090) 2021-12-02 12:32:42 -05:00
Nate Moore
ac3e870280
fix: renderer behavior with no children (#2078)
* fix: renderer behavior with no children

* [ci] Prettier fix

* Force CI

* fix: properly handle falsy values

* [ci] Prettier fix

* chore: force ci

* [experiment] netlify ignore

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 10:30:15 -06:00
Drew Powers
62a5e98c90
Improve CSS import ordering, fix empty CSS outputs (#2081)
Fixes #2060
2021-12-02 09:24:00 -07:00
Matthew Phillips
1301f3daa9
Makes Astro.resolve return root-relative paths (#2048)
* Makes Astro.resolve return root-relative paths

* Adds a changeset

* Update the compiler version and PR review

* Fix linting

* [ci] Prettier fix

* Remove use of vitifyURL

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 10:48:18 -05:00
Matthew Phillips
2a2eaadc2f
Invalidate based on modulePath (#2086)
* Invalidate based on modulePath

* Adds a changeset
2021-12-02 10:48:08 -05:00
natemoo-re
638982663e [ci] yarn format 2021-12-01 21:27:46 +00:00
Tony Sullivan
920d3da135
Improving error messages for invalid client hydration directives (#2076)
* Adding check to make sure the hydration directive is valid

* remove temp debug logging

* Adding a check for media query with client:media + small refactor

* adding changeset

Co-authored-by: Tony Sullivan <tony.sullivan@hyperlab.se>
2021-12-01 15:26:17 -06:00
Matthew Phillips
bebb312b09
Upgrade compiler to 0.5.4 (#2057)
* Upgrade compiler to 0.4.0

* chore: update compiler to v0.5.1

* chore: update compiler to v0.5.3

* chore: upgrade @astrojs/compiler

* test: skip flaky test

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-12-01 15:25:29 -06:00
Jonathan Neal
5bda895fcb
Render void elements as self-closing tags (#2064)
* Render void elements as self-closing tags

* changeset

* nit: only check void element names if there is no child content

* nit: only check void element names if there is no child content

* add tests
2021-12-01 15:43:22 -05:00
Drew Powers
b348ca6c9f
Allow importing of rehype plugins (#2075)
Fixes #2061
2021-12-01 12:03:04 -07:00
natemoo-re
49019aa2d6 [ci] yarn format 2021-12-01 16:38:57 +00:00
Ian VanSchooten
ee4ad43202
Prevent unknown keys in markdownOptions (#2073) 2021-12-01 10:37:54 -06:00
Drew Powers
c6e4e2831e
Enforce consistent import order of CSS (#2065)
Partially fixes #2060
2021-12-01 08:23:18 -07:00
github-actions[bot]
754ac42478
[ci] release (#2059)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-30 22:33:45 -07:00
Drew Powers
03cabc5171
Fix Windows dev script proxying (#2052)
* Add tests for script proxying

* Fix Windows script proxying

#2053
2021-11-30 11:54:37 -07:00
Nate Moore
4e06767c01
fix(#2007): astro preview port retry (#2050)
* fix(#2007): astro preview port retry

* docs: update preview comment
2021-11-29 17:39:38 -06:00
Drew Powers
c491d1f423
Fix Sass WASM crashes (#2049)
Partially addresses #2032
2021-11-29 14:44:55 -07:00
Nate Moore
4067151aec
Improve GitHub Actions (#2041)
* chore(actions): test new CI action

* chore(actions): switch action order

* chore(actions): update registry

* chore(actions): remove debug

* chore(actions): target all packages

* chore(actions): test artifacts

* chore(actions): try moving artifacts

* chore(actions): test moving

* chore(actions): test tar approach

* chore(actions): test tar approach

* chore(actions): use artifacts/packages before tar

* chore(actions): test mv -vn

* chore(actions): mkdir first

* chore(actions): how does tar work?

* chore(actions): so good at bash

* chore(actions): test matrix

* chore(actions): fix test matrix

* chore(actions): fix windows?

* chore(actions): fix windows?

* chore(actions): fix windows!

* chore(actions): fix windows!

* chore(actions): add lint

* chore(actions): add back old actions

* chore(actions): test notification action

* chore(actions): test notification action again

* chore(actions): fix extract action

* chore(actions): fix action?

* chore(actions): fix action?

* chore(actions): fix newlines

* chore(actions): test --production flag

* chore(actions): test --production flag for test

* chore(actions): add execa to production deps

* chore(actions): add cheerio to production deps

* chore(actions): add production deps for tested examples

* chore(actions): fix changelog action

* chore(actions): attempt to use --prefer-offline

* chore(actions): revert dependencies/devDependencies change

* chore(actions): update all actions

* chore(actions): add smoke test

* chore(actions): update changelog deps

* chore(actions): move notify script

* chore(actions): consolidate main scripts

* chore(actions): update changelog name

* chore(actions): update congratsbot

* chore(actions): update ci

* chore(actions): change lint/format strategy

* chore(actions): expose GITHUB_TOKEN to linter

* chore(actions): update lint

* chore(actions): enable autofix

* chore(actions): fetch-depth 0

* chore(actions): fix eslint extensions

* chore(actions): debug lint

* chore(actions): fix eslint args

* chore(actions): fix eslint?

* [ci] ESLint fix

* [ci] Prettier fix

* chore(actions): fix lint!

* chore(actions): cleanup comments

* chore(actions): fix lint

* chore(actions): lint astro only

* chore(actions): ignore pattern

* chore(actions): no_verify

* chore(actions): disable no verify

* chore(actions): debug status

* chore(actions): add concurrency

* chore(actions): add comment about concurrency

* chore(actions): make release dependent on lint

* chore(actions): move lint first

* chore(actions): run CI on PR or `main` only

* chore(actions): remove GPR publish step

* chore: add back old actions

* chore: revert package.json

* chore: improve changelog with GitHub info

* chore(actions): try pull_request_target

* debug lint

* debug lint

* debug lint

* try pull_request_target

* update pull_request_target perms

* update pull_request_target

* fix perms

* fix run?

* fix run?

* fix run? (part 3)

* fix run? (part 4)

* fix run? (part 5)

* fix run!

* fix run!!

* fix run!!!

* fix run!!!!

* fix run!!!!!

* fix run!!!!!!

* add comment about forks

Co-authored-by: GitHub Actions <actions-user@github.com>
2021-11-29 15:11:15 -06:00
github-actions[bot]
6203b57974
Version Packages (#2047)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-29 14:39:04 -05:00
drwpow
c9bc700d41 [ci] yarn format 2021-11-29 19:34:50 +00:00
Drew Powers
50f3b8d7ec
Fix style injection (#2011) 2021-11-29 12:33:40 -07:00
Ludovico Fischer
4436592d22
fix(astro): prevent crash on unexpected file in pages (#2034)
* Skip files in `src/pages` when extension is not '.astro' or '.md'
* Add test

Fix #2033
2021-11-29 12:33:16 -07:00
matthewp
e7feb425b8 [ci] yarn format 2021-11-29 19:24:24 +00:00
Matthew Phillips
341ec3cdfd
Fix cached inline modules (#2038)
* Fix cached inline modules

* Adds a changeset
2021-11-29 14:23:14 -05:00
Matthew Phillips
fad6bd0936
Use of PUBLIC_ environment variables (#2044)
* Enable client-side JS to read env variables via PUBLIC_

* Fixes use of PUBLIC_ in client-JS
2021-11-29 14:22:46 -05:00
X7md
fe9c8952a6
Fix sponsors logos [Readme]. (#2036)
* add logos for github dark mode

* Hot fix (gh-*-mode-only) issue 

"that's an issue with wrapping an image in a link. We are currently still looking into how to best solve this. However, you can do the following which should work."
- dipree

* delete <td> 'cuz it was duplicate
2021-11-29 09:26:49 -06:00
X7md
56133d1c20
add dark-mode for logos [readme] (#2013)
* add logos for github dark mode

* preview logo

* Revert "preview logo"

This reverts commit affc31a8a5.
2021-11-24 17:14:56 -06:00
github-actions[bot]
dd17a5b8d0
Version Packages (#2009)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-24 14:10:30 -07:00
Drew Powers
76559faa30
Chore: update compiler (#2008) 2021-11-24 12:39:08 -07:00
github-actions[bot]
0751808a2e
Version Packages (#1988)
* Version Packages (next)

* chore: update CHANGELOG

* fix: merge conflict

* fix: merge conflict

* chore: remove pre.json

* Version Packages

* Version Packages

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-23 17:12:00 -06:00
Fred K. Schott
7476a92461
update repo URL (#1994) 2021-11-23 14:47:05 -08:00
Nate Moore
9ed6b3c0f0
chore: update compiler (#1995)
* chore: update compiler

* chore: bump compiler again

* chore: bump

* chore: update compiler
2021-11-23 16:42:59 -06:00
Drew Powers
8a5de03098
Fix client:visible (#1999)
Fixes #1963
2021-11-23 15:38:26 -07:00
Drew Powers
60c5eb6ad5
Add package descriptions (#1997) 2021-11-23 14:19:16 -07:00
Drew Powers
7a7427e425
Use URLs for styles, add CSS dev tests (#1993)
#1973
2021-11-23 13:10:22 -07:00
Drew Powers
4cec1256a4
Add default TypeScript, Sass support to Svelte (#1982) 2021-11-23 09:45:24 -07:00
Mikkel Tønder
3e1bdb1a3b
create-astro: Add a helpful message for the "could not find commit hash for ..." error (#1984)
* Add a helpful message for the "could not find commit hash for ..." error. This error mostly shows when someone tries to initialize a new project but git is not installed on their system.
2021-11-23 08:11:56 -06:00
Nate Moore
f165004c10
Add with-vite-plugin-pwa example (#1829) 2021-11-22 20:03:45 -06:00
github-actions[bot]
fff00e45f0
Version Packages (#1972)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-22 16:31:34 -05:00
Drew Powers
d3476f24d4
Add Sass tests (#1919) 2021-11-22 14:24:42 -07:00
matthewp
1304518b74 [ci] yarn format 2021-11-22 21:17:58 +00:00
Matthew Phillips
8cb779594e
Bring back building of non-hoisted scripts (#1977)
* Bring back building of non-hoisted scripts

Scripts inside of src/, whether hoisted are not should be built. This
makes that so. If not hoisted they do *not* get bundled together, but
rather are their own standalone modules. This matches 0.20 behavior.

Closes #1968

* Adds a changeset

* Fix windows breakage

* Debug windows

* More debugging

* make it not be parallel

* More windows

* Might fix it

* ARG

* Simpler test

* Remove the debugging
2021-11-22 16:17:01 -05:00
natemoo-re
c0ad06c470 [ci] yarn format 2021-11-22 21:02:28 +00:00
Elliott Marquez
ec01d1b43f
fix(lit-renderer): certain reactive props not init correctly (#1874)
* fix(lit-renderer): reactive props not init correctly

* test(renderer-lit): implement testing suggestiosn

* chore(renderer-lit): upload changeset

* fix(renderer-lit): call connCallback on server

* fix(renderer-lit): do not set reserved JSX props

* fix(renderer-lit): do not check for reserved attributes

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-22 15:01:32 -06:00
JuanM04
679d4395ec
Markdown package improvements (#1954)
* Re-add smartypants

* Updated packages

* Remove all the default plugins if there are either remark or rehype plugins

* Replace deperecated remark-slug with rehype-slug

* Added MarkdownParserResponse type

* Update documentation

* Removed type import from markdown package

* Updated remark-smartypants

* Changelog

* Missed one change

* Split changelogs

* Upgraded some MDX dependencies

* Fix typos in documentation

* Changed CHANGELOG.md package name

* Renamed smartypants
2021-11-22 14:48:00 -06:00
Nate Moore
e49452325c
chore: update compiler (#1975)
* chore: update compiler

* test: remove wasm-panic-error

* test: update syntax error to not check message

* chore: add changeset

* test: skip syntax error test

* chore: update changeset
2021-11-22 14:36:14 -06:00
Jonathan Neal
26de205b98
Warn on missing pages directory (#1902)
* Warn on missing pages directory

* skip hostname flag test

* kill process at end of config test

* fix hostname test

* cleanup console logs
2021-11-22 15:11:13 -05:00
natemoo-re
f930270aed [ci] yarn format 2021-11-22 18:07:12 +00:00
Nate Moore
fc5f416382
fix: output 404.astro to 404.html (#1949)
* fix: output 404.astro to 404.html

* chore: revert example change

* fix: update status code to only match 404
2021-11-22 12:06:15 -06:00
Nate Moore
22dd6bf6d6
fix: support postcss lang (#1948) 2021-11-22 11:40:11 -06:00
github-actions[bot]
63df5fbf23
Version Packages (#1967)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-22 10:27:46 -05:00
matthewp
17954a8634 [ci] yarn format 2021-11-22 13:48:32 +00:00
Nate Moore
aec4e8da27
fix: client:only behavior with a single renderer (#1959) 2021-11-22 08:47:26 -05:00
Nate Moore
8775730eb9
fix: avoid infinite loops in crawlCSS (#1956) 2021-11-22 08:47:14 -05:00
Fred K. Schott
37a20c9ad4 fix social og image 2021-11-19 16:13:38 -08:00
github-actions[bot]
b4818701fe
Version Packages (#1928)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 13:01:50 -08:00
Drew Powers
16fa615d34
Fix Svelte and Vue styles in dev (#1933) 2021-11-19 13:53:44 -07:00
matthewp
16d972fe46 [ci] yarn format 2021-11-19 20:26:02 +00:00
Matthew Phillips
a0d4d99a9a
Allow links/images to be loaded from browser /src (#1932)
* Allow links/images to be loaded from browser /src

* Adds a changeset

* typo
2021-11-19 15:25:05 -05:00
Fred K. Schott
74624d9697
add indirect yarn deps (#1926) 2021-11-19 12:16:31 -08:00
Drew Powers
f7b23d5cf1
Allow search params (#1927)
Fixes #1795
2021-11-19 12:57:24 -07:00
Jonathan Neal
1692675575
Doc improvements (#1929)
* Update astro & markdown code blocks for consistency

* Add 'JSX in Frontmatter' note to Migration Guide
2021-11-19 14:53:38 -05:00
natemoo-re
447d2efaff [ci] yarn format 2021-11-19 19:51:00 +00:00
Nate Moore
abef02e516
Migrate www to new Markdown + Components format (#1925)
* chore: migrate `www` to new Markdown + Components format

* feat: expose `<Content />` component to `Astro.fetchContent`

* fix: Layout component bug

* chore: update all www posts
2021-11-19 13:49:03 -06:00
Fred K. Schott
e373a379a1
fix the preview command base URL (#1897) 2021-11-19 11:36:11 -08:00
github-actions[bot]
3f76849a0b
Version Packages (next) (#1923)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 14:12:11 -05:00
Jonathan Neal
14d7031544
Fix RegExp#test in Config test (#1922) 2021-11-19 14:08:35 -05:00
Matthew Phillips
8733599e61
Add vite back as a dependency (#1921)
* Add vite back as a dep

* Adds a changeset
2021-11-19 14:07:45 -05:00
matthewp
eaf1c49f7b [ci] yarn format 2021-11-19 19:06:52 +00:00
Matthew Phillips
2e0c790b3a
Add polyfill scripts to result.scripts (#1920)
* Add polyfill scripts to result.scripts

* These scripts are bundled together now

* Adds changeset
2021-11-19 14:06:05 -05:00
github-actions[bot]
285622b8ae
Version Packages (next) (#1916)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 12:49:37 -05:00