I can't upgrade JSZip to ^3.0.0 #408
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#408
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I can' t use the current version of JSZip ^3.0.0, i get the following log while i try to read an .xlsx file: 'Error: The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.(…)'
JSZip 3.0.0 changed its api to make calls asynchronous. It would be impossible to use JSZip 3.0.0 in this package without essentially rewriting everything to use Promises. Not worth it.
JSZip API changed and they completely removed the sync interface. It looks like jszip-sync source supports sync, so that is definitely an option moving forward
@limouri @jacobmischka for now to avoid problems, the jszip external dependency was removed and replaced with a local copy. The bower points to a script that combines the jszip dependency and the core library, so there should be no need to use the external dependency.
I would vote for this to be re-opened.
This is, in my opinion a pretty massive flaw. If anyone does what I did and implement JSZip 3.0 to make a zip of images, then bring in js-xlsx, then their JSZip stops working.
It should be at least mentioned as incompatible in the readme, so people know they can or cannot use js-xlsx before spending time implementing it.
I agree with @dustincjensen this is an issue that needs to be resolved. js-xlsx should either adopt a dependency that supports sync or just include it in the main source and not flag it as a dependency.
That would introduce bloat to users of the JSZip but ... ¯_(ツ)_/¯
The other option is to re-write to support promises.