Skip to content

Commit 084918f

Browse files
chore: upgrade Prettier (#27)
Upgrade prettier because the current version could not parse satisfies, which is a relatively new TypeScript feature. Then apply code formatting. The new Prettier version seems to format .md files slightly differently
1 parent 8d15a32 commit 084918f

5 files changed

Lines changed: 73 additions & 43 deletions

File tree

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.pnp.cjs
22
.pnp.loader.mjs
3+
.yarn

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"eslint": "^8.10.0",
2323
"eslint-config-prettier": "^8.4.0",
2424
"eslint-plugin-import": "^2.25.4",
25-
"eslint-plugin-prettier": "^4.0.0",
25+
"eslint-plugin-prettier": "^5.2.3",
2626
"eslint-plugin-simple-import-sort": "^7.0.0",
27-
"prettier": "^2.5.1",
27+
"prettier": "^3.4.2",
2828
"vite": "^2.8.4"
2929
},
3030
"packageManager": "yarn@4.6.0"

packages/immer-yjs/CHANGELOG.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,66 @@ All notable changes to this project will be documented in this file. See [standa
66

77
### ⚠ BREAKING CHANGES
88

9-
- update deps to latest
9+
- update deps to latest
1010

1111
### Features
1212

13-
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
14-
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
13+
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
14+
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
1515

1616
### Bug Fixes
1717

18-
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
19-
- handle replace array.length operation ([e4fbe7a](https://github.com/sep2/immer-yjs/commit/e4fbe7a17f311a7d885ed7e4a67ce854c8dafd1e))
20-
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
18+
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
19+
- handle replace array.length operation ([e4fbe7a](https://github.com/sep2/immer-yjs/commit/e4fbe7a17f311a7d885ed7e4a67ce854c8dafd1e))
20+
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
2121

22-
- update deps to latest ([d53c096](https://github.com/sep2/immer-yjs/commit/d53c0969cf459423648e7dc723eae5a7c7826d70))
22+
- update deps to latest ([d53c096](https://github.com/sep2/immer-yjs/commit/d53c0969cf459423648e7dc723eae5a7c7826d70))
2323

2424
## 1.0.0 (2022-04-27)
2525

2626
Bump to 1.0.0 because of this issue [standard-version#539](https://github.com/conventional-changelog/standard-version/issues/539)
2727

2828
### ⚠ BREAKING CHANGES
2929

30-
- update deps to latest
30+
- update deps to latest
3131

3232
### Features
3333

34-
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
35-
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
34+
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
35+
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
3636

3737
### Bug Fixes
3838

39-
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
40-
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
39+
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
40+
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
4141

42-
- update deps to latest ([d53c096](https://github.com/sep2/immer-yjs/commit/d53c0969cf459423648e7dc723eae5a7c7826d70))
42+
- update deps to latest ([d53c096](https://github.com/sep2/immer-yjs/commit/d53c0969cf459423648e7dc723eae5a7c7826d70))
4343

4444
### [0.1.4](https://github.com/sep2/immer-yjs/compare/v0.1.3...v0.1.4) (2022-03-17)
4545

4646
### Bug Fixes
4747

48-
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
48+
- bundle badge ([a1c77dd](https://github.com/sep2/immer-yjs/commit/a1c77dded078b33e8f0c1507847052b21589b59d))
4949

5050
### 0.1.3 (2022-03-08)
5151

5252
### Features
5353

54-
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
55-
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
54+
- add option to configure applyPatch ([41cb3e8](https://github.com/sep2/immer-yjs/commit/41cb3e8dd316bbfd19045aba2590ccb331be523d))
55+
- export default bind ([e54e3cc](https://github.com/sep2/immer-yjs/commit/e54e3cca0a8df6971fbe821be00af3440bcd5b9e))
5656

5757
### Bug Fixes
5858

59-
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
59+
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
6060

6161
### 0.1.2 (2022-03-08)
6262

6363
### Features
6464

65-
- add option to configure applyPatch ([d20b970](https://github.com/sep2/immer-yjs/commit/d20b970c4a75801230b3eb6094d290db62386e6d))
65+
- add option to configure applyPatch ([d20b970](https://github.com/sep2/immer-yjs/commit/d20b970c4a75801230b3eb6094d290db62386e6d))
6666

6767
### 0.0.9 (2022-03-04)
6868

6969
### Bug Fixes
7070

71-
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))
71+
- support mutating root type ([0a42efe](https://github.com/sep2/immer-yjs/commit/0a42efed8c2249d640d9bbcf4279fe3d555d7560))

readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Combine immer & y.js
99

1010
[immer](https://github.com/immerjs/immer) is a library for easy immutable data manipulation using plain json structure. [y.js](https://github.com/yjs/yjs) is a CRDT library with mutation-based API. `immer-yjs` allows manipulating `y.js` data types with the api provided by `immer`.
1111

12-
- Two-way binding between y.js and plain (nested) json object/array.
13-
- Efficient snapshot update with structural sharing, same as `immer`.
14-
- Updates to `y.js` are explicitly batched in transaction, you control the transaction boundary.
15-
- Always opt-in, non-intrusive by nature (the snapshot is just a plain object after all).
16-
- The snapshot shape & y.js binding aims to be fully customizable.
17-
- Typescript all the way (pure js is also supported).
18-
- Code is simple and small, no magic hidden behind, no vendor-locking.
12+
- Two-way binding between y.js and plain (nested) json object/array.
13+
- Efficient snapshot update with structural sharing, same as `immer`.
14+
- Updates to `y.js` are explicitly batched in transaction, you control the transaction boundary.
15+
- Always opt-in, non-intrusive by nature (the snapshot is just a plain object after all).
16+
- The snapshot shape & y.js binding aims to be fully customizable.
17+
- Typescript all the way (pure js is also supported).
18+
- Code is simple and small, no magic hidden behind, no vendor-locking.
1919

2020
Do:
2121

@@ -131,7 +131,7 @@ Please submit with sample code by PR, helps needed.
131131

132132
Data will sync between multiple browser tabs automatically.
133133

134-
- [Messages Object](https://codesandbox.io/s/immer-yjs-demo-6e0znb)
134+
- [Messages Object](https://codesandbox.io/s/immer-yjs-demo-6e0znb)
135135

136136
# Changelog
137137

yarn.lock

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ __metadata:
222222
languageName: node
223223
linkType: hard
224224

225+
"@pkgr/core@npm:^0.1.0":
226+
version: 0.1.1
227+
resolution: "@pkgr/core@npm:0.1.1"
228+
checksum: 10/6f25fd2e3008f259c77207ac9915b02f1628420403b2630c92a07ff963129238c9262afc9e84344c7a23b5cc1f3965e2cd17e3798219f5fd78a63d144d3cceba
229+
languageName: node
230+
linkType: hard
231+
225232
"@rollup/pluginutils@npm:^5.1.0":
226233
version: 5.1.0
227234
resolution: "@rollup/pluginutils@npm:5.1.0"
@@ -2011,18 +2018,23 @@ __metadata:
20112018
languageName: node
20122019
linkType: hard
20132020

2014-
"eslint-plugin-prettier@npm:^4.0.0":
2015-
version: 4.0.0
2016-
resolution: "eslint-plugin-prettier@npm:4.0.0"
2021+
"eslint-plugin-prettier@npm:^5.2.3":
2022+
version: 5.2.3
2023+
resolution: "eslint-plugin-prettier@npm:5.2.3"
20172024
dependencies:
20182025
prettier-linter-helpers: "npm:^1.0.0"
2026+
synckit: "npm:^0.9.1"
20192027
peerDependencies:
2020-
eslint: ">=7.28.0"
2021-
prettier: ">=2.0.0"
2028+
"@types/eslint": ">=8.0.0"
2029+
eslint: ">=8.0.0"
2030+
eslint-config-prettier: "*"
2031+
prettier: ">=3.0.0"
20222032
peerDependenciesMeta:
2033+
"@types/eslint":
2034+
optional: true
20232035
eslint-config-prettier:
20242036
optional: true
2025-
checksum: 10/8948229771563907bf3455375f46ef53dd2f2b6e4d86f7e0b0408d91cb6dc89d7a72af3c0ae820abcd4cdfcf56be3e3db387ee7aa1937df86715a03ea7cefed6
2037+
checksum: 10/6444a0b89f3e2a6b38adce69761133f8539487d797f1655b3fa24f93a398be132c4f68f87041a14740b79202368d5782aa1dffd2bd7a3ea659f263d6796acf15
20262038
languageName: node
20272039
linkType: hard
20282040

@@ -2753,9 +2765,9 @@ __metadata:
27532765
eslint: "npm:^8.10.0"
27542766
eslint-config-prettier: "npm:^8.4.0"
27552767
eslint-plugin-import: "npm:^2.25.4"
2756-
eslint-plugin-prettier: "npm:^4.0.0"
2768+
eslint-plugin-prettier: "npm:^5.2.3"
27572769
eslint-plugin-simple-import-sort: "npm:^7.0.0"
2758-
prettier: "npm:^2.5.1"
2770+
prettier: "npm:^3.4.2"
27592771
vite: "npm:^2.8.4"
27602772
languageName: unknown
27612773
linkType: soft
@@ -2780,7 +2792,7 @@ __metadata:
27802792
"immer@npm:^10.1.1":
27812793
version: 10.1.1
27822794
resolution: "immer@npm:10.1.1"
2783-
checksum: 9dacf1e8c201d69191ccd88dc5d733bafe166cd45a5a360c5d7c88f1de0dff974a94114d72b35f3106adfe587fcfb131c545856184a2247d89d735ad25589863
2795+
checksum: 10/9dacf1e8c201d69191ccd88dc5d733bafe166cd45a5a360c5d7c88f1de0dff974a94114d72b35f3106adfe587fcfb131c545856184a2247d89d735ad25589863
27842796
languageName: node
27852797
linkType: hard
27862798

@@ -3973,12 +3985,12 @@ __metadata:
39733985
languageName: node
39743986
linkType: hard
39753987

3976-
"prettier@npm:^2.5.1":
3977-
version: 2.5.1
3978-
resolution: "prettier@npm:2.5.1"
3988+
"prettier@npm:^3.4.2":
3989+
version: 3.4.2
3990+
resolution: "prettier@npm:3.4.2"
39793991
bin:
3980-
prettier: bin-prettier.js
3981-
checksum: 10/c8f95df9ebe7241c557ab74237395adfed603719099aaf7cdb9b711c1a7fb7ac809c03fe68c22d0a6c0dbf1c4ab3c6eb90a6cc7bb31e4ea07a4a84fdbbb5c58f
3992+
prettier: bin/prettier.cjs
3993+
checksum: 10/a3e806fb0b635818964d472d35d27e21a4e17150c679047f5501e1f23bd4aa806adf660f0c0d35214a210d5d440da6896c2e86156da55f221a57938278dc326e
39823994
languageName: node
39833995
linkType: hard
39843996

@@ -4644,6 +4656,16 @@ __metadata:
46444656
languageName: node
46454657
linkType: hard
46464658

4659+
"synckit@npm:^0.9.1":
4660+
version: 0.9.2
4661+
resolution: "synckit@npm:0.9.2"
4662+
dependencies:
4663+
"@pkgr/core": "npm:^0.1.0"
4664+
tslib: "npm:^2.6.2"
4665+
checksum: 10/d45c4288be9c0232343650643892a7edafb79152c0c08d7ae5d33ca2c296b67a0e15f8cb5c9153969612c4ea5cd5686297542384aab977db23cfa6653fe02027
4666+
languageName: node
4667+
linkType: hard
4668+
46474669
"tar@npm:^6.0.2, tar@npm:^6.1.2":
46484670
version: 6.1.11
46494671
resolution: "tar@npm:6.1.11"
@@ -4754,6 +4776,13 @@ __metadata:
47544776
languageName: node
47554777
linkType: hard
47564778

4779+
"tslib@npm:^2.6.2":
4780+
version: 2.8.1
4781+
resolution: "tslib@npm:2.8.1"
4782+
checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7
4783+
languageName: node
4784+
linkType: hard
4785+
47574786
"tsutils@npm:^3.21.0":
47584787
version: 3.21.0
47594788
resolution: "tsutils@npm:3.21.0"

0 commit comments

Comments
 (0)