Skip to content

Commit ca8aca1

Browse files
Merge branch 'cloudflare:production' into production
2 parents f02e222 + fdf80a2 commit ca8aca1

File tree

35 files changed

+611
-498
lines changed

35 files changed

+611
-498
lines changed

package-lock.json

Lines changed: 170 additions & 139 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@astrojs/starlight-docsearch": "0.6.0",
3737
"@astrojs/starlight-tailwind": "3.0.1",
3838
"@astrojs/tailwind": "5.1.5",
39-
"@cloudflare/vitest-pool-workers": "0.8.9",
39+
"@cloudflare/vitest-pool-workers": "0.8.12",
4040
"@cloudflare/workers-types": "4.20250404.0",
4141
"@codingheads/sticky-header": "1.0.2",
4242
"@expressive-code/plugin-collapsible-sections": "0.40.2",
@@ -51,7 +51,7 @@
5151
"@types/react": "19.0.7",
5252
"@types/react-dom": "19.0.4",
5353
"@typescript-eslint/parser": "8.29.0",
54-
"algoliasearch": "5.23.1",
54+
"algoliasearch": "5.23.3",
5555
"astro": "5.6.1",
5656
"astro-breadcrumbs": "3.3.1",
5757
"astro-icon": "1.1.5",
@@ -116,7 +116,7 @@
116116
"tippy.js": "6.3.7",
117117
"ts-blank-space": "0.6.1",
118118
"tsx": "4.19.3",
119-
"typescript": "5.8.2",
119+
"typescript": "5.8.3",
120120
"typescript-eslint": "8.29.0",
121121
"unified": "11.0.5",
122122
"unist-util-visit": "5.0.0",
164 KB
Loading

src/content/changelog/hyperdrive/2025-04-08-hyperdrive-free-plan.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Hyperdrive is now available on the Free plan of Cloudflare Workers,
44
products:
55
- hyperdrive
66
date: 2025-04-08T18:00:00Z
7-
hidden: true
87
---
98

109
Hyperdrive is now available on the Free plan of Cloudflare Workers, enabling you to build Workers that connect to PostgreSQL or MySQL databases without compromise.

src/content/changelog/hyperdrive/2025-04-08-hyperdrive-mysql-support.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: You can now connect to MySQL databases from your Workers using Hype
44
products:
55
- hyperdrive
66
date: 2025-04-08T14:00:00Z
7-
hidden: true
87
---
98

