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

Upgrade dependent packages to the latest version #276

Merged
merged 4 commits into from
Aug 20, 2020
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 20, 2020

Upgraded dependent packages to the latest version via yarn upgrade --latest.

Notable changes

  • cosmiconfig has a major update to v7. It will recognize marp.config.cjs as a configuration file newly.
  • Bumped pptxgenjs v3.3.0 has an official support of background image. It might mean Marp does no longer require to hack internal object of pptxgenjs while generating PPTX presentation.

Comment on lines -308 to -310
const [img] = slide['relsMedia']
slide['bkgdImgRid'] = img.rId
slide['data'] = []
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't have to hack internal objects for supporting background image per slide in PptxGenJS v3.3.0 🙌

Comment on lines +294 to +297
// TODO: Revert the workaround for regression about custom layout in PptxGenJS v3.3.0
// https://github.com/gitbrent/PptxGenJS/issues/826
pptx.presLayout['width'] = pptx.presLayout['_sizeW']
pptx.presLayout['height'] = pptx.presLayout['_sizeH']
Copy link
Member Author

Choose a reason for hiding this comment

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

...but still requires another hack to deal with a regression about the custom slide layout in v3.3.0.
gitbrent/PptxGenJS#826

@yhatt yhatt merged commit cf77092 into master Aug 20, 2020
@yhatt yhatt deleted the update-dependencies branch August 20, 2020 18:05
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.

1 participant