PackageTrack
Sign in Get early access

tar

Memory-efficient, streaming implementation of the tar file format

2.0.2 130K downloads/mo #1012 most downloaded on pub.dev simolus3/tar

What this package is like to depend on

Last release 8 months ago

29 Nov 2025

Release timing varies

gaps range from 4 weeks to 1.2 years

Nearly every release is documented

notes for 21 of 21 stable releases

1 version withdrawn

withdrawn after publishing

6 years old

26 releases · first in 2020

2 releases in the last 12 months

see the full history below

Release timeline

26 releases · Dec 2020 to Nov 2025
2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 26
  1. 2.0.2 29 Nov 2025
    Release notes

    Document public members

    Open source →
    Release notes
    • Add documentation comments to all public members.
    Open source →
  2. 2.0.1 11 Sep 2025
    Release notes
    • Use extension type to represent MaybeTarFormat and TarFormat.
    • Update to version 6.0.0 of package:lints.
    Open source →
    Release notes
    • Use extension type to represent MaybeTarFormat and TarFormat.
    • Update to version 6.0.0 of package:lints.
    Open source →
  3. 2.0.0 13 Jun 2024
    Release notes

    This avoids the questionable default of 0.
    Closes #34.

    Open source →
    Release notes
    • Require the mode parameter when creating TarHeaders. Previously the field had an implicit default value of 0, which made it easy to inadvertently create archives with entries that are hard to delete when extracted with other tar programs.
    Open source →
  4. 1.0.5 14 May 2024
    Release notes

    Migrate to recommended lints

    Open source →
    Release notes
    • Migrate to recommended lints from package:lints.
    • Add tags to pubspec.
    Open source →
  5. 1.0.4 17 Feb 2024
    Release notes
    • Migrate away from UnmodifiableUint8ListView which is deprecated in Dart 3.4.
    Open source →
    Release notes
    • Migrate away from UnmodifiableUint8ListView which is deprecated in Dart 3.4.
    Open source →
  6. 1.0.3 10 Dec 2023
    Release notes

    1.0.3

    • Fix the reader throwing a FormatException (instead of a TarException) when reading tar files with invalid UTF bytes in their PAX headers.
    • Fix a range error for invalid zero-length PAX entries.
    Open source →
    Release notes
    • Fix the reader throwing a FormatException (instead of a TarException) when reading tar files with invalid UTF bytes in their PAX headers.
    • Fix a range error for invalid zero-length PAX entries.
    Open source →
  7. 1.0.2 19 Oct 2023
    Release notes
    • Fix a few typos in documentation comments.
    Open source →
    Release notes
    • Fix a few typos in documentation comments.
    Open source →
  8. 1.0.1 25 Jul 2023
    Release notes
    • Fix an incompatibility with Dart 3.1+
    Open source →
    Release notes
    • Fix an incompatibility with Dart 3.1.
    Open source →
  9. 1.0.0 25 Jul 2023 withdrawn
    Release notes
    • Breaking Add class modifiers where applicable.
    Open source →
    Release notes
    • Breaking Add class modifiers where applicable.
    Open source →
  10. 0.5.6 25 Aug 2022
    Release notes

    0.5.6

    • Allow cancelling a TarEntry.contents subscription before reading more files (#23).
    Open source →
    Release notes
    • Allow cancelling a TarEntry.contents subscription before reading more files.
    Open source →
  11. 0.5.5 22 Mar 2022
    Release notes
    • Fix a crash when pausing a subscription to TarEntry.contents right before it ends.
    Open source →
  12. 0.5.5+1 03 Jun 2022
    Release notes
    • No user-visible changes.
    Open source →
  13. 0.5.4 18 Feb 2022
    Release notes
    • Fix generating corrupt tar files when adding lots of entries at very high speeds (#20).
    • Allow tar files with invalid utf8 content in PAX header values if those values aren't used for anything important.
    Open source →
  14. 0.5.3 17 Feb 2022
    Release notes
    • Improve error messages when reading a tar entry after, or during, a call to moveNext().
    Open source →
  15. 0.5.2 16 Feb 2022
    Release notes
    • This package now supports being compiled to JavaScript.
    Open source →
  16. 0.5.1 14 Sep 2021
    Release notes
    • Improve performance when reading large archives
    Open source →
  17. 0.5.0 20 Aug 2021
    Release notes
    • Support sync encoding with tarConverter.
    Open source →
  18. 0.4.0 20 May 2021
    Release notes
    • Support generating tar files with GNU-style long link names
    • Add format parameter to tarWritingSink and tarWriterWith
    Open source →
  19. 0.3.3 28 Apr 2021
    Release notes
    • Drop chunked_stream dependency in favor of package:async.
    Open source →
  20. 0.3.2 12 Apr 2021
    Release notes
    • Allow arbitrarily many zero bytes at the end of an archive when disallowTrailingData is enabled.
    Open source →
  21. 0.3.1 29 Mar 2021
    Release notes
    • Add disallowTrailingData parameter to TarReader. When the option is set, readNext will ensure that the input stream does not emit further data after the tar archive has been read fully.
    Open source →
  22. 0.3.0 01 Mar 2021
    Release notes
    • Remove outdated references in the documentation
    Open source →
  23. 0.3.0-nullsafety.0 21 Jan 2021 pre-release
    Release notes
    • Remove TarReader.contents and TarReader.header. Use current.contents and current.header, respectively.
    • Fix some minor implementation details
    Open source →
  24. 0.2.0-nullsafety 11 Jan 2021 pre-release
    Release notes

    Most of the tar package has been rewritten, it's now based on the implementation written by Garett Tok Ern Liang in the GSoC 2020.

    • Added tar prefix to exported symbols.
    • Remove MemoryEntry. Use TarEntry.data to create a tar entry from bytes.
    • Make WritingSink private. Use tarWritingSink to create a general StreamSink<tar.Entry>.
    • TarReader is now a StreamIterator, the transformer had some design flaws.
    Open source →
  25. 0.1.0-nullsafety.1 27 Dec 2020 pre-release
    Release notes
    • Support writing user and group names
    • Better support for PAX-headers and large files
    Open source →
  26. 0.1.0-nullsafety.0 24 Dec 2020 pre-release
    Release notes
    • Initial version
    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