@sanity/core-loader
Advanced tools
Comparing version 1.7.34 to 1.7.35
@@ -9,2 +9,9 @@ <!-- markdownlint-disable --><!-- textlint-disable --> | ||
## [1.7.35](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.7.34...core-loader-v1.7.35) (2025-02-12) | ||
### Bug Fixes | ||
* replace `previewDrafts` with `drafts` ([#2676](https://github.com/sanity-io/visual-editing/issues/2676)) ([9db9390](https://github.com/sanity-io/visual-editing/commit/9db9390970d66d5df5c9dc79c82c35d7f2cd0726)) | ||
## [1.7.34](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.7.33...core-loader-v1.7.34) (2025-02-10) | ||
@@ -11,0 +18,0 @@ |
@@ -13,3 +13,3 @@ import { validateApiPerspective } from "@sanity/client"; | ||
); | ||
const { projectId, dataset } = client.config(), $perspective = atom("previewDrafts"), $connected = atom(!1), cache = /* @__PURE__ */ new Map(), comlink = createNode( | ||
const { projectId, dataset } = client.config(), $perspective = atom("drafts"), $connected = atom(!1), cache = /* @__PURE__ */ new Map(), comlink = createNode( | ||
{ | ||
@@ -26,3 +26,3 @@ name: "loaders", | ||
}, "connected"), comlink.on("loader/perspective", (data) => { | ||
data.projectId === projectId && data.dataset === dataset && (validateApiPerspective(data.perspective), $perspective.set(data.perspective === "raw" ? "previewDrafts" : data.perspective), updateLiveQueries()); | ||
data.projectId === projectId && data.dataset === dataset && (validateApiPerspective(data.perspective), $perspective.set(data.perspective === "raw" ? "drafts" : data.perspective), updateLiveQueries()); | ||
}), comlink.on("loader/query-change", (data) => { | ||
@@ -29,0 +29,0 @@ if (data.projectId === projectId && data.dataset === dataset) { |
{ | ||
"name": "@sanity/core-loader", | ||
"version": "1.7.34", | ||
"version": "1.7.35", | ||
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/core-loader#readme", | ||
@@ -64,6 +64,6 @@ "bugs": { | ||
"dependencies": { | ||
"@sanity/client": "^6.27.2", | ||
"@sanity/client": "^6.28.0", | ||
"@sanity/comlink": "^3.0.1", | ||
"@sanity/presentation-comlink": "^1.0.6", | ||
"@sanity/visual-editing-csm": "^2.0.4" | ||
"@sanity/visual-editing-csm": "^2.0.4", | ||
"@sanity/presentation-comlink": "^1.0.6" | ||
}, | ||
@@ -76,3 +76,3 @@ "devDependencies": { | ||
"eslint": "^8.57.1", | ||
"happy-dom": "^17.0.0", | ||
"happy-dom": "^17.0.4", | ||
"nanostores": "0.10.3", | ||
@@ -82,4 +82,4 @@ "typescript": "5.7.3", | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/prettier-config": "0.0.0", | ||
"@repo/package.config": "0.0.0" | ||
"@repo/package.config": "0.0.0", | ||
"@repo/prettier-config": "0.0.0" | ||
}, | ||
@@ -86,0 +86,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
612871
Updated@sanity/client@^6.28.0