71 Commits

Author SHA1 Message Date
James Coglan 68ceed8cf8 Test on recent versions of Node 2023-09-07 19:24:32 +01:00
James Coglan 947ad6692b Switch from Travis CI to GitHub Actions 2021-05-18 22:11:31 +01:00
James Coglan 8ee77a23c0 Travis update: cache npm modules, remove sudo, run on Node 15 2021-03-12 21:37:13 +00:00
James Coglan 5eddd922aa Add Node versions 13 and 14 on Travis 2020-05-14 23:52:45 +01:00
James Coglan 75b434c6a0 Mention license change in the changelog 2019-06-13 11:38:41 +01:00
James Coglan ae94112fe9 Formatting change: {...} should have spaces inside the braces 2019-06-11 15:50:38 +01:00
James Coglan 5a74a0471b Bump version to 0.1.7 0.1.7 2019-06-10 12:14:40 +01:00
James Coglan 3500cddfa7 Let npm reformat package.json 2019-06-10 12:12:33 +01:00
James Coglan 8d58a3363d Use the newer safe Buffer API instead of the constructor 2019-06-07 18:41:35 +01:00
James Coglan f104377a0e Change markdown formatting of docs. 2019-05-29 15:37:32 +01:00
James Coglan 8ddfd06f5b Update Travis target versions. 2019-05-24 14:03:38 +01:00
James Coglan 33df77ef24 Switch license to Apache 2.0. 2019-05-24 13:56:04 +01:00
James Coglan 0594d1b16b Bump version to 0.1.6. 0.1.6 2017-09-10 17:40:58 +01:00
James Coglan 3fc65a8277 Move the license into its own file. 2017-09-10 17:39:05 +01:00
James Coglan c0ef506072 Use package.json instead of .npmignore to set files in the package. 2017-09-10 17:38:46 +01:00
James Coglan 689e37cfb7 Use windowBits:9 for deflate and inflate streams if the session is configured to use 8. 2017-09-08 22:29:37 +01:00
James Coglan 7abe8c8a7f Update spec URLs from the draft spec to RFC 7692. 2017-08-18 09:46:01 +01:00
James Coglan cbae000ab3 Use Z_DEFAULT_COMPRESSION rather than Z_DEFAULT_LEVEL, it's more descriptive. 2017-08-18 09:32:57 +01:00
James Coglan 9e8a72316d Correct a typo in an error message. 2017-08-17 22:15:58 +01:00
James Coglan 2f277e23c8 Drop testing for io.js releases, which barely anybody is still using. 2017-08-01 23:47:55 +01:00
James Coglan 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. 2017-08-01 01:13:54 +01:00
James Coglan f98b56db0f Test on Node 7 and 8. 2017-08-01 00:54:02 +01:00
James Coglan cad0e4f121 Remove non-breaking spaces from README. 2016-10-08 03:10:52 +01:00
James Coglan 0e8539acf7 Test on Node 6.0. 2016-04-30 13:08:52 +01:00
James Coglan 48a078f8e7 Bump version to 0.1.5 and drop support for Node 0.6. 0.1.5 2016-02-24 08:29:42 +00:00
James Coglan 60764f5757 Bump the copyright year. 2016-02-06 19:15:25 +00:00
James Coglan 6b75657a94 Use https: URLs for github.com in package.json. 2016-02-06 19:15:03 +00:00
James Coglan 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. 2016-02-06 14:22:53 +00:00
James Coglan 1d219334bf Create CODE_OF_CONDUCT.md. 2015-11-08 12:16:23 +00:00
James Coglan 913b174ea1 Bump version to 0.1.4. 0.1.4 2015-11-06 22:08:35 +00:00
James Coglan 0eb99773db Test on Node 5. 2015-11-05 21:22:05 +00:00
James Coglan 758ed46420 Run tests on major versions of iojs and node 4. 2015-10-17 12:56:52 +01:00
James Coglan 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. 2015-10-11 13:21:04 +01:00
James Coglan dca0a77b0d Bump version to 0.1.3. 0.1.3 2015-04-10 20:46:44 +01:00
James Coglan 6e314bde56 Stash the scripts we built for #4 in the examples directory. 2015-04-10 20:46:21 +01:00
James Coglan 47b3b3614b It might be dangerous to permanently set _flushFlag, so we need to reimplement more of flush() to get the patch in place. 2015-04-09 18:25:22 +01:00
James Coglan 5da6a768b0 Monkey-patch deflate on Node 0.10 to produce smaller output; see https://github.com/faye/permessage-deflate-node/issues/4 2015-04-09 18:07:24 +01:00
James Coglan f03aef1954 Pass Z_SYNC_FLUSH to deflate.flush() where supported, to ensure optimal output. 2015-04-09 08:37:45 +01:00
James Coglan adebc51630 I forgot to replace SYNC_FLUSH with FULL_FLUSH in the last commit. 2015-04-09 00:06:47 +01:00
James Coglan 958de927aa Prevent a race condition causing malformed compression of frames; see https://github.com/faye/permessage-deflate-node/issues/4. 2015-04-08 23:59:51 +01:00
James Coglan 037afc350c Bump copyright year. 2015-02-19 09:30:58 +00:00
James Coglan 10b5d6be57 Test on Node 0.12 and io.js. 2015-02-19 09:25:00 +00:00
James Coglan f48eaac6d3 Bump version to 0.1.2. 0.1.2 2014-12-18 02:06:19 +00:00
James Coglan a71a06180a Throw an error if configure() is called with unrecognised options. 2014-12-17 22:06:13 +00:00
James Coglan e7619d9091 Bump version to 0.1.1. 0.1.1 2014-12-15 21:25:48 +00:00
James Coglan cc2978bdfb Fix the flush() mock so it works if not given a callback. 2014-12-15 19:20:56 +00:00
James Coglan 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. 2014-12-15 18:59:30 +00:00
James Coglan 72955f0b1e Fix some typos in the readme. 2014-12-14 12:54:13 +00:00
James Coglan 2a70def60c Document all the options. 0.1.0 2014-12-13 11:27:02 +00:00
James Coglan 5ac507cddb Remove the 'flush' parameter (it defaults to Z_NO_FLUSH). 2014-12-12 03:15:25 +00:00