Update third party npm dependencies. #2788
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following dependencies are updated:
All libraries are now at their latest versions.
Note that the there are two changes to the the generate-assets.js script that were needed. There is a change in how yargs is used, and an option needed to be added to the
sass.compile
call to disable warnings about deprecated sass usage in Bootstrap's scss.The
iframe-resizer
library has changed considerably and upgrading to the latest version requires quite a few changes.First, the
iframe-resizer
package has been replaced with the@iframe-resizer/parent
and@iframe-resizer/child
packages. The latest version is 5.5.2 which this upgrades to.Second, the
data-iframe-height
anddata-iframe-width
options are deprecated (and in fact don't work) and now there is only thedata-iframe-size
option. This requires a small change to PG as well (done in the last commit of openwebwork/pg#1306). Also, theiFrameResize
method is deprecated and replaced with theiframeResize
method (annoying change here, did you really need to change the case of one letter). TheiFrameResizer
property set on the iframe still exists but is not documented. TheiframeResizer
property replaces it. I assume theiFrameResizer
is also deprecated (although this is not documented), so that switch was made.Furthermore, they now have a commercial license version (which requires purchase) and an open source license version. We can use the open source version, but there are some annoying things that they do with that (like console logs that you can't prevent).
The first commit in this pull request upgrades iframe-resizer to version 4.4.2 which is the last version before things went haywire ans started doing stupid things. The last commit in this pull request further upgrades to 5.5.2 and the new packages. We can revert the last commit if we decide we can't tolerate these changes.