Skip to content

Commit f86cd90

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/dpena/dash-buttons' into dpena/dash-buttons
2 parents 5fc5f5e + 1cc6608 commit f86cd90

File tree

135 files changed

+1089
-392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1089
-392
lines changed
352 KB
Loading
83.1 KB
Loading
72.3 KB
Loading
110 KB
Loading
-187 KB
Binary file not shown.
-38.3 KB
Binary file not shown.

src/components/changelog/ProductSelect.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,22 @@ export default function ProductSelect({ products, groups }: Props) {
6565
select.value = option.value;
6666
select.dispatchEvent(event);
6767
}
68+
69+
const search = document.querySelector<HTMLAnchorElement>(
70+
"#changelog-search-button",
71+
);
72+
73+
if (search) {
74+
if (
75+
options
76+
.find((opt) => opt.label === "Products")
77+
?.options?.includes(option)
78+
) {
79+
search.href = `/search/?contentType=Changelog+entry&product=${encodeURIComponent(option.label)}`;
80+
} else {
81+
search.href = `/search/?contentType=Changelog+entry`;
82+
}
83+
}
6884
};
6985

7086
return (

src/components/search/InstantSearch.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
FloatingPortal,
2222
} from "@floating-ui/react";
2323
import { PiCaretDownBold } from "react-icons/pi";
24+
import { subDays } from "date-fns";
2425
import { setSearchParams } from "~/util/url";
2526
import he from "he";
2627

@@ -73,6 +74,13 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
7374
.map(([, value]) => value);
7475

7576
const title = hierarchy ? hierarchy.join(" > ") : "Documentation";
77+
const today = new Date();
78+
const futureDate = subDays(today, item.lastModified);
79+
const options: Intl.DateTimeFormatOptions = {
80+
year: "numeric",
81+
month: "long",
82+
day: "numeric",
83+
};
7684

7785
return (
7886
<a
@@ -84,6 +92,11 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
8492
<p className="line-clamp-2">
8593
<Highlight attribute="content" hit={item} />
8694
</p>
95+
{item.lastModified && (
96+
<span className="text-cl1-gray-4! dark:text-cl1-gray-7! mt-2 text-sm">
97+
{futureDate.toLocaleDateString("en-US", options)}
98+
</span>
99+
)}
87100
</a>
88101
);
89102
})}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: D1 automatically retries read-only queries
3+
description: D1 now detects read-only queries and automatically attempts up to two retries to execute those queries in the event of failures with retryable errors.
4+
products:
5+
- d1
6+
- workers
7+
date: 2025-09-11
8+
---
9+
10+
D1 now detects read-only queries and automatically attempts up to two retries to execute those queries in the event of failures with retryable errors. You can access the number of execution attempts in the returned [response metadata](/d1/worker-api/return-object/#d1result) property `total_attempts`.
11+
12+
At the moment, only read-only queries are retried, that is, queries containing only the following SQLite keywords: `SELECT`, `EXPLAIN`, `WITH`. Queries containing any [SQLite keyword](https://sqlite.org/lang_keywords.html) that leads to database writes are not retried.
13+
14+
The retry success ratio among read-only retryable errors varies from 5% all the way up to 95%, depending on the underlying error and its duration (like network errors or other internal errors).
15+
16+
The retry success ratio among all retryable errors is lower, indicating that there are write-queries that could be retried. Therefore, we recommend D1 users to continue applying [retries in their own code](/d1/best-practices/retry-queries/) for queries that are not read-only but are idempotent according to the business logic of the application.
17+
18+
![D1 automatically query retries success ratio](~/assets/images/changelog/d1/d1-auto-retry-success-ratio.png)
19+
20+
D1 ensures that any retry attempt does not cause database writes, making the automatic retries safe from side-effects, even if a query causing changes slips through the read-only detection. D1 achieves this by checking for modifications after every query execution, and if any write occurred due to a retry attempt, the query is rolled back.
21+
22+
The read-only query detection heuristics are simple for now, and there is room for improvement to capture more cases of queries that can be retried, so this is just the beginning.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "New DLP topic based detection entries for AI prompt protection"
3+
description: Analyze and secure user prompts to popular generative AI services with new, DLP topic classifications.
4+
date: 2025-08-25
5+
---
6+
7+
You now have access to a comprehensive suite of capabilities to secure your organization's use of generative AI. AI prompt protection introduces four key features that work together to provide deep visibility and granular control.
8+
9+
1. **Prompt Detection for AI Applications**
10+
11+
DLP can now natively detect and inspect user prompts submitted to popular AI applications, including **Google Gemini**, **ChatGPT**, **Claude**, and **Perplexity**.
12+
13+
2. **Prompt Analysis and Topic Classification**
14+
15+
Our DLP engine performs deep analysis on each prompt, applying [topic classification](/cloudflare-one/policies/data-loss-prevention/detection-entries/#ai-prompt-topics). These topics are grouped into two evaluation categories:
16+
17+
- **Content:** PII, Source Code, Credentials and Secrets, Financial Information, and Customer Data.
18+
19+
- **Intent:** Jailbreak attempts, requests for malicious code, or attempts to extract PII.
20+
21+
To help you apply these topics quickly, we have also released five new predefined profiles (for example, AI Prompt: AI Security, AI Prompt: PII) that bundle these new topics.
22+
23+
![DLP](~/assets/images/changelog/dlp/ai-prompt-detection-entry.png)
24+
25+
3. **Granular Guardrails**
26+
27+
You can now build guardrails using Gateway HTTP policies with [application granular controls](/cloudflare-one/policies/gateway/http-policies/#application-granular-controls). Apply a DLP profile containing an [AI prompt topic detection](/cloudflare-one/policies/data-loss-prevention/detection-entries/#ai-prompt-topics) to individual AI applications (for example, ```ChatGPT```) and specific user actions (for example, ```SendPrompt```) to block sensitive prompts.
28+
29+
![DLP](~/assets/images/changelog/dlp/ai-prompt-policy.png)
30+
31+
4. **Full Prompt Logging**
32+
33+
To aid in incident investigation, an optional setting in your Gateway policy allows you to [capture prompt logs](/cloudflare-one/policies/data-loss-prevention/dlp-policies/logging-options/#log-generative-ai-prompt-content) to store the full interaction of prompts that trigger a policy match. To make investigations easier, logs can be filtered by ```conversation_id```, allowing you to reconstruct the full context of an interaction that led to a policy violation.
34+
35+
![DLP](~/assets/images/changelog/dlp/ai-prompt-log.png)
36+
37+
AI prompt protection is now available in open beta. To learn more about it, read the [blog](https://blog.cloudflare.com/ai-prompt-protection/#closing-the-loop-logging) or refer to [AI prompt topics](/cloudflare-one/policies/data-loss-prevention/detection-entries/#ai-prompt-topics).

0 commit comments

Comments
 (0)