From 9662ed65a8bcd3d603b6fe240a1efce996b70082 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Fri, 2 Mar 2018 23:39:49 +0200 Subject: [PATCH 1/4] move TermFactoryHelpers to tests/src + autoload-dev --- composer.json | 5 +++++ tests/{unit/Term => src}/TermFactoryHelpers.php | 0 2 files changed, 5 insertions(+) rename tests/{unit/Term => src}/TermFactoryHelpers.php (100%) diff --git a/composer.json b/composer.json index 2fc182b..7c53fa9 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,11 @@ "psr-4": {"Silk\\":"src"}, "files": ["src/functions.php"] }, + "autoload-dev": { + "classmap": [ + "tests/src" + ] + }, "scripts": { "test": "phpunit", "coverage": "coveralls" diff --git a/tests/unit/Term/TermFactoryHelpers.php b/tests/src/TermFactoryHelpers.php similarity index 100% rename from tests/unit/Term/TermFactoryHelpers.php rename to tests/src/TermFactoryHelpers.php From fa48caafa2b5fb177c5ce60810c52a435b2349e2 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Fri, 2 Mar 2018 23:42:48 +0200 Subject: [PATCH 2/4] add Silk\Silk::VERSION --- src/Silk.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Silk.php diff --git a/src/Silk.php b/src/Silk.php new file mode 100644 index 0000000..26f2302 --- /dev/null +++ b/src/Silk.php @@ -0,0 +1,13 @@ + Date: Fri, 2 Mar 2018 23:43:22 +0200 Subject: [PATCH 3/4] changelog --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e8792..b856d84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Release Notes +## v0.12.0 (2018-03-02) + +### Added +- [Query scopes](https://github.com/aaemnnosttv/silk/issues/24) for model queries +- [Soft `Model::find(id)` retrieval method](https://github.com/aaemnnosttv/silk/issues/25) +- `\Silk\Silk::VERSION` Version constant + +## Changed +- Raised minimum PHP version to 5.6 +- [Updated `tightenco/collect` Collection library](https://github.com/aaemnnosttv/silk/issues/27) +**_Breaking change from previous version with some methods_** (see issue) +- [Removed deprecated methods](https://github.com/aaemnnosttv/silk/issues/28) **Breaking Change** + - `Silk\Post\Model::fromWpPost` + - `Silk\Term\Model::fromWpTerm` +- Removed `Silk\Contracts\Query\BuildsQueries` interface + ## v0.11.1 (2016-30-08) ### Changed From 6476eca59c1b7b2498f7f8ba8fe4ddad41e51431 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Sat, 3 Mar 2018 00:03:05 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index 12cdbe4..c8471e2 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ A modern API for WordPress. Use with confidence, upgrade with care. --- - ## What is Silk? Silk is a library designed as a thin layer on top of WordPress, abstracting away the mess of functions into a clean and expressive object-oriented API. Use as much or little as you want, while maintaining compatibility with everything else that's meant to work with WordPress. @@ -33,10 +31,3 @@ composer require silk/silk ## Contributing Contributions are welcome! If you're interested in contributing to the project, please open an issue first. I would hate to decline a Pull Request forged by hours of effort for any reason, so please read the contribution guidelines first. - -#### Related Projects and Inspiration -- [Laravel](https://laravel.com) -- [Timber](https://github.com/jarednova/timber) -- [Corcel](https://github.com/jgrossi/corcel) -- [WordPlate](https://github.com/wordplate/wordplate) -- [WP Eloquent](https://github.com/tareq1988/wp-eloquent)