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

Bump metalsmith to 2.5.0 #2259

Merged
merged 1 commit into from
Jul 21, 2022
Merged

Bump metalsmith to 2.5.0 #2259

merged 1 commit into from
Jul 21, 2022

Conversation

domoscargin
Copy link
Contributor

@domoscargin domoscargin commented Jul 21, 2022

[2.5.0] - 2022-06-10

Important note to metalsmith-watch users:
Although 2.5.0 is a semver-minor release, it breaks compatibility with metalsmith-watch, which relies on the Metalsmith < 2.4.x private method signature using the outdated unyield package. See issue #374 for more details.

Added

  • Added Metalsmith#env method. Supports passing DEBUG and DEBUG_LOG amongst others. Sets CLI: true when run from the metalsmith CLI.
  • Added Metalsmith#debug method for creating plugin debuggers
  • Upgraded all generator-based methods (Metalsmith#read,Metalsmith#readFile,Metalsmith#write,Metalsmith#writeFile, Metalsmith#run and Metalsmith#process) to dual callback-/ promise-based methods
  • Added org migration notification to postinstall script to encourage users to upgrade

Removed

  • Dropped support for Node < 12
  • Dependencies:
    • thunkify: replaced with promise-based implementation
    • unyield replaced with promise-based implementation
    • co-fs-extra: replaced with native Node.js methods
    • chalk: not necessary for the few colors used by Metalsmith CLI

Updated

  • Restructured and updated README.md
  • Calling Metalsmith#metadata no longer clones the object passed to it, overwriting the previous metadata, but merges it into existing metadata.

Fixed

  • Proper path resolution for edge-cases using CLI, running metalsmith from outside or subfolder of metalsmith.directory()

@netlify
Copy link

netlify bot commented Jul 21, 2022

You can preview this change here:

Name Link
🔨 Latest commit 8d7140c
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/62d9350efdc6530009b12b60
😎 Deploy Preview https://deploy-preview-2259--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

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

🆙 📆 🚢

@domoscargin domoscargin merged commit 0322874 into main Jul 21, 2022
@domoscargin domoscargin deleted the bk-bump-metalsmith branch July 21, 2022 12:49
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.

2 participants