Repository navigation
Conversation
- posthtml becomes a peer dependency (^0.16.0 || ^0.17.0) - require Node.js ^20.19.0 || >=22.12.0 - emit config loading errors as PluginError instead of hanging (#18) - replace through2 with stream.Transform, update plugin-error and posthtml-load-config - node:test, c8 and ESLint instead of ava, nyc and standard - GitHub Actions instead of Travis CI - update README, CHANGELOG and contributing guide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Modernizes the package (last release 3.0.5 in 2020, which bundles
posthtml@^0.11). Proposed as 4.0.0.Breaking
posthtmlis a peer dependency^0.16.0 || ^0.17.0: users install it next to the plugin and pick the version.^20.19.0 || >=22.12.0(same as posthtml 0.17).posthtml-load-config1 → 2.Fixes
PluginError. Before, a rejected config promise was never handled and the stream hung. Closes Tests fall with posthtml version latest #18 (the failing tests there came fromposthtml-sugarmlfixtures parsing HTML includes since posthtml 0.12).Internals
through2→stream.Transform;plugin-error2.node:test, c8 (100% coverage gate), ESLint. 13 tests incl. null/stream files, options/from/to, config file lookup andconfigdir, and error paths. The custom parser test lives in its own file because posthtml ≤0.16 leaks custom parsers between calls (fixed in fix: scope custom parser and render to a single process call posthtml#421).filesinstead of.npmignore; removed generatedPLUGIN.md; README rewritten (no sugarml), CHANGELOG, contributing guide.Verified
npm run checkwith posthtml 0.16.0, 0.16.7 and posthtmlmaster(0.17).posthtml.config.js); withstream/promisespipelinea failing file fails the task withError in plugin "gulp-posthtml"(documented in README).🤖 Generated with Claude Code