archive
Provides encoders and decoders for various archive and compression formats such as zip, tar, bzip2, gzip, and zlib.
4.2.0
12M downloads/mo
#7 most downloaded on pub.dev
brendan-duncan/archive
What this package is like to depend on
Last release today
22 Aug 2026
Release timing varies
gaps range from 9 days to 10 months
Most releases are documented
notes for 79 of 98 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
99 releases · first in 2013
4 releases in the last 12 months
see the full history below
Release timeline
99 releases · Dec 2013 to Aug 2026
2014
2016
2018
2020
2022
2024
2026
Releases
latest 60 of 99-
4.2.022 Aug 2026 -
4.1.019 Aug 2026Release notes
Open source →- Fix: RangeError when parsing ZIP extra fields with trailing bytes.
- Optimize LZ77 decode
- Fix: issue with file_buffer preventing last value
- Fix: invalid path separator in zip content compression
-
4.0.917 Feb 2026Release notes
Open source →- Fix extractFileToDisk file extension handling, where foo.bar.zip would fail.
-
4.0.817 Feb 2026Release notes
Open source →- Remove dependency to crypto package
- Removed Adler32 and Crc32 classes
- Fix: extractArchiveToDisk extensions should be case insensitive.
- Fix: extractFileToDisk for .tar.gz files
- Add ZipFileEncoder.addDirectorySync
- Always use posix separators for ZipFileEncoder
-
4.0.723 Apr 2025 -
4.0.618 Apr 2025Release notes
Open source →- Fix zip decoding when the last file of the archive is also a zip.
- Add lastModifiedDateTime to ArchiveFile
- Fix Archive files and fileMap getting out of sync after calling removeFile
-
4.0.523 Mar 2025Release notes
Open source →- Improve performance of OutputFileStream.
- Add ArchiveFile.noCompress, which had been removed from the 3.x to 4.x update.
- GZipDecoder should fall back to ZLib if there is no GZip header.
-
4.0.428 Feb 2025Release notes
Open source →- Fix level argument for ZipEncoder.add method.
- Fix ArchiveFile.compression to work for controlling compression method used encoding zips.
- Add ArchiveFile.compression CompressionType.bzip2 compression mode support.
- Add ArchiveFile.compressionLevel to work for controlling compression level used for encoding zips.
-
4.0.322 Feb 2025Release notes
Open source →- Fix potential infinite loop when parsing zip headers.
- Update conditional imports to be compatible with WASM.
- Add addFileSync to ZipFileEncoder for synchronous call to addFile.
-
4.0.219 Dec 2024 -
4.0.109 Dec 2024 -
4.0.007 Dec 2024Release notes
Open source →- Major cleanup of the code, includes potential breaking changes.
- decodeBuffer has been renamed to decodeStream in the various decoder classes.
- InputStream has been renamed to InputMemoryStream.
- OutputStream has been renamed to OutputMemoryStream.
- Major cleanup of the code, includes potential breaking changes.
-
3.6.101 Jun 2024 -
3.6.022 May 2024Release notes
Open source →- Fix zip encoding when a file was previously decoded.
- Fix decoding zips with password when using InputFileStream.
- ZipEncoder.encode autoClose now defaults to false.
-
3.5.104 May 2024 -
3.5.027 Apr 2024Release notes
Open source →- Remove dependency to pointycastle package
- Use utf8 encoding for string data
- Fixes for encrypted zip encoding
- Async and sync versions of extractArchiveToDisk
-
3.4.1003 Jan 2024 -
3.4.907 Nov 2023Release notes
Open source →- Revert breaking change for extractArchiveToDisk becoming async; add extractArchiveToDiskAsync for the async version.
-
3.4.806 Nov 2023Release notes
Open source →- Improve zip decompression performance with dart:io by using native ZLib decompression when possible.
-
3.4.705 Nov 2023Release notes
Open source →- Improve performance by not using List.setRange for copying bytes, which turns out to be very slow.
-
3.4.611 Oct 2023 -
3.4.507 Oct 2023Release notes
Open source →- Rewrote InputFileStream to reduce overall memory by using a shared file cache.
- Added
DateTime lastModDateTimegetter to ArchiveFile. - Add support for zip encryption.
-
3.4.430 Sep 2023Release notes
Open source →- Fix for new default buffer size for InputFileStream consuming too much memory for large archives.
-
3.4.329 Sep 2023Release notes
Open source →- Fix bug in InputFileStream that caused it to only have an 8-byte buffer, making file streaming slow.
- Increase the default buffer size for file I/O streams to 1MB.
- Update pubspec dependency versions.
-
3.4.223 Sep 2023 -
3.4.123 Sep 2023 -
3.4.022 Sep 2023 -
3.3.911 Sep 2023Release notes
Open source →- Fix for extractFileToDisk causing corrupt files by closing a file stream before it finished writing.
-
3.3.803 Sep 2023Release notes
Open source →- Fix for zip security issue with symlinks, https://github.com/brendan-duncan/archive/issues/265. https://osv.dev/vulnerability/GHSA-9v85-q87q-g4vg.
- Fix for zip security issue with file paths, https://github.com/brendan-duncan/archive/issues/266. https://osv.dev/vulnerability/GHSA-r285-q736-9v95.
- Add progress callback for decoding zip files.
- Don't allow tar files to include absolute paths.
- Fix error decoding AES-192.
-
3.3.709 Apr 2023 -
3.3.627 Jan 2023 -
3.3.523 Nov 2022 -
3.3.411 Nov 2022 -
3.3.311 Nov 2022Release notes
Open source →- Support symlinks in ZIP archives
- Fix ZIP decryption for ZipCrypto format
-
3.3.216 Oct 2022 -
3.3.120 Jul 2022 -
3.3.025 Mar 2022Release notes
Open source →- IO encoders (ZipFileEncoder, TarFileEncoder), will now include directories and empty directories.
- Fix for ZipEncoder file lastModTime.
- Fix for ArchiveFile.string.
- Add PAX format to tar decoder.
- Make more file operations async.
-
3.2.209 Mar 2022Release notes
Open source →- Re-add List<int> content data for ArchiveFile.
- Add String and TypedData (Int32List, Float32List, etc) content data for ArchiveFile.
-
3.2.118 Feb 2022Release notes
Open source →- Added buffer to OutputFileStream to improve performance by reducing the number of file writes.
-
3.2.013 Feb 2022Release notes
Open source →- For non-web applications, use native 'inflate' decompression when decompressing zip files.
- Add asyncWrite option to extractArchiveToDisk and extractFileToDisk, moving file write operations to be async.
- ArchiveFile.writeContent will release its memory after the data has been written, reducing overall memory usage.
- Add clear method to ArchiveFile, clearing any decompressed data memory it's storing.
-
3.1.1129 Jan 2022 -
3.1.1029 Jan 2022 -
3.1.920 Jan 2022 -
3.1.801 Jan 2022 -
3.1.701 Jan 2022 -
3.1.611 Oct 2021Release notes
Open source →- Fix problem with non-terminating long filenames.
- File modification dates were incorrectly stored in milliseconds instead of seconds.
-
3.1.529 Sep 2021 -
3.1.429 Sep 2021 -
3.1.329 Sep 2021 -
3.1.202 Mar 2021 -
3.1.128 Feb 2021Release notes
Open source →- Fix zip encoder so that zip files created on Windows will open correctly on Linux.
-
3.0.003 Feb 2021 -
3.0.0-nullsafety.020 Jan 2021 pre-release -
2.0.1302 Jan 2020Release notes
Open source →- Switch to dart strong mode; refactor code to resolve all dartanalyzer warnings.
-
2.0.1230 Dec 2019 -
2.0.1108 Nov 2019Release notes
Open source →- Set the default permission for ArchiveFile to something more reasonable (0644 -rw-r--r--)
-
2.0.1012 Jun 2019 -
2.0.917 May 2019Release notes
Open source →- Add isSymbolicLink and nameOfLinkedFile to ArchiveFile.
- Fix for encoding empty files.
-
2.0.825 Jan 2019 -
2.0.720 Jan 2019