Skip to content

Commit

Permalink
fix(deps): @bjoerge/mutiny is now @sanity/mutate (#7344)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan authored Aug 9, 2024
1 parent 3c34f08 commit 4aeb5b6
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@sanity/export",
"@sanity/icons",
"@sanity/insert-menu",
"@sanity/mutate",
"@sanity/presentation",
"@sanity/ui",
"get-it",
Expand All @@ -60,6 +61,7 @@
"@sanity/export",
"@sanity/icons",
"@sanity/insert-menu",
"@sanity/mutate",
"@sanity/pkg-utils",
"@sanity/presentation",
"@sanity/tsdoc",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@bjoerge/mutiny": "^0.7.1",
"@google-cloud/storage": "^7.11.0",
"@jest/globals": "^29.7.0",
"@playwright/test": "1.44.1",
Expand All @@ -109,6 +108,7 @@
"@sanity/client": "^6.21.1",
"@sanity/eslint-config-i18n": "1.0.0",
"@sanity/eslint-config-studio": "^4.0.0",
"@sanity/mutate": "^0.8.0",
"@sanity/pkg-utils": "6.10.9",
"@sanity/prettier-config": "^1.0.2",
"@sanity/test": "0.0.1-alpha.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"watch": "pkg-utils watch"
},
"dependencies": {
"@bjoerge/mutiny": "^0.7.0",
"@sanity/client": "^6.21.1",
"@sanity/mutate": "^0.8.0",
"@sanity/types": "3.53.0",
"@sanity/util": "3.53.0",
"arrify": "^2.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {SanityEncoder} from '@bjoerge/mutiny'
import {type Mutation as RawMutation} from '@sanity/client'
import {SanityEncoder} from '@sanity/mutate'
import {type Path, type SanityDocument} from '@sanity/types'
import arrify from 'arrify'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import {afterEach, describe, expect, it, jest} from '@jest/globals'
/* eslint-enable simple-import-sort/imports */

import {SanityEncoder} from '@bjoerge/mutiny'
import {SanityEncoder} from '@sanity/mutate'

import {type Mutation, type Transaction} from '../../../mutations'
import {toSanityMutations, type TransactionPayload} from '../toSanityMutations'

jest.mock('@bjoerge/mutiny', () => {
jest.mock('@sanity/mutate', () => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const actual = jest.requireActual<typeof import('@bjoerge/mutiny')>('@bjoerge/mutiny')
const actual = jest.requireActual<typeof import('@sanity/mutate')>('@sanity/mutate')
return {
...actual,
SanityEncoder: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {SanityEncoder} from '@bjoerge/mutiny'
import {type Mutation as SanityMutation} from '@sanity/client'
import {SanityEncoder} from '@sanity/mutate'
import arrify from 'arrify'

import {type Mutation, type Transaction} from '../../mutations'
Expand Down
42 changes: 21 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/doc-report/docReportCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
set,
setIfMissing,
upsert,
} from '@bjoerge/mutiny'
} from '@sanity/mutate'
import {filter, map, mergeMap, of, tap} from 'rxjs'
import ts, {type JSDoc, type JSDocComment, SyntaxKind} from 'typescript'

Expand Down

0 comments on commit 4aeb5b6

Please sign in to comment.