sharedb 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
## v2.0
|
|
2
|
+
|
|
3
|
+
### Breaking changes
|
|
4
|
+
|
|
5
|
+
* Drop Node.js v10 support
|
|
6
|
+
|
|
7
|
+
## v1.0-beta
|
|
8
|
+
|
|
9
|
+
### Breaking changes
|
|
10
|
+
|
|
11
|
+
* Add options argument to all public database adapter methods that read
|
|
12
|
+
or write from snapshots or ops.
|
|
13
|
+
|
|
14
|
+
* DB methods that get snapshots or ops no longer return metadata unless
|
|
15
|
+
`{metadata: true}` option is passed.
|
|
16
|
+
|
|
17
|
+
* Replace `source` argument with `options` in doc methods. Use `options.source`
|
|
18
|
+
instead.
|
|
19
|
+
|
|
20
|
+
* Backend streams now write objects intead of strings.
|
|
21
|
+
|
|
22
|
+
* MemoryDB.prototype._querySync now returns `{snapshots: ..., extra: ...}`
|
|
23
|
+
instead of just an array of snapshots.
|
|
24
|
+
|
|
25
|
+
### Non-breaking changes
|
|
26
|
+
|
|
27
|
+
* Add options argument to backend.submit.
|
|
28
|
+
|
|
29
|
+
* Add error codes to all errors.
|
|
30
|
+
|
|
31
|
+
* Add `'updated'` event on queries which fires on all query result changes.
|
|
32
|
+
|
|
33
|
+
* In clients, wrap errors in Error objects to they get passed through event
|
|
34
|
+
emitters.
|
|
35
|
+
|
|
36
|
+
* Sanitize stack traces when sending errors to client, but log them on the
|
|
37
|
+
server.
|
|
38
|
+
|
|
39
|
+
## v0.11.37
|
|
40
|
+
|
|
41
|
+
Beginning of changelog.
|
|
42
|
+
|
|
43
|
+
If you're upgrading from ShareJS 0.7 or earlier,
|
|
44
|
+
take a look at the [ShareJS upgrade guide](docs/upgrading-from-sharejs.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sharedb",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "JSON OT database backend",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"ot-json0-v2": "https://github.com/ottypes/json0#90a3ae26364c4fa3b19b6df34dad46707a704421",
|
|
21
21
|
"ot-json1": "^1.0.2",
|
|
22
22
|
"rich-text": "^4.1.0",
|
|
23
|
-
"sharedb-legacy": "npm:sharedb
|
|
23
|
+
"sharedb-legacy": "npm:sharedb@1.1.0",
|
|
24
24
|
"sinon": "^15.2.0",
|
|
25
25
|
"sinon-chai": "^3.7.0"
|
|
26
26
|
},
|