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

[framework-fixtures]: Bump astro from 4.6.2 to 4.7.0 in /packages/static-build/test/fixtures/astro-v4 in the core group #11500

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 26, 2024

Bumps the core group in /packages/static-build/test/fixtures/astro-v4 with 1 update: astro.

Updates astro from 4.6.2 to 4.7.0

Release notes

Sourced from astro's releases.

astro@4.7.0

Minor Changes

  • #10665 7b4f284 Thanks @​Princesseuh! - Adds new utilities to ease the creation of toolbar apps including defineToolbarApp to make it easier to define your toolbar app and app and server helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.

    For example, instead of creating an event listener for the app-toggled event and manually typing the value in the callback, you can now use the onAppToggled method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a new server object is passed to the init function that contains easy to use methods for communicating with the server.

    import { defineToolbarApp } from "astro/toolbar";
    export default defineToolbarApp({
    init(canvas, app, server) {
    
    app.addEventListener("app-toggled", (e) => {
    
     console.log(`App is now ${state ? "enabled" : "disabled"}`);.
    
    
    });
    
    
    app.onToggled(({ state }) => {
    
       console.log(`App is now ${state ? "enabled" : "disabled"}`);
    
    
    });
    
    
    if (import.meta.hot) {
    
     import.meta.hot.send("my-app:my-client-event", { message: "world" });
    
    
    }
    
    
    server.send("my-app:my-client-event", { message: "world" })
    
    
    if (import.meta.hot) {
    
     import.meta.hot.on("my-server-event", (data: {message: string}) => {
    
    
    
       console.log(data.message);
    
    
    
     });
    
    
    }
    
    
    server.on<{ message: string }>("my-server-event", (data) => {
    
     console.log(data.message); // data is typed using the type parameter
    
    
    });
    },
    })

Server helpers are also available on the server side, for use in your integrations, through the new toolbar object:

"astro:server:setup": ({ toolbar }) => {
  toolbar.on<{ message: string }>("my-app:my-client-event", (data) => {
    console.log(data.message);
    toolbar.send("my-server-event", { message: "hello" });
  });
}

... (truncated)

Changelog

Sourced from astro's changelog.

4.7.0

Minor Changes

  • #10665 7b4f284 Thanks @​Princesseuh! - Adds new utilities to ease the creation of toolbar apps including defineToolbarApp to make it easier to define your toolbar app and app and server helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.

    For example, instead of creating an event listener for the app-toggled event and manually typing the value in the callback, you can now use the onAppToggled method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a new server object is passed to the init function that contains easy to use methods for communicating with the server.

    import { defineToolbarApp } from "astro/toolbar";
    export default defineToolbarApp({
    init(canvas, app, server) {
    
    app.addEventListener("app-toggled", (e) => {
    
     console.log(`App is now ${state ? &quot;enabled&quot; : &quot;disabled&quot;}`);.
    
    
    });
    
    
    app.onToggled(({ state }) => {
    
       console.log(`App is now ${state ? &quot;enabled&quot; : &quot;disabled&quot;}`);
    
    
    });
    
    
    if (import.meta.hot) {
    
     import.meta.hot.send(&quot;my-app:my-client-event&quot;, { message: &quot;world&quot; });
    
    
    }
    
    
    server.send("my-app:my-client-event", { message: "world" })
    
    
    if (import.meta.hot) {
    
     import.meta.hot.on(&quot;my-server-event&quot;, (data: {message: string}) =&gt; {
    
    
    
       console.log(data.message);
    
    
    
     });
    
    
    }
    
    
    server.on<{ message: string }>("my-server-event", (data) => {
    
     console.log(data.message); // data is typed using the type parameter
    
    
    });
    },
    })

Server helpers are also available on the server side, for use in your integrations, through the new toolbar object:

"astro:server:setup": ({ toolbar }) => {
  toolbar.on<{ message: string }>("my-app:my-client-event", (data) => {
    console.log(data.message);
    toolbar.send("my-server-event", { message: "hello" });
  });
}

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the core group in /packages/static-build/test/fixtures/astro-v4 with 1 update: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `astro` from 4.6.2 to 4.7.0
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.7.0/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: core
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 26, 2024
Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: 64b11c9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@EndangeredMassa EndangeredMassa added the pr: automerge Automatically merge the PR when checks pass label Apr 26, 2024
@kodiakhq kodiakhq bot merged commit aef56ed into main Apr 30, 2024
111 checks passed
@kodiakhq kodiakhq bot deleted the dependabot/npm_and_yarn/packages/static-build/test/fixtures/astro-v4/core-f90bb80b61 branch April 30, 2024 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file pr: automerge Automatically merge the PR when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants