Releases: mondeja/strip-gh-theme-links
Releases · mondeja/strip-gh-theme-links
v5.0.0
GitHub Action
- Use Node.js v20
npm package
- Deprecated support for Node.js v16
v5
- Use Node.js v20 in GitHub Actions (#29)
v4.0.1
Bug fixes:
- Fixed CLI not being executed.
v4.0.0
- The exported function
stripGhThemeLinks
is now asynchronous. - The library is ESM only, no Typescript nor CommonJS support by default.
- This version works with
<picture>
and<source>
tags. Github has deprecated the#gh-dark-mode-only
and#gh-light-mode-only
links.
v4
v3.0.0
- Use
require("strip-gh-theme-links")
instead ofrequire("strip-gh-theme-links").default
requiring from CommonJS scripts.
Enhancements:
- Better support for Typescript type declarations.
v3
v2.2.2
Bug fixes
- Stripped empty lines possibly remaining in content after execution.
v2
Breaking changes
stripGhThemeLinks
package function is now a default export.
Enhancements
- Library typed.
- Provide separated distribution files for CJS and ESM.
- Added
--diff
option to CLI. - Show diffs in action for easier debugging.
Bug fixes
- Fixed CLI failing because not properly importing a function.
- Fixed error in regex for HTML image stripping.
- Stripped empty lines possibly remaining in content after execution.
v2.2.1
Bug fixes
- Fixed error in regex for HTML image stripping.