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

replace archiver with @zip.js/zip.js #4769

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented Apr 22, 2024

Problem

The archiver package uses fs which is not available in the browser. Running npm run testWeb results in the following error:

TypeError: Cannot read properties of undefined (reading 'native')

Solution

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ctlai95 ctlai95 force-pushed the ctlai95/update-zip-stream branch 5 times, most recently from 01bdfa3 to 65ec6e8 Compare April 22, 2024 19:02
@justinmk3
Copy link
Contributor

justinmk3 commented Apr 22, 2024

test macOS (16.x, minimum) fails with ReferenceError: TransformStream is not defined

The "minimum" is testing a very old version of vscode, which has an older nodejs.

I think we can and should bump the minimum to a vscode version that has node 16. That will likely need to be a separate PR and may require some minor fixups in the tests, etc.

@ctlai95 ctlai95 force-pushed the ctlai95/update-zip-stream branch 7 times, most recently from 1c2dea8 to 2556aee Compare April 23, 2024 05:35
@justinmk3
Copy link
Contributor

I've added #4787 to our current sprint, to unblock this. So please feel free to continue with the assumption that the vscode minimum will be bumped.

@ctlai95 ctlai95 force-pushed the ctlai95/update-zip-stream branch from b41d29a to e7c95ae Compare May 7, 2024 20:38
@ctlai95 ctlai95 force-pushed the ctlai95/update-zip-stream branch from 4be3f1a to 7532d82 Compare May 8, 2024 00:28
@ctlai95 ctlai95 marked this pull request as ready for review May 8, 2024 00:36
@ctlai95 ctlai95 requested a review from a team as a code owner May 8, 2024 00:36
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was packages/toolkit/package.json an accidental commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, let me revert it


export interface ZipStreamResult {
sizeInBytes: number
md5: string
hash: string
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants