Skip to content

Commit

Permalink
chore: fix error by update recoil-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AkifumiSato committed Aug 21, 2022
1 parent 338d723 commit 7afee39
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -84,7 +84,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"recoil": "0.7.5",
"recoil-sync": "0.1.0",
"recoil-sync": "0.1.1",
"simple-git-hooks": "2.8.0",
"transit-js": "0.8.874",
"ts-jest": "28.0.8",
Expand Down
12 changes: 6 additions & 6 deletions src/history/RecoilHistorySyncTransitNext.test.tsx
Expand Up @@ -217,9 +217,9 @@ describe('<RecoilHistorySyncTransitNext />', () => {
})

describe('Set', () => {
const set1 = new Set<string>(['Foo'])
const set2 = new Set<string>(['Bar', 'Baz'])
const testState = atom<Set<string>>({
const set1: ReadonlySet<string> = new Set(['Foo'])
const set2: ReadonlySet<string> = new Set(['Bar', 'Baz'])
const testState = atom<ReadonlySet<string>>({
key: nextKey(),
default: set1,
effects: [syncEffect({ refine: set(string()) })],
Expand Down Expand Up @@ -309,12 +309,12 @@ describe('<RecoilHistorySyncTransitNext />', () => {
})

describe('Map', () => {
const map1 = new Map<string, string>([['foo', 'Foo']])
const map2 = new Map<string, string>([
const map1: ReadonlyMap<string, string> = new Map([['foo', 'Foo']])
const map2: ReadonlyMap<string, string> = new Map([
['bar', 'Bar'],
['baz', 'Baz'],
])
const testState = atom<Map<string, string>>({
const testState = atom<ReadonlyMap<string, string>>({
key: nextKey(),
default: map1,
effects: [syncEffect({ refine: map(string(), string()) })],
Expand Down
17 changes: 11 additions & 6 deletions yarn.lock
Expand Up @@ -719,11 +719,16 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@recoiljs/refine@0.1.0", "@recoiljs/refine@^0.1.0":
"@recoiljs/refine@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@recoiljs/refine/-/refine-0.1.0.tgz#915a60801334b11bf4245231b734e31bab39bcda"
integrity sha512-5f5ohe6Fc24tW4esoEgCBl+E4qUe/C1nJUAhkt+2xQ3//OCkvpsQ/YrPY6B+DHjoKsrfO0RLekxSQcUlWz2UUA==

"@recoiljs/refine@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@recoiljs/refine/-/refine-0.1.1.tgz#282a1cc603bac7db08eea571bbee757f9cf7b55c"
integrity sha512-ry02rHswJePYkH1o8K99qL4O6TBntF9/g7W5wXVwaOUrIJEZUGfl/I3+btPXbUgyyEZvNs5xcwvOw13AufmFQw==

"@rushstack/eslint-patch@^1.1.3":
version "1.1.4"
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.4.tgz#0c8b74c50f29ee44f423f7416829c0bf8bb5eb27"
Expand Down Expand Up @@ -3844,12 +3849,12 @@ read-pkg@^3.0.0:
normalize-package-data "^2.3.2"
path-type "^3.0.0"

recoil-sync@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/recoil-sync/-/recoil-sync-0.1.0.tgz#4bdbadff3e205036151e766d27118d2baec82ecf"
integrity sha512-0D1cb1EJbWk1gDyZ3jA7nrRNpnLe9tw5lo8sKlheKXL17iOih5m96WPGLLy4j/Kl444xA2X8EERXw6Q6ml34PQ==
recoil-sync@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/recoil-sync/-/recoil-sync-0.1.1.tgz#c20df122077b45c7b3dba9ed30f7f03b15f8b79c"
integrity sha512-+ZVMT4sLIyUFif7EeIlJjOLdiMarF3M0E9uJWQG9vK5yoFLrXzY8qR0fzIH36ofOwpPUmX4fw90YkV29X3Ts+w==
dependencies:
"@recoiljs/refine" "^0.1.0"
"@recoiljs/refine" "^0.1.1"
transit-js "^0.8.874"

recoil@0.7.5:
Expand Down

0 comments on commit 7afee39

Please sign in to comment.