Skip to content

Bump @astrojs/cloudflare from 12.5.2 to 12.6.0 in /docs #140

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 19, 2025

Bumps @astrojs/cloudflare from 12.5.2 to 12.6.0.

Release notes

Sourced from @​astrojs/cloudflare's releases.

@​astrojs/cloudflare@​12.6.0

Minor Changes

  • #13837 7cef86f Thanks @​alexanderniebuhr! - Adds new configuration options to allow you to set a custom workerEntryPoint for Cloudflare Workers. This is useful if you want to use features that require handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations) not supported by the basic generic entry file.

    This feature is not supported when running the Astro dev server. However, you can run astro build followed by either wrangler deploy (to deploy it) or wrangler dev to preview it.

    The following example configures a custom entry file that registers a Durable Object and a queue handler:

    // astro.config.ts
    import cloudflare from '@astrojs/cloudflare';
    import { defineConfig } from 'astro/config';
    export default defineConfig({
    adapter: cloudflare({
    workerEntryPoint: {
    path: 'src/worker.ts',
    namedExports: ['MyDurableObject'],
    },
    }),
    });

    // src/worker.ts
    import type { SSRManifest } from 'astro';
    import { App } from 'astro/app';
    import { handle } from '@astrojs/cloudflare/handler';
    import { DurableObject } from 'cloudflare:workers';
    class MyDurableObject extends DurableObject<Env> {
    constructor(ctx: DurableObjectState, env: Env) {
    super(ctx, env);
    }
    }
    export function createExports(manifest: SSRManifest) {
    const app = new App(manifest);
    return {
    default: {
    async fetch(request, env, ctx) {
    await env.MY_QUEUE.send('log');
    return handle(manifest, app, request, env, ctx);
    },
    async queue(batch, _env) {
    let messages = JSON.stringify(batch.messages);
    console.log(consumed from our queue: ${messages});
    },

... (truncated)

Changelog

Sourced from @​astrojs/cloudflare's changelog.

12.6.0

Minor Changes

  • #13837 7cef86f Thanks @​alexanderniebuhr! - Adds new configuration options to allow you to set a custom workerEntryPoint for Cloudflare Workers. This is useful if you want to use features that require handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations) not supported by the basic generic entry file.

    This feature is not supported when running the Astro dev server. However, you can run astro build followed by either wrangler deploy (to deploy it) or wrangler dev to preview it.

    The following example configures a custom entry file that registers a Durable Object and a queue handler:

    // astro.config.ts
    import cloudflare from '@astrojs/cloudflare';
    import { defineConfig } from 'astro/config';
    export default defineConfig({
    adapter: cloudflare({
    workerEntryPoint: {
    path: 'src/worker.ts',
    namedExports: ['MyDurableObject'],
    },
    }),
    });

    // src/worker.ts
    import type { SSRManifest } from 'astro';
    import { App } from 'astro/app';
    import { handle } from '@astrojs/cloudflare/handler';
    import { DurableObject } from 'cloudflare:workers';
    class MyDurableObject extends DurableObject<Env> {
    constructor(ctx: DurableObjectState, env: Env) {
    super(ctx, env);
    }
    }
    export function createExports(manifest: SSRManifest) {
    const app = new App(manifest);
    return {
    default: {
    async fetch(request, env, ctx) {
    await env.MY_QUEUE.send('log');
    return handle(manifest, app, request, env, ctx);
    },
    async queue(batch, _env) {
    let messages = JSON.stringify(batch.messages);
    console.log(consumed from our queue: ${messages});

... (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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@astrojs/cloudflare](https://github.com/withastro/astro/tree/HEAD/packages/integrations/cloudflare) from 12.5.2 to 12.6.0.
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/cloudflare/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/@astrojs/cloudflare@12.6.0/packages/integrations/cloudflare)

---
updated-dependencies:
- dependency-name: "@astrojs/cloudflare"
  dependency-version: 12.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 19, 2025
Copy link

cloudflare-workers-and-pages bot commented Jun 19, 2025

Deploying replicator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5f3adc2
Status:🚫  Build failed.

View logs

Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 31, 2025

Superseded by #164.

@dependabot dependabot bot closed this Jul 31, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/docs/astrojs/cloudflare-12.6.0 branch July 31, 2025 20:56
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants