PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 60 of 99
  1. 4.2.0 22 Aug 2026
    Release notes
    • Optimize performance and issues with large files with XZDecoder.
    Open source →
  2. 4.1.0 19 Aug 2026
    Release notes
    • 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
    Open source →
  3. 4.0.9 17 Feb 2026
    Release notes
    • Fix extractFileToDisk file extension handling, where foo.bar.zip would fail.
    Open source →
  4. 4.0.8 17 Feb 2026
    Release notes
    • 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
    Open source →
  5. 4.0.7 23 Apr 2025
    Release notes
    • Change posix dependency to 6.0.2.
    Open source →
  6. 4.0.6 18 Apr 2025
    Release notes
    • 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
    Open source →
  7. 4.0.5 23 Mar 2025
    Release notes
    • 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.
    Open source →
  8. 4.0.4 28 Feb 2025
    Release notes
    • 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.
    Open source →
  9. 4.0.3 22 Feb 2025
    Release notes
    • 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.
    Open source →
  10. 4.0.2 19 Dec 2024
    Release notes
    • Reduce SDK min version to 3.0.
    • Fix import error with js_interop.
    Open source →
  11. 4.0.1 09 Dec 2024
    Release notes
    • Fix error with GZip encoder for web builds.
    Open source →
  12. 4.0.0 07 Dec 2024
    Release notes
    • 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.
    Open source →
  13. 3.6.1 01 Jun 2024
    Release notes
    • Fix ArchiveFile.rawContent returning null after decoding a zip.
    Open source →
  14. 3.6.0 22 May 2024
    Release notes
    • Fix zip encoding when a file was previously decoded.
    • Fix decoding zips with password when using InputFileStream.
    • ZipEncoder.encode autoClose now defaults to false.
    Open source →
  15. 3.5.1 04 May 2024
    Release notes
    • Re-add zipPath to ZipFileEncoder.
    Open source →
  16. 3.5.0 27 Apr 2024
    Release notes
    • Remove dependency to pointycastle package
    • Use utf8 encoding for string data
    • Fixes for encrypted zip encoding
    • Async and sync versions of extractArchiveToDisk
    Open source →
  17. 3.4.10 03 Jan 2024
    Release notes
    • Fix ZipCrypto decryption
    Open source →
  18. 3.4.9 07 Nov 2023
    Release notes
    • Revert breaking change for extractArchiveToDisk becoming async; add extractArchiveToDiskAsync for the async version.
    Open source →
  19. 3.4.8 06 Nov 2023
    Release notes
    • Improve zip decompression performance with dart:io by using native ZLib decompression when possible.
    Open source →
  20. 3.4.7 05 Nov 2023
    Release notes
    • Improve performance by not using List.setRange for copying bytes, which turns out to be very slow.
    Open source →
  21. 3.4.6 11 Oct 2023
    Release notes
    • Fix for Zip64 file size causing memory errors.
    Open source →
  22. 3.4.5 07 Oct 2023
    Release notes
    • Rewrote InputFileStream to reduce overall memory by using a shared file cache.
    • Added DateTime lastModDateTime getter to ArchiveFile.
    • Add support for zip encryption.
    Open source →
  23. 3.4.4 30 Sep 2023
    Release notes
    • Fix for new default buffer size for InputFileStream consuming too much memory for large archives.
    Open source →
  24. 3.4.3 29 Sep 2023
    Release notes
    • 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.
    Open source →
  25. 3.4.2 23 Sep 2023
    Release notes
    • Add bzip2 decompression for zip files.
    Open source →
  26. 3.4.1 23 Sep 2023
    Release notes
    • Fix for decoding zip64 zip files that have multiple extra fields.
    Open source →
  27. 3.4.0 22 Sep 2023
    Release notes
    • Add Zip64 support to ZipEncoder to allow it to create zip files > 4GB.
    Open source →
  28. 3.3.9 11 Sep 2023
    Release notes
    • Fix for extractFileToDisk causing corrupt files by closing a file stream before it finished writing.
    Open source →
  29. 3.3.8 03 Sep 2023
    Release notes
    • 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.
    Open source →
  30. 3.3.7 09 Apr 2023
    Release notes
    • Add Zip AES-256 decryption
    • Fix symlink encoding for tar files
    Open source →
  31. 3.3.6 27 Jan 2023
    Release notes
    • Fix errors decoding XZ files.
    Open source →
  32. 3.3.5 23 Nov 2022
    Release notes
    • Fix file content when decoding zips
    Open source →
  33. 3.3.4 11 Nov 2022
    Release notes
    • Fix analysis errors.
    Open source →
  34. 3.3.3 11 Nov 2022
    Release notes
    • Support symlinks in ZIP archives
    • Fix ZIP decryption for ZipCrypto format
    Open source →
  35. 3.3.2 16 Oct 2022
    Release notes
    • Fix for UTF-8 file name caused problem on Windows.
    Open source →
  36. 3.3.1 20 Jul 2022
    Release notes
    • Fix for Inflate crashing on some compressed files.
    Open source →
  37. 3.3.0 25 Mar 2022
    Release notes
    • 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.
    Open source →
  38. 3.2.2 09 Mar 2022
    Release notes
    • Re-add List<int> content data for ArchiveFile.
    • Add String and TypedData (Int32List, Float32List, etc) content data for ArchiveFile.
    Open source →
  39. 3.2.1 18 Feb 2022
    Release notes
    • Added buffer to OutputFileStream to improve performance by reducing the number of file writes.
    Open source →
  40. 3.2.0 13 Feb 2022
    Release notes
    • 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.
    Open source →
  41. 3.1.11 29 Jan 2022
    Release notes
    • Fix indexing bug in Archive.addFile.
    Open source →
  42. 3.1.10 29 Jan 2022
    Release notes
    • Fix performance regression with Archive.
    Open source →
  43. 3.1.9 20 Jan 2022
    Release notes
    • Fix FileInputStream to work with ZipDecoder.
    Open source →
  44. 3.1.8 01 Jan 2022
    Release notes
    • Catch invalid UTF8 string decoding.
    Open source →
  45. 3.1.7 01 Jan 2022
    Release notes
    • Fix for UTF8 filenames
    Open source →
  46. 3.1.6 11 Oct 2021
    Release notes
    • Fix problem with non-terminating long filenames.
    • File modification dates were incorrectly stored in milliseconds instead of seconds.
    Open source →
  47. 3.1.5 29 Sep 2021
    Release notes
    • Disable XZ format CRC64 for html builds to fix errors.
    Open source →
  48. 3.1.4 29 Sep 2021
    Release notes
    • Changed LICENSE to MIT.
    Open source →
  49. 3.1.3 29 Sep 2021
    Release notes
    • Cleaned up LICENSE, moving other licenses to LICENSE-other.md.
    Open source →
  50. 3.1.2 02 Mar 2021
    Release notes
    • Added the ability to override the timestamp encoded in a Zip file.
    Open source →
  51. 3.1.1 28 Feb 2021
    Release notes
    • Fix zip encoder so that zip files created on Windows will open correctly on Linux.
    Open source →
  52. 3.0.0 03 Feb 2021
    Release notes
    • Stable release supporting null safety.
    Open source →
  53. 3.0.0-nullsafety.0 20 Jan 2021 pre-release
    Release notes
    • Migrate to null safety.
    Open source →
  54. 2.0.13 02 Jan 2020
    Release notes
    • Switch to dart strong mode; refactor code to resolve all dartanalyzer warnings.
    Open source →
  55. 2.0.12 30 Dec 2019
    Release notes
    • Fix dartanalyzer warnings
    Open source →
  56. 2.0.11 08 Nov 2019
    Release notes
    • Set the default permission for ArchiveFile to something more reasonable (0644 -rw-r--r--)
    Open source →
  57. 2.0.10 12 Jun 2019
    Release notes
    • Fix for decoding empty zip files.
    Open source →
  58. 2.0.9 17 May 2019
    Release notes
    • Add isSymbolicLink and nameOfLinkedFile to ArchiveFile.
    • Fix for encoding empty files.
    Open source →
  59. 2.0.8 25 Jan 2019
    Release notes
    • Fix zip isFile
    Open source →
  60. 2.0.7 20 Jan 2019
    Release notes
    • Fix zip file attributes.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive