232 Commits

Author SHA1 Message Date
Kevin Jahns
fc822645b7 add initializer to server/utils 2024-03-25 18:39:39 +01:00
Kevin Jahns
244889fd24 2.0.0 2024-03-20 11:45:09 +01:00
Kevin Jahns
c3d14cf07d make this a proper esm module 2024-03-20 11:44:18 +01:00
Kevin Jahns
89fb1e38ee Add y-redis backend 2024-03-15 01:35:23 +01:00
Kevin Jahns
1638374702 1.5.4 2024-02-20 19:11:17 +01:00
Kevin Jahns
93dfcf7f72
Merge pull request #175 from jblyberg/polyfill-fix
fix "TypeError: process.off is not a function" with bundlers
2024-02-20 19:01:39 +01:00
John Blyberg
b25c89c7c5
Update y-websocket.js 2024-02-20 12:04:52 -05:00
Kevin Jahns
25ee3f0add 1.5.3 2024-01-17 11:31:53 +01:00
Kevin Jahns
635f39ddd0 do an environment test for nodejs - fixes #166 2024-01-17 11:31:16 +01:00
Kevin Jahns
ff511896f2 1.5.2 2024-01-15 12:51:26 +01:00
Kevin Jahns
882ac9eb79 Remove unload event. fixes #165 2024-01-15 12:50:47 +01:00
Kevin Jahns
1f6716b32d 1.5.1 2023-12-13 23:55:39 +01:00
Kevin Jahns
685dd1662c add engines 2023-12-13 23:55:11 +01:00
Kevin Jahns
05b2f894d5
Merge pull request #151 from infomiho/patch-1
`npm install` fails due to an extra comma in `package.json`
2023-09-01 21:26:04 +02:00
Mihovil Ilakovac
1b867e6de4
Update package.json 2023-09-01 20:11:12 +02:00
Kevin Jahns
2811b0bf05
Merge pull request #149 from KarthikRaju391/patch-1
Update exports in package.json to work with typescript
2023-08-31 15:21:26 +02:00
Karthik Raju
c1c082c386
Update package.json 2023-08-31 12:54:50 +05:30
Kevin Jahns
5db415ab9b bump packages 2023-03-11 10:22:16 +01:00
Kevin Jahns
61c2035e34 1.5.0 2023-03-11 10:18:19 +01:00
Kevin Jahns
35be3431b8 upgrade typescript & lint 2023-03-11 10:17:44 +01:00
Kevin Jahns
51b7052860 bump rollup 2023-03-11 10:14:28 +01:00
Kevin Jahns
c4c3d845ea
Merge pull request #134 from Abdel-Monaam-Aouini/add-workflow
feat: add worklows PR & master
2023-03-11 08:52:20 +01:00
Abdel-Monaam-Aouini
9cd9600ce1 feat: add worklows PR & master 2023-03-10 21:54:27 +01:00
Kevin Jahns
10f650c0d0 1.4.6 2023-03-02 17:10:19 +01:00
Kevin Jahns
0b5279fd33 cleanup 2023-03-02 17:08:56 +01:00
Kevin Jahns
d22aecca7f
Merge pull request #121 from strdr4605/master
fix: WebSocket is already in CLOSING or CLOSED state.
2023-03-02 17:03:30 +01:00
Kevin Jahns
312ac84975
Merge pull request #132 from kkeybbs/master
Add server side transaction origin
2023-02-22 13:05:57 +01:00
kkeybbs
6c945d3ebd
Add server side transaction origin 2023-02-22 14:05:23 +08:00
Kevin Jahns
d98ea1fb83 add exports.module field - yjs/yjs#438 2023-01-01 18:39:27 +01:00
Dragoș Străinu
58ae11f52c fix: WebSocket is already in CLOSING or CLOSED state.
Based on https://stackoverflow.com/q/48472977
2022-09-28 15:30:35 +03:00
Kevin Jahns
da27b0bdbf 1.4.5 2022-09-09 16:31:02 +02:00
Kevin Jahns
829a159409 use unload instead of beforeUnload to send disconnect message. closes #119 2022-09-09 16:30:00 +02:00
Kevin Jahns
2ef5e96528 bump lib0 dependency. closes #118 2022-09-08 19:01:36 +02:00
Kevin Jahns
8e85c7fb16 lint 2022-08-31 22:20:43 +02:00
Kevin Jahns
8c04e0a0c5 fix handling of auth message - fixes #117 2022-08-31 22:13:57 +02:00
Kevin Jahns
37887badc1 1.4.4 2022-08-19 15:10:28 +02:00
Kevin Jahns
1d5d547ac0 lint 2022-08-19 15:09:54 +02:00
Kevin Jahns
20c1ac2619
Merge pull request #114 from aryzing/patch-1
Update utils.js
2022-08-19 15:02:56 +02:00
Kevin Jahns
aa43c0b395
Merge pull request #115 from aryzing/patch-2
Export message type constants
2022-08-19 15:01:58 +02:00
Kevin Jahns
2da70b3790
Merge pull request #116 from Himself65/patch-1
fix: `server.listen` port
2022-08-19 15:00:46 +02:00
Himself65
8fa06a4e9f
fix: server.listen port 2022-08-18 15:16:13 -05:00
Eduard Bardají Puig
1ee18c3766
Export message type constants 2022-08-11 23:32:11 +02:00
Eduard Bardají Puig
6415ca2e68
Update utils.js
Added a comment to clarify why reply messages are not sent when their length is 1. Alternatively we could also create a function with a descriptive name of the check being performed,

```js
function hasMessage(encoder) {
    return encoding.length(encoder) > 1;
}
```

The `if` statement would then look something like,

```js
if (hasMessage(encoder)) {
    send(...);
}
```

Thoughts?
2022-08-11 15:44:27 +02:00
Kevin Jahns
625a9d52ba
Merge pull request #113 from broofa/patch-1
remove vestigial mutex code
2022-08-05 10:15:09 +02:00
Robert Kieffer
c925c2400b
remove vestigial mutex code
Correct me if I'm wrong, but mutex/mux are no longer being used, right?
2022-08-04 13:33:55 -07:00
Kevin Jahns
bfb9d30eb9
Merge pull request #111 from lijie1129/refactor/resync
Improve the judgment condition of WS connection status in resync
2022-06-26 21:59:11 +02:00
lijie
f02ed3474f Improve the judgment condition of WS connection status in resync scenario 2022-06-26 23:50:49 +08:00
Kevin Jahns
f133fb2db5 1.4.3 2022-04-22 12:46:50 +02:00
Kevin Jahns
3c774953ec add option to disable broadcastchannel - closes #103 2022-04-22 12:44:47 +02:00
Kevin Jahns
cc6df43a74 1.4.2 2022-04-21 12:37:46 +02:00