diff --git a/CHANGELOG.md b/CHANGELOG.md index 5236591..f62ba49 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,103 +1,53 @@ ### Changelog -#### [v1.3.0](https://github.com/metalsmith/collections/compare/v1.3.0...v1.2.2) / 2022-09-27 +All notable changes to this project will be documented in this file. Dates are displayed in UTC. -- Provides dual ESM/CJS bundle [`61430d4`](https://github.com/metalsmith/collections/commit/61430d4) -- Adds Typescript types support [`9f9b36c`](https://github.com/metalsmith/collections/commit/9f9b36c) -- Replaced debug with `metalsmith.debug` [`8df9e65`](https://github.com/metalsmith/collections/commit/8df9e65) (by [@leviwheatcroft](https://github.com/leviwheatcroft)) +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -#### [v1.2.2](https://github.com/metalsmith/collections/compare/v1.2.2...v1.2.1) / 2022-07-28 +#### [v1.3.1](https://github.com/metalsmith/collections/compare/v1.3.0...v1.3.1) -- Resolves [`#102`](https://github.com/metalsmith/collections/issues/99): removes multimatch dependency, uses metalsmith.match instead -- Drops support for Metalsmith < 2.4.1 -- Drops support for Node < 12 +- Fix: make all option properties optional [`b85b6cf`](https://github.com/metalsmith/collections/commit/b85b6cf75f949188191415147338ae28c5b9fbac) +- Renames default export to collections for better intellisense [`61ec7f9`](https://github.com/metalsmith/collections/commit/61ec7f93fe4fac2112909b4fee233507affe05a2) +- Includes sourcemap for better stack traces [`b5b8059`](https://github.com/metalsmith/collections/commit/b5b80597cf821b3c478b864ddf5739d60aadce0d) +- Fix: conditional exports types [`e8bb72a`](https://github.com/metalsmith/collections/commit/e8bb72ac22298324669b3e7b45d7177c88b13c2a) -#### [v1.2.1](https://github.com/metalsmith/collections/compare/v1.2.1...v1.2.0) / 2022-02-03 +#### [v1.3.0](https://github.com/metalsmith/collections/compare/v1.2.2...v1.3.0) -- Fixes [`#99`](https://github.com/metalsmith/collections/issues/99): collection key on file metadata - no dupes, no nested arrays -- Fixes regression: incorrect previous & next refs when reverse: true -- Fixes typo's in README +> 27 September 2022 -#### [v1.2.0](https://github.com/metalsmith/collections/compare/v1.2.0...v1.1.0) / 2022-01-29 +- Provides dual ESM/CJS bundle [`61430d4`](https://github.com/metalsmith/collections/commit/61430d489ae87df1276f61de8aad2755c0491cc9) +- switched debugger to metalsmith.debug [`8df9e65`](https://github.com/metalsmith/collections/commit/8df9e65b6b03f4c3d96a81d477a21d69aeafadbf) +- Adds Typescript types support [`9f9b36c`](https://github.com/metalsmith/collections/commit/9f9b36ca569153ad84be89facdc6a2630e86a6af) -- Feature: sortBy now also understands nested metadata properties, e.g. `sortBy: 'meta.display.order'` -- Fixed JSDoc typo that made type hints unavailable -- Documented limit & refer options -- Improved README.md with more elaborate examples -- Refactored to cleaner code -- Removed dependencies: `extend`,`uniq` -- Added dependency `lodash.get` -- Added core-plugin tests -- Updated devDependencies release-it, prettier, eslint +#### [v1.2.2](https://github.com/metalsmith/collections/compare/v1.2.1...v1.2.2) -#### [v1.1.0](https://github.com/metalsmith/collections/compare/v1.0.0...v1.1.0) / 2021-15-12 +> 28 July 2022 -- Added standardised code formatting and QA [`#86`](https://github.com/metalsmith/collections/pull/86) -- Updated History with v1 PRs [`#85`](https://github.com/metalsmith/collections/pull/85) -- Added better JSDoc types, return named plugin function [`3aa3443`](https://github.com/metalsmith/collections/commit/3aa3443802c2f814c90cf39c7b43de8fc3d3ff13) -- Updated multimatch to 4.0.0, debug to 4.3.3 [`71d6f65`](https://github.com/metalsmith/collections/commit/71d6f65b9ec5572196e17dfebf5cff2361853f9d) - -# [1.0.0][] / 2018-10-17 - -- Fixed API and merged many PRs -- Allow metadata-based filtering with `filterBy` option -- removed unused module -- Add documentation: `sortBy` can be a function -- display only matching files when debugging -- assign data.path where undefined -- Clear collections -- Added multiple collections syntax to Readme.md - -#### [0.7.0][] / 2015-02-07 - -- Allow front matter and pattern collections. -- Added the ability to limit the size of a collection -- Allow collections through metadata alone -- add ability to disable next/previous references - -#### [0.6.0][] / 2014-08-12 - -- Added the ability to set multiple collections - -#### [0.5.1][] / 2014-08-05 - -- Fixed bug with require statement - -#### [0.5.0][] / 2014-08-04 +- Resolves #102: remove multimatch, use metalsmith.match [`#102`](https://github.com/metalsmith/collections/issues/102) +- Drops support for Node < 12 [`6a7271c`](https://github.com/metalsmith/collections/commit/6a7271c9a170e88ae91e1d05e2f7162606566f3f) -- Added the ability to add metadata to collections +#### [v1.2.1](https://github.com/metalsmith/collections/compare/v1.2.0...v1.2.1) -#### [0.4.1][] - May 4, 2014 +> 3 February 2022 -- fix empty collections +- Closes #27 by adding a test for repeat builds [`#27`](https://github.com/metalsmith/collections/issues/27) +- Fixes incorrect next and previous references [`665de09`](https://github.com/metalsmith/collections/commit/665de091b3bbb7b74741d15e17e471ae225ba2ec) +- Fixes collection property on files and adds test: no dupes, no nested arrays (#99) [`727769d`](https://github.com/metalsmith/collections/commit/727769d95464e61739523538006cb863220cfae6) -#### [0.4.0][] - March 25, 2014 +#### [v1.2.0](https://github.com/metalsmith/collections/compare/v1.1.0...v1.2.0) -- add option for `sortBy` to be a sorting function +> 29 January 2022 -#### [0.3.0][] - March 24, 2014 +- feat: refactor, clean code, remove redundant dependencies, add tests [`d481b92`](https://github.com/metalsmith/collections/commit/d481b927b6137df81e8fc71de99c1277f6a131c2) +- docs: update README, prepare changelog for v1.2 [`c004ed0`](https://github.com/metalsmith/collections/commit/c004ed00216145f3cfa82042ab9243e42c23edb3) +- [skip travis] dev: fix readme badges [`87e4d37`](https://github.com/metalsmith/collections/commit/87e4d370530065a790c0b077d820fcc47bd6594c) -- add `collection` property to each file for pattern matches +#### [v1.1.0](https://github.com/metalsmith/collections/compare/v1.0.0...v1.1.0) -#### [0.2.0][] - March 20, 2014 +> 15 December 2021 -- add collections dictionary to global metadata - -#### [0.1.0][] - March 6, 2014 - -- add matching by pattern -- add shorthand for pattern matching -- add previous and next references - -#### [0.0.3][] - February 6, 2014 - -- add debug statements -- swap to `extend` from `defaults` to avoid cloning - -#### [0.0.2][] - February 6, 2014 - -- swap to `merge` to not act on clones - -#### [0.0.1][] - February 5, 2014 - -:sparkles: +- Added standardised code formatting and QA [`#86`](https://github.com/metalsmith/collections/pull/86) +- Updated History with v1 PRs [`#85`](https://github.com/metalsmith/collections/pull/85) +- Aligned dotfiles & repo files with core plugins. Added LICENSE, updated devDependencies [`0f2480b`](https://github.com/metalsmith/collections/commit/0f2480b4c2baa22268229ad3d686fb9e21773602) +- Updated multimatch to 4.0.0, debug to 4.3.3 [`71d6f65`](https://github.com/metalsmith/collections/commit/71d6f65b9ec5572196e17dfebf5cff2361853f9d) +- Added better JSDoc types, return named plugin function [`3aa3443`](https://github.com/metalsmith/collections/commit/3aa3443802c2f814c90cf39c7b43de8fc3d3ff13) diff --git a/package-lock.json b/package-lock.json index 9f53444..e9df575 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@metalsmith/collections", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@metalsmith/collections", - "version": "1.3.0", + "version": "1.3.1", "license": "MIT", "dependencies": { "lodash.get": "^4.4.2", diff --git a/package.json b/package.json index c61b1d3..ac03979 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/metalsmith/collections.git" }, - "version": "1.3.0", + "version": "1.3.1", "license": "MIT", "source": "src/index.js", "main": "lib/index.cjs",