Skip to content
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

Merged
merged 1 commit into from
Aug 18, 2021
Merged

Version Packages (next) #1129

merged 1 commit into from
Aug 18, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 16, 2021

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, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

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:

    ---
    import BarChart from '../components/BarChart.jsx';
    ---
    
    <BarChart client:only />
    /**
     * If multiple renderers are included in the Astro config,
     * this will ensure that the component is hydrated with
     * the Preact renderer.
     */
    <BarChart client:only="preact" />
    /**
     * If a custom renderer is required, use the same name
     * provided in the Astro config.
     */
    <BarChart client:only="my-custom-renderer" />

    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 your src/ folder.

    Astro does not resolve relative links within HTML, such as images:

    <img src="../images/penguin.png" />

    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:

    <img src={Astro.resolve('../images/penguin.png')} />

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 your src/ folder.

    Astro does not resolve relative links within HTML, such as images:

    <img src="../images/penguin.png" />

    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:

    <img src={Astro.resolve('../images/penguin.png')} />

@vercel
Copy link

vercel bot commented Aug 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

astro-docs – ./docs

🔍 Inspect: https://vercel.com/pikapkg/astro-docs/JAv1P8BqrXrysYGWUnDc7YMok7XC
✅ Preview: https://astro-docs-git-changeset-release-main-pikapkg.vercel.app

astro-www – ./www

🔍 Inspect: https://vercel.com/pikapkg/astro-www/4Uf8FsBTccWRiVCaC9VfYfDynKsP
✅ Preview: Canceled

[Deployment for f7ec0c9 canceled]

@vercel vercel bot temporarily deployed to Preview – astro-www August 16, 2021 20:44 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from ae620ce to 055c2b9 Compare August 16, 2021 21:30
@vercel vercel bot temporarily deployed to Preview – astro-www August 16, 2021 21:30 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from 055c2b9 to ad371a1 Compare August 16, 2021 21:35
@vercel vercel bot temporarily deployed to Preview – astro-www August 16, 2021 21:35 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from ad371a1 to 6a0598f Compare August 16, 2021 23:48
@vercel vercel bot temporarily deployed to Preview – astro-www August 16, 2021 23:48 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from 6a0598f to d81eb44 Compare August 17, 2021 05:02
@vercel vercel bot temporarily deployed to Preview – astro-www August 17, 2021 05:02 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from d81eb44 to bfd2143 Compare August 17, 2021 17:46
@vercel vercel bot temporarily deployed to Preview – astro-www August 17, 2021 17:46 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from bfd2143 to ead0628 Compare August 17, 2021 17:58
@vercel vercel bot temporarily deployed to Preview – astro-www August 17, 2021 17:58 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from ead0628 to e9113b5 Compare August 18, 2021 05:04
@vercel vercel bot temporarily deployed to Preview – astro-www August 18, 2021 05:04 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch from e9113b5 to 147fe64 Compare August 18, 2021 05:20
@vercel vercel bot temporarily deployed to Preview – astro-www August 18, 2021 05:20 Inactive
@vercel vercel bot temporarily deployed to Preview – astro-www August 18, 2021 05:26 Inactive
@FredKSchott FredKSchott merged commit 66a6c5b into main Aug 18, 2021
@FredKSchott FredKSchott deleted the changeset-release/main branch August 18, 2021 05:34
FredKSchott pushed a commit that referenced this pull request Aug 18, 2021
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
FredKSchott added a commit that referenced this pull request Aug 18, 2021
* 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>
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant