@sanity/util 6.24.0-next.8 → 6.24.0-next.94
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/lib/accepts.d.ts +1 -2
- package/lib/client.d.ts +1 -2
- package/lib/concurrency-limiter.d.ts +1 -2
- package/lib/content.d.ts +1 -2
- package/lib/createSafeJsonParser.d.ts +1 -2
- package/lib/fs.d.ts +1 -2
- package/lib/legacyDateFormat.d.ts +1 -2
- package/lib/paths.d.ts +1 -2
- package/package.json +5 -5
package/lib/accepts.d.ts
CHANGED
package/lib/client.d.ts
CHANGED
|
@@ -4,5 +4,4 @@ import { SanityClient } from "@sanity/client";
|
|
|
4
4
|
* requests. Keeps the concurrency limit state and returns wrapped clients with
|
|
5
5
|
* that same state if the `clone` `config` or `withConfig` methods are called.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createClientConcurrencyLimiter(maxConcurrency: number, defaultSignal?: AbortSignal): (input: SanityClient) => SanityClient;
|
|
8
|
-
//# sourceMappingURL=client.d.ts.map
|
|
7
|
+
export declare function createClientConcurrencyLimiter(maxConcurrency: number, defaultSignal?: AbortSignal): (input: SanityClient) => SanityClient;
|
package/lib/content.d.ts
CHANGED
|
@@ -33,5 +33,4 @@ export declare function isShallowEmptyObject(value: {
|
|
|
33
33
|
}): boolean;
|
|
34
34
|
export declare function randomKey(length?: number): string;
|
|
35
35
|
export declare function resolveTypeName(value: unknown): string;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=content.d.ts.map
|
|
36
|
+
export {};
|
|
@@ -17,5 +17,4 @@ type Parser<Type> = (line: string) => Type;
|
|
|
17
17
|
* @see {@link https://github.com/sanity-io/sanity/pull/1787 | Initial pull request}
|
|
18
18
|
*/
|
|
19
19
|
export declare function createSafeJsonParser<Type>({ errorLabel }: Options): Parser<Type>;
|
|
20
|
-
export type { Options, Parser };
|
|
21
|
-
//# sourceMappingURL=createSafeJsonParser.d.ts.map
|
|
20
|
+
export type { Options, Parser };
|
package/lib/fs.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function pathIsEmpty(dir: string): Promise<boolean>;
|
|
2
2
|
export declare function expandHome(filePath: string): string;
|
|
3
|
-
export declare function absolutify(dir: string): string;
|
|
4
|
-
//# sourceMappingURL=fs.d.ts.map
|
|
3
|
+
export declare function absolutify(dir: string): string;
|
|
@@ -18,5 +18,4 @@ export declare function format(input: Date, dateFormat: string, options?: {
|
|
|
18
18
|
}): string;
|
|
19
19
|
export declare function parse(dateString: string, dateFormat?: string, timeZone?: string): ParseResult;
|
|
20
20
|
export declare function isValidTimeZoneString(timeZone: string): boolean;
|
|
21
|
-
export { type ParseResult, sanitizeLocale };
|
|
22
|
-
//# sourceMappingURL=legacyDateFormat.d.ts.map
|
|
21
|
+
export { type ParseResult, sanitizeLocale };
|
package/lib/paths.d.ts
CHANGED
|
@@ -28,5 +28,4 @@ export declare function _resolveKeyedPath(value: unknown, path: Path): Path;
|
|
|
28
28
|
* Object keys will be preserved as-is, e.g. `resolveKeyedPath(['foo', 'bar'], undefined)` will return `['foo', 'bar']`
|
|
29
29
|
*/
|
|
30
30
|
export declare function resolveKeyedPath(value: unknown, path: Path): Path;
|
|
31
|
-
export declare function fromString(path: string): Path;
|
|
32
|
-
//# sourceMappingURL=paths.d.ts.map
|
|
31
|
+
export declare function fromString(path: string): Path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/util",
|
|
3
|
-
"version": "6.24.0-next.
|
|
3
|
+
"version": "6.24.0-next.94",
|
|
4
4
|
"description": "Utilities shared across projects of Sanity",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@date-fns/tz": "^1.5.0",
|
|
72
72
|
"@date-fns/utc": "^2.1.1",
|
|
73
73
|
"@sanity/client": "^8.15.1",
|
|
74
|
-
"@sanity/types": "6.24.0-next.
|
|
74
|
+
"@sanity/types": "6.24.0-next.94+8bed8bfe21",
|
|
75
75
|
"date-fns": "^4.4.0",
|
|
76
76
|
"get-it": "^9.7.0",
|
|
77
77
|
"rxjs": "^7.8.2"
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"@repo/test-config": "6.9.2",
|
|
81
81
|
"@repo/tsconfig": "6.9.2",
|
|
82
82
|
"@repo/tsdown.config": "6.9.2",
|
|
83
|
-
"@types/node": "^24.
|
|
83
|
+
"@types/node": "^24.19.2",
|
|
84
84
|
"tsdown": "^0.23.2",
|
|
85
85
|
"typescript": "^7.0.2",
|
|
86
|
-
"vite": "^8.3.
|
|
87
|
-
"vitest": "^5.0
|
|
86
|
+
"vite": "^8.3.8",
|
|
87
|
+
"vitest": "^5.1.0"
|
|
88
88
|
},
|
|
89
89
|
"browserslist": [
|
|
90
90
|
"node >=22.12",
|