sanity 5.1.1-next.4 → 5.1.1-next.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.
|
@@ -11,7 +11,6 @@ function requireDevAliases() {
|
|
|
11
11
|
"@sanity/codegen": "@sanity/codegen/src/_exports",
|
|
12
12
|
"@sanity/mutator": "@sanity/mutator/src",
|
|
13
13
|
"@sanity/schema": "@sanity/schema/src/_exports",
|
|
14
|
-
"@sanity/migrate": "@sanity/migrate/src/_exports",
|
|
15
14
|
"@sanity/types": "@sanity/types/src",
|
|
16
15
|
"@sanity/util": "@sanity/util/src/_exports",
|
|
17
16
|
"@sanity/vision": "@sanity/vision/src",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-aliases.js","sources":["../../../@repo/dev-aliases/dev-aliases.cjs"],"sourcesContent":["/* eslint-disable tsdoc/syntax */\n\n// NOTE: THIS FILE NEEDS TO REMAIN COMMONJS\n// It can be converted to ESM/TS when we either not use jest anymore, or node/jest runner natively supports ESM (including with import.meta etc).\n\n/**\n * The path mappings/aliases used by various tools in the monorepo to map imported modules to\n * source files in order to speed up rebuilding and avoid having a separate watcher process to build\n * from `src` to `lib`.\n *\n * This file is currently read by:\n * - Vite when running the dev server (only when running in this monorepo)\n * - jest when running test suite\n *\n * @type Record<string, string>\n */\nconst devAliases = {\n // NOTE: do not use regex in the module expressions,\n // because they will be escaped by the jest config\n '@sanity/diff': '@sanity/diff/src',\n '@sanity/cli': '@sanity/cli/src',\n '@sanity/codegen': '@sanity/codegen/src/_exports',\n '@sanity/mutator': '@sanity/mutator/src',\n '@sanity/schema': '@sanity/schema/src/_exports',\n '@sanity/
|
|
1
|
+
{"version":3,"file":"dev-aliases.js","sources":["../../../@repo/dev-aliases/dev-aliases.cjs"],"sourcesContent":["/* eslint-disable tsdoc/syntax */\n\n// NOTE: THIS FILE NEEDS TO REMAIN COMMONJS\n// It can be converted to ESM/TS when we either not use jest anymore, or node/jest runner natively supports ESM (including with import.meta etc).\n\n/**\n * The path mappings/aliases used by various tools in the monorepo to map imported modules to\n * source files in order to speed up rebuilding and avoid having a separate watcher process to build\n * from `src` to `lib`.\n *\n * This file is currently read by:\n * - Vite when running the dev server (only when running in this monorepo)\n * - jest when running test suite\n *\n * @type Record<string, string>\n */\nconst devAliases = {\n // NOTE: do not use regex in the module expressions,\n // because they will be escaped by the jest config\n '@sanity/diff': '@sanity/diff/src',\n '@sanity/cli': '@sanity/cli/src',\n '@sanity/codegen': '@sanity/codegen/src/_exports',\n '@sanity/mutator': '@sanity/mutator/src',\n '@sanity/schema': '@sanity/schema/src/_exports',\n '@sanity/types': '@sanity/types/src',\n '@sanity/util': '@sanity/util/src/_exports',\n '@sanity/vision': '@sanity/vision/src',\n 'sanity': 'sanity/src/_exports',\n 'groq': 'groq/src/_exports.mts',\n}\n\nmodule.exports = devAliases\n"],"names":[],"mappings":";;;;;8DA+BA,eAfmB;AAAA;AAAA;AAAA,IAGjB,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,QAAU;AAAA,IACV,MAAQ;AAAA,EACV;;;;;;"}
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.1.1-next.
|
|
10
|
+
"5.1.1-next.6+dd33f5b975";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -53443,7 +53443,7 @@ const bundleDocumentsCache = /* @__PURE__ */ Object.create(null), getActiveRelea
|
|
|
53443
53443
|
validation: [],
|
|
53444
53444
|
revision: document2._rev,
|
|
53445
53445
|
hasError: !1
|
|
53446
|
-
}) : from(schedulerYield(() => Promise.resolve())).pipe(switchMap(() => validateDocumentWithReferences(ctx, of(document2), !
|
|
53446
|
+
}) : from(schedulerYield(() => Promise.resolve())).pipe(switchMap(() => validateDocumentWithReferences(ctx, of(document2), !1).pipe(map((validationStatus) => ({
|
|
53447
53447
|
...validationStatus,
|
|
53448
53448
|
hasError: validationStatus.validation.some((marker) => isValidationErrorMarker(marker))
|
|
53449
53449
|
}))))), processDocument = (id2) => {
|