All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. And as you can see, we keep a CHANGELOG.
2.6.0 - 2017-04-19
- WordPress 4.7 to build matrix. #198
- PHPUnit test suite bootstrap from WordPoints. #193
- Points type factory for use in the PHPUnit tests. #200
- Git
pre-commithook which automatically checks all staged files for codesniff issues. #20 - Support for the
@requires WordPoints versionand@WordPoints-version <version>annotations for the PHPUnit tests, to require a particular WordPoints version for a test. - Support for the
@WordPoints-requires <callback>annotation for the PHPUnit tests, to specify a boolean callback that must return a true result for the test to run. - Minification of CSS, JS, and images to the default Grunt config. #208
Generic.Files.OneClassPerFileandGeneric.Files.OneInterfacePerFileto PHPCS ruleset.- Restricted PHPUnit assertions PHPCS sniff, which flags the use of non-strict assertions.
- PHPCS ruleset for the dev-lib itself, which is also now checked via our Travis build.
- Support for running the uninstall tests for a module to only uninstall the module, but not WordPoints, by setting
WORDPOINTS_ONLY_UNINSTALL_MODULE=1. #192- Add these tests to the default Travis build.
set-upcommand to install dependencies and hook up the pre-commit hook when a user checks out a project using the dev-lib.- Also hooks up the pre-commit hook for the dev-lib as well.
- String sniffer to ignore all
.lockfiles. #199 - XMLLint check to only run if any
.xmlfiles exist. #201 - The autoloader checker to automatically detect dependencies of an autoloader.
- If for a module, the classes may be dependent on WordPoints core's main autoloader. #207
- This in turn means that for modules we can no longer run the check on the codesniff pass on Travis CI, because WordPoints is not installed yet at that point.
- The
CODESNIFF_PHP_AUTOLOADER_DEPENDENCIEScan be used to specify the default dependencies for a project. - WordPoints core's points component's classmaps are automatically assigned as dependencies for module classmaps within a
/points/directory.
- PHPCS ruleset to exclude the PHP syntax sniff. This is unnecessary since we already do syntax checks.
- PHPCS ruleset to not run the i18n sniff on the tests.
- Code coverage results to be submitted to codecov.io instead of Coveralls. #109
- Env bootstrap to allow
$WP_DEVELOP_DIRto be preset. - Env bootstrap to automatically set the WordPoints tests directory based on the develop directory.
- Autoloader validator to automatically load the
WP_Widgetclass in case any classes extend it. - Grunt config to automatically detect the module namespace as the prefix for the classes in the autoloader classmaps.
- Updated default browserify version to 5.0.0.
- Grunt to detect the first open port for livereload when running watch.
- Travis bootstrap to update composer when running on PHP 5.2.
makepotcommand to automatically create thelanguagesdirectory if needed.- PHPCS ruleset to disable class filename checks via
WordPress.Files.FileName. - PHPCS ruleset to disable errors about associative arrays not being multiline from
WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound. - PHPCS ruleset to use the new method of restricting functions and variables.
- PHPCS ruleset to use the new WordPress filename sniff instead of the Generic one.
codesniff-phpcscommand to stop silencing warnings from PHPCS, so that they are shown in addition to errors.- Travis build to test our PHPCS sniffs.
- Missing Echo PHPCS sniff, adding
$this->single_row_columns()to the ignored list. - L10n validator config, adding ignore rules for the points logs widget.
- PHPCS version used, updating it to 2.8.1
- Module tests scaffold to replace the example with the module namespace.
- Travis bootstrap to automatically use PHPUnit 5.7 when running on PHP 7 and PHP nightly.
- PHPCS ruleset to allow
system()calls in tests. - WPCS version to 607db751e90e6d32f96fcb15c4aec8609d059d57.
- Travis bootstrap to not run against WordPoints stable and WordPress 4.6 on PHP 7.1.
- Travis bootstrap to recognize that
masteris now the stable WordPoints branch, anddevelopis the development branch. - Travis bootstrap to use
developto denote WordPress trunk, for consistency. - PHPUnit bootstrap to automatically set up autoloading for a module's PHPUnit helper classes.
- PHPCS Missing Echo sniff to ignore functions with names containing
display. - L10n validator config to add
WordPoints_Modules::get_data()to the ignores. - L10n validator confit to add
'.min'to the default ignored strings. initcommand to automatically detect the module namespace and set it as the class prefix for the autoloader generator, instead of just basing this of the directory name of the module.
WordPoints_Dev_Lib_PHPUnit_Class_Autoloaderin favor ofWordPoints_PHPUnit_Class_Autoloader. #193WordPoints_Dev_Lib_PHPUnit_TestCase_Module_Uninstallin favor ofWordPoints_PHPUnit_TestCase_Module_Uninstall. #193
- Support for specifying autoloader dependencies in the Grunt config file. #207
- The autoloader checker not checking a classmap file in the
src/classesdirectory. #206 - Grunt not detecting autoloader errors if they were written to
stdoutinstead ofstderr. - Fatal error from the makepot class due to the
$max_header_linesproperty being private in the parent class. - PHPCS sniff not correctly flagging
wp_remote_*()functions and recommendingwp_safe_remote_*()instead.
2.5.0 - 2016-12-09
- Default config file for Grunt, with a watch task to build the autoload classmaps. (#162)
hadActivatedModule()method to the acceptance tester class. (#164)textContent,preserveWhitespace, andlongOptionsto the list of allowed non-snakecase properties in the PHPCS config. (#165)hadActivatedComponent()method to the acceptance tester class. (#170)- Support for sniffing individul files with
codesniff-phpcs. (#171) haveModuleInstalled()method to the acceptance tester class. (#173)Elementclass for code-reuse in the acceptance tests. (#175)ReactionandReactionConditionelement classes.cantSeePointsReactionInDB(),canSeePointsReactionConditionInDB(), andcantSeePointsReactionConditionInDB()acceptance tester methods.- Support for running
phpcbfcommand of PHPCS viacodesniff-phpcbf. (#180) - Entity restriction API functions and component and module apps functions to the l10n validator exclude lists.
- Deprecated action/filter functions to the l10n validator exclude lists.
- Support for placing acceptance tests that need to be run with WordPoints network-active in the
networksubdirectory. (#189) - Generic string sniffing with
codesniff-strings, based ongrep. - Flags links with
_blanktargets. (#187) - Non-HTTPS links. (#183)
- Specific strings can be added to an ignore list via
$CODESNIFF_IGNORED_STRINGS.
- PHPUnit autoloader to automatically be register itself when any autoload directories were added. (#160)
- PHPCS config to exclude the
VIP.is_mobilerule. (#165) - PHPCS config to allow debugging functions in tests. (#167)
- PHPUnit bootstrap to fully support WPPPB. (#161)
- Support for
phpunit.uninstall.xml.dist. (#168) - Autoloader is included earlier, before non-dev-lib code.
- Module is now automatically loaded using WPPPB-like technique.
- WPPPB is now automatically installed via
composeroninit. - Adds a module uninstall PHPUnit testcase.
- Codesniffing to ignore the
.ideadirectory. (#172) - Acceptance tests for fully suspend object caching. (#174)
- Acceptance tests to be excluded from snakecase variable name PHPCS snif. (#166)
- PHPCS config to not report formatting errors for long-condition ending comments. (#181)
- Missing echo PHPCS sniff, adding points logs view methods to whitelist.
- PHPCS config to exclude
Generic.Strings.UnnecessaryStringConcatrule. - Acceptance tests to support running as multisite. (#138)
- L10n validator config to ignore
class_exists(). update-versioncommand to also automatically update the copyright year. (#150)- PHPUnit bootstrap to automatically load a module's admin-side code. (#195)
- Travis config to run against PHP 7.1. (#194)
- Codesniffing exclude paths to exclude the
node_modulesdirectory.
- Exclusion for
index.phpfiles from having proper file doc-comments from the PHPCS config.
amLoggedInAsAdminOnPage()method on the acceptance tester class dropping query args from the passed URL. (#163)- PHPUnit autoloader failing to autoload tests properly when multiple directories were registere for the same prefix. (#177)
- Warnings from
mysqlandmysqldumpcommand about passwords on some systems. (#188) update-versioncommand using too broad a pattern. (#178)- Codeception tests being run even when there weren't any. (#191)
2.4.0 - 2016-08-31
- Listener for slow PHPUnit tests. (#110)
- Codeception testing support and basic scaffold to be copied over to projects on
init. (#46) - Basic
.gitignorefile, which ignores composer and npm artifacts (#122). (#46) bitwise,forin,freeze,laxbreak,laxcomma,nonbsp(#148), andbrowserifyto the JSHint configuration. (#120)srcdirectory to the code coverage whitelist in the PHPUnit config. (#123)- Ignore browserified files when running JSHint. (#119)
- Grunt task to automatically generate PHP class maps for WordPoints's autoloader. (#126)
updatecommand to easily update the library:dev-lib/run update. (#118)- Autoloader for PHPUnit tests and helpers. (#127)
- PHPCS rule to recommend
date()overgmdate(). (#144) - Ignore rules relating to the new Hooks and Entities APIs to the l10n validator configuration. (#158)
- WordPress versions in Travis build matrices to reflect the support for the latest version of WordPoints.
- PHPCS config to allow filesystem writes in tests. (#132)
makepotcommand to no longer use fuzzy strings. (#140)- Codesniffing paths to be more granular. (#113)
update-versioncommand to also update the version inpackage.json, if present. (#121)- Configuration for the l10n validator not to ignore the
$log_textand$metaargs for thewordpoints_*_points()functions. (#125) - WPCS version used to 0.10.0. (#112)
- PHP files being executed during the syntax check, resulting in build failures on HHVM. (#114)
- Builds not failing when PHP syntax errors were detected. (#111)
$WORDPOINTS_MODULEenv var not being set correctly.- Bash syntax checks not failing builds for syntax errors. (#152)
2.3.1 - 2015-12-19
- WordPress 4.4 to Travis CI matrixes.
- PHP 7.0 to Travis CI matrixes.
- Support for installing modules that use the installables API.
2.3.0 - 2015-11-09
WordPoints.PHPUnit.MissingCoverssniff to flag tests missing@coversannotations (#74).Squiz.Scope.MethodScopeandSquiz.WhiteSpace.ScopeKeywordSpacingsniffs (#101).
WordPress.VIP.RestrictedFunctions.custom_roleerror (#102).
xmllintsniffing when multiple XML files are present (#103).
2.2.0 - 2015-10-30
WordPoints.PHP.RequiredParentMethodCallsniff to flag missing calls toparent::setUp(), etc. (#75).WordPoints_Modules::register()andWordPoints_Widget::get_field_name()to the l10n validator ignores (#85 and #92).do_meta_boxes(),settings_errors()and$this->display_contentto the list of output functions in theWordPoints.PHP.MissingEchosniff (#91).esc_sql()to the list of disallowed functions in theWordPoints.PHP.DisallowedFunctionssniff (#90).- Exclusion for test files for the
WordPress.WP.PreparedSQLsniff (#84). - WordPress 4.3 to the Travis CI config for PHPUnit tests.
esc_js()to the list of disallowed functions in theWordPoints.PHP.DisallowedFunctionssniff (#98).
makepotto inclue fuzzy strings in.mofiles (#83).- Default PHPCS version to
4122da6604e2967c257d6c81151122d08cae60cf(#95). - Default WPCS version to
a54499411fb9ca55a35fc7003422868cdd072ef2(#96).
bossfrom jshint config (#93).
2.1.1 - 2015-07-22
- WPCS version to latest commit on
develop(0.6.0).
- Latest development version of the WP L10n Validator not being used. #80
2.1.0 - 2015-06-27
WordPoints.PHP.DisallowedFunctionssniff to flag usage of unserializing functions (#76), non-safewp_remote_*()functions (#73), and non-safewp_redirect()(#67).
- Local
WP_TESTS_DIRvalue being overwritten when running tests ormakepot.
2.0.4 - 2015-06-06
customUnslashingSanitizingFunctionsproperty configuration for theWordPress.VIP.ValidatedSanitizedInputsniff. #71
- WPCS version to latest commit on
develop. #72 - Enabled the
WordPress.VIP.DirectDatabaseQuerysniff. #72
2.0.3 - 2015-05-23
WordPress-ExtraandWordPress-Docsto the PHPCS ruleset. #69WordPoints_installables::*andWordPoints_Un_Installer_Base::map_shortcutsto the l10n validator ignores list. #68
- WPCS version to latest commit on
develop. #69
2.0.2 - 2015-05-01
- Failure of broken symlink sniff even when there were no broken symlinks. #66
2.0.1 - 2015-05-01
- WPCS version to latest commit on
develop. #63
- The
initcommand not symlinking the.jshintignorefile. #65 - The
initcommand not showing deprecated warning for.ci-env.shfile. #64
2.0.0 - 2015-05-01
- This change log. #61
- WordPress 4.2 to the Travis CI build matrix. #58
- Configuration for jshint. #56
- Sniff for broken symlinks. #54
- Tests to ensure the lib is compatible with PHP nightly and HHVM. #53
- Support for a
.wordpoints-dev-lib-configconfiguration file. #50, #47 - Support for a
wordpoints-dev-lib-configbash command to override vars and functions. #50 WordPoints_Un_Installer_Base::map_uninstall_shortcut,WordPoints_Un_Installer_Base::uninstall_metadata,WordPoints_Un_Installer_Base::uninstall_, andWordPoints_Un_Installer_Base::maybe_update_tables_to_utf8mb4to the list of ignored functions in the l10n validator config.
- Travis CI build setup to use the
--prefer-sourceoption when installing composer dependencies. #59 - PHPUnit bootstrap to use the exit code 1 when
WP_TESTS_DIRisn't set. #55
- Support for the
.ci-envconfiguration file. #50
- Build errors on Travis CI from WordPress not being installed correctly. #57
1.3.3 - 2015-04-03
bin/init.shcreating symlinks with absolute paths. #51
1.3.2 - 2015-03-05
makepot.shnot working for modules. #39init.shnot working with WordPoints. #40
1.3.1 - 2015-02-28
- WPCS version. #37
- Code coverage build for projects with no composer.json. #36
1.3.0 - 2015-02-27
- Script to update a project's version. #29
- Script to generate and update POT and PO/MO files. #28
wordpoints_sanitize_wp_error()to the list of sanitizing functions for the XSS PHPCS sniff. #33- PHP nightly to the Travis CI build. #32
- The default location of the l10n validator's cache files to be in the project root. #31
- WordPress 3.8 from the Travis CI build. #34
- init.sh script failing when multiple .php files are in the src/ directory. #30
1.2.0 2015-02-25
- Setup script. #24
- L10n Validator not ignoring wordpoints_modules_ur(). #26
1.1.0 - 2015-02-20
- Added PHPUnit bootstrap for modules. #19, #22
- L10n validator config is now included with this repo, and the l10n validator is automatically installed if there is a config file for it. #23
- Composer dependencies are no longer installed for the
codesniffpass. #23
dev-libpath not being excluded from codesniffing by default. #21
1.0.0 - 2015-02-17
- Initial code.