@sanity/core-loader
Advanced tools
Comparing version 1.7.18-release.0 to 1.7.18-release.1
@@ -21,2 +21,9 @@ <!-- markdownlint-disable --><!-- textlint-disable --> | ||
## [1.7.18](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.7.17...core-loader-v1.7.18) (2024-12-03) | ||
### Bug Fixes | ||
* remove `SanityClient` instanceof check ([d811370](https://github.com/sanity-io/visual-editing/commit/d811370f1c0bb4ed80ae5c74ca7f7f6d68bc7fa7)) | ||
## [1.7.17](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.7.16...core-loader-v1.7.17) (2024-12-03) | ||
@@ -23,0 +30,0 @@ |
import { createCompatibilityActors } from "./createDataAttribute.js"; | ||
import { SanityClient, validateApiPerspective } from "@sanity/client"; | ||
import { validateApiPerspective } from "@sanity/client"; | ||
import { stegaEncodeSourceMap } from "@sanity/client/stega"; | ||
@@ -9,7 +9,5 @@ import { createNode, createNodeMachine } from "@sanity/comlink"; | ||
const { client, setFetcher, onConnect, onDisconnect } = options; | ||
if (!client || !(client instanceof SanityClient)) | ||
if (!client) | ||
throw new Error( | ||
`Expected \`client\` to be an instance of SanityClient or SanityStegaClient: ${JSON.stringify( | ||
client | ||
)}` | ||
`Expected \`client\` to be an instance of SanityClient: ${JSON.stringify(client)}` | ||
); | ||
@@ -16,0 +14,0 @@ const { projectId, dataset } = client.config(), $perspective = atom("previewDrafts"), $connected = atom(!1), cache = /* @__PURE__ */ new Map(), comlink = createNode( |
{ | ||
"name": "@sanity/core-loader", | ||
"version": "1.7.18-release.0", | ||
"version": "1.7.18-release.1", | ||
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/core-loader#readme", | ||
@@ -65,3 +65,3 @@ "bugs": { | ||
"@sanity/client": "^6.24.1", | ||
"@sanity/comlink": "2.0.1-release.0" | ||
"@sanity/comlink": "2.0.1-release.1" | ||
}, | ||
@@ -79,5 +79,5 @@ "devDependencies": { | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/package.config": "0.0.0", | ||
"@repo/prettier-config": "0.0.0", | ||
"@repo/visual-editing-helpers": "0.7.6", | ||
"@repo/package.config": "0.0.0" | ||
"@repo/visual-editing-helpers": "0.7.6" | ||
}, | ||
@@ -84,0 +84,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
964655
5187
+ Added@sanity/comlink@2.0.1-release.1(transitive)
- Removed@sanity/comlink@2.0.1-release.0(transitive)