@dabble/patches 0.2.27 → 0.2.29

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.
@@ -1,4 +1,3 @@
1
- import { TextEncoder } from 'util'; // Node.js TextEncoder
2
1
  /** Estimate JSON string byte size. */
3
2
  export function getJSONByteSize(data) {
4
3
  // Basic estimation, might not be perfectly accurate due to encoding nuances
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dabble/patches",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "Immutable JSON Patch implementation based on RFC 6902 supporting operational transformation and last-writer-wins",
5
5
  "author": "Jacob Wright <jacwright@gmail.com>",
6
6
  "bugs": {
@@ -58,9 +58,13 @@
58
58
  "crypto-id": "^0.2.3"
59
59
  },
60
60
  "peerDependencies": {
61
- "@dabble/delta": "^1.2.4",
62
61
  "simple-peer": "^9.11.1"
63
62
  },
63
+ "peerDependenciesMeta": {
64
+ "simple-peer": {
65
+ "optional": true
66
+ }
67
+ },
64
68
  "devDependencies": {
65
69
  "@sveltejs/package": "^2.3.11",
66
70
  "@types/simple-peer": "^9.11.8",