CHANGELOG
X.X.X (comming soon)
7.0.0 (27 November 2023)
- CHANGE do not emit messages that have been existed before the channel was created.
6.0.0 (30 October 2023)
- ADD support for the Deno runtime
5.5.1 (23 October 2023)
- REPLACE
new Date().getTime()
with Date.now()
which is faster
5.5.0 (17 October 2023)
5.3.0 (18 August 2023)
https://github.com/pubkey/broadcast-channel/pull/1243
5.2.0 (11 August 2023)
https://github.com/pubkey/broadcast-channel/pull/1237
5.1.0 (25 April 2023)
- REFACTOR check for native method #1157
5.0.1 (23 March 2023)
- FIX hasLeader() is mixing up states
5.0.0 (23 March 2023)
- Use Web Locks API for leader election if possible.
LeaderElector.hasLeader
is now a function that returns a Promise<boolean>
.
4.20.1 (6 January 2023)
4.20.0 (6 January 2023)
- FIX typings did not work with
"moduleResolution": "NodeNext"
4.19.0 (28 December 2022)
4.18.1 (31 October 2022)
4.18.0 (6 October 2022)
- FIX fix(indexedDB): Can't start a transaction on a closed database #1042 nabigraphics
4.17.0 (13 September 2022)
- REMOVE the
isNode
utility function so that we do not access the process
variable in browsers.
4.16.0 (13 September 2022)
4.14.0 (18 Juli June 2022)
4.13.0 (1 June 2022)
- FIX ES module for Node.js #972
4.12.0 (25 May 2022)
4.11.0 (12 April 2022)
- Replaced
nano-time
with microtime
.
- Improve IndexedDB method performance.
4.10.0 (3 February 2022)
- Improve error message when calling
postMessage
to a closed channel.
4.9.0 (23 December 2021)
Bugfixes:
- When listening to messages directly, responses that where send directly after
addEventListener()
where missing because of inaccurate JavaScript timing.
4.8.0 (15 December 2021)
Changes:
- Better determine the correct
responseTime
to use to make it less likely to elect duplicate leaders.
4.7.1 (13 December 2021)
Bugfixes:
- Remove useless log at leader election fallback interval.
4.7.0 (3 December 2021)
Bugfixes:
- Prevent
EMFILE, too many open files
error when writing many messages at once.
4.6.0 (2 December 2021)
Other:
- Added
broadcastChannel.id()
for debugging
Bugfixes:
- Refactor
applyOnce()
queue to ensure we do not run more often then needed.
4.5.0 (5 November 2021)
Bugfixes:
- Running
applyOnce()
in a loop must not fully block the JavaScript process.
4.4.0 (2 November 2021)
Other:
- Replaced
js-sha
with node's crypto
module.
4.3.1 (30 October 2021)
Bugfixes:
- Fixed broken promise rejection.
4.3.0 (30 October 2021)
Features:
- Added
LeaderElector.hasLeader
- Added
LeaderElector.broadcastChannel
4.2.0 (3 August 2021)
Bugfixes:
- Fixed Webpack 5 Relative Import Support. Thanks catrielmuller
4.1.0 (2 August 2021)
Bugfixes:
4.0.0 (15 July 2021)
Other:
3.7.0 (13 June 2021)
Other:
3.6.0 (19 May 2021)
Features:
- Added
BroadcastChannel.isClosed
#544
Other:
- Updated dependencies to work with newer node versions
3.5.3 (11 March 2021)
Bugfixes:
3.5.2 (11 March 2021)
Bugfixes:
BroadcastChannel.close()
waits for all ongoing message sending to be finished before resolving.
3.5.0 (11 March 2021)
Features:
- Added
LeaderElector.onduplicate
3.4.0 (24 January 2021)
Bugfixes:
- fix cursor error in Safari #420
3.3.0 (20 October 2020)
Bugfixes:
new BroadcastChannel().close()
should not resolve before all cleanup is done #348