@replohq/sdk 1.13.3 → 1.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,6 +59,7 @@ export type ReploAuthenticationErrorConfig = {
59
59
  type: AuthErrorType;
60
60
  userFacingDetails?: ErrorUserFacingDetailsWithMessage;
61
61
  additionalData?: ReploErrorConfig["additionalData"];
62
+ cause?: ReploErrorConfig["cause"];
62
63
  };
63
64
  export declare class ReploAuthenticationError extends ReploError {
64
65
  type: AuthErrorType;
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sdk",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "branch": "HEAD",
5
- "commit": "07bfca44e40bcd8b9b8f88d17b826c040fb2310d",
6
- "builtAt": "2026-09-23T20:51:38.975Z"
5
+ "commit": "956e693f3835d45bbf8ecee27b4452e81f455258",
6
+ "builtAt": "2026-09-23T23:23:45.149Z"
7
7
  };
@@ -2,6 +2,13 @@ const REPLO_IMAGE_CDN = "https://assets.replocdn.com";
2
2
  function isContentfulImagesCdn(hostname) {
3
3
  return /^images(?:\.[a-z]+)?\.ctfassets\.net$/i.test(hostname);
4
4
  }
5
+ function isAvifSource(src) {
6
+ try {
7
+ return new URL(src, REPLO_IMAGE_CDN).pathname.toLowerCase().endsWith(".avif");
8
+ } catch {
9
+ return false;
10
+ }
11
+ }
5
12
  function contentfulImagesApiUrl({
6
13
  src,
7
14
  width,
@@ -20,6 +27,9 @@ function cloudflareLoader({
20
27
  width,
21
28
  quality
22
29
  }) {
30
+ if (isAvifSource(src)) {
31
+ return src;
32
+ }
23
33
  const isDevelopment = process.env.NODE_ENV === "development";
24
34
  const params = [`width=${width}`, `quality=${quality ?? 75}`, "format=auto"];
25
35
  if (/^https:\/\//i.test(src)) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sdk",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sdk",
6
- "version": "1.13.3",
6
+ "version": "1.13.4",
7
7
  "branch": "HEAD",
8
- "commit": "07bfca44e40bcd8b9b8f88d17b826c040fb2310d",
9
- "builtAt": "2026-09-23T20:51:38.975Z"
8
+ "commit": "956e693f3835d45bbf8ecee27b4452e81f455258",
9
+ "builtAt": "2026-09-23T23:23:45.149Z"
10
10
  },
11
11
  "description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
12
12
  "license": "SEE LICENSE IN LICENSE",