Releases: metalsmith/permalinks
Releases · metalsmith/permalinks
@metalsmith/permalinks 3.2.0
- Resolves #140: substitute placeholders that resolve to true to their key name
#140 - Set usable permalink property (current file path) on permalink:false
5f2fca3 - Resolve file-specific permalinks in file.permalink, handle edge cases for root directoryIndex
181c7e6 - Fixes file.permalink for root directoryIndex files from '.' to ''
973183f
@metalsmith/permalinks 3.1.0
- Improves debugging by preventing
dateFormatterfunction from returning an anonymous function. Fix #143.#143 - Documents 'hidden' feature for custom date formatting function, adds date-fn test
26203cc - refactor: simplify date formatting logic and enhance dateFormatter function
dffe27b - Improve debug & error message clarity
3b754ab - Drops support for Node < 14.18.0 to enable node:-prefixed imports
c01345f - refactor: update test case to match the scenario
2484713 - Adds README info about placeholder substitution for booleans/ arrays
76a1349
@metalsmith/permalinks 3.0.1
@metalsmith/permalinks 3.0.0
- Resolves #88, opens up permalinks usage for files with any extension.
#88 - Resolves #75, adds support for dot.notated.pattern.parts
#75 - BREAKING: Resolves #131, replaces moment.js with subset of own date-formatting tokens.
#131 - BREAKING: Resolves #19, throw an error when the permalink resolves with invalid filepath chars
#19 - BREAKING: Resolves #132, removes deprecated options 'relative','duplicatesFail','unique' and 'indexFile' and related bloat
#132 - Updates README.md & types for v3.0.0
3d7ea2e - test: refactor to ESM (actual)
7d9a2d2 - BREAKING: refactors options and default linkset handling
7d5ca36 - BREAKING: throws an error on missing, non-optional pattern parts. See also #22 (comment)
552b549 - Allows front-matter defined permalinks to use :placeholder patterns
053e92e - BREAKING: Solves #94, removes invalid file path characters & sets more sensible slugify defaults
b30d875 - test: remove obsolete test
d5d199f - Formalize default permalink pattern to ':dirname/:basename'
176515e - Updates slugify 1.6.5 -> 1.6.6
a1d2a2f - Updates regexparam 2.0.1 -> 3.0.0
804e1cd - test: refactor to ESM
046770e - Drops support for Node < 14.14.0
3c4bba9
@metalsmith/permalinks 2.5.1
@metalsmith/permalinks 2.5.0
- Resolves #134: deprecates & merges options 'duplicatesFail' & 'unique' into new option 'duplicates'
#134 - Fixes #48, aligns linkset & default options date & slug formatting
#48 - Resolves #44: eliminate ambiguity with setImmediate(done)
#44 - Resolves #129: provides dual ESM/CJS module
#129 - Drops support for Metalsmith < 2.5.0, replaces debug with metalsmith.debug
7e1c0dc - Deprecates file.path in favor of file.permalink and adds better testing
c7a56f1 - Adds Typescript definitions
6354c95 - Aligns behavior of using alt indexFile and adds indexFile test
5d6d861 - Deprecates the file.path property in favor of file.permalink
4130e03 - Deprecates options.indexFile in favor of options.directoryIndex
b6ee083 - test: add test case for array matches & cheat coverage
5f7734c - docs: correct typo's & omissions in README.md
94816a2 - Deprecates the 'relative' option, cfr. #132
ffb7fcb - fix: ESM build export * instead of default from regexparam
e1a9fe6
@metalsmith/permalinks 2.4.1
@metalsmith/permalinks 2.4.0
- Resolves #122: remove deprecated substitute pkg, add regexparam instead
#122 - Fixes #120: default linkset options should be overwritten by other linksets
#120 - Resolves #121: Align dot & repo files with core plugins
#121 - Update debug to 4.3.3, moment to 2.29.1, slugify to 1.6.5
4360a3013e3dbf - feat: proper jsdocs, cleaner option handling code
4684767 - feat: allow optional pattern placeholder
a7f89ea - fix: remove console.log typo, fix few README typo's
2ea03de - Fixes debug channel to '@metalsmith/permalinks'
21bc858