109
import { Code } from "~/components";
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Deploy a Workers application in seconds with one-click
3+
description: You can now add a Deploy to Cloudflare button to your repository's README to help other developers set up and deploy your project.
4+
products:
5+
- workers
6+
date: 2025-04-08 00:00:00 UTC
7+
---
8+
You can now add a [Deploy to Cloudflare](/workers/platform/deploy-buttons/) button to the README of your Git repository containing a Workers application — making it simple for other developers to quickly set up and deploy your project!
9+
10+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/main/saas-admin-template)
11+
12+
13+
The Deploy to Cloudflare button:
14+
1. **Creates a new Git repository on your GitHub/ GitLab account**: Cloudflare will automatically clone and create a new repository on your account, so you can continue developing.
15+
2. **Automatically provisions resources the app needs**: If your repository requires Cloudflare primitives like a [Workers KV namespace](/kv/), a [D1 database](/d1/), or an [R2 bucket](/r2/), Cloudflare will automatically provision them on your account and bind them to your Worker upon deployment.
16+
3. **Configures Workers Builds (CI/CD)**: Every new push to your production branch on your newly created repository will automatically build and deploy courtesy of [Workers Builds](/workers/ci-cd/builds/).
17+
4. **Adds preview URLs to each pull request**: If you'd like to test your changes before deploying, you can push changes to a [non-production branch](/workers/ci-cd/builds/build-branches/#configure-non-production-branch-builds) and [preview URLs](/workers/configuration/previews/) will be generated and [posted back to GitHub as a comment](/workers/ci-cd/builds/git-integration/github-integration/#pull-request-comment).
18+
19+
![Import repo or choose template](~/assets/images/workers/dtw-user-flow.png)
20+
21+
22+
To create a Deploy to Cloudflare button in your README, you can add the following snippet, including your Git repository URL:
23+
24+
```md
25+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=<YOUR_GIT_REPO_URL>)
26+
```
27+
28+
Check out our [documentation](/workers/platform/deploy-buttons/) for more information on how to set up a deploy button for your application and best practices to ensure a successful deployment for other developers.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Full-stack frameworks are now Generally Available on Cloudflare Workers
3+
description: Cloudflare Workers now provides production ready, generally available (GA) support for React Router v7 (Remix), Astro, Hono, Vue.js, Nuxt, Svelte (SvelteKit), and more.
4+
products:
5+
- workers
6+
- workers-for-platforms
7+
date: 2025-04-08T18:00:00Z
8+
---
9+
10+
import { Image } from "astro:assets";
11+
import fullstackWorkers from "~/assets/images/changelog/workers/fullstack-on-workers.png";
12+
13+
<Image src={fullstackWorkers} alt="Full-stack on Cloudflare Workers" />
14+
15+
The following full-stack frameworks now have Generally Available ("GA") adapters for Cloudflare Workers, and are ready for you to use in production:
16+
17+
- [React Router v7 (Remix)](/workers/frameworks/framework-guides/react-router/)
18+
- [Astro](/workers/frameworks/framework-guides/astro/)
19+
- [Hono](/workers/frameworks/framework-guides/hono/)
20+
- [Vue.js](/workers/frameworks/framework-guides/vue/)
21+
- [Nuxt](/workers/frameworks/framework-guides/nuxt/)
22+
- [Svelte (SvelteKit)](/workers/frameworks/framework-guides/svelte/)
23+
- And [more](/workers/frameworks/).
24+
25+
The following frameworks are now in **beta**, with GA support coming very soon:
26+
27+
- [Next.js](/workers/frameworks/framework-guides/nextjs/), supported through [@opennextjs/cloudflare](https://opennext.js.org/cloudflare) is now `v1.0-beta`.
28+
- [Angular](/workers/frameworks/framework-guides/angular/)
29+
- [SolidJS (SolidStart)](/workers/frameworks/framework-guides/solid/)
30+
31+
You can also build complete full-stack apps on Workers **without a framework**:
32+
33+
- You can [“just use Vite"](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and React together, and build a back-end API in the same Worker. Follow our [React SPA with an API tutorial](/workers/vite-plugin/tutorial/) to learn how.
34+
35+
36+
**Get started building today with our [framework guides](/workers/frameworks/)**, or read our [Developer Week 2025 blog post](https://blog.cloudflare.com/full-stack-development-on-cloudflare-workers) about all the updates to building full-stack applications on Workers.

src/content/changelog/workers/2025-04-08-nodejs-crypto-and-tls.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Node.js APIs from the node:crypto and node:tls modules are now avai
44
products:
55
- workers
66
date: 2025-04-08T14:00:00Z
7-
hidden: true
87
---
98

109
import { Render, PackageManagers, TypeScriptExample } from "~/components";
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: The Cloudflare Vite plugin is now Generally Available
3+
description: Cloudflare Vite Plugin 1.0 is out now — with official support for Vite 6, React Router v7, and the full Developer Platform. Now you can run Vite’s dev server locally, while executing your code directly in the Workers runtime!
4+
products:
5+
- workers
6+
date: 2025-04-08T18:00:00Z
7+
---
8+
9+
The [Cloudflare Vite plugin](/workers/vite-plugin/) has [reached v1.0](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and is now Generally Available ("GA").
10+
11+
When you use `@cloudflare/vite-plugin`, you can use Vite's local development server and build tooling, while ensuring that while developing, your code runs in [`workerd`](https://github.com/cloudflare/workerd), the open-source Workers runtime.
12+
13+
This lets you get the best of both worlds for a full-stack app — you can use [Hot Module Replacement](https://vite.dev/guide/features.html#hot-module-replacement) from Vite right alongside [Durable Objects](/durable-objects/) and other runtime APIs and bindings that are unique to Cloudflare Workers.
14+
15+
`@cloudflare/vite-plugin` is made possible by the new [environment API](https://vite.dev/guide/api-environment) in Vite, and was built [in partnership with the Vite team](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin).
16+
17+
#### Framework support
18+
19+
You can build any type of application with `@cloudflare/vite-plugin`, using any rendering mode, from single page applications (SPA) and static sites to server-side rendered (SSR) pages and API routes.
20+
21+
[React Router v7 (Remix)](/workers/frameworks/framework-guides/react-router/) is the first full-stack framework to provide full support for Cloudflare Vite plugin, allowing you to use all parts of Cloudflare's developer platform, without additional build steps.
22+
23+
You can also build complete full-stack apps on Workers **without a framework**["just use Vite"](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and React together, and build a back-end API in the same Worker. Follow our [React SPA with an API tutorial](/workers/vite-plugin/tutorial/) to learn how.
24+
25+
#### Configuration
26+
27+
If you're already using [Vite](https://vite.dev/) in your build and development toolchain, you can start using our plugin with minimal changes to your `vite.config.ts`:
28+
29+
```ts title="vite.config.ts"
30+
import { defineConfig } from "vite";
31+
import { cloudflare } from "@cloudflare/vite-plugin";
32+
33+
export default defineConfig({
34+
plugins: [cloudflare()],
35+
});
36+
```
37+
38+
Take a look at the [documentation for our Cloudflare Vite plugin](/workers/vite-plugin/) for more information!

src/content/docs/agents/api-reference/calling-agents.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,15 @@ export class MyAgent extends Agent<Env> {
5959
```
6060
</TypeScriptExample>
6161

62-
#### Calling methods directly
62+
:::note[Calling other Agents]
63+
64+
You can also call other Agents from within an Agent and build multi-Agent systems.
65+
66+
Calling other Agents uses the same APIs as calling into an Agent directly.
67+
68+
:::
69+
70+
### Calling methods on Agents
6371

6472
When using `getAgentByName`, you can pass both requests (including WebSocket) connections and call methods defined directly on the Agent itself using the native [JavaScript RPC](/workers/runtime-apis/rpc/) (JSRPC) API.
6573

0 commit comments

Comments
 (0)