I can't upgrade JSZip to ^3.0.0 #408

Closed
opened 2016-05-03 11:24:58 +00:00 by limouri · 5 comments
limouri commented 2016-05-03 11:24:58 +00:00 (Migrated from github.com)

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.(…)'

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.(…)**'
jacobmischka commented 2016-06-05 07:19:00 +00:00 (Migrated from github.com)

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 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.
SheetJSDev commented 2017-01-18 19:28:35 +00:00 (Migrated from github.com)

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

JSZip API changed and they completely removed the sync interface. It looks like [jszip-sync](https://www.npmjs.com/package/jszip-sync) [source](https://github.com/ericvergnaud/jszip) supports sync, so that is definitely an option moving forward
SheetJSDev commented 2017-02-10 19:40:03 +00:00 (Migrated from github.com)

@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.

@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.
dustincjensen commented 2017-06-26 17:56:37 +00:00 (Migrated from github.com)

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 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.
lyatziv commented 2017-07-14 17:11:50 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#408
No description provided.