natemoo-re
2b52c72b5d
[ci] format
2022-03-14 23:20:37 +00:00
Nate Moore
6b34840d3d
Fix set:html
behavior with null
( #2790 )
...
* feat: improve set:html behavior for null/undefined
* chore: add changeset
* refactor: improve set:html and set:text documentation
* test: improve set:html tests
* refactor: better types for server API
2022-03-14 18:19:53 -05:00
FredKSchott
75f4c17e4c
[ci] format
2022-03-14 17:24:30 +00:00
Fred K. Schott
2314eba9a4
[ci] update lockfile ( #2773 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-14 10:23:35 -07:00
Fred K. Schott
b4d34e2d2c
improve build perf ( #2772 )
2022-03-14 10:23:05 -07:00
Ben Holmes
2c4fd919fa
Fix: Astro.props missing properties ( #2785 )
...
* Fix: Astro.props missing properties
* chore: add changeset
2022-03-14 13:03:44 -04:00
natemoo-re
d1a7f6a1c5
[ci] format
2022-03-11 22:48:55 +00:00
github-actions[bot]
30e78a0bd8
[ci] release ( #2770 )
...
* [ci] update lockfile (#2763 )
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: exit prerelease mode
* [ci] release
* chore: update lockfile
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-11 16:47:57 -06:00
Fred K. Schott
1634172ff9
[ci] update lockfile ( #2763 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-11 16:38:28 -06:00
Matthew Phillips
49c0d9970f
Fix dev resolution of client modules on Windows ( #2768 )
...
* Fix dev resolution of client modules on Windows
* Adds a changeset
2022-03-11 17:28:48 -05:00
bholmesdev
d4dbfe8974
[ci] format
2022-03-11 22:26:21 +00:00
Ben Holmes
77b9c95352
Feat: expose server on local network with new --host flag ( #2760 )
...
* feat: update config to support bool --hostname
* fix: show localhost for --hostname=true
* feat: address logging feature parity w/ Vite
* chore: update type docs
* refactor: extract local, network prefs to variable
* feat: add --host to --help output
* feat: deprecate --hostname, add --host
* feat: add --host tests
* feat: update preview to support new flags
* fix: show --host in dev server log
* feat: update config tests for --host flag
* chore: test lint
* chore: update lock with new fixture
* chore: add changeset
* refactor: add more details to JSdocs
* fix: update path tests
* feat: only expose when --host is not local
* fix: make flag --help less verbose
* fix: address @types comments
* fix: lint
* chore: remove unused import
* fix: use host flag for config test
* fix: ensure local logs come before network
* refactor: switch up that network logging one last time!
* feat: update unit tests
* chore: remove debugging block
* fix: only parse network logs if network is present
2022-03-11 17:25:26 -05:00
Nate Moore
2bb2c2f7d1
Update compiler ( #2767 )
...
* chore: update compiler
* chore: add changeset
2022-03-11 16:20:20 -06:00
bholmesdev
4c975dc4da
[ci] format
2022-03-11 16:57:36 +00:00
Fred K. Schott
6ce97b1ebe
fix sitemapFilter docs ( #2762 )
2022-03-11 11:56:54 -05:00
natemoo-re
3a6ef130dd
[ci] format
2022-03-10 23:36:11 +00:00
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
Jonathan Neal
ea2fc06ddf
Remove additional newlines added to HTML ( #1908 )
...
* Remove additional newlines added to HTML
* keep template newlines
2021-11-19 12:43:14 -05:00
Matthew Phillips
0d437e11a7
Small fixes ( #1911 )
2021-11-19 12:35:41 -05:00
github-actions[bot]
bb90ff60c8
Version Packages (next) ( #1907 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 11:22:19 -05:00
Matthew Phillips
c76821687d
Remove further dependence on vite package ( #1906 )
...
* Remove further dependence on vite package
* Adds a changeset
* Add graymatter as a regular dep
2021-11-19 11:15:39 -05:00
github-actions[bot]
05a2c48449
Version Packages (next) ( #1904 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 10:39:05 -05:00
Matthew Phillips
3b511059b9
Remove OSX \x00 workaround ( #1901 )
...
* Remove OSX \x00 workaround
* Adds a changeset
2021-11-19 10:23:21 -05:00
Matthew Phillips
41c6a772a2
Resolve vite client modules to vendored vite ( #1903 )
...
* Resolve vite client modules to vendored vite
* Adds a changeset
2021-11-19 10:23:04 -05:00
matthewp
fb4eb080ec
[ci] yarn format
2021-11-19 15:07:28 +00:00
Matthew Phillips
4682f8fdce
Add Debug tests ( #1882 )
...
* Make Debug use the Code component
* Use a random port so parallel testing works
* some debugging
* Skip these tests for now
* Dont run these tests on osx
2021-11-19 10:06:31 -05:00
github-actions[bot]
a43410b68e
Version Packages (next) ( #1881 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 01:21:00 -08:00
Drew Powers
b1586a87ac
Improve HMR ( #1896 )
2021-11-18 22:55:24 -08:00
Fred K. Schott
6b9ec716ee
update deps
2021-11-18 22:38:16 -08:00
Fred K. Schott
c82ceff7eb
fix #1778
2021-11-18 22:21:58 -08:00
Nate Moore
4c0cb47204
Update compiler ( #1869 )
...
* chore: update compiler
* redeploy
* fix(www): ensure www can build
* chore: update compiler
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-11-18 16:50:55 -08:00
Fred K. Schott
9476b79dba
remove unused remark dependency ( #1894 )
2021-11-18 16:50:30 -08:00
Drew Powers
8986d33bfc
Improve error messages ( #1875 )
...
* Fix error handling in correct scope
Also improve Vite IDs for better module graph lookups
* Improve code frame
* Add changeset
* maybeLoc can be undefined
* Add tests
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-11-18 17:42:07 -07:00
Fred K. Schott
78b3371adb
pin astro compiler to older version
2021-11-18 16:11:18 -08:00
Jonathan Neal
a89b3e3eb6
Update yarn.lock to reflect the state of the package.json files ( #1892 )
...
* update dependencies
* update file to fix build:all
2021-11-18 16:06:35 -08:00
Drew Powers
36f2f5d33e
Fix styles-ssr timeout ( #1891 )
2021-11-18 15:18:59 -07:00
matthewp
637cf499fa
[ci] yarn format
2021-11-18 16:15:09 +00:00
Matthew Phillips
53d9cf5ec6
Dev server routing tests (and fixes) ( #1879 )
...
* Dev server routing tests (and fixes)
* Adding a changeset
* Bump the style-ssr test timeout
2021-11-18 11:13:54 -05:00
github-actions[bot]
eb4d5f1d8f
Version Packages (next) ( #1873 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-17 16:25:02 -08:00
Fred K. Schott
c2668afed0
add create-astro to build:all ( #1872 )
...
* add create-astro to build:all
* mark error objects as any, instead of unknown
2021-11-17 16:22:43 -08:00
github-actions[bot]
96d5a94280
Version Packages (next) ( #1863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-17 19:05:54 -05:00
Jonathan Neal
4879c8b2b6
Fix AstroComponent check ( #1849 )
2021-11-17 18:33:04 -05:00
Jonathan Neal
739d3b971d
Support custom elements ( #1854 )
...
* Support custom elements
Support non-object/non-function components
* fix: ensure component is not string before throwing
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-17 16:19:54 -05:00
matthewp
6abea78ecd
[ci] yarn format
2021-11-17 20:59:04 +00:00
Matthew Phillips
0ce86dfdf3
Fix for built scoped Vue styles ( #1868 )
...
* Fixes #1844
* Adds a changeset
* Remove all special casing
* Add a clarifying comment
2021-11-17 15:57:47 -05:00
Fred K. Schott
6b598b2401
fix middleware order ( #1865 )
2021-11-17 12:40:30 -08:00
FredKSchott
850693957c
[ci] yarn format
2021-11-17 20:35:16 +00:00
Fred K. Schott
a765698a8e
Address code review comments regarding style
2021-11-17 12:33:58 -08:00
natemoo-re
101643398a
[ci] yarn format
2021-11-17 20:26:52 +00:00
Nate Moore
06446d14a3
fix: enable node builtins ( #1771 )
...
* fix: enable node builtins
* fix: update bare node builtin test
* test: update fixture to support node@12
2021-11-17 14:25:45 -06:00
natemoo-re
1408e2017a
[ci] yarn format
2021-11-17 20:11:24 +00:00
Nate Moore
dbc49ed62c
fix: HMR regression ( #1858 )
...
* fix: HMR regression
* fix: inject HMR script directly
2021-11-17 14:10:05 -06:00
FredKSchott
e1e12eb7fe
[ci] yarn format
2021-11-17 18:32:36 +00:00
Fred K. Schott
6c66d4834b
fix npm init flag handling in create-astro ( #1862 )
...
* fix npm init flag handling
* Update index.ts
* Update real-cats-act.md
2021-11-17 10:30:12 -08:00
github-actions[bot]
9f5e196019
Version Packages (next) ( #1847 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 17:13:29 -05:00
matthewp
887fad5a11
[ci] yarn format
2021-11-16 22:11:36 +00:00
Matthew Phillips
0f9c191010
Fix: dev server routing when not using subpath ( #1846 )
...
* Fix: dev server routing when not using subpath
* Better comment
* Adds a changeset
* Remove testing file
* Rename this.pathname to this.devRoot
2021-11-16 17:10:20 -05:00
github-actions[bot]
750c249c32
Version Packages (next) ( #1796 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 13:06:58 -08:00
Drew Powers
c8544a2651
Clean up, simplify types ( #1816 )
...
Also add JSDoc to external types
2021-11-16 14:00:08 -07:00
Drew Powers
3cd1458aa7
Fix Windows CSS bundling bug ( #1840 )
...
* Fix Windows CSS bundling bug
JS components’ styles accidentally left out of final build on Windows
* Review feedback
2021-11-16 13:59:41 -07:00
natemoo-re
d9265df0e9
[ci] yarn format
2021-11-16 16:05:42 +00:00
Nate Moore
824c1f2024
Implement client:only
handling ( #1716 )
...
* WIP: improve `client:only` handling
* feat: implement `client:only` in renderer
* test: reenable client:only tests
* feat: improve SSR error messages
* fix: add `resolvePath` method to Metadata
* test: fix client-only test
* chore: fix custom-elements handling
* test: revert `custom-elements` test change
* fix: do not assign a default renderer even if there's only one configured
* chore: bump compiler
* chore: add changeset
2021-11-16 10:01:14 -06:00
Drew Powers
65216ef921
Fix PostCSS (and Autoprefixer) processing ( #1837 )
...
* Fix PostCSS processing
* Skip Windows tests
(for now)
2021-11-15 14:16:07 -07:00
matthewp
64cc9ed9c1
[ci] yarn format
2021-11-15 20:06:53 +00:00
Matthew Phillips
93cc4d361b
Start of fixing multiple CSS issue ( #1838 )
...
* Start of fixing multiple CSS issue
* Update tests to work with compiled output
* Fix linting
2021-11-15 15:05:36 -05:00
Bence Molnár
4e55be9006
Use normalized path to detect layout files ( #1822 )
...
Co-authored-by: Bence Molnár <bencemol@users.noreply.github.com>
2021-11-15 12:47:39 -05:00
Drew Powers
3b8f201c4b
Update build output ( #1814 )
2021-11-15 10:13:35 -07:00
matthewp
b49f9a525e
[ci] yarn format
2021-11-15 15:35:07 +00:00
Matthew Phillips
fca1a99dbd
Support for using a subpath ( #1801 )
...
* Support for using a subpath
* Update the readme
* Fix the package name
* Adds a changeset
* Ensure that public/ must be loaded from the subpath
* Update preview to use the new paths
* Use exact compiler version
* Use the newest version
* Use range again
* Use newer range
2021-11-15 10:33:51 -05:00
Drew Powers
2b031acbd7
404 page ( #1811 )
...
* Redesigned 404 page
* Update 5xx template
Co-authored-by: Isaac McFadyen <6243993+mcfadyeni@users.noreply.github.com>
2021-11-12 09:29:25 -07:00
Drew Powers
3d7d63aa8a
Improve WASM panic error ( #1782 )
...
* Improve WASM panic error
* Add panic test
2021-11-11 13:04:57 -07:00
matthewp
859b451ca9
[ci] yarn format
2021-11-11 19:36:54 +00:00
Matthew Phillips
65d17857ce
Uncomment hoisted scripts ( #1743 )
...
* Uncomment hoisted scripts
* Get hoisted scripts to pass
* Adds a changeset
2021-11-11 14:35:46 -05:00
Drew Powers
529486bfb0
Inject Doctype tag ( #1783 )
2021-11-11 12:28:14 -07:00
Drew Powers
5e0cb796a6
Enable macOS tests ( #1774 )
...
* Enable macOS tests
* Fix macOS tests
2021-11-11 10:24:48 -07:00
matthewp
7bb768ddab
[ci] yarn format
2021-11-11 16:56:59 +00:00
Matthew Phillips
b958088c3d
Add display: contents for hydrated components ( #1794 )
...
* Add display: contents for hydrated components
* Only serialize boolean attrs that are data attrs
* Adds a changeset
2021-11-11 11:55:50 -05:00
github-actions[bot]
83be55d5dd
Version Packages (next) ( #1791 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-11 08:48:04 -05:00
matthewp
8e3fd04dbd
[ci] yarn format
2021-11-11 13:45:37 +00:00
Matthew Phillips
fd52bceea4
Build/bundle assets and CSS ( #1786 )
...
* Bundling CSS
* Current progress of building assets
* New build progress
* Its finally working
* Force css to go through the build
* Prettier filenames
* Split into separate CSS and HTML plugins
* Always have at least one input
* Bring back in sitemaps + output
* Bring back srcset support
* Bundle CSS
* Bring back minify
* Update dynamic tests
* Update remaining tests
* Linting
* Fix remaining broken test
* Use fs directly
* Adding a changeset
* Use path.posix
* Debugging windows
* More debugging
* Pass URLs into readFile
* Remove some debugging stuff
* Remove force flag from transformWithVite
* Update packages/astro/src/vite-plugin-build-css/index.ts
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
2021-11-11 08:44:11 -05:00
natemoo-re
bb1fa3e897
[ci] yarn format
2021-11-10 23:35:37 +00:00
Nate Moore
7eaabbb0e1
Markdown bug bash! ( #1789 )
2021-11-10 17:34:31 -06:00
natemoo-re
f17892747e
[ci] yarn format
2021-11-09 19:00:13 +00:00
github-actions[bot]
9763b255dd
Version Packages (next) ( #1745 )
...
* Version Packages (next)
* chore: update changelog
* chore: update CHANGELOG
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-09 12:59:13 -06:00
jonathantneal
69092fec06
[ci] yarn format
2021-11-09 17:59:06 +00:00
Jonathan Neal
ba38147ccc
Support tsconfig.json & jsconfig.json aliases ( #1747 )
...
* Resolve paths from tsconfig or jsconfig
https://code.visualstudio.com/docs/languages/jsconfig
https://nextjs.org/docs/advanced-features/module-path-aliases
* edit: rename plugin to `@astrojs/vite-plugin-tsconfig-alias`
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* edit: switch from `ps` to `path.posix`
* edit: move sanitization of paths to loop
* edit: rename `resolveConfigPaths` to `configAliasVitePlugin`
* edit: update implementation based on feedback
* prettier
* edit: rename `matchTailingAsterisk` to `matchTrailingAsterisk`
* edit: cleanup with comments
* edit: spellcheck `condition` to `conditionally`
* edit: refactor based on feedback
* edit: Update README.md
* edit: cleanup baseUrl transformation and add explainer comments
* edit: cleanup resolutions and add commenting
* yarn lint
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-11-09 12:57:43 -05:00
Yoshiaki Togami
7acf762c12
Fix/check content type ( #1754 )
...
* test: add test case
* fix: add type guard insted of content.trim().length > 0
* test: fix test
2021-11-09 11:46:01 -06:00
Drew Powers
f22a5c45d8
Enable tests ( #1773 )
2021-11-09 10:06:25 -07:00
Nate Moore
5caf276fb8
chore: update compiler ( #1770 )
2021-11-08 16:30:46 -06:00
Drew Powers
fd0e9ce605
fix: Improve Vite config merging ( #1768 )
...
#1755
2021-11-08 14:43:10 -07:00
Nate Moore
fbae2bc52f
Improve astro.config
loading ( #1764 )
...
* Revert "Revert "feat: improve `astro.config` loading by support `.cjs`, `.js`, and `.ts` files""
This reverts commit a26f7a2088
.
* fix: throw when filename is specified but not found
* chore: @proload/core@0.2.1
* refactor: simplify to use Proload's filePath option
* fix: move to @proload/plugin-tsm
* Update packages/astro/src/core/config.ts
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-11-08 14:57:31 -06:00
Jonathan Neal
18172a6750
Support PUBLIC_ environment variables ( #1750 )
...
* Support PUBLIC_ environment variables
* Remove unnecessary Test component
2021-11-08 06:28:15 -05:00
Nate Moore
a26f7a2088
Revert "feat: improve astro.config
loading by support .cjs
, .js
, and .ts
files"
...
This reverts commit 058d1a0ff7
.
2021-11-07 20:28:25 -06:00
Nate Moore
058d1a0ff7
feat: improve astro.config
loading by support .cjs
, .js
, and .ts
files
2021-11-07 20:27:55 -06:00
Drew Powers
ecfc298506
fix: Vite URL bug ( #1746 )
2021-11-05 09:26:20 -06:00
drwpow
9b7fe54a5c
[ci] yarn format
2021-11-04 20:02:45 +00:00
Drew Powers
2e1bded735
Get Tailwind HMR working (first cut) ( #1736 )
...
* Get Tailwind HMR working
* PR feedback
* perf: improve HMR `head` performance
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-04 14:01:28 -06:00
Jonathan Neal
0a9dfa01fb
restore astro typings ( #1733 )
2021-11-03 10:03:18 -04:00
github-actions[bot]
8de20f7435
Version Packages (next) ( #1731 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-02 16:22:40 -05:00
natemoo-re
c6ee6a5555
[ci] yarn format
2021-11-02 21:21:54 +00:00
Nate Moore
11ee158ad5
Update @astrojs/compiler
( #1730 )
...
* chore: update @astrojs/compiler
* fix: add Fragment handling
* chore: add changeset
2021-11-02 16:20:35 -05:00
matthewp
bd3bed7f27
[ci] yarn format
2021-11-02 17:46:23 +00:00
Matthew Phillips
94f35dbfbc
Small refactor to the server runtime ( #1699 ) ( #1727 )
...
* Small refactor to the runtime
* Update packages/astro/src/runtime/server/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/runtime/server/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/runtime/server/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/runtime/server/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/runtime/server/hydration.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Improve based on review comments
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-11-02 13:45:07 -04:00
Konstantinos Kostarellis
b4dbb90b5f
Adds a new example template portfolio-svelte ( #1667 )
...
- Template is based on svelte components instead of react
- Bumps astro version to "^0.21.0-next.0" for portfolio-svelte template
Co-authored-by: Konstantinos Kostarellis <Konstantinos.Kostarellis@gmail.com>
2021-11-02 12:48:00 -04:00
Drew Powers
c0d9ed832e
Enable Windows tests ( #1712 )
2021-11-02 08:13:36 -06:00
github-actions[bot]
e0d9a7627d
Version Packages (next) ( #1709 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-29 14:48:54 -05:00
natemoo-re
a5c6f922fa
[ci] yarn format
2021-10-29 19:47:01 +00:00
Nate Moore
34e03cf912
do not format vite ( #1710 )
...
* Revert "[ci] yarn format"
This reverts commit 93489946cc
.
* chore: ignore vendor
2021-10-29 14:45:32 -05:00
matthewp
93489946cc
[ci] yarn format
2021-10-29 19:31:54 +00:00
Drew Powers
d84bfe719a
🚀 Astro Next (0.21.0) ( #1406 )
...
* make astro-root uids unique
* Move Astro to Vite
* Update tests
* More test improvements
* fred fixes
* Update compiler, improve tests
* Fix runtime, improve code frame
* Add Markdown support
* Tycho fixes
* Fred fixes part 2
* Throw Error for WIP Features
* Improve testing suite
* Allow users to pass config to Vite
* Fix npm install (#1407 )
* Automate publish on merge (#1408 )
* Add NPM_TOKEN to publish script (#1409 )
* Create .npmrc
* Clean up astro deps (#1411 )
* Use new renderers (#1412 )
* feat: update compiler (#1421 )
* Try mocha/chai test runners (#1418 )
* Try mocha/chai test runners
* Disable failing smoke test for now
Will revert when next can build docs
* Enable mocha in parallel mode
* Remove warning
* Update docs
* Fix Windows bug
* Fix internal imports
* Fix styles
* Fix CI release on merge to next (#1427 )
* Fix logger locale parsing (#1439 )
* fix(logger): locale parsing
* Fixed issue of compiler crash when "c" locale was encountered
* Return default locale if parsed locale is less than 2 chars long
* chore: add changeset
* Apply changes from #1387
* Add back in support for children (#1486 )
* Add back in support for children
* Be more careful
* Enables most slot tests (#1494 )
* Enables most slot tests
* Use spreadAttributes
* Add hydration to Solid renderer (#1479 ) (#1495 )
* feat: add hydration to Solid renderer
* fix: intersection observer, move script to the end
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
* [next] support Astro.slots API (#1516 )
* [next] Support for custom elements (#1528 )
* [next] Support for custom elements
* Fix eslint errors
* eslint again
* [next] Fix Astro.fetchContent (#1480 )
* fix Astro.fetchContent
* fix(fetchContent): cast type
Co-authored-by: Nate Moore <nate@skypack.dev>
* Move hydration to the compiler (#1547 )
* Move hydration to the compiler
* Move extracting url, export to util fn
* Brings back astro-dynamic tests (#1548 )
* Implements top-level Astro + Astro.resolve (#1556 )
* Implements top-level Astro + Astro.resolve
* Fix linting
* [next] Update renderers (#1509 )
* chore: update vite
* fix(renderers): point renderers to resolved server/client entrypoints
* Chore: Enable more tests with new compiler changes (#1558 )
* [Next] `fetch` support (#1563 )
* fix: polyfill fetch in every ssr scenario
* test(fetch): update fetch tests
* docs: update data fetching guide to remove caveats about `fetch` and isomorphic usage
* refactor: update regex for clarity
* Restructure (#1569 )
* Upgrade to @astrojs/compiler 0.2.0 (#1584 )
* Use Vite fork (#1585 )
* Use Vite fork
* Fix linting
* Move Vite to vendor/ and add a license
* Fix linting
* Include the dist folder
* Update files config
* Markdown compilation (#1593 )
* Markdown compilation
* remove debugger
* Gets lit hydration working (#1595 )
* Gets Astro.fetchContent compilation to work (#1596 )
* Gets Astro.fetchContent compilation to work
This fixes Astro.fetchContent so that we handle esbuild transforming the
name of the nested Astro call.
* Remove debugging
* Update the tests
* Remove another debugger
* Update Vite to latest (#1597 )
* Add Prism syntax highlighting (#1598 )
* Scoped styles with markdown (#1599 )
* Bugfix: fix getStaticPaths() cache miss (#1602 )
* Fix build order (#1609 )
* Bugfix: restore build to get all paths earlier, when build. Same as main.
* Also re-add timings
* [next] blog example fully working (#1610 )
* Add environment variables docs (Closes #873 ) (#1587 )
* Added environment variables docs (Closes #873 )
* Fixed prefix
* Remove numbered comments (#1611 )
* Chore: remove numbered comments
* Clean up block comments
* comment style fixes (#1614 )
* [next] Upgrade compiler (#1619 )
* [next] Upgrade compiler
* Upgrade to latest compiler
* Fix the path to global css
* Removed debugger
* feat: add fragment support to vite-plugin-astro (#1600 )
* [next] fix `.tsx` handling (#1620 )
* fix: support tsx in JSX plugin
* fix: preserve JSX via esbuild, only use Babel for JSX compilation
* fix: handle upcoming Vite API for `ssr` flag
* [next] Add CSS preprocessing (#1589 )
* Add concept for style support in Astro
* Update style preprocessor to use new compiler
* fix: massage preprocessStyle type
* fix: @astrojs/compiler types
Co-authored-by: Nate Moore <nate@skypack.dev>
* fix issues in blog-multiple-authors (#1621 )
* Move Sass to deps (#1622 )
* Update renderer API for Vite (#1623 )
* Update renderer API for Vite
* Fix lit-element tests
* Clean up comments
* Throw friendly error if renderer provides viteConfig in a bad format
* Fix changesets (#1628 )
* Remove cheerio scanning from build stats (#1629 )
* Minor change to jsxTransformOptions, update Renderer API docs (#1630 )
* [next] docs example fully working (#1627 )
* [next] docs example fully working
* Upgrade compiler to unlock docs
* Add `class:list` directive (#1612 )
* Add support for class:list directive
The `class:list` directive serializes an expression of css class names. For React components, `className:list` is also supported.
* Remove `className` support and React tests
* Add tests for the absence of omitted classes
* fix: `define:vars` scoping for styles (#1632 )
* feat: fix Debug component (#1633 )
* [next] Fix `<Markdown>` component (#1631 )
* fix: cleanup issues with <Markdown> component
* fix: fix `content` usage with Markdown
* [next] Fix `<Code>` component (#1635 )
* fix: enable Code component
* test: update expect to chai format
* Fixes solid (#1634 )
* Fixes solid
* Rename the test
* Rebase with next
* Skip solid test for now
* Add support for markdown plugins (#1650 )
* Fix broken next release (#1652 )
* Prevent passing to Svelte components
* Prevent passing class to Vue components
* Add CSS injection, fix portfolio example (#1648 )
* Fix portfolio example
* Add .pcss extension
* Update load ssr opts
* Update packages/astro/src/runtime/server/index.ts
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
* Fixes external HMR (#1654 )
* Upgrade compiler version (#1655 )
Fixes docs and blog examples
* Resolve renderers relative to the projectRoot (#1659 )
* Template fixes (#1656 )
* fix: dedupe hashes for identical islands (#1660 )
* fix: scope `define:vars` to `:root` for `<style global>` (#1663 )
* chore: update compiler to latest (#1664 )
* [next] fix island hydration inside of `<Markdown>` (#1665 )
* fix: create rehype plugin to smooth over island hydration bugs
* refactor: remove debug code
* chore: explain need for `rehypeIslands`
* Bugfix: renderer-lit missing files on npm (#1669 )
* Force Vite to rebuild dependencies (#1670 )
* [next] Add `preact/compat` renderer (#1668 )
* feat: add preact/compat entry for `@astrojs/renderer-preact`
* Update index.js
* Bugfix: plugin-astro-fetch tries to append node-fetch to node-fetch (#1671 )
* Fix Vite race condition (#1674 )
* Fix with-nanostore deps (#1675 )
Adds missing Solid renderer
* [next] Fix `resolveDependency` on Windows (#1666 )
* fix: Windows issue with resolveDependency util
* chore: add comment
* Update CONTRIBUTING.md (#1677 )
* Prevent scanning a user's deps (#1678 )
* Prevent scanning a user's deps
* Remove unused things
* remove unused util
* Adding a changeset for the remark plugin
* Config changes needed for stater template (#1680 )
This does 2 things:
1. Adds prismjs as a dep.
2. Adds shiki as an external.
* Next bugs (#1681 )
* fix(#1679 ): hoisted <script> rendering
* fix(#1679 ): do not print global for styles, but do for scripts
* fix: update ObjectSet implementation
* fix: dedupe elements in sets
* [next] update compiler (#1683 )
* chore: update compiler
* chore: update compiler (again)
* Fix Astro HMR bottleneck (#1684 )
* Bugfix: JSX renderers can be declared in any order (#1686 )
* chore: update compiler (#1690 )
* Exclude lit-server from being optimized (#1691 )
This should get the lit example working from `npm`.
* fix: exclude all renderer server entrypoints (#1692 )
* chore: update compiler (#1705 )
* fix: do not crash when Markdown has no content (#1702 )
* feat: improve support for third-party React packages (#1701 )
* Remove prism warning when no language is provided (#1703 )
* Remove prism warning when no language is provided
* Add the plaintext language instead
* retry deploy
* chore: enter prerelease mode under `next` (#1707 )
* Updates to the changesets (#1708 )
* Updates to the changesets
* Adds a changeset for astro-prism
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Pranav Karawale <52596591+obnoxiousnerd@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
Co-authored-by: AsyncBanana <58297401+AsyncBanana@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-10-29 15:30:22 -04:00
github-actions[bot]
345900dd11
Version Packages ( #1642 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-22 17:03:09 -05:00
Jonathan Neal
d5fdeefebb
Pull examples from latest branch ( #1641 )
...
* pull examples from latest branch
* changeset
2021-10-22 17:50:36 -04:00
github-actions[bot]
9f53699d6f
Version Packages ( #1639 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-22 16:20:22 -04:00
Matthew Phillips
025f5e3f22
Revert "Make create-astro use the latest
branch ( #1636 )" ( #1638 )
...
* Revert "Make create-astro use the `latest` branch (#1636 )"
This reverts commit 28f00566ca
.
* Adds a changeset
2021-10-22 16:18:33 -04:00
github-actions[bot]
46d8c64a92
Version Packages ( #1637 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-22 16:04:12 -04:00
Matthew Phillips
28f00566ca
Make create-astro use the latest
branch ( #1636 )
...
* Make create-astro use the `latest` branch
* Adds a changeset
2021-10-22 15:59:02 -04:00
Caleb Jasik
c41d416752
Add const
so that variable is declared rather than pulled out of the ether ( #1591 )
2021-10-19 12:53:26 -06:00
btea
d503603942
fix typo in astro.js ( #1560 )
2021-10-15 09:25:45 -06:00
github-actions[bot]
b7a4542103
Version Packages ( #1557 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-14 15:13:13 -04:00
Levi
31d0688016
Expose Vue component names for devtools ( #1512 )
...
* Expose name on host component for Vue devtools
* Add changeset
* Update changeset to patch from minor
* [ci] collect stats
* [ci] collect stats
Co-authored-by: leviceccato <leviceccato@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2021-10-14 15:08:07 -04:00
Drew Powers
7e4f91db60
Add Vercel sponsorship logo ( #1555 )
...
* Add Vercel sponsorship logo
Also normalize other logos
* Add Vercel logo to www
* Add logos to docs
2021-10-14 12:25:46 -06:00
github-actions[bot]
5ac51bae3a
Version Packages ( #1537 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-12 13:27:06 -04:00
Caleb Jasik
6813106a5d
Add value to staticPaths cache before we await it ( #1498 )
...
* Add value to staticPaths cache before we await it
Fixes https://github.com/snowpackjs/astro/issues/1454
* Update `cache.staticPaths` to store Promises rather than immediate values
2021-10-12 13:04:22 -04:00
github-actions[bot]
0ff5c87a27
Version Packages ( #1527 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-11 08:33:37 -04:00
matthewp
b1b564d03d
[ci] yarn format
2021-10-11 12:13:35 +00:00
Matthew Phillips
dbd2f5076b
Adds the astro check command ( #1410 )
...
* Adds the `astro check` command.
This adds `astro check`, which runs type checking (and general error
checking) on Astro projects.
* print the number of errors found
* Adds a changeset
* Add cli docs
* Upgrade the language server version
* Prevent linting the console.logs
2021-10-11 08:12:15 -04:00
Rafid Muhymin Wafi
bbff0a8a2b
Fiixed netlify and sentry urls ( #1505 )
2021-10-09 17:19:52 -05:00
matthewp
fb0ec06239
[ci] yarn format
2021-10-05 16:22:58 +00:00
Ryan Carniato
f8d1a35ace
Add hydration to Solid renderer ( #1479 )
...
* feat: add hydration to Solid renderer
* fix: intersection observer, move script to the end
2021-10-05 12:20:51 -04:00
github-actions[bot]
b5f1bd46ff
Version Packages ( #1472 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-01 13:36:02 -04:00
Merrick Christensen
0eeb25348e
switch from rm to unlink in order to preserve node 12 compatability in astro-create ( #1468 )
...
* switch from rm to unlink in order to preserve node 12 compatability in astro-create
* add changeset
2021-10-01 13:18:40 -04:00
Matthew Phillips
756e3769d3
Support PureComponent in the react renderer ( #1467 )
...
* Support PureComponent in the react renderer
* Adds a changeset
2021-10-01 11:25:17 -04:00
Matthew Phillips
82672e5c47
Updated srcset checking ( #1462 )
...
* Updated srcset checking
Improved functionality of `srcset` checking as original failed when URL contained a comma ( `,` ).
Utilised function from [srcset-parse](https://github.com/molefrog/srcset-parse ) as couldn't find a way to integrate the package.
Added test to current assets test rather than create a separate one.
* Use srcset-parse
Co-authored-by: Coel May <82788995+coelmay@users.noreply.github.com>
2021-09-30 09:58:20 -04:00
Joshua Byrd
ee27583111
Do we really need a massive 5MB+ banner that takes multiple seconds to load when people open the readme? ( #1459 )
...
* 5MB PNG > 789K JPG
* Different RAW address
* Revert "Different RAW address"
This reverts commit db47b99211
.
2021-09-30 00:28:53 -07:00
github-actions[bot]
b78a58ed33
Version Packages ( #1451 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-28 15:34:16 -04:00
Michael Stramel
806dcd8d8d
Update lit version to v2 ( #1445 )
...
* Update lit version to v2
* Create weak-sheep-clap.md
* Re-assign window.global to window to retain existing functionality
2021-09-28 14:59:28 -04:00
github-actions[bot]
bf6357a233
Version Packages ( #1442 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-28 09:10:41 -04:00
AsyncBanana
3083563506
Fixed props shadowing ( #1433 )
...
* Fixed props shadowing
* Added changeset
* Added prop shadowing test
2021-09-27 11:52:57 -04:00
tony-sull
f061a2b54f
[ci] yarn format
2021-09-24 15:59:26 +00:00
Tero Lindeman
0fca1fbcab
Write pages serially and close file handle ( #1395 )
2021-09-24 17:58:08 +02:00
Drew Powers
939d5c3ae6
Add sponsorship logos ( #1371 )
2021-09-16 22:24:27 -06:00
FredKSchott
d895d3c079
[ci] yarn format
2021-09-16 20:07:52 +00:00
Fred K. Schott
291f2ef537
fix bad benchmark ( #1383 )
2021-09-16 13:06:43 -07:00
github-actions[bot]
ad2962fdac
Version Packages ( #1377 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-15 12:36:26 -04:00
Fred K. Schott
3a0dcbe9b1
Update stats.ts ( #1376 )
2021-09-15 08:53:26 -07:00
Jonathan Neal
98d785af1d
Expose slots to components ( #1368 )
...
* Expose slots to components via Astro.slots
* test: Add Astro.slots API tests
* docs: Document Astro.slots API
* docs: Duplicate Astro.slots documentation to other api-reference markdown
* Update proposal to use booleans, based upon RFC feedback
* update implementation & tests based on request
* changeset
2021-09-15 11:27:59 -04:00
FredKSchott
6623950fbc
[ci] yarn format
2021-09-15 00:24:07 +00:00
github-actions[bot]
3d9b665265
Version Packages ( #1358 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-14 17:22:50 -07:00
kelvinsjk
09b2f0e470
Fix passing Markdown content through props ( #1259 ) ( #1343 )
...
Co-authored-by: Kelvin Soh <kelvinsoh@pop-os.localdomain>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-09-14 17:03:45 -07:00
Caleb Jasik
9cf2df81db
Improve stats logging to use pretty-bytes
so that 20B doesn't get output as 0kB, which is accurate, but confusing ( #1329 )
2021-09-14 16:50:00 -07:00
FredKSchott
6ac2568ae3
[ci] yarn format
2021-09-14 23:49:37 +00:00
(none)
d771dad669
Merge "Remove check for referenced files" ( #1196 )
...
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-09-14 16:47:54 -07:00
Drew Powers
97d37f8f49
Docs: Add READMEs for renderers ( #1351 )
...
* Add README stub for renderers
* Add renderer READMEs
2021-09-14 16:26:23 -07:00
FredKSchott
b5623ada16
[ci] yarn format
2021-09-13 18:12:51 +00:00
Bartek Igielski
dd92871fd7
Prevent removing CSS preloads during bundling ( #1326 )
...
* Prevent removing nodes, becasue styles preloading was detected earlier
* Add separate deduping for preloads and cover it with tests.
* Create quiet-horses-turn.md
* Test merging preload tags
2021-09-10 11:17:17 -06:00
github-actions[bot]
2847ff5382
Version Packages ( #1344 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-09 10:57:16 -07:00
Fred K. Schott
b03f877102
Revert "Version Packages ( #1303 )"
...
This reverts commit 1a88cfde7d
.
2021-09-09 10:53:52 -07:00
github-actions[bot]
1a88cfde7d
Version Packages ( #1303 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-09 10:41:31 -07:00
jasikpark
6fc8202e60
[ci] yarn format
2021-09-07 20:23:50 +00:00
Caleb Jasik
00fd7ca4dc
Fix parsing of an empty literal <pre></pre>
in markdown source ( #1332 )
2021-09-07 15:22:23 -05:00
FredKSchott
b4d1c9bc64
[ci] yarn format
2021-09-06 08:25:23 +00:00
Fred K. Schott
6dc05575a6
scale back the examples page
2021-09-06 01:21:55 -07:00
aFuzzyBear
d321d8366b
Adds examples page
2021-09-06 01:21:39 -07:00
FredKSchott
e516f9c953
[ci] yarn format
2021-09-03 18:07:39 +00:00
Fred K. Schott
e282e8e4ac
Add new <Code> component, to succeed <Prism> ( #1208 )
...
* add code component
* Update packages/astro/components/Debug.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* Update packages/astro/components/Debug.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* fix format in debug component
* remove Debug changes
* add wrap support
* add props docs
* update default theme
Co-authored-by: Peter Singh <drgaud@hotmail.com>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-09-03 11:06:25 -07:00
tony-sull
231020368e
[ci] yarn format
2021-09-03 17:48:25 +00:00
Fred K. Schott
3b4bbdc98d
Format config errors for humans ( #1298 )
...
* format config errors
* fix bad root
2021-09-03 17:47:12 +00:00
Fred K. Schott
ac2c00e99b
fix astro esm-cjs entrypoint ( #1300 )
2021-09-03 17:46:36 +00:00
Caleb Jasik
7cb31c6e01
Import unified types as unified since there is no default export for 'unified'. ( #1296 )
2021-09-03 10:42:20 -07:00
Mani Gandham
7f6c35f636
skip 404.html pages in sitemap generation ( #1287 )
...
* skip 404.html pages in sitemap generation
* update path check for 404
2021-09-01 15:02:11 -07:00
github-actions[bot]
a923268da2
Version Packages ( #1271 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-01 15:58:14 -04:00
Matthew Phillips
231964f084
Add interfaces for built-in components ( #1292 )
...
* Add interfaces for built-in components
* Adds a changeset
2021-09-01 15:49:01 -04:00
Mikkel Tønder
11a6f884be
create-astro: Format console logs and fix message about default renderers ( #1257 )
...
* create-astro: Format console logs and fix message about default renderers
Format the console log statements so the code is easier to read
Add a check to see if the renderers array is empty and only show the message about using the templates default renderers if it isn't
* Add changeset
2021-08-30 14:20:41 -07:00
Fred K. Schott
210fdad42e
fix bad README removal
2021-08-27 11:46:41 -07:00
github-actions[bot]
8d22e4eefe
Version Packages ( #1252 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 14:15:29 -04:00
Matthew Phillips
290f203279
Fix knownEntrypoint warning for Fix __astro_hoisted_scripts.js ( #1251 )
...
* Add new internal module to the knownEntrypoints
* Adds a changeset
2021-08-27 13:49:08 -04:00
github-actions[bot]
3bb97ea328
Version Packages ( #1246 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 10:46:14 -04:00
matthewp
cd684eb95e
[ci] yarn format
2021-08-27 14:45:59 +00:00
Jonathan Neal
5d2ea57841
Remove unused namespace redirection from the astro parser ( #1245 )
...
* nit: remove unused namespace checking from astro parser
* test: add tests for namespaced attributes, including one removed attribute
* add changeset
2021-08-27 10:43:58 -04:00
matthewp
5cc7947a58
[ci] yarn format
2021-08-27 14:13:41 +00:00
Matthew Phillips
788c769d78
Implementation of hoisted scripts ( #1178 )
...
* Implementation of hoisted scripts
* Use the facade id
* Adds docs on hoisted scripts
* Don't try to run rollup if there are no hoisted scripts
* Handle scripts possibly being undefined (client:only)
* Get rid of changes to the portfolio example
* Adds a changeset
* Remove a todo
* Fix lint errors
* Rename TransformResult property to hoistedScripts
* Move Hoisted Scripts docs to astro-components page
* Fixes lint errors
* Fix path join for windows
2021-08-27 10:12:27 -04:00
Fred K. Schott
fdd701dd88
Merge branch 'okikio/main' ( #1111 )
2021-08-26 15:04:44 -07:00
github-actions[bot]
84c18d3030
Version Packages ( #1239 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 15:20:38 -04:00
Okiki
b7ada11ddb
WIP update examples/docs/
2021-08-26 12:15:33 -07:00
Fred K. Schott
ff92be637f
add "astro preview" command ( #1226 )
...
* add "astro preview" command
* Update green-buttons-reflect.md
* Update cli-reference.md
2021-08-26 12:08:52 -07:00
github-actions[bot]
c83d481733
Version Packages ( #1228 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 12:56:36 -04:00
Mark Howard
ba4eefdd09
updated comment 'threw' to 'through' ( #1235 )
2021-08-25 22:24:31 -05:00
Fred K. Schott
affcd04f0f
stop building, bundling, and transforming public/ files ( #1210 )
...
* stop bundling public/ files
* update www and examples
2021-08-25 11:51:04 -07:00
Robin Métral
397d8f3d84
Upgrade unified deps and improve unified plugins types ( #1200 )
...
* Upgrade @astrojs/markdown-support deps and update types
* Add changeset
* Update changeset
* Switch astro-markdown-plugins example to use rehype-autolink-headings
Usage of remark-autolink-headings is discouraged in favor of the rehype counterpart: https://github.com/remarkjs/remark-autolink-headings\#remark-autolink-headings
* Add stricter types for unified plugins
This includes a few suggestions from a code review:
- use vfile.toString instead of vfile.value.toString
- refactor plugins to follow unified best practices instead of returning functions that return a plugin
- use any instead of any[] for plugin options types
* Narrow down types to more specific hast or mdast typings
2021-08-25 08:17:45 -04:00
github-actions[bot]
a4a7685be1
Version Packages ( #1217 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-24 16:11:51 -04:00
matthewp
749617b2fb
[ci] yarn format
2021-08-24 19:51:59 +00:00
Mihkel Eidast
44fb8ebcc4
Fix linter errors and warnings ( #1218 )
...
* fix lint issues, enable lint in ci
* add changeset
2021-08-24 15:50:24 -04:00
Matthew Phillips
9482fadeb8
Fix resolution of Astro.resolve in nested components ( #1213 )
...
* Fix resolution of Astro.resolve in nested components
Components were previously tested, however nested folders were not.
* Adds a changeset
2021-08-24 13:38:07 -04:00
github-actions[bot]
582220c8a1
Version Packages ( #1206 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 14:18:18 -07:00
FredKSchott
69272dc8d1
[ci] yarn format
2021-08-23 21:08:16 +00:00
Fred K. Schott
f9cd031033
Add zod schema validation ( #1198 )
...
* add zod schema validation
* update pageUrlFormat config name
* add trailing slash support to config
2021-08-23 14:07:03 -07:00
Caleb Jasik
efb41f22c3
Add Astro <Debug/>
component ( #675 )
...
* Initial MVP Debug component
* Document the prettifying of the input
* Just make `<Debug/>` a wrapper around `<Prism/>` lol
* feat: add details/summary debug component
* chore: remove Props (unused)
* fix: prefer `div` to semantic elements
* chore: format
* fix: prop-drill `class` into components
* fix: ensure `astro/components` are evaluated lazily
* feat(debug): export debug component from `astro/debug`
* fix: minimal example local snowpack config
* docs: add debugging docs
* chore: add changeset
* docs: update debug docs
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-08-23 16:43:22 -04:00
github-actions[bot]
3963cef963
Version Packages ( #1181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 15:59:55 -04:00
Fred K. Schott
166c9ed6bd
fix issue with multiple getStaticPaths calls during build ( #1194 )
2021-08-23 15:44:49 -04:00
Fred K. Schott
c06da5dd78
Add trailingSlash & pageDirectoryUrl config options ( #1197 )
2021-08-23 12:05:01 -07:00
Tushar Sadhwani
bebe6a425c
Remove whitespace ( #1176 )
2021-08-20 11:05:22 -07:00
Fred K. Schott
29b7e746e6
add a real-world check for ESM<>CJS named export support ( #1175 )
2021-08-20 11:04:55 -07:00
Tony Sullivan
1e0e2f41cd
including the language-
class on Prism's <pre>
element ( #1180 )
...
* including the `language-` class on Prism's `<pre>` element
* adding changeset
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-08-20 11:01:42 -07:00
github-actions[bot]
0c314791c4
Version Packages ( #1163 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-19 18:03:07 -06:00
Jonathan Neal
e66872125d
add dev script, switch documentation from advising start to dev script ( #1141 )
2021-08-18 22:07:08 -07:00
Drew Powers
ece0953aed
Fix :global() scoping ( #1162 )
...
* Fix :global() scoping
#1155
* Improve :global() scoping rules further
2021-08-18 20:46:47 -06:00
github-actions[bot]
986bed8ca4
Version Packages ( #1150 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-18 09:24:09 -07:00
Fred K. Schott
c4e9ce3b14
fix too strict "relative link" errors in docs website ( #1149 )
2021-08-18 09:05:50 -07:00
github-actions[bot]
66a6c5b06f
Version Packages (next) ( #1129 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-17 22:34:47 -07:00
matthewp
71eca0e338
[ci] yarn format
2021-08-17 17:46:25 +00:00
Tony Sullivan
1971ab3c60
Add support for client:only
hydrator ( #935 )
...
* Adding support for client:only hydration
* Adding documentation for client:only
* Adding changeset
* Updating the test to use a browser-only API
* Adding a browser-specific import script, this reproduces the issue where client:only imports must be removed
* typo fix
* removing mispelled test component
* WIP: delaying inclusion of component imports until the hydration method is known
* WIP: tweaking the test to use window instead of document
* When only one renderer is included, use that for client:only hydration
* temporary test script snuck into the last commit
* WIP: adding check for a client:only renderer hint
* refactor: Remove client:only components instead of delaying all component import statements
* Updating the changeset and docs for the renderer hint
* refactor: pull client:only render matching out to it's own function
* Updating renderer hinting to match full name, with shorthand for internal renderers
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-08-17 13:44:56 -04:00
Drew Powers
1f13e40316
Fix body scoping ( #1130 )
...
Fixes #1074
2021-08-16 17:47:09 -06:00
matthewp
24a40bee63
[ci] yarn format
2021-08-16 20:44:46 +00:00
Matthew Phillips
78b5bde14c
Astro.resolve ( #1085 )
...
* add: Astro.resolve
* Add docs and tests for Astro.resolve
* Add warnings when using string literals
* Prevent windows errors
* Adds a changeset
* Use the astro logger to log the warning
* Use the .js extension
* Dont warn for data urls
* Rename nonRelative and better match
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-16 16:43:06 -04:00
Jonathan Neal
d68ac85e7f
Add minimal template ( #1090 )
2021-08-15 14:13:58 -05:00
Jonathan Neal
0a04c69dbb
Fix left curly bracket formatting ( #1094 )
...
* Fix curly braces
* Add tests
* chore: formatting
* sstyle: update fix to be more explicit and ireduce chance of false positive
* style: use suggestions
Co-authored-by: mmarkelov <maks-markel@mail.ru>
2021-08-12 09:51:37 -07:00
github-actions[bot]
43e17e59da
Version Packages (next) ( #1092 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-12 01:39:34 -07:00
Fred K. Schott
dcb97b0223
make routing fixes from discord feedback ( #1091 )
2021-08-12 01:35:28 -07:00
github-actions[bot]
2b41db1531
Version Packages (next) ( #1089 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 16:30:24 -07:00
Fred K. Schott
a201dde5aa
Revert "Add PORT env var to be used ( #952 )"
...
This reverts commit 939b9d01a4
.
2021-08-11 16:23:20 -07:00
github-actions[bot]
10d6fa4bca
Version Packages (next) ( #1087 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:50:14 -07:00
FredKSchott
b63960f514
[ci] yarn format
2021-08-11 22:05:17 +00:00
Fred K. Schott
0f0cc2b9d8
Add file-based routing /w dynamic paths ( #1010 )
...
* wip: add file-based routing
* add pagination tests and nested pagination support
2021-08-11 15:04:09 -07:00
github-actions[bot]
b54c01bf66
Version Packages ( #1064 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:01:00 -07:00
Michael Stramel
939b9d01a4
Add PORT env var to be used ( #952 )
...
* Add PORT env var to be used
* Format
* Create few-carpets-sing.md
* Update few-carpets-sing.md
2021-08-11 14:57:05 -07:00
Barrabin ⚑
2321b577ee
Fixes #1033 - Markdown with applied scopedStyles doesn't run Prism syntax highlight ( #1037 )
...
* Fixes #1033 - Markdown with applied scopedStyles doesn't run Prism syntax highlight
* Removed the incorrect lang attribute to indicate language syntax
* Fixed UT for scopedStyles + markdown
* Update packages/astro/test/astro-markdown.test.js
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* Added changeset for PR #1037
* Update curly-queens-pay.md
Changing from a `minor` release to a `patch` since we're pre-v1.0.0! This
Co-authored-by: Vitor Calejuri <vitor.cajuleri@gmail.com>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-08-11 16:52:27 -05:00
FredKSchott
de3af1f4b7
[ci] yarn format
2021-08-10 16:52:31 +00:00
Fred K. Schott
1350d57997
Do not observe visible hydrate components more than once ( #1015 )
...
* add support for truely unique astro root uids
* update test to test uniqueness
2021-08-10 09:51:19 -07:00
Bartek Igielski
1339d5e36b
Bump Vue version to latest stable ( #1075 )
...
* Bump Vue version to latest stable
* Create wild-suits-raise.md
2021-08-10 09:02:24 -04:00
natemoo-re
c7c073603f
[ci] yarn format
2021-08-09 21:37:23 +00:00
Mihkel Eidast
618ea3a8ea
Fix nested client load directive ( #1030 )
...
* escape </script> in string literals
* add changeset
2021-08-09 16:36:12 -05:00
Hamed Madani
cb43ca440b
Ignore embedded image as page dependency during build ( #1053 )
2021-08-08 11:04:02 -07:00
Drew Powers
3db90ea403
Update files ( #1048 )
2021-08-06 17:35:07 -06:00
github-actions[bot]
3eb5a0f61f
Version Packages ( #1036 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-05 13:57:21 -07:00
Fred K. Schott
8cf0e65a8b
Revert "Version Packages ( #1011 )"
...
This reverts commit 7f14ea6e38
.
2021-08-05 13:54:23 -07:00
github-actions[bot]
7f14ea6e38
Version Packages ( #1011 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-05 13:42:36 -07:00
FredKSchott
2ad2ccdc50
[ci] yarn format
2021-08-05 18:27:51 +00:00
Fred K. Schott
6ec7968d12
refactor bin entrypoint, add stackblitz support ( #1029 )
2021-08-05 11:24:36 -07:00
Matthew Phillips
4bbf113050
Handle layouts and head injection ( #1007 )
...
* Revert "Revert "Fixes duplicate head content (#995 )" (#1001 )"
This reverts commit b1959f0fed
.
* Handle markdown layouts
* Adding a changeset
2021-08-04 13:53:56 -04:00
Jonathan Neal
c7aca2c9b2
Reduce meta viewport tag ( #1006 )
2021-08-04 08:30:58 -04:00
github-actions[bot]
ba70f5c937
Version Packages ( #1002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-03 17:03:28 -04:00
Matthew Phillips
b1959f0fed
Revert "Fixes duplicate head content ( #995 )" ( #1001 )
...
* Revert "Fixes duplicate head content (#995 )"
This reverts commit 268a36f399
.
* Changeset
2021-08-03 16:57:04 -04:00
github-actions[bot]
57b736211a
Version Packages ( #999 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-03 15:17:37 -04:00
Fred K. Schott
f7e86150e0
fix preact render to update a component on first render ( #966 )
...
* fix preact render to modify server-rendered code
* add changeset
2021-08-03 14:00:49 -04:00
matthewp
260d03b1b6
[ci] yarn format
2021-08-03 17:35:43 +00:00
Matthew Phillips
268a36f399
Fixes duplicate head content ( #995 )
...
* Completely fixes head/doctype stuff
* Remove the .only
* Add a comma following props
* Inject head stuff if there are both head and body elements in the component
* Remove extra debugger;
2021-08-03 13:34:30 -04:00
matthewp
010bf72958
[ci] yarn format
2021-08-03 17:14:12 +00:00
Matthew Phillips
39df7952a5
Make fetch available in all component types ( #949 )
...
* Make fetch available in all component types
This makes `globalThis.fetch` available in all components.
* Adds a changeset
2021-08-03 13:13:00 -04:00
github-actions[bot]
9cf7ca1029
Version Packages ( #951 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-03 10:49:20 -04:00
tobi-or-not-tobi
418bc1d91c
Improve code sample for lit integration ( #991 )
...
Align the lit component with the astro import and usage of it.
2021-08-03 08:18:11 -04:00
Maarten Van Hoof
27672096f5
fix: Exclude remote srcset URLs ( #986 )
...
* fix: Exclude remote srcset URLs
Fixed #985
* chore: add changeset for 'Exclude remote srcset URLs'
2021-08-03 08:17:24 -04:00
Matthew Phillips
0334956030
Make Astro.request available to all astro components ( #960 )
...
* Make Astro.request available to all astro components
* Adds a changeset
2021-08-03 08:17:03 -04:00
mash-graz
cf4c97cf54
forced degit template extraction in case of non empty installation directory ( #937 )
...
* revert recursive file removal routine
* forced degit overwrite without previous file removal
* add changeset
2021-07-30 12:44:24 -04:00
github-actions[bot]
001594faa0
Version Packages ( #940 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-30 10:19:00 -04:00
matthewp
fadb652b95
[ci] yarn format
2021-07-30 12:34:43 +00:00
Bartek Igielski
a1491cc659
Fix Vue components nesting and add tests ( #924 )
...
* Allow @vue/server-renderer to be processed
* Bump @vue/server-renderer version
* Create twenty-coats-talk.md
* Bump Vue packages version to get ESM builds
* Add Vue components tests
* Create shaggy-pugs-raise.md
* Delete shaggy-pugs-raise.md
2021-07-30 08:33:31 -04:00
Matthew Phillips
cd2b5df49c
Allow triple-dashes in markdown ( #938 )
...
* Allow triple-dashes in markdown
* Changeset
* Remove the .only
2021-07-29 16:20:49 -04:00
github-actions[bot]
3f167c13cc
Version Packages ( #923 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-28 16:03:39 -04:00
Matthew Phillips
0d061265b2
Move the rest of the Markdown missing dependencies
2021-07-28 15:56:07 -04:00
github-actions[bot]
5387b5256c
Version Packages ( #922 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-28 15:49:06 -04:00
Matthew Phillips
7015356971
Move rehype-raw to a dependency ( #920 )
...
* Move rehype-raw to a dependency
* Adds a changeset
2021-07-28 15:44:55 -04:00
github-actions[bot]
b4f7888be3
Version Packages ( #912 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-28 14:37:29 -04:00
matthewp
73c28a36e5
[ci] yarn format
2021-07-28 18:32:50 +00:00
Fred K. Schott
829d5baafe
fix tsx+jsx error ( #916 )
...
* fix tsx+jsx error
* throw error if no build can be returned
2021-07-28 14:31:50 -04:00
matthewp
189098b6e5
[ci] yarn format
2021-07-28 18:08:27 +00:00
Matthew Phillips
23b0d2d345
Add support for building srcset on images ( #911 )
...
* Add support for building srcset on images
* Added a changeset
2021-07-28 14:07:28 -04:00
Bartek Igielski
fdb1c15d75
Revert #858 ( #913 )
...
* Revert #858
* Create quick-houses-sip.md
2021-07-28 14:05:10 -04:00
Maksim Markelov
70f0a09d30
Add remark-slug ( #862 )
...
* Add remark-slug
* Add remark-slug in documentation
* Add changeset
2021-07-28 12:33:19 -04:00
github-actions[bot]
239c7b1668
Version Packages ( #887 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-27 16:10:47 -04:00
Erik
6c52c92780
Add warning when encountering 'zlib: unexpected end of file' message ( #655 ) ( #889 )
...
* Add warning when encountering 'zlib: unexpected end of file' message
* Add missing import for 'yellow'
* Add changeset
* Changing to a patch change since we are pre 1.0
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2021-07-27 16:03:53 -04:00
Matthew Phillips
d8cebb0132
Prevent client: attributes from being passed to components ( #891 )
...
* Prevent client: attributes from being passed to components
* Adds a changeset
2021-07-27 16:01:15 -04:00
matthewp
ed0ed49df6
[ci] yarn format
2021-07-27 18:51:57 +00:00
Matthew Phillips
e90615f940
Add internals to knownEntrypoints ( #885 )
...
* Add internals to knownEntrypoints
* Added a changeset
* Add prismjs to knownentrypoints
2021-07-27 14:50:47 -04:00
Matthew Phillips
d1b0028b1a
Update dependencies for create-astro
2021-07-27 12:54:53 -04:00
github-actions[bot]
509c69627b
Version Packages ( #882 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-27 12:41:42 -04:00
github-actions[bot]
0ed1817d7a
Version Packages (next) ( #865 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-27 09:27:02 -04:00
Rahul Sharma
80d7415807
Added undefined check for spread props ( #832 )
...
* husky setup added
* pre-commit script updated
* Revert "Feat/pre commit"
* spread issue fixed #522
* testcase added
* spread issue fixed #522
* testcase added
2021-07-27 08:56:46 -04:00
Mats
e89a99f342
Fixes bug where Astro can't distinguish between two equal components differing only by props when hydrating ( #846 )
2021-07-27 08:52:17 -04:00
Pablo Berganza
bef5103ae3
Fix renderer-solid
not creating a reactive root ( #848 )
...
* use Solid's render method on the client
* add changeset
* use createComponent
2021-07-27 08:51:20 -04:00
Tc001
b8af49f035
Correctly compile lang="sass" styles
( #857 )
...
* Added sass support
* Combined cases, added check for indentedSyntax
* Corrected changeset
2021-07-27 08:51:03 -04:00
matthewp
23735c53cc
[ci] yarn format
2021-07-26 18:43:29 +00:00
Matthew Phillips
4726e34408
Account for pathnames being part of the site config ( #856 )
...
* Account for pathnames being part of the site config
* Adds a changeset
* Don't toString the site in the test
2021-07-26 14:42:24 -04:00
github-actions[bot]
31c24778aa
Version Packages (next) ( #859 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-26 11:19:41 -04:00
Bartek Igielski
1f7914485c
Exclude @vue/runtime-core from processing to fix Vue SSR for nested components ( #858 )
...
* Exclude @vue/runtime-core from processing to fix Vue SSR for nested components
* Create seven-shoes-stare.md
2021-07-26 11:14:11 -04:00
github-actions[bot]
b863c05ae6
Version Packages (next) ( #845 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-24 16:02:25 -07:00
Maksim Markelov
c969001a34
Add ability to specify site with command line ( #838 )
2021-07-23 20:35:47 -07:00
matthewp
ef9fb1de96
[ci] yarn format
2021-07-23 17:52:47 +00:00
Tony Sullivan
294a656ed9
Introduce <style global>
( #824 )
...
* Adding support for multiple <style> blocks
* Adding support for `<style global>`
* scoping @keyframes should also be skipped for <style global>
* Adding test coverage for muliple style blocks, global blocks, and scoped keyframes
* docs: Updating docs for `<style global>` support
* Adding yarn changeset
* Punctuation fix in styling docs
* docs: Clarifying example use cases given in the docs
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-07-23 13:51:27 -04:00
matthewp
599ad13e31
[ci] yarn format
2021-07-23 17:02:29 +00:00
Matthew Phillips
164489fbb2
Correctly serialize falsey values at top-level of components ( #834 )
...
* Correctly serialize falsey values at top-level of components
* Adding a changeset
2021-07-23 13:00:49 -04:00
Fred K. Schott
d48db7f284
update deps ( #826 )
2021-07-22 15:29:32 -07:00
Nate Moore
af935c1b8d
Fix: JSX renderer "Hello world!" error ( #822 )
...
* fix: remove hello-world error
* chore: add changeset
2021-07-22 12:39:54 -05:00
github-actions[bot]
9af0d85e9e
Version Packages (next) ( #810 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 22:18:43 -05:00
Nate Moore
c82e6beee9
fix: unfound snowpack-plugin-jsx.cjs error ( #809 )
2021-07-21 22:16:23 -05:00
Fred K. Schott
e31e276781
get build-all passing ( #795 )
2021-07-21 17:39:14 -07:00
natemoo-re
5549f28157
[ci] yarn format
2021-07-21 23:36:31 +00:00
Nate Moore
f799b57d6e
Update CHANGELOG.md
2021-07-21 18:35:17 -05:00
natemoo-re
5666bb6514
[ci] yarn format
2021-07-21 23:13:19 +00:00
github-actions[bot]
8f17217e02
Version Packages (next) ( #796 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 18:12:11 -05:00
natemoo-re
561cbee68f
[ci] yarn format
2021-07-21 23:11:40 +00:00
Nate Moore
bd18e14a2c
Expose JSX compilation to renderers ( #588 )
...
* feat: add support for `jsxImportSource`, new JSX transform
* Renderer: add Solid renderer (#667 )
* feat: add support for `jsxImportSource`, new JSX transform
* WIP: solid renderer
* [Renderer] Solid (#656 )
* feat: add support for `jsxImportSource`, new JSX transform
* WIP: solid renderer
* Solid renderer: fix SSR of children, hydration (top level)
Caveat: cannot hydrate children/descendants of hydrated parents
* Fix hydration of fragments
* fix: SyntaxError in React/Preact renderers
* fix: errors in React/Preact renderers
* feat: update react external
* chore: update examples
* chore: delete old changelog
* chore: update astro config
Co-authored-by: Nate Moore <nate@skypack.dev>
* Changing the preact to Solid (#669 )
* chore: use new client:visible syntax
* fix: dev script issue
* chore: cleanup SolidJS example
* docs: update framework example docs
* chore: cleanup framework-multiple example
* fix: remove SolidJS false-positives from Preact renderer
* chore: add changeset
Co-authored-by: eyelidlessness <eyelidlessness@users.noreply.github.com>
Co-authored-by: Abdullah Mzaien <s201540830@kfupm.edu.sa>
* feat(create-astro): add Solid support
* docs: add JSX options to renderer reference
* chore: add changeset for P/React renderers
* fix: move react/server.js to external
* chore: remove brewfile
* Revert "feat: add support for `jsxImportSource`, new JSX transform"
This reverts commit 077c4bfc135c58a85d4ebfca6012e90403694d8d.
* fix: remove `react-dom/server` from `external`
* chore: remove unused dependency
* feat: improve JSX error messages
* Revert "Revert "feat: add support for `jsxImportSource`, new JSX transform""
This reverts commit f6c2896b9ec6430611fc0abae7d586c42aca87e5.
* docs: update jsxImportSource
* feat: improve error message
* feat: improve error logging for JSX renderers
* tests: add jsx-runtime tests
* chore: update snowpack
Co-authored-by: eyelidlessness <eyelidlessness@users.noreply.github.com>
Co-authored-by: Abdullah Mzaien <s201540830@kfupm.edu.sa>
2021-07-21 18:10:03 -05:00
matthewp
91f7c89e77
[ci] yarn format
2021-07-21 16:28:09 +00:00
Matthew Phillips
4a601adbf2
Allow using the Fragment built-in in Astro components ( #793 )
...
* Allow using the Fragment built-in in Astro components
* Adds a changeset
2021-07-21 12:26:52 -04:00
github-actions[bot]
ac64d198e4
Version Packages (next) ( #794 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 08:18:13 -07:00
Fred K. Schott
5f922221ba
Revert "Version Packages (next) ( #692 )"
...
This reverts commit 790bd89ead
.
2021-07-21 08:12:32 -07:00
github-actions[bot]
790bd89ead
Version Packages (next) ( #692 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 07:57:51 -07:00
Matthew Phillips
b85e68a713
Handle custom elements in nested JSX ( #792 )
...
* Handle custom elements in nested JSX
* Adds a changeset
2021-07-21 10:22:39 -04:00
Fred K. Schott
f67e8f5f55
New Collections API ( #703 )
...
* updated createCollection API
* Update examples/portfolio/src/pages/projects.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* Update docs/reference/api-reference.md
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* fix(docs): collection doc typos (#758 )
* keep cleaning up docs and adding tests
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Mark Pinero <markspinero@gmail.com>
2021-07-21 07:11:57 -07:00
Fred K. Schott
fcfc625331
Revert "fix(parser): html entities evaluated ( #738 )"
...
This reverts commit 268186c27d
.
2021-07-20 13:37:18 -07:00
FredKSchott
b9c5b7e980
[ci] yarn format
2021-07-20 19:23:50 +00:00
Fred K. Schott
7ccfc7c03c
move throws to assertions ( #763 )
2021-07-20 12:22:29 -07:00
Carter Snook
268186c27d
fix(parser): html entities evaluated ( #738 )
2021-07-20 12:18:42 -07:00
FredKSchott
4e6d38aa76
[ci] yarn format
2021-07-20 04:40:06 +00:00
Maksim Markelov
0e761b9bdf
Add ability to specify hostname in devOptions ( #733 )
...
* Add ability to specify hostname in devOptions
* Update packages/astro/test/config-hostname.test.js
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-07-19 21:38:55 -07:00
FredKSchott
50f82e1a53
[ci] yarn format
2021-07-20 04:07:49 +00:00
FredKSchott
15cd6c1708
[ci] yarn format
2021-07-20 01:56:54 +00:00
Bryan Pan
d45431d246
fix: add force to rm script in create-astro ( #729 )
...
* fix: add force to rm script in create-astro
* add changeset
* edit overwrite prompt
* rm cannot remove '.' or '..' -- creating a helper function to empty the directory
* delete symlinks
* comments
2021-07-19 18:55:35 -07:00
FredKSchott
3153306953
[ci] yarn format
2021-07-20 01:42:33 +00:00
Vl
40c882a253
Fix url to find page with "index" at the end file name ( #722 ) ( #736 )
...
Co-authored-by: Neverage <vl>
2021-07-19 18:41:09 -07:00
Fred K. Schott
f4e0818b3f
update changelog for patch release
2021-07-19 18:34:31 -07:00
FredKSchott
ed83424fdb
[ci] yarn format
2021-07-20 01:24:59 +00:00
Fred K. Schott
a7e66666e4
tsconfig fix ( #752 )
2021-07-19 18:23:39 -07:00
Carter Snook
b8a90b1e7d
feat(parser): remove trim utils ( #728 )
2021-07-17 15:39:11 -04:00
Caleb Jasik
6d06fce6d2
Update docs in compiler messages ( #710 )
...
* `github.com/snowpackjs/astro/blob/main/docs/*.md` -> `docs.astro.build/*/`
* convert links to docs site links
* Fix broken links that didn't work w/ the regex.
* Add changeset
* Delete five-weeks-destroy.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-07-16 07:01:31 -04:00
Fred K. Schott
d7a8a8c4e2
Update README.md
2021-07-15 15:38:33 -04:00
Fred K. Schott
af358ecee1
Update README.md
2021-07-15 15:37:59 -04:00
Fred K. Schott
e146969571
Update README.md
2021-07-15 15:36:34 -04:00
Fred K. Schott
f412aedd4c
Update README.md
2021-07-15 15:36:19 -04:00
Fred K. Schott
efa8b3b421
Update README.md
2021-07-15 15:35:56 -04:00
Fred K. Schott
20a213699b
Update README.md
2021-07-15 15:35:21 -04:00
Mihkel Eidast
fb8bf7ec43
select random ports if defaults are taken ( #695 )
...
* select random port if default ports are taken
* add changeset
2021-07-14 16:00:21 -05:00
FredKSchott
5814f2faca
[ci] yarn format
2021-07-14 18:16:46 +00:00
Fred K. Schott
007c22065d
move Astro.fetchContent to runtime API ( #652 )
2021-07-14 14:15:36 -04:00
github-actions[bot]
8e87d5da4c
Version Packages (next) ( #678 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-13 11:21:58 -04:00
Matthew Phillips
e3182c7670
Add missing dependency ( #676 )
...
* Add missing dependency
* Adds a changset
2021-07-13 11:10:31 -04:00
github-actions[bot]
a22a601e9f
Version Packages (next) ( #663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-13 08:31:28 -04:00
matthewp
59f6792b00
[ci] yarn format
2021-07-13 12:28:50 +00:00
Matthew Phillips
48851c9d25
Adds support for a Lit renderer ( #665 )
...
* Adds support for a Lit renderer
This adds `@astrojs/renderer-lit`. An experimental Lit renderer.
* Removed cached submodule, mistake
* Prevent globals clobbering
* Add docs on globals
2021-07-13 08:27:40 -04:00
Nate Moore
7583a8b42a
Update build script to avoid bundling ( #304 )
...
* fix: simplify astro-scripts build
* fix: remove source-map-support, add missing `.js` extensions
* refactor: use `module` for `@astrojs/markdown-support`
* fix: missing `.js` extension
* fix: missed @astrojs/parser
* fix: remove old file
* fix: merge conflict
* fix: CJS weirdness
2021-07-12 17:01:33 -05:00
Ryan Christian
9859f53903
Docs: Correcting minor typo in ReadMe ( #666 )
...
* docs: Correcting minor typo in ReadMe
* docs: Adding changeset
2021-07-12 15:30:00 -05:00
matthewp
ea7ef71a6e
[ci] yarn format
2021-07-12 20:28:13 +00:00
Matthew Phillips
0340b0f0b1
Adds support for client:media hydrator ( #664 )
...
* Adds support for client:media hydrator
* Include a changeset
* Pass in undefined when not hydrating
2021-07-12 16:27:08 -04:00
natemoo-re
7aa8d4719f
[ci] yarn format
2021-07-12 18:08:45 +00:00
Nate Moore
8f4562afbe
Add support for named slots ( #661 )
...
* feat: support named slots, slot fallback content
* docs: document slots
* chore: add changeset
* fix: build errors
* chore: prefer `patch` version
2021-07-12 13:07:39 -05:00
Matthew Phillips
f62973b5ca
Upgrade to snowpack@3.8.0 ( #621 )
...
* Upgrade to snowpack@3.8.0
* Try with 3.8.1-pre.0
* Newest yarn lock
* Add postcss plugin and autoprefixer to the root
* Update the yarn lock
* Prevent typescript recursion
* Use snowpack@3.8.1
2021-07-12 13:59:11 -04:00
github-actions[bot]
23dcc649fe
Version Packages ( #646 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-12 11:19:29 -04:00
Johan Stenehall
1b73f95806
Only display notice if needed ( #659 )
2021-07-12 09:25:14 -04:00
natemoo-re
d46746c34f
[ci] yarn format
2021-07-09 22:04:00 +00:00
Nate Moore
5077ff2e11
feat: improve handling of undefined components ( #650 )
2021-07-09 17:02:39 -05:00
Nate Moore
fb78b76cc6
Improve error handling in unsupported node versions ( #649 )
...
* feat: improve error handling for unsupported node versions
* chore: add changeset
2021-07-09 14:29:51 -05:00
natemoo-re
924369b502
[ci] yarn format
2021-07-09 14:47:26 +00:00
Nate Moore
d93f768c8c
Fix injection behavior for pages which contain no elements ( #638 )
...
* chore: add changeset
* fix(#605 ): inject HMR/styles even when page includes no elements
* chore: update test description
2021-07-09 09:46:19 -05:00
matthewp
a9f2f6f6f9
[ci] yarn format
2021-07-09 13:41:50 +00:00
Matthew Phillips
44a69f7dcb
Protect again no metadata being passed ( #644 )
...
If using Astro <= 0.17.0 there is no `metadata` being passed. Even though no one should be using that version with this, adding some extra protection just in case.
2021-07-09 09:40:42 -04:00
github-actions[bot]
e70d9508d9
Version Packages ( #639 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-09 09:32:15 -04:00
matthewp
00cdbc4a46
[ci] yarn format
2021-07-09 13:01:57 +00:00
Matthew Phillips
1e01251454
Use correct React rendering API or hydration ( #636 )
...
* Use correct React rendering API or hydration
* Add changeset
2021-07-09 09:00:32 -04:00
natemoo-re
0af70d68c2
[ci] yarn format
2021-07-08 21:48:26 +00:00
Nate Moore
42a6acee28
Add support for components defined in frontmatter ( #637 )
...
* fix: add support for components defined in frontmatter
* chore: add changeset
* test: update test to match example use case
2021-07-08 16:47:23 -05:00
github-actions[bot]
958ca11e7e
Version Packages ( #634 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-08 14:40:42 -04:00
Matthew Phillips
5570bf7958
Use new client:visible syntax in create-astro ( #633 )
2021-07-08 14:31:05 -04:00
github-actions[bot]
b2428b3999
Version Packages ( #632 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-08 14:14:55 -04:00
matthewp
c0d4e8430f
[ci] yarn format
2021-07-08 18:09:16 +00:00
Tony Sullivan
0a7b6deaec
Move hydration directives to special attributes ( #618 )
...
* feat: ♻️ updating hydration to work with the directive syntax
* test: ✅ Updating tests for the hydration directive syntax
* refactor: Updating example projects for the hydration directive syntax
* test: ✅ Found a test fixture still needing an update to the hydration directive syntax
* style: Prettier strikes again! Reverting code formatting changes
* refactor: ♻️ moving directive matching to a Set
* refactor: Updating syntax to `client:load`
* refactor: ♻️ Simplifying the `client:` directive match
Per PR feedback from @matthewp
* chore: errant console.warn() snuck into the last commit
* feat: 🔊 Adding a super fancy build warning to update to the directive syntax
* refactor: ♻️ Removing unnecessary checks when matching supported hydration directives
`val` isn't being used for now, but leaving it in the attr destructuring as a reminder since it'll be needed for `client:media`
* test: ✅ Including the original hydration syntax in a test to make sure it builds
* style: 📝 Adding a comment to make it clear why the old hydration syntax is included in a the test markup
* fix: 🐛 updating `head` logic to recognize hydration directive syntax
* docs: Adding changeset
* refactor: 🔥 Removing unnecessary `!hasComponents` check
* docs: 📝 Adding more detail to the changset
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-07-08 14:07:56 -04:00
github-actions[bot]
2d1998647c
Version Packages ( #626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-07 20:34:17 -04:00
Matthew Phillips
5d1ff62c79
Pin to snowpack 3.7.1 ( #625 )
...
* Pin to snowpack 3.7.1
Issues reported on discord
* Add a changeset
2021-07-07 20:31:03 -04:00
github-actions[bot]
97d5a2ba18
Version Packages ( #622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-07 16:36:13 -05:00
natemoo-re
8e01a3c463
[ci] yarn format
2021-07-07 21:32:45 +00:00
Nate Moore
ff89a6a7a6
fix: make create-astro component injection less brittle ( #623 )
2021-07-07 16:31:42 -05:00
natemoo-re
1bbe98ae54
[ci] yarn format
2021-07-07 20:10:09 +00:00
Nate Moore
20b4a600f5
fix: do not override snowpack alias ( #610 )
2021-07-07 14:53:00 -05:00
Nate Moore
5d5d67c8f9
Add framework-specific prompt and setup to create-astro
( #620 )
...
* feat(create-astro): add framework-specific prompt and setup
* chore: normalize example `astro.config.mjs` files
2021-07-07 14:52:44 -05:00
Caleb Jasik
42a1fd7c16
Add the cli flag --silent
to astro which sets astro and snowpack logging to output nothing ( #613 )
2021-07-07 14:51:54 -05:00
github-actions[bot]
e7be675685
Version Packages ( #609 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-06 15:31:12 -04:00
Matthew Phillips
d8ceff5fac
Implements templates from external repos ( #603 )
...
* Implements templates from external repos
* Adds a changeset
2021-07-06 15:14:22 -04:00
github-actions[bot]
2ab625bee8
Version Packages ( #602 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 16:30:52 -04:00
Matthew Phillips
2d3e369da7
Don't alias builtins if polyfillNode is used ( #601 )
...
* Don't alias builtins if polyfillNode is used
* Add the changeset
* Make test be OS agnostic
2021-07-01 16:22:47 -04:00
github-actions[bot]
816797e350
Version Packages ( #597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 15:06:18 -05:00
Matthew Phillips
4b89f4ed08
Allow Preact components to return an empty Fragment ( #599 )
2021-07-01 14:30:48 -05:00
Nate Moore
f83407e09a
Expose content.astro.html
to Astro.fetchContent
( #583 )
...
* feat: expose `content.astro.html` to Astro.fetchContent
* docs: add `astro.html` note to docs
2021-07-01 12:07:26 -05:00
Pavel Mineev
d3969436dc
Remark and rehype plugins ( #562 )
...
* remark plugins
* remove unused dependency
* enable codeblocks
* backward compatibility with remark-code-titles
* add support for rehype plugins
* add proper types for plugins
* fixes after review
- connect plugins by name
- make plugins configurable
- connect gfm and footnotes if no plugins provided from config
- add more plugins to example
* update and rename example
* add documentation for markdown plugins
* chore: rename with-markdown-plugins example
* chore: restructure dependencies
* feat: add back smartypants, fix mdx expressions
* chore: remove log
* test: add markdown plugin tests
* chore: add changeset
* docs: update markdown doc
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-07-01 11:55:22 -05:00
github-actions[bot]
e773771b91
Version Packages ( #596 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 10:57:09 -04:00
Matthew Phillips
fd80381db2
Adds hydrationPolyfills config for renderers ( #594 )
...
Some renderers, such as Lit, need special polyfills only for hydration. We have the `polyfills` array, but that is intended for polyfills that always need to run. This adds a second type hydrationPolyfills that only run on elements that are `:load`, `:idle`, etc.
2021-07-01 10:42:56 -04:00
github-actions[bot]
0de30ef01a
Version Packages ( #593 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 08:45:35 -04:00
Matthew Phillips
6a660f1b08
Implements low-level custom element support ( #587 )
...
* Implements low-level custom element support
* Changes based on self review
* Adds a changeset
* Polyfills are added even when not hydrating
* Remove hydrationMethod option
Punting on this idea until it's really needed.
2021-07-01 08:42:07 -04:00
github-actions[bot]
81ea010906
Version Packages ( #589 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-30 10:03:52 -04:00
DawnOfMidnight
66d62fca37
Make it clear that Yarn 2 does support ESM when you disable Plug 'n Play ( #584 )
2021-06-30 09:57:32 -04:00
Drew Powers
d1785d80c3
Add test for React SSR + window ( #581 )
...
* Add test for React SSR + window
* Add helpful error message on window undefined in SSR
Fixes #551
2021-06-29 21:37:50 -04:00
github-actions[bot]
e4fe7c0d02
Version Packages ( #567 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-29 16:46:41 -04:00
Matthew Phillips
1e735bb331
Pass in scoped class name to child components ( #579 )
...
* Pass in scoped class name to child components
If a class is being passed into child components, pass in the scoped class name as well.
* Adds the changeset
2021-06-29 16:40:30 -04:00
Nate Moore
f721275f33
Fix <Markdown {content} />
closing parent tag ( #575 )
...
* test(#494 ): add failing test
* chore: update with-markdown example
* fix(#494 ): avoid early close with <Markdown content />
* chore: add changeset
2021-06-29 15:33:56 -05:00
Fred K. Schott
9c7921300c
Merge branch 'docs-sync-1'
2021-06-29 13:12:27 -07:00
natemoo-re
4df98a79f8
[ci] yarn format
2021-06-29 16:38:55 +00:00
Nate Moore
e28d5cb9de
Allow .astro
files to throw new Error()
( #572 )
...
* fix(#526 ): enable `throwExpressions`
* chore: add test for throwing inside of `.astro`
* fix: improve build error handling
* chore: add test when throwing on `build`
* chore: fix changeset bot
* chore: add changeset
2021-06-29 11:37:36 -05:00
Adam Ochayon
13f50564cb
Fix: Redundant acronym for ESM ( #570 )
2021-06-28 08:08:56 -07:00
natemoo-re
436783d059
[ci] yarn format
2021-06-28 11:23:20 +00:00
Tony @ Navillus
aa8605761b
Fix collections regex ( #557 )
...
* fix: 🐛 Fixes bug #532
Matching for collection routes should look for exact filename matches
* test: ✅ Adding test coverage to make sure collection routes are matched exactly
* chore: Adding changeset
2021-06-28 06:22:15 -05:00
Fred K. Schott
279a252462
astro-docs sync
2021-06-27 23:30:57 -07:00
Fred K. Schott
7b21dc0063
Update README.md ( #550 )
2021-06-25 15:32:25 -07:00
github-actions[bot]
f3e005de6f
Version Packages ( #548 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 15:14:04 -04:00
Matthew Phillips
8865158f7f
Upgrade postcss snowpack plugin ( #547 )
...
* Upgrade postcss snowpack plugin
* Increase the startup time more
* Add changeset
2021-06-25 15:12:10 -04:00
github-actions[bot]
91e11aee2a
Version Packages ( #543 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 09:51:28 -04:00
matthewp
7b3047f097
[ci] yarn format
2021-06-25 13:31:17 +00:00
Matthew Phillips
028d4e0114
Fix code from bad merge ( #540 )
...
* Fix code from bad merge
* Dont wrap the raw
* Wrap the expression in quotes
* remove react-dom just to test
* Add back react-dom as a known entrypoint
* Make startup time even longer
2021-06-25 09:29:57 -04:00
Drew Powers
56293499e8
Fix PostCSS support upstream in Snowpack ( #538 )
...
Fixes #481
2021-06-24 17:49:42 -05:00
natemoo-re
d8a162aeee
[ci] yarn format
2021-06-24 22:49:30 +00:00
Nate Moore
a136c85e6b
New Props API ( #515 )
...
* wip: update props api
* feat(#139 , #309 ): enable new props api
* chore: migrate examples to new props API
* docs: update syntax guide for new props API
* chore: update examples to new props API
* chore: update docs to new Props API
* fix: hide __astroInternal from `Astro.props` consumers
* chore: remove scratchpad file
* chore: fix script error
* test: fix failing collection tests
* fix: set __astroInternal to `enumerable: false`
* chore: add changeset
* feat: warn users using old props api
2021-06-24 17:48:24 -05:00
natemoo-re
bc9e0f180c
[ci] yarn format
2021-06-24 22:42:22 +00:00
Nate Moore
47ac2ccd17
Fix {...spread}
props ( #522 )
...
* fix(#521 ): allow spread props
* chore: add spread prop tests
* fix: falsy expressions should only be skipped in 'Expression' case
* fix: support primitives in expressions (objects, arrays)
2021-06-24 17:41:10 -05:00
Mats
4cd84c6607
Removed unused console.warn trap function ( #537 )
2021-06-24 16:07:49 -05:00