Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(archive): UntarStream and TarStream #4548

Merged
merged 104 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
05126e0
refactor(archive): An implementation of Tar as streams
BlackAsLight Apr 4, 2024
0f28c16
fmt(archive): Ran `deno fmt`
BlackAsLight Apr 4, 2024
e7b0b1c
fix(archive): fixed JSDoc examples in tar_streams.ts
BlackAsLight Apr 6, 2024
970a237
fix(archive): fixed JSDoc examples so `deno task test` doesn't complain
BlackAsLight Apr 6, 2024
0ef432d
Merge branch 'main' into archive_tar_stream
BlackAsLight Apr 7, 2024
a7aa4e1
fix(archive): lint license error
BlackAsLight Apr 8, 2024
ad3326a
fix(archive): lint error files not exported
BlackAsLight Apr 8, 2024
3f78044
Merge branch 'main' into archive_tar_stream
BlackAsLight Apr 8, 2024
d363ab2
Merge branch 'main' into archive_tar_stream
BlackAsLight Apr 9, 2024
c5d3ff5
set(archive): Set current time as mtime for default
BlackAsLight Apr 9, 2024
16345e6
Merge branch 'main' into archive_tar_stream
iuioiua Apr 12, 2024
20ecf4a
resolve(archive): resolves comments made
BlackAsLight Apr 15, 2024
5753724
Merge branch 'main' into archive_tar_stream
BlackAsLight Apr 15, 2024
e4f28da
add(archive): `{ mode: 'byob' }` support for TarStream
BlackAsLight Apr 20, 2024
461c0b9
Merge branch 'main' into archive_tar_stream
BlackAsLight Apr 20, 2024
ecf365d
add(archive): `{ mode: 'byob' }` support for UnTarStream
BlackAsLight Apr 21, 2024
730fb74
adjust(archive): The logical flow of a few if statements
BlackAsLight Apr 21, 2024
3571512
tests(archive): Updated Tests for Un/TarStream
BlackAsLight Apr 21, 2024
479a890
fix(archive): TarStream mtime wasn't an octal
BlackAsLight Apr 22, 2024
eeb9e35
fix(archive): TarStream tests
BlackAsLight Apr 23, 2024
620c6b6
add(archive): Added parsePathname function
BlackAsLight Apr 28, 2024
2ac96b9
fix(archive): extra bytes incorrectly appending at the end of files
BlackAsLight May 3, 2024
043a0a9
adjust(archive): to always return the amount of bytes requested
BlackAsLight May 3, 2024
86cb8b2
Merge branch 'main' into archive_tar_stream
BlackAsLight May 11, 2024
d7edc90
Merge branch 'main' into archive_tar_stream
iuioiua May 13, 2024
22e2ef4
tweaks
iuioiua May 13, 2024
dacaea5
fix
iuioiua May 13, 2024
47c9441
Merge branch 'main' into archive_tar_stream
BlackAsLight May 24, 2024
f3d93b6
docs(archive): Link to the spec that they're following
BlackAsLight May 24, 2024
da8206a
docs(archive): fix spelling
BlackAsLight May 24, 2024
68f8400
add(archive): function validTarSteamOptions
BlackAsLight May 24, 2024
3379996
add(archive): more tests
BlackAsLight May 24, 2024
b04dd13
Merge branch 'denoland:main' into archive_tar_stream
BlackAsLight May 31, 2024
6f8b662
fix(archive): validTarStreamOptions
BlackAsLight Jun 3, 2024
de3d67f
add(archive): tests for validTarStreamOptions
BlackAsLight Jun 3, 2024
2392e47
Merge branch 'main' into archive_tar_stream
BlackAsLight Jun 19, 2024
2e16cfd
Merge branch 'main' into archive_tar_stream
iuioiua Aug 5, 2024
4662420
refactor(archive): code to copy the changes made in the @doctor/tar-s…
BlackAsLight Aug 5, 2024
4acf284
test(archive): added from @doctor/tar-stream
BlackAsLight Aug 5, 2024
666609c
chore: nit on anonymous function
BlackAsLight Aug 6, 2024
da387a1
refactor(archive): UnTarStream that fixes unexplainable memory leak
BlackAsLight Aug 6, 2024
583fa04
chore: fmt
BlackAsLight Aug 6, 2024
f687563
tests(archive): added remaining tests to cover many lines as possible
BlackAsLight Aug 6, 2024
808b980
Merge branch 'main' into archive_tar_stream
iuioiua Aug 6, 2024
1e81120
adjust(archive): remove simplify pathname code
BlackAsLight Aug 7, 2024
b803f5f
adjust(archive): remove checking for duplicate pathnames in taring pr…
BlackAsLight Aug 7, 2024
8409441
adjust(archive): A readable will exist on TarEntry unless string valu…
BlackAsLight Aug 7, 2024
46a9143
tests(archive): added more tests for higher coverage
BlackAsLight Aug 7, 2024
8c15203
adjust(archives): TarStream and UnTarStream to implement TransformStream
BlackAsLight Aug 7, 2024
c8e61b9
docs(archive): moved TarStreamOptions docs into properties.
BlackAsLight Aug 10, 2024
275b678
adjust(archive): TarStreamFile to take a ReadableSteam instead of an …
BlackAsLight Aug 10, 2024
dde7a7a
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 10, 2024
8389f37
adjust(archive): to use FixedChunkStream instead of rolling it's own …
BlackAsLight Aug 10, 2024
eb42cd9
fix(archive): lint error
BlackAsLight Aug 10, 2024
27b2585
adjust(archive): Error types and messages
BlackAsLight Aug 10, 2024
80d1b54
adjust(archive): more Error messages / improve tests
BlackAsLight Aug 10, 2024
a84c5fb
refactor(archive): UnTarStream to return TarStreamChunk instead of Ta…
BlackAsLight Aug 10, 2024
c201e4c
fix(archive): JSDoc example
BlackAsLight Aug 10, 2024
8059edc
adjust(archive): mode, uid, gid options to be provided as numbers ins…
BlackAsLight Aug 10, 2024
42ca506
adjust(archive): TarStream's pathname to be only of type string
BlackAsLight Aug 10, 2024
2e5caf3
fix(archive): prefix/name to ignore everything past the first NULL
BlackAsLight Aug 11, 2024
38e2344
adjust(archive): `checksum` and `pad` to not be exposed from UnTarStream
BlackAsLight Aug 11, 2024
86b4d94
adjust(archive): checksum calculation
BlackAsLight Aug 11, 2024
5b5a246
change(archive): `.slice` to `.subarray`
BlackAsLight Aug 11, 2024
93bfe5b
doc(archive): "octal number" to "octal literal"
BlackAsLight Aug 11, 2024
7b86bab
adjust(archive): TarStreamOptions to be optional with defaults
BlackAsLight Aug 11, 2024
b3d5e00
doc(archive): added more docs for the interfaces
BlackAsLight Aug 11, 2024
5c56d2a
docs(archive): denoting defaults
BlackAsLight Aug 13, 2024
a8108f5
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 21, 2024
9ccca01
docs(archive): updated for new lint rules
BlackAsLight Aug 21, 2024
78721ca
adjust(archive): Tests to use assertRejects where appropriate & add `…
BlackAsLight Aug 21, 2024
54bdd1c
Merge branch 'main' into archive_tar_stream
iuioiua Aug 22, 2024
a163b45
adjust(archive): to use `Date.now()` instead of `new Date().getTime()`
BlackAsLight Aug 22, 2024
d926d69
adjust(archive): mode, uid, and gid to be numbers instead of strings …
BlackAsLight Aug 26, 2024
e8e862c
tests(archive): adjust two tests to also validate the contents of the…
BlackAsLight Aug 26, 2024
32577cf
adjust(archive): linkname, uname, and gname to follow the same decodi…
BlackAsLight Aug 26, 2024
49a4a2d
rename(archive): UnTarStream to UntarStream
BlackAsLight Aug 26, 2024
89a833a
fix(archive): type that was missed getting updated
BlackAsLight Aug 26, 2024
3f113c3
tests(archive): adjust check headers test to validate all header prop…
BlackAsLight Aug 26, 2024
a575800
rename(archive): `pathname` properties to `path`
BlackAsLight Aug 26, 2024
3b20363
docs(archive): updated to be more descriptive
BlackAsLight Aug 26, 2024
e07f63b
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 26, 2024
ab60664
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 27, 2024
5107174
docs(archive): Updated error types
BlackAsLight Aug 29, 2024
e6e426e
adjust(archive): `validPath` to `assertValidPath`
BlackAsLight Aug 29, 2024
76d2f39
adjust(archive): `validTarStreamOptions` to `assertValidTarStreamOpti…
BlackAsLight Aug 29, 2024
fd56426
revert(archive): UntarStream to produce TarStreamEntry instead of Tar…
BlackAsLight Aug 29, 2024
4c2a050
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 29, 2024
931109b
refactor: remove redundant `void` return types
iuioiua Aug 29, 2024
f9f1933
docs: cleanup assertion function docs
iuioiua Aug 29, 2024
3902085
docs: correct `TarStream` example
iuioiua Aug 29, 2024
c5c663e
docs: minor docs cleanups
iuioiua Aug 29, 2024
ae9621e
refactor: improve error class specificity
iuioiua Aug 29, 2024
1f2d2b6
docs: add `@experimental` JSDoc tags
iuioiua Aug 30, 2024
55bbfa3
docs(archive): Updated examples for `assertValidPath` and `assertVali…
BlackAsLight Aug 30, 2024
2ef6f97
Merge branch 'main' into archive_tar_stream
BlackAsLight Aug 30, 2024
426de97
fix(archive): problem with tests
BlackAsLight Aug 30, 2024
caecf1a
Merge branch 'archive_tar_stream' of https://github.com/BlackAsLight/…
BlackAsLight Aug 30, 2024
05e5e19
update error messages
kt3k Sep 2, 2024
cbd50e4
update error messages
kt3k Sep 2, 2024
eb3e211
fix typos
kt3k Sep 2, 2024
4e008fe
Merge branch 'main' into archive_tar_stream
iuioiua Sep 2, 2024
16caed6
refactor: tweak error messages
iuioiua Sep 2, 2024
456ee81
refactor: tweaks and add type field
iuioiua Sep 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions archive/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.225.1",
"exports": {
".": "./mod.ts",
"./tar-stream": "./tar_stream.ts",
"./tar": "./tar.ts",
"./untar-stream": "./untar_stream.ts",
"./untar": "./untar.ts"
}
}
2 changes: 2 additions & 0 deletions archive/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@
*/
export * from "./tar.ts";
export * from "./untar.ts";
export * from "./tar_stream.ts";
export * from "./untar_stream.ts";
Loading