@vercel/build-utils 8.4.5 → 8.4.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 8.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - add support for `images.localPatterns` ([#12195](https://github.com/vercel/vercel/pull/12195))
8
+
3
9
  ## 8.4.5
4
10
 
5
11
  ### Patch Changes
package/dist/types.d.ts CHANGED
@@ -367,9 +367,23 @@ export type RemotePattern = {
367
367
  */
368
368
  search?: string;
369
369
  };
370
+ export interface LocalPattern {
371
+ /**
372
+ * Can be literal or wildcard.
373
+ * Single `*` matches a single path segment.
374
+ * Double `**` matches any number of path segments.
375
+ */
376
+ pathname?: string;
377
+ /**
378
+ * Can be literal query string such as `?v=1` or
379
+ * empty string meaning no query string.
380
+ */
381
+ search?: string;
382
+ }
370
383
  export interface Images {
371
384
  domains: string[];
372
385
  remotePatterns?: RemotePattern[];
386
+ localPatterns?: LocalPattern[];
373
387
  sizes: number[];
374
388
  minimumCacheTTL?: number;
375
389
  formats?: ImageFormat[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "8.4.5",
3
+ "version": "8.4.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",