0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-10 22:38:53 -05:00
Commit graph

25 commits

Author SHA1 Message Date
Matthew Phillips
20eaddb2a7
Fix for using React in the static build ()
* Fix react in the static build

* Adds a changeset
2022-01-13 13:28:29 -05:00
github-actions[bot]
b8e3efa7bb
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 11:49:30 -05:00
Jonathan Neal
45cea6aec5
Support Node v14.15+ ()
* 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
Francois Valdy
5f5dc60976
Add missing licenses to published packages ()
* 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
github-actions[bot]
e57308d70c
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-02 13:01:17 -05:00
Drew Powers
60c5eb6ad5
Add package descriptions () 2021-11-23 14:19:16 -07:00
github-actions[bot]
b4818701fe
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 13:01:50 -08:00
github-actions[bot]
750c249c32
Version Packages (next) ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 13:06:58 -08:00
Drew Powers
3cd1458aa7
Fix Windows CSS bundling bug ()
* 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
github-actions[bot]
e0d9a7627d
Version Packages (next) ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-29 14:48:54 -05:00
Drew Powers
d84bfe719a
🚀 Astro Next (0.21.0) ()
* 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 ()

* Automate publish on merge ()

* Add NPM_TOKEN to publish script ()

* Create .npmrc

* Clean up astro deps ()

* Use new renderers ()

* feat: update compiler ()

* Try mocha/chai test runners ()

* 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 ()

* Fix logger locale parsing ()

* 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 

* Add back in support for children ()

* Add back in support for children

* Be more careful

* Enables most slot tests ()

* Enables most slot tests

* Use spreadAttributes

* Add hydration to Solid renderer () ()

* 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 ()

* [next] Support for custom elements ()

* [next] Support for custom elements

* Fix eslint errors

* eslint again

* [next] Fix Astro.fetchContent ()

* fix Astro.fetchContent

* fix(fetchContent): cast type

Co-authored-by: Nate Moore <nate@skypack.dev>

* Move hydration to the compiler ()

* Move hydration to the compiler

* Move extracting url, export to util fn

* Brings back astro-dynamic tests ()

* Implements top-level Astro + Astro.resolve ()

* Implements top-level Astro + Astro.resolve

* Fix linting

* [next] Update renderers ()

* chore: update vite

* fix(renderers): point renderers to resolved server/client entrypoints

* Chore: Enable more tests with new compiler changes ()

* [Next] `fetch` support ()

* 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 ()

* Upgrade to @astrojs/compiler 0.2.0 ()

* Use Vite fork ()

* Use Vite fork

* Fix linting

* Move Vite to vendor/ and add a license

* Fix linting

* Include the dist folder

* Update files config

* Markdown compilation ()

* Markdown compilation

* remove debugger

* Gets lit hydration working ()

* Gets Astro.fetchContent compilation to work ()

* 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 ()

* Add Prism syntax highlighting ()

* Scoped styles with markdown ()

* Bugfix: fix getStaticPaths() cache miss ()

* Fix build order ()

* Bugfix: restore build to get all paths earlier, when build. Same as main.

* Also re-add timings

* [next] blog example fully working ()

* Add environment variables docs (Closes ) ()

* Added environment variables docs (Closes )

* Fixed prefix

* Remove numbered comments ()

* Chore: remove numbered comments

* Clean up block comments

* comment style fixes ()

* [next] Upgrade compiler ()

* [next] Upgrade compiler

* Upgrade to latest compiler

* Fix the path to global css

* Removed debugger

* feat: add fragment support to vite-plugin-astro ()

* [next] fix `.tsx` handling ()

* 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  ()

* 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 ()

* Move Sass to deps ()

* Update renderer API for Vite ()

* 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 ()

* Remove cheerio scanning from build stats ()

* Minor change to jsxTransformOptions, update Renderer API docs ()

* [next] docs example fully working ()

* [next] docs example fully working

* Upgrade compiler to unlock docs

* Add `class:list` directive ()

* 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 ()

* feat: fix Debug component ()

* [next] Fix `<Markdown>` component ()

* fix: cleanup issues with <Markdown> component

* fix: fix `content` usage with Markdown

* [next] Fix `<Code>` component ()

* fix: enable Code component

* test: update expect to chai format

* Fixes solid ()

* Fixes solid

* Rename the test

* Rebase with next

* Skip solid test for now

* Add support for markdown plugins ()

* Fix broken next release ()

* Prevent passing  to Svelte components

* Prevent passing class to Vue components

* Add CSS injection, fix portfolio example ()

* 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 ()

* Upgrade compiler version ()

Fixes docs and blog examples

* Resolve renderers relative to the projectRoot ()

* Template fixes ()

* fix: dedupe hashes for identical islands ()

* fix: scope `define:vars` to `:root` for `<style global>` ()

* chore: update compiler to latest ()

* [next] fix island hydration inside of `<Markdown>` ()

* 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 ()

* Force Vite to rebuild dependencies ()

* [next] Add `preact/compat` renderer ()

* feat: add preact/compat entry for `@astrojs/renderer-preact`

* Update index.js

* Bugfix: plugin-astro-fetch tries to append node-fetch to node-fetch ()

* Fix Vite race condition ()

* Fix with-nanostore deps ()

Adds missing Solid renderer

* [next] Fix `resolveDependency` on Windows ()

* fix: Windows issue with resolveDependency util

* chore: add comment

* Update CONTRIBUTING.md ()

* Prevent scanning a user's deps ()

* 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 ()

This does 2 things:

1. Adds prismjs as a dep.
2. Adds shiki as an external.

* Next bugs ()

* fix(): hoisted <script> rendering

* fix(): do not print global for styles, but do for scripts

* fix: update ObjectSet implementation

* fix: dedupe elements in sets

* [next] update compiler ()

* chore: update compiler

* chore: update compiler (again)

* Fix Astro HMR bottleneck ()

* Bugfix: JSX renderers can be declared in any order ()

* chore: update compiler ()

* Exclude lit-server from being optimized ()

This should get the lit example working from `npm`.

* fix: exclude all renderer server entrypoints ()

* chore: update compiler ()

* fix: do not crash when Markdown has no content ()

* feat: improve support for third-party React packages ()

* Remove prism warning when no language is provided ()

* Remove prism warning when no language is provided

* Add the plaintext language instead

* retry deploy

* chore: enter prerelease mode under `next` ()

* Updates to the changesets ()

* 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]
b5f1bd46ff
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-01 13:36:02 -04:00
github-actions[bot]
3d9b665265
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-14 17:22:50 -07:00
github-actions[bot]
509c69627b
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-27 12:41:42 -04:00
github-actions[bot]
8f17217e02
Version Packages (next) ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 18:12:11 -05:00
Nate Moore
bd18e14a2c
Expose JSX compilation to renderers ()
* feat: add support for `jsxImportSource`, new JSX transform

* Renderer: add Solid renderer ()

* feat: add support for `jsxImportSource`, new JSX transform

* WIP: solid renderer

* [Renderer] Solid ()

* 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 ()

* 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
github-actions[bot]
e70d9508d9
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-09 09:32:15 -04:00
github-actions[bot]
91e11aee2a
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 09:51:28 -04:00
github-actions[bot]
8b69c2d406
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-21 15:38:41 -04:00
github-actions[bot]
28c2d74dc3
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-15 08:25:29 -04:00
github-actions[bot]
0ef0c99b10
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 08:43:03 -04:00
Fred K. Schott
ab2972be83
add engines for esm support () 2021-06-14 08:20:14 -04:00
github-actions[bot]
436a016408
Version Packages ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02 12:49:05 -04:00
github-actions[bot]
092d201aee
Version Packages (next) ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-28 18:25:36 -05:00
Nate Moore
3df41d2308
Bugbash! ()
* fix(vscode): Markdown frontmatter should use TSX, not YAML

* test: add test for 

* chore: bump deps

* chore: update to use @astrojs scope

* fix: Markdown parse error when only child is `{expression}`

* fix: update renderer edge cases

* fix: failing test

* fix: update renderer
2021-05-28 17:19:40 -05:00
Renamed from packages/renderers/react/package.json (Browse further)