@vercel/build-utils 8.4.4 → 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,17 @@
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
+
9
+ ## 8.4.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [build-utils] add types for `images.remotePatterns.search` to vercel.json ([#12158](https://github.com/vercel/vercel/pull/12158))
14
+
3
15
  ## 8.4.4
4
16
 
5
17
  ### Patch Changes
package/dist/types.d.ts CHANGED
@@ -361,10 +361,29 @@ export type RemotePattern = {
361
361
  * Double `**` matches any number of path segments.
362
362
  */
363
363
  pathname?: string;
364
+ /**
365
+ * Can be literal query string such as `?v=1` or
366
+ * empty string meaning no query string.
367
+ */
368
+ search?: string;
364
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
+ }
365
383
  export interface Images {
366
384
  domains: string[];
367
385
  remotePatterns?: RemotePattern[];
386
+ localPatterns?: LocalPattern[];
368
387
  sizes: number[];
369
388
  minimumCacheTTL?: number;
370
389
  formats?: ImageFormat[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "8.4.4",
3
+ "version": "8.4.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",