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 #8148

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/dependabot-update-8171.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-doors-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/good-plants-stare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-ravens-roll.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-ants-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-gifts-flash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-kiwis-behave.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/create-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-cloudflare

## 2.38.1

### Patch Changes

- [#8152](https://github.com/cloudflare/workers-sdk/pull/8152) [`ed3bc2f`](https://github.com/cloudflare/workers-sdk/commit/ed3bc2f3be45be55d20299ed3f481e75c63ba285) Thanks [@Cherry](https://github.com/Cherry)! - fix: generated wrangler.json and wrangler.jsonc files will now be formatted with tabs, to match the rest of the generated files

## 2.38.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-cloudflare",
"version": "2.38.0",
"version": "2.38.1",
"description": "A CLI for creating and deploying new applications to Cloudflare.",
"keywords": [
"cloudflare",
Expand Down
199 changes: 106 additions & 93 deletions packages/miniflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# miniflare

## 3.20250214.0

### Patch Changes

- [#8171](https://github.com/cloudflare/workers-sdk/pull/8171) [`5e06177`](https://github.com/cloudflare/workers-sdk/commit/5e06177861b29aa9b114f9ecb50093190af94f4b) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "miniflare" package

The following dependency versions have been updated:

| Dependency | From | To |
| ------------------------- | ------------- | ------------- |
| workerd | 1.20250204.0 | 1.20250214.0 |
| @cloudflare/workers-types | ^4.20250204.0 | ^4.20250214.0 |

## 3.20250204.1

### Patch Changes
Expand Down Expand Up @@ -567,20 +580,20 @@
import { Miniflare } from "miniflare";

const mf = new Miniflare({
workers: [
{
wrappedBindings: {
Greeter: {
scriptName: "impl",
},
},
modules: true,
script: `export default { fetch(){ return new Response(''); } }`,
},
{
modules: true,
name: "impl",
script: `
workers: [
{
wrappedBindings: {
Greeter: {
scriptName: "impl",
},
},
modules: true,
script: `export default { fetch(){ return new Response(''); } }`,
},
{
modules: true,
name: "impl",
script: `
class Greeter {
sayHello(name) {
return "Hello " + name;
Expand All @@ -591,8 +604,8 @@
return new Greeter();
}
`,
},
],
},
],
});

const { Greeter } = await mf.getBindings();
Expand All @@ -612,21 +625,21 @@
import { Miniflare } from "miniflare";

const mf = new Miniflare({
workers: [
{
modules: true,
script: `export default { fetch() { return new Response(''); } }`,
serviceBindings: {
SUM: {
name: "sum-worker",
entrypoint: "SumEntrypoint",
},
},
},
{
modules: true,
name: "sum-worker",
script: `
workers: [
{
modules: true,
script: `export default { fetch() { return new Response(''); } }`,
serviceBindings: {
SUM: {
name: "sum-worker",
entrypoint: "SumEntrypoint",
},
},
},
{
modules: true,
name: "sum-worker",
script: `
import { WorkerEntrypoint } from 'cloudflare:workers';
export default { fetch() { return new Response(''); } }
Expand All @@ -637,8 +650,8 @@
}
}
`,
},
],
},
],
});

const { SUM } = await mf.getBindings();
Expand Down Expand Up @@ -704,17 +717,17 @@
import { kCurrentWorker, Miniflare } from "miniflare";

const mf = new Miniflare({
workers: [
{
name: "a",
serviceBindings: {
A_RPC_SERVICE: { name: kCurrentWorker, entrypoint: "RpcEntrypoint" },
A_NAMED_SERVICE: { name: "a", entrypoint: "namedEntrypoint" },
B_NAMED_SERVICE: { name: "b", entrypoint: "anotherNamedEntrypoint" },
},
compatibilityFlags: ["rpc"],
modules: true,
script: `
workers: [
{
name: "a",
serviceBindings: {
A_RPC_SERVICE: { name: kCurrentWorker, entrypoint: "RpcEntrypoint" },
A_NAMED_SERVICE: { name: "a", entrypoint: "namedEntrypoint" },
B_NAMED_SERVICE: { name: "b", entrypoint: "anotherNamedEntrypoint" },
},
compatibilityFlags: ["rpc"],
modules: true,
script: `
import { WorkerEntrypoint } from "cloudflare:workers";
export class RpcEntrypoint extends WorkerEntrypoint {
Expand All @@ -727,17 +740,17 @@
...
`,
},
{
name: "b",
modules: true,
script: `
},
{
name: "b",
modules: true,
script: `
export const anotherNamedEntrypoint = {
fetch(request, env, ctx) { return new Response("b:named:pong"); }
};
`,
},
],
},
],
});
```

Expand Down Expand Up @@ -855,12 +868,12 @@
import { Miniflare, Response } from "miniflare";

const mf = new Miniflare({
serviceBindings: {
SERVICE(request, instance) {
assert(instance === mf);
return new Response();
},
},
serviceBindings: {
SERVICE(request, instance) {
assert(instance === mf);
return new Response();
},
},
});
```

Expand All @@ -880,27 +893,27 @@
import { Miniflare } from "miniflare";

const mf1 = new Miniflare({
scriptPath: "index.mjs",
scriptPath: "index.mjs",
});

const mf2 = new Miniflare({
rootPath: "a/b",
scriptPath: "c/index.mjs",
rootPath: "a/b",
scriptPath: "c/index.mjs",
});

const mf3 = new Miniflare({
rootPath: "/a/b",
workers: [
{
name: "1",
rootPath: "c",
scriptPath: "index.mjs",
},
{
name: "2",
scriptPath: "index.mjs",
},
],
rootPath: "/a/b",
workers: [
{
name: "1",
rootPath: "c",
scriptPath: "index.mjs",
},
{
name: "2",
scriptPath: "index.mjs",
},
],
});
```

Expand All @@ -916,11 +929,11 @@
import { kCurrentWorker, Miniflare } from "miniflare";

const mf = new Miniflare({
serviceBindings: {
SELF: kCurrentWorker,
},
modules: true,
script: `export default {
serviceBindings: {
SELF: kCurrentWorker,
},
modules: true,
script: `export default {
fetch(request, env, ctx) {
const { pathname } = new URL(request.url);
if (pathname === "/recurse") {
Expand All @@ -945,9 +958,9 @@

```js
const mf = new Miniflare({
modules: true,
modulesRoot: "..",
scriptPath: "../worker.mjs",
modules: true,
modulesRoot: "..",
scriptPath: "../worker.mjs",
});
```

Expand Down Expand Up @@ -1005,15 +1018,15 @@

```js
const mf = new Miniflare({
modules: [
{
type: "PythonModule",
path: "index",
contents:
"from js import Response;\ndef fetch(request):\n return Response.new('hello')",
},
],
compatibilityFlags: ["experimental"],
modules: [
{
type: "PythonModule",
path: "index",
contents:
"from js import Response;\ndef fetch(request):\n return Response.new('hello')",
},
],
compatibilityFlags: ["experimental"],
});
```

Expand Down Expand Up @@ -1150,17 +1163,17 @@

```ts
const mf = new Miniflare({
log,
modules: true,
script: `
log,
modules: true,
script: `
export default {
fetch(req, env, ctx) {
const two = env.UNSAFE_EVAL.eval('1+1');
return new Response('two = ' + two); // returns 'two = 2'
}
}
`,
unsafeEvalBinding: "UNSAFE_EVAL",
unsafeEvalBinding: "UNSAFE_EVAL",
});
```

Expand Down
2 changes: 1 addition & 1 deletion packages/miniflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "miniflare",
"version": "3.20250204.1",
"version": "3.20250214.0",
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
"keywords": [
"cloudflare",
Expand Down
7 changes: 7 additions & 0 deletions packages/pages-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @cloudflare/pages-shared

## 0.13.8

### Patch Changes

- Updated dependencies [[`5e06177`](https://github.com/cloudflare/workers-sdk/commit/5e06177861b29aa9b114f9ecb50093190af94f4b)]:
- [email protected]

## 0.13.7

### Patch Changes
Expand Down
Loading
Loading