Skip to content

Commit cb0c704

Browse files
committed
upgrade pg from 7.4.1 to 8.5.1 to prevent silent failure for node v14
or later
1 parent 55a0c76 commit cb0c704

File tree

4 files changed

+89
-51
lines changed

4 files changed

+89
-51
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 4.0.0
2+
3+
- upgrade `pg` from 7.4.1 to 8.5.1 to prevent silent failure for node v14 or later, reported in [this issue](https://github.com/brianc/node-postgres/issues/2317).
4+
- fix submit ops failed due to version mismatched - https://github.com/share/sharedb-postgres/issues/8
5+
6+
## Note about re-versioning
7+
8+
Original `sharedb-postgres` seems to have been not maintained for a long time since 2018. Thus we made a fork and maintain it as `@plotdb/sharedb-postgre`.
9+
10+
11+
# Change log in original repo
12+
113
## 3.0.0
214

315
Thanks to @billwashere, we upgraded to a more modern version of `pg` (4.5.1 ->

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
# sharedb-postgres
1+
# @plotdb/sharedb-postgres
22

3-
PostgreSQL database adapter for [sharedb](https://github.com/share/sharedb). This
4-
driver can be used both as a snapshot store and oplog.
3+
PostgreSQL database adapter for [sharedb](https://github.com/share/sharedb). This driver can be used both as a snapshot store and oplog.
54

65
Doesn't support queries (yet?).
76

87
Moderately experimental. (This drives [Synaptograph](https://www.synaptograph.com)'s backend, and [@nornagon](https://github.com/nornagon) hasn't noticed any issues so far.)
98

109

10+
## Note about versioning
11+
12+
This is a fork from the [original `sharedb-postgres`](https://github.com/share/sharedb-postgres) and its relative forks (see [billwashere](https://github.com/billwashere/sharedb-postgres-jsonb), [zbryikt](https://github.com/zbryikt/sharedb-postgres-jsonb). It seems to have been not maintained for a long time since 2018, Thus we decide to fork it and maintain it as `@plotdb/sharedb-postgre`.
13+
14+
1115
## Requirements
1216

1317
Due to the fix to resolve [high concurency issues](https://github.com/share/sharedb-postgres/issues/1) Postgres 9.5+ is now required.

package-lock.json

Lines changed: 66 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "sharedb-postgres",
3-
"version": "3.0.0",
4-
"description": "PostgreSQL adapter for ShareDB",
2+
"name": "@plotdb/sharedb-postgres",
3+
"version": "4.0.0",
4+
"description": "PostgreSQL adapter for ShareDB. forked from share/sharedb-postgres",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
@@ -16,7 +16,7 @@
1616
],
1717
"repository": "share/sharedb-postgres",
1818
"dependencies": {
19-
"pg": "^7.4.1",
19+
"pg": "^8.5.1",
2020
"pg-pool": "^3.2.1",
2121
"sharedb": "^1.0.0"
2222
}

0 commit comments

Comments
 (0)