Skip to content

Commit

Permalink
Version Packages (#5906)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
workers-devprod and github-actions[bot] committed May 28, 2024
1 parent 4458a9e commit 1f3acc6
Show file tree
Hide file tree
Showing 20 changed files with 169 additions and 155 deletions.
8 changes: 0 additions & 8 deletions .changeset/brave-goats-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-spies-dress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fluffy-carrots-peel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-drinks-destroy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-frogs-sneeze.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/little-jars-train.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-cups-rest.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/silent-jeans-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tame-melons-promise.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/devprod-status-bot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# devprod-status-bot

## 1.0.0

### Major Changes

- [#5901](https://github.com/cloudflare/workers-sdk/pull/5901) [`ddf43da`](https://github.com/cloudflare/workers-sdk/commit/ddf43da91e4ec46249e38ccbb9498bb22085ebe1) Thanks [@penalosa](https://github.com/penalosa)! - feat: Add & release the initial version of the status bot
2 changes: 1 addition & 1 deletion packages/devprod-status-bot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devprod-status-bot",
"version": "0.0.0",
"version": "1.0.0",
"private": true,
"scripts": {
"deploy": "wrangler deploy",
Expand Down
205 changes: 112 additions & 93 deletions packages/miniflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# miniflare

## 3.20240524.0

### Minor Changes

- [#5917](https://github.com/cloudflare/workers-sdk/pull/5917) [`64ccdd6`](https://github.com/cloudflare/workers-sdk/commit/64ccdd6a6777c5fd85116af0d660cb3ee2e1de4d) Thanks [@kossnocorp](https://github.com/kossnocorp)! - fix: D1's JOIN behaviour when selecting columns with the same name.

Properly handle the `resultsFormat` query that `workerd` sends. This partially fixes [the JOIN bug](https://github.com/cloudflare/workers-sdk/issues/3160) and makes the behaviour of `raw` consistent with the `workerd` behaviour.

### Patch Changes

- [#5931](https://github.com/cloudflare/workers-sdk/pull/5931) [`4458a9e`](https://github.com/cloudflare/workers-sdk/commit/4458a9ea1a2b7748d6066557f48f68ec430d383b) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - chore: update dependencies of "miniflare" package

The following dependency versions have been updated:

| Dependency | From | To |
| ------------------------- | ------------- | ------------- |
| workerd | 1.20240512.0 | 1.20240524.0 |
| @cloudflare/workers-types | ^4.20240512.0 | ^4.20240524.0 |

## 3.20240512.0

### Patch Changes
Expand Down Expand Up @@ -58,20 +77,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 @@ -82,8 +101,8 @@
return new Greeter();
}
`,
},
],
},
],
});

const { Greeter } = await mf.getBindings();
Expand All @@ -103,21 +122,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 @@ -128,8 +147,8 @@
}
}
`,
},
],
},
],
});

const { SUM } = await mf.getBindings();
Expand Down Expand Up @@ -195,17 +214,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 @@ -218,17 +237,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 @@ -346,12 +365,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 @@ -371,27 +390,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 @@ -407,11 +426,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 @@ -436,9 +455,9 @@

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

Expand Down Expand Up @@ -496,15 +515,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 @@ -641,17 +660,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
Loading

0 comments on commit 1f3acc6

Please sign in to comment.