68ceed8cf8
Test on recent versions of Node
main
James Coglan
2023-09-07 19:24:32 +01:00
947ad6692b
Switch from Travis CI to GitHub Actions
James Coglan
2021-05-18 22:11:31 +01:00
8ee77a23c0
Travis update: cache npm modules, remove sudo, run on Node 15
James Coglan
2021-03-12 21:37:13 +00:00
5eddd922aa
Add Node versions 13 and 14 on Travis
James Coglan
2020-05-14 16:28:42 +01:00
75b434c6a0
Mention license change in the changelog
James Coglan
2019-06-13 11:38:41 +01:00
ae94112fe9
Formatting change: {...} should have spaces inside the braces
James Coglan
2019-06-11 15:50:38 +01:00
5a74a0471b
Bump version to 0.1.7
0.1.7
James Coglan
2019-06-10 12:14:40 +01:00
3500cddfa7
Let npm reformat package.json
James Coglan
2019-06-10 12:12:33 +01:00
8d58a3363d
Use the newer safe Buffer API instead of the constructor
James Coglan
2019-06-07 18:41:35 +01:00
f104377a0e
Change markdown formatting of docs.
James Coglan
2019-05-29 15:37:32 +01:00
8ddfd06f5b
Update Travis target versions.
James Coglan
2019-05-24 14:03:38 +01:00
33df77ef24
Switch license to Apache 2.0.
James Coglan
2019-05-24 13:56:04 +01:00
0594d1b16b
Bump version to 0.1.6.
0.1.6
James Coglan
2017-09-10 17:40:58 +01:00
3fc65a8277
Move the license into its own file.
James Coglan
2017-09-10 17:39:05 +01:00
c0ef506072
Use package.json instead of .npmignore to set files in the package.
James Coglan
2017-09-10 17:38:46 +01:00
689e37cfb7
Use windowBits:9 for deflate and inflate streams if the session is configured to use 8.
James Coglan
2017-09-08 22:29:37 +01:00
7abe8c8a7f
Update spec URLs from the draft spec to RFC 7692.
James Coglan
2017-08-18 09:46:01 +01:00
cbae000ab3
Use Z_DEFAULT_COMPRESSION rather than Z_DEFAULT_LEVEL, it's more descriptive.
James Coglan
2017-08-18 09:32:57 +01:00
9e8a72316d
Correct a typo in an error message.
James Coglan
2017-08-17 22:15:58 +01:00
2f277e23c8
Drop testing for io.js releases, which barely anybody is still using.
James Coglan
2017-08-01 23:47:55 +01:00
0215b35a21
In Node 8, the zlib API is read-only and so cannot be stubbed on the real module. Therefore we need to pass in an object to replace the zlib module in the code under test, on which we can mock/stub method calls.
James Coglan
2017-08-01 01:13:54 +01:00
f98b56db0f
Test on Node 7 and 8.
James Coglan
2017-08-01 00:54:02 +01:00
cad0e4f121
Remove non-breaking spaces from README.
James Coglan
2016-10-08 03:10:52 +01:00
0e8539acf7
Test on Node 6.0.
James Coglan
2016-04-30 13:08:52 +01:00
48a078f8e7
Bump version to 0.1.5 and drop support for Node 0.6.
0.1.5
James Coglan
2016-02-24 08:29:12 +00:00
60764f5757
Bump the copyright year.
James Coglan
2016-02-06 19:15:25 +00:00
6b75657a94
Use https: URLs for github.com in package.json.
James Coglan
2016-02-06 19:15:03 +00:00
d22edec996
Catch errors thrown by close() on zlib streams. If they throw, we were about to discard them anyway, so there's no need to do anything.
James Coglan
2016-02-06 14:22:53 +00:00
1d219334bf
Create CODE_OF_CONDUCT.md.
James Coglan
2015-11-08 12:16:23 +00:00
913b174ea1
Bump version to 0.1.4.
0.1.4
James Coglan
2015-11-06 22:08:35 +00:00
0eb99773db
Test on Node 5.
James Coglan
2015-11-05 21:22:05 +00:00
758ed46420
Run tests on major versions of iojs and node 4.
James Coglan
2015-10-17 12:56:52 +01:00
9cb62ecd49
Refactor ServerSession.generateResponse() to group all logic around setting each parameter -- both the internal setting and the response value -- together, and from here work around an issue in Firefox that means the client will fail if the server sends an unsolicited server_max_window_bits parameter.
James Coglan
2015-10-11 13:21:04 +01:00
dca0a77b0d
Bump version to 0.1.3.
0.1.3
James Coglan
2015-04-10 20:46:44 +01:00
6e314bde56
Stash the scripts we built for #4 in the examples directory.
James Coglan
2015-04-10 20:46:21 +01:00
7c7b9a9e21
Remove an unnecessary 'use strict'.
es6
James Coglan
2015-04-10 08:29:48 +01:00
0de9386f81
Make the build run on Node < 0.12.
James Coglan
2015-04-10 08:25:58 +01:00
ef6a4a2ecc
Convert the codebase to ES6.
James Coglan
2015-04-10 08:18:55 +01:00
47b3b3614b
It might be dangerous to permanently set _flushFlag, so we need to reimplement more of flush() to get the patch in place.
James Coglan
2015-04-09 18:25:22 +01:00
037afc350c
Bump copyright year.
James Coglan
2015-02-19 09:30:58 +00:00
10b5d6be57
Test on Node 0.12 and io.js.
James Coglan
2015-02-19 09:25:00 +00:00
f48eaac6d3
Bump version to 0.1.2.
0.1.2
James Coglan
2014-12-18 02:06:19 +00:00
a71a06180a
Throw an error if configure() is called with unrecognised options.
James Coglan
2014-12-17 21:37:01 +00:00
e7619d9091
Bump version to 0.1.1.
0.1.1
James Coglan
2014-12-15 21:25:48 +00:00
cc2978bdfb
Fix the flush() mock so it works if not given a callback.
James Coglan
2014-12-15 19:20:56 +00:00
983c0d30c3
Fix the race conditions that happen when multiple messages attempt to use the same deflate/inflate stream at the same time, and fix the mechanism for flushing deflate streams so as not to hose the compression ratio on Node v0.10.
James Coglan
2014-12-15 18:59:30 +00:00
72955f0b1e
Fix some typos in the readme.
James Coglan
2014-12-14 12:54:13 +00:00
2a70def60c
Document all the options.
0.1.0
James Coglan
2014-12-13 11:27:02 +00:00
5ac507cddb
Remove the 'flush' parameter (it defaults to Z_NO_FLUSH).
James Coglan
2014-12-12 03:15:25 +00:00
79cc1f0339
We no longer need to implement validFrameRsv().
James Coglan
2014-12-12 00:55:49 +00:00
d28aca244d
Add some documentation.
James Coglan
2014-12-12 00:17:08 +00:00
bd462d4515
Unit tests and bug fixes for the parameter negotiation process.
James Coglan
2014-12-11 23:58:06 +00:00
9fb52811d7
Don't crash if zlib streams don't have a close() method.
James Coglan
2014-12-08 00:54:36 +00:00
ffbd9bd532
Refactor most of the boilerplate out of Session.
James Coglan
2014-12-07 00:05:39 +00:00
da41e96e02
Use the new Message API that doesn't expose the frame boundaries.
James Coglan
2014-12-06 22:09:42 +00:00
20df975d8e
Make sure inflate/deflate streams are closed after use if not using context takeover.
James Coglan
2014-12-06 10:51:48 +00:00
a4725878b3
Small tweaks to object setup.
James Coglan
2014-12-05 19:36:47 +00:00
7fb3cd8c72
Use Message.data, not Message.read().
James Coglan
2014-11-29 01:13:51 +00:00
a63cb914ec
Implement the close() method on sessions.
James Coglan
2014-11-29 00:43:56 +00:00
6dee48c646
We don't need to cache the offers the client sends.
James Coglan
2014-11-29 00:20:48 +00:00
d7f3989a39
Return true/false from ClientSession.activate() rather than emitting an error.
James Coglan
2014-11-27 22:41:45 +00:00
862452a2bf
Use Node callbacks on the process() methods rather than emitting error events.
James Coglan
2014-11-27 09:31:07 +00:00
e5fa1b6295
Implement the validFrameRsv() method.
James Coglan
2014-11-26 09:58:10 +00:00
2b794a28f5
Rename generateOffers() to generateOffer().
James Coglan
2014-11-25 23:14:06 +00:00
ba07e0c1df
Adjust the package description.
James Coglan
2014-11-25 21:15:47 +00:00
4c6f34f048
gitignore node_modules.
James Coglan
2014-11-25 20:05:13 +00:00
b57c59cae2
Decouple from the Driver API. Since we only need driver to send it errors, just emit an error event instead.
James Coglan
2014-11-25 19:39:38 +00:00
3cdba155eb
createServerSession() should accept an array of offer param sets.
James Coglan
2014-11-25 09:12:26 +00:00
3b18ada5db
Add a ClientSession that passes the Autobahn tests.
James Coglan
2014-11-24 22:04:30 +00:00
968434f409
Extract permessage-deflate support into a new module.
James Coglan
2014-11-23 20:35:42 +00:00