-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-local-ai-fetcher-to-forward-request-a…
…nd-method
- Loading branch information
Showing
90 changed files
with
2,395 additions
and
379 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"wrangler": minor | ||
--- | ||
|
||
feat: Add production_branch and deployment_trigger to pages deploy detailed artifact for wrangler-action pages parity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"wrangler": minor | ||
--- | ||
|
||
Fix wrangler pages deployment (list|tail) environment filtering. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@cloudflare/workflows-shared": minor | ||
"miniflare": minor | ||
--- | ||
|
||
Add proper engine persistance in .wrangler and fix multiple workflows in miniflare |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Fix observability.logs.enabled validation |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@cloudflare/chrome-devtools-patches": patch | ||
--- | ||
|
||
change package name from @cloudflare/wrangler-devtools to @cloudflare/chrome-devtools-patches |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Rename `directory` to `projectRoot` and ensure it's relative to the `wrangler.toml`. This fixes a regression which meant that `.wrangler` temporary folders were inadvertently generated relative to `process.cwd()` rather than the location of the `wrangler.toml` file. It also renames `directory` to `projectRoot`, which affects the `unstable_startWorker() interface. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "my-workflow-multiple", | ||
"private": true, | ||
"scripts": { | ||
"deploy": "wrangler deploy", | ||
"start": "wrangler dev", | ||
"test:ci": "vitest" | ||
}, | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^4.20241106.0", | ||
"undici": "catalog:default", | ||
"wrangler": "workspace:*" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
import { | ||
WorkerEntrypoint, | ||
WorkflowEntrypoint, | ||
WorkflowEvent, | ||
WorkflowStep, | ||
} from "cloudflare:workers"; | ||
|
||
type Params = { | ||
name: string; | ||
}; | ||
|
||
export class Demo extends WorkflowEntrypoint<{}, Params> { | ||
async run(event: WorkflowEvent<Params>, step: WorkflowStep) { | ||
const { timestamp, payload } = event; | ||
|
||
await step.sleep("Wait", "1 second"); | ||
|
||
const result = await step.do("First step", async function () { | ||
return { | ||
output: "First step result", | ||
}; | ||
}); | ||
|
||
await step.sleep("Wait", "1 second"); | ||
|
||
const result2 = await step.do("Second step", async function () { | ||
return { | ||
output: "workflow1", | ||
}; | ||
}); | ||
|
||
return [result, result2, timestamp, payload, "workflow1"]; | ||
} | ||
} | ||
|
||
export class Demo2 extends WorkflowEntrypoint<{}, Params> { | ||
async run(event: WorkflowEvent<Params>, step: WorkflowStep) { | ||
const { timestamp, payload } = event; | ||
|
||
await step.sleep("Wait", "1 second"); | ||
|
||
const result = await step.do("First step", async function () { | ||
return { | ||
output: "First step result", | ||
}; | ||
}); | ||
|
||
await step.sleep("Wait", "1 second"); | ||
|
||
const result2 = await step.do("Second step", async function () { | ||
return { | ||
output: "workflow2", | ||
}; | ||
}); | ||
|
||
return [result, result2, timestamp, payload, "workflow2"]; | ||
} | ||
} | ||
|
||
type Env = { | ||
WORKFLOW: Workflow; | ||
WORKFLOW2: Workflow; | ||
}; | ||
|
||
export default class extends WorkerEntrypoint<Env> { | ||
async fetch(req: Request) { | ||
const url = new URL(req.url); | ||
const id = url.searchParams.get("id"); | ||
const workflowName = url.searchParams.get("workflowName"); | ||
|
||
if (url.pathname === "/favicon.ico") { | ||
return new Response(null, { status: 404 }); | ||
} | ||
let workflowToUse = | ||
workflowName == "2" ? this.env.WORKFLOW2 : this.env.WORKFLOW; | ||
|
||
let handle: WorkflowInstance; | ||
if (url.pathname === "/create") { | ||
if (id === null) { | ||
handle = await workflowToUse.create(); | ||
} else { | ||
handle = await workflowToUse.create({ id }); | ||
} | ||
} else { | ||
handle = await workflowToUse.get(id); | ||
} | ||
|
||
return Response.json({ status: await handle.status(), id: handle.id }); | ||
} | ||
} |
Oops, something went wrong.