1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 09:39:16 +02:00
Commit graph

49 commits

Author SHA1 Message Date
Jeff Schiller
47ae6f8965 Fix issue #30: Make Unarchiver derive from EventTarget and the UnarchiveEvents derive from Event. 2023-02-08 21:18:51 -08:00
Jeff Schiller
726feee48f 1.0.6: Return 'vp9' for the video codec in getFullMIMEString(). Also move the annoying warning in deprecated archive.js. 2022-11-25 10:58:12 -08:00
Jeff Schiller
84514d1617 Update to @returns in all jsdoc 2022-04-27 13:31:18 -07:00
Jeff Schiller
7746b8c03f Tweak the file signature sniffer so byte tree initialization happens lazily. 2022-01-14 12:17:03 -08:00
Jeff Schiller
96ba25aef7 Update file comments in decompress-internal.js 2021-12-29 20:19:28 -08:00
Jeff Schiller
cc59935e72 Some minor API updates. 2021-12-29 20:01:48 -08:00
Jeff Schiller
596a859bdc Implement crc32 calculation for issue #29 2021-12-16 15:09:20 -05:00
Jeff Schiller
c0afe7637e Start on issue #29: Add a Zipper that can take multiple files and produce a zip file as an array of bytes (storage only, no compression) 2021-12-12 23:39:09 -08:00
Jeff Schiller
755aba54bd Make buffers transferable out of the Worker for unrar/untar too 2021-12-12 12:58:34 -08:00
Jeff Schiller
85dcee80ec Experiment with marking ArrayBuffers are Transferable across the Worker thread boundary for unzip. 2021-12-12 12:15:29 -08:00
Jeff Schiller
2a90e32c89 Updates to jsdoc for better IDE analysis. A couple other minor tweaks. 2021-12-12 11:01:41 -08:00
Jeff Schiller
843caf4e61 Use JS Map instead of JS object for the huffman code tables. Seems to be a pretty good performance improvement on Chrome, Safari, Firefox. 2021-12-12 00:32:28 -08:00
Jeff Schiller
4496948aaf Add a getMIMEType() method to Unarchiver 2021-06-20 13:49:23 -07:00
Jeff Schiller
8bf65d6384 Add an UnarchiveAppendEvent so listeners can tell when the ArrayBuffer has received more bytes. 2021-06-20 10:31:38 -07:00
Jeff Schiller
a5e3d2f0b5 Move actual archive functionality into archive-internal.js so we can eventually unit test it in nodejs. 2021-06-20 10:19:43 -07:00
codedread
2db5b3b906 Fix issue #19: Support data descriptors in unzip. 2020-04-30 23:54:21 -07:00
codedread
97fcf8d630 Fix a minor bug with MIME type sniffing and let callers specify whether unarchivers should debug log to the console 2020-04-29 20:48:52 -07:00
codedread
60a6bf405c Use the file sniffer inside archive.js 2020-04-02 23:43:24 -07:00
codedread
2cc77f905b Turn archive.js into an ES module for Issue #16 2020-04-02 17:29:02 -07:00
codedread
78a11e1b12 Remove unzip/unrar/untar worker dependency on archive.js so that we can turn it into an ES module for Issue #16 2020-04-02 09:35:31 -07:00
codedread
1b00fdaae3 Fix unrar and unzip importing the right version of ByteBuffer 2020-04-02 09:17:47 -07:00
codedread
ab5f6fc6d2 Make ByteStream and ByteBuffer into modules with Worker veresions via build for Issue #16 2020-04-02 00:07:14 -07:00
codedread
a457564ff0 Start on Issue #16. Make BitStream a module, but provide a Web Worker version of BitStream via a build step 2020-04-01 23:08:09 -07:00
codedread
58ac1aed25 Surface metadata from zip files to clients 2020-01-19 09:33:58 -08:00
codedread
2916cf0926 Read in the end of Central File Header block 2019-11-30 08:29:22 -08:00
codedread
f6fe788693 If there are not at least ten bytes in the arraybuffer, return a null unarchiver 2019-03-08 08:19:37 -08:00
codedread
e07990c4db Terminate the unrar process if we reach the end of the byte stream 2018-11-01 03:30:18 -07:00
codedread
6e9a9cc382 Tweak formatting 2018-11-01 03:29:27 -07:00
codedread
042b318cfa Update readme for streaming and add a TODO for Issue #11 2018-02-01 09:31:29 -08:00
codedread
a6f9026ab1 Remove pushing and throwing errors from BitStream and update unit tests. Update unrar to use a ByteStream for the RAR file header (like unzip) 2018-01-30 00:16:38 -08:00
codedread
b04e638c93 Add logging as a parameter (used in unzip.js). Add a TODO for unrar.js to use a ByteStream for the file headers 2018-01-29 22:06:54 -08:00
codedread
23e3921072 Track number of compressed bytes read in while unarchiving and reporting progress 2018-01-26 00:12:58 -08:00
codedread
295413af0b Remove dead sorting code inside the unarchivers. That is the job of the client code. 2018-01-25 21:22:39 -08:00
codedread
3268d3d10a Update untar for streaming 2018-01-24 23:52:20 -08:00
codedread
9f9cd94547 Update unrar() to work for streamed data. Improve error handling in unzip 2018-01-24 08:33:36 -08:00
codedread
9d08824bfd Give a way for Unarchivers to have additional bytes pushed to their Workers. Update unzip() to work for streamed data. 2018-01-23 23:59:37 -08:00
codedread
e7ef46fb78 Fix whitespace and style 2018-01-19 07:47:49 -08:00
codedread
ccf755e3db Issue #4: Add support for standard filter VMSF_AUDIO 2017-10-31 23:57:55 -07:00
codedread
82dff77651 Fix a bug in Unrar where the LHD_SOLID flag was being ignored in the header 2017-10-16 22:20:45 -07:00
codedread
1a120e7230 Fix es6 const/let error 2017-03-26 21:11:15 -07:00
codedread
941be5d998 Add support for standard filter VMSF_RGB 2017-03-02 07:51:06 -08:00
codedread
e412022a58 Update link in unrar doc to bitjs on github. 2017-02-21 18:24:17 -08:00
codedread
d2a4329893 Whitespace and a couple arrow functions 2017-02-21 12:05:03 -08:00
codedread
0d27e9d9c0 Fix unzipper so that it always gets a fresh buffer of data. Remove a debugger statement 2017-02-21 11:45:28 -08:00
codedread
ea20a6a518 Fix untarring by ensuring it gets a fresh buffer of data and add a test 2017-02-20 23:40:33 -08:00
codedread
14abef20d6 Convert to ES6 classes 2017-02-20 14:36:48 -08:00
codedread
639a23e69b Start the move to es6: Change all vars to lets/consts 2017-02-20 12:47:17 -08:00
codedread
2488bb43b5 Add some more unrar tests 2017-02-19 12:39:10 -08:00
codedread
19af90a27f Move all archive-related files into a subdirectory called archive 2017-02-19 09:49:06 -08:00