Skip to content

Commit

Permalink
feat!(datastores): remove deprecated document APIs from v1
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Aug 9, 2022
1 parent b0ccfc3 commit c6cabbf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 156 deletions.
152 changes: 0 additions & 152 deletions packages/sanity/src/datastores/document/_createDeprecatedAPIs.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/sanity/src/datastores/document/document-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {getDraftId, isDraftId} from '../../util'
import {HistoryStore} from '../history'
import {DocumentPreviewStore} from '../../preview'
import {Template} from '../../templates'
import createDeprecatedAPIs from './_createDeprecatedAPIs'
import {checkoutPair, DocumentVersionEvent, Pair} from './document-pair/checkoutPair'
import {consistencyStatus} from './document-pair/consistencyStatus'
import {documentEvents} from './document-pair/documentEvents'
Expand Down Expand Up @@ -78,9 +77,6 @@ export function createDocumentStore({
const operationEvents = getOperationEvents(ctx)

return {
// Todo: can be removed in ~january 2020
...createDeprecatedAPIs(versionedClient),

// Public API
checkoutPair(idPair) {
return checkoutPair(versionedClient, idPair)
Expand Down

0 comments on commit c6cabbf

Please sign in to comment.