Commit graph

118 commits

Author SHA1 Message Date
Ryan Carniato
13b782f421
fix: Nested hydration with Solid (#3003)
* fix: solid nested hydration

* Create ten-rice-unite.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode (#2967) 2022-04-02 13:37:28 -06:00
Fred K. Schott
3a4dc9e0a7
React 18 monorepo upgrade (#2948)
* First pass at supporting React 18 in @astrojs/react

* Try marking React 18’s `react-dom/client` as external

* Try a different approach to importing different React versions

* Allow resolving JSON modules

* Revert "Allow resolving JSON modules"

This reverts commit 5279b7249c.

* Try the separate client entrypoint approach from #2946

* Clean up diff

* Trying to see something

* Just keep swimming… 🐠

* update to support react 18

* update React to React 18 across the board

Co-authored-by: delucis <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:01:05 -04:00
Fred K. Schott
0c5378b8cf
[ci] update lockfile (#2841)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-21 10:32:25 -05:00
Fred K. Schott
9327b56e82
[ci] update lockfile (#2822)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-17 13:33:52 -05:00
Fred K. Schott
498ef59b0e
[ci] update lockfile (#2810)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-16 09:53:46 -05:00
github-actions[bot]
2b89613539
[ci] release (#2808)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 19:40:27 -05:00
Ben Holmes
79282163e2
fix: Svelte PostCSS config error (#2807)
* fix: Svelte PostCSS config error

* chore: changeset
2022-03-15 19:32:39 -04:00
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
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
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
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
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
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]
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
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
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
toSayNothing
f482c626a6
Fix renderer-solid (fix #2336) (#2359) 2022-01-11 10:31:26 -05: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
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
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
Jonathan Neal
6ddd7678ff
Use accessible indentation (#2253) 2021-12-22 16:11:05 -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
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
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]
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
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
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
Drew Powers
60c5eb6ad5
Add package descriptions (#1997) 2021-11-23 14:19:16 -07:00
Drew Powers
4cec1256a4
Add default TypeScript, Sass support to Svelte (#1982) 2021-11-23 09:45:24 -07: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
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
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
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
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
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
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