-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Packages (next) #1129
Version Packages (next) #1129
Conversation
This pull request is being automatically deployed with Vercel (learn more). astro-docs – ./docs🔍 Inspect: https://vercel.com/pikapkg/astro-docs/JAv1P8BqrXrysYGWUnDc7YMok7XC astro-www – ./www🔍 Inspect: https://vercel.com/pikapkg/astro-www/4Uf8FsBTccWRiVCaC9VfYfDynKsP [Deployment for f7ec0c9 canceled] |
ae620ce
to
055c2b9
Compare
055c2b9
to
ad371a1
Compare
ad371a1
to
6a0598f
Compare
6a0598f
to
d81eb44
Compare
d81eb44
to
bfd2143
Compare
bfd2143
to
ead0628
Compare
ead0628
to
e9113b5
Compare
e9113b5
to
147fe64
Compare
147fe64
to
f7ec0c9
Compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* wip * 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> * [ci] yarn format * Update CONTRIBUTING.md (#1131) * [ci] yarn format * docs: fix select language in Safari (#1127) (#1128) * docs: fix select language in Safari (#1127) * docs: fix select language top position * docs: fix select language position * Make congratsbot not run in forks (#1145) * add back dark-mode aware favicons * make example favicons prefer non-dark mode * Version Packages (next) (#1129) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * code review comments Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com> Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com> Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Oleg <64708593+olejech@users.noreply.github.com> Co-authored-by: Marcus Otterström <35617441+MarcusOtter@users.noreply.github.com> 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: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
astro@0.19.0-next.3
Minor Changes
1971ab3: Adds support for client:only hydrator
The new
client:only
hydrator allows you to define a component that should be skipped during the build and only hydrated in the browser.In most cases it is best to render placeholder content during the build, but that may not always be feasible if an NPM dependency attempts to use browser APIs as soon as is imported.
Note If more than one renderer is included in your Astro config, you need to include a hint to determine which renderer to use. Renderers will be matched to the name provided in your Astro config, similar to
<MyComponent client:only="@astrojs/renderer-react" />
. Shorthand can be used for@astrojs
renderers, i.e.<MyComponent client:only="react" />
will use@astrojs/renderer-react
.An example usage:
This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
Patch Changes
1f13e40: Fix CSS scoping issue
78b5bde: Adds support for Astro.resolve
Astro.resolve()
helps with creating URLs relative to the current Astro file, allowing you to reference files within yoursrc/
folder.Astro does not resolve relative links within HTML, such as images:
The above will be sent to the browser as-is and the browser will resolve it relative to the current page. If you want it to be resolved relative to the .astro file you are working in, use
Astro.resolve
:docs@0.0.5-next.0
Patch Changes
78b5bde: Adds support for Astro.resolve
Astro.resolve()
helps with creating URLs relative to the current Astro file, allowing you to reference files within yoursrc/
folder.Astro does not resolve relative links within HTML, such as images:
The above will be sent to the browser as-is and the browser will resolve it relative to the current page. If you want it to be resolved relative to the .astro file you are working in, use
Astro.resolve
: