Skip to content

Releases: josantonius/php-asset

v2.0.3

29 Sep 15:18
Compare
Choose a tag to compare

What's Changed

  • Release/v2.0.3 in #4

  • The notation type in the test function names has been changed from camel to snake case for readability.

  • Functions were added to document the methods and avoid confusion.

  • Disabled the ´CamelCaseMethodName´ rule in ´phpmd.xml´ to avoid warnings about function names in tests.

  • The alignment of the asterisks in the comments has been fixed.

  • Tests for Windows have been added.

  • Tests for PHP 8.2 have been added.

Full Changelog: v2.0.1...v2.0.3

v2.0.2

10 Aug 21:14
Compare
Choose a tag to compare

What's Changed

  • improve documentation in README files.

Full Changelog: v2.0.1...v2.0.2

v2.0.1

13 Jul 12:59
Compare
Choose a tag to compare

What's Changed

  • release/v2.0.1 in #2

  • Remove unused class in Josantonius\Asset\Facades\Asset.

  • improve documentation in README files.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

30 Jun 19:40
Compare
Choose a tag to compare

What's Changed

  • pre-release/v2.0.0 in #1

Version 1.x is considered as deprecated and unsupported. In this version (2.x) the library was completely restructured. It is recommended to review the documentation for this version and make the necessary changes before starting to use it, as it not be compatible with version 1.x.

  • The library was completely refactored.

  • Replaced all static methods in Josantonius\Asset\Asset class.

    A facade class was added to access the methods statically: Josantonius\Asset\Facades\Asset.

  • Support for PHP version 8.1.

  • Support for earlier versions of PHP 8.1 is discontinued.

  • Improved documentation; README.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md and CHANGELOG.md.

  • Removed Codacy.

  • Removed PHP Coding Standards Fixer.

  • The master branch was renamed to main.

  • The develop branch was added to use a workflow based on Git Flow.

  • Travis is discontinued for continuous integration. GitHub Actions will be used from now on.

  • ADDED:

    Josantonius\Asset\Elements\BodyScript class.

    Josantonius\Asset\Elements\HeadScript class.

    Josantonius\Asset\Elements\Link class.

    Josantonius\Asset\Elements\Script class.

    Josantonius\Asset\Facades\Asset class.

    Josantonius\Asset\Tests\Elements\LinkTest class.

    Josantonius\Asset\Tests\Elements\ScriptTest class.

    Josantonius\Asset\Tests\Facades\AssetTest class.

    .github/CODE_OF_CONDUCT.md file.

    .github/CONTRIBUTING.md file.

    .github/FUNDING.yml file.

    .github/workflows/ci.yml file.

    .github/lang/es-ES/CODE_OF_CONDUCT.md file.

    .github/lang/es-ES/CONTRIBUTING.md file.

    .github/lang/es-ES/LICENSE file.

    .github/lang/es-ES/README file.

  • DELETED:

    Josantonius\Asset\Tests\ScriptsTest class.

    Josantonius\Asset\Tests\StylesTest class.

    Josantonius\Asset\Tests\UnifyFilesTest class.

    tests/assets folder.

    .travis.yml file.

    .editorconfig file.

    CONDUCT.MD file.

    README-ES.MD file.

    .php_cs.dist file.

Full Changelog: 1.1.7...v2.0.0

1.1.7

05 Jan 13:28
Compare
Choose a tag to compare
  • The tests were fixed.

  • Changes in documentation.

1.1.6

08 Nov 19:02
Compare
Choose a tag to compare
  • Implemented PHP Mess Detector to detect inconsistencies in code styles.

  • Implemented PHP Code Beautifier and Fixer to fixing errors automatically.

  • Implemented PHP Coding Standards Fixer to organize PHP code automatically according to PSR standards.

1.1.5

25 Oct 15:27
Compare
Choose a tag to compare
  • Implemented PSR-4 autoloader standard from all library files.

  • Implemented PSR-2 coding standard from all library PHP files.

  • Implemented PHPCS to ensure that PHP code complies with PSR2 code standards.

  • Implemented Codacy to automates code reviews and monitors code quality over time.

  • Implemented Codecov to coverage reports.

  • Added Asset/phpcs.ruleset.xml file.

  • Deleted Asset/src/bootstrap.php file.

  • Deleted Asset/tests/bootstrap.php file.

  • Deleted Asset/vendor folder.

  • Deleted Josantonius\Asset\Test\AssetTest class.

  • Added Asset/tests/css/style.css file.

  • Added Asset/tests/css/custom.css file.

  • Added Asset/tests/js/script.js file.

  • Added Asset/tests/js/custom.js file.

  • Deleted Josantonius\Asset\Asset::resource() method.

  • Deleted Josantonius\Asset\Asset::js() method.

  • Deleted Josantonius\Asset\Asset::css() method.

  • Added Josantonius\Asset\ScriptsTest class.

  • Added Josantonius\Asset\ScriptsTest->setUp() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScript() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptWithDeferAttribute() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptWithAsyncAttribute() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptInFooter() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptInHeader() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptAddingAllParams() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptWithoutName() method.

  • Added Josantonius\Asset\ScriptsTest->testAddScriptWithoutUrl() method.

  • Added Josantonius\Asset\ScriptsTest->testIfScriptsAddedCorrectly() method.

  • Added Josantonius\Asset\ScriptsTest->testRemoveAddedScripts() method.

  • Added Josantonius\Asset\ScriptsTest->testValidationAfterDeletion() method.

  • Added Josantonius\Asset\ScriptsTest->testOutputFooterScripts() method.

  • Added Josantonius\Asset\ScriptsTest->testOutputHeaderScripts() method.

  • Added Josantonius\Asset\ScriptsTest->testOutputWhenNotFooterScriptsLoaded() method.

  • Added Josantonius\Asset\ScriptsTest->testOutputWhenNotHeaderScriptsLoaded() method.

  • Added Josantonius\Asset\StylesTest class.

  • Added Josantonius\Asset\StylesTest->setUp() method.

  • Added Josantonius\Asset\StylesTest->testAddStyle() method.

  • Added Josantonius\Asset\StylesTest->testAddStyleWithVersion() method.

  • Added Josantonius\Asset\StylesTest->testAddStyleAddingAllParams() method.

  • Added Josantonius\Asset\StylesTest->testAddStyleWithoutName() method.

  • Added Josantonius\Asset\StylesTest->testAddStyleWithoutUrl() method.

  • Added Josantonius\Asset\StylesTest->testIfStylesAddedCorrectly() method.

  • Added Josantonius\Asset\StylesTest->testRemoveAddedStyles() method.

  • Added Josantonius\Asset\StylesTest->testValidationAfterDeletion() method.

  • Added Josantonius\Asset\StylesTest->testOutputStyles() method.

  • Added Josantonius\Asset\StylesTest->testOutputWhenNotStylesLoaded() method.

  • Added Josantonius\Asset\UnifyFilesTest class.

  • Added Josantonius\Asset\UnifyFilesTest->setUp() method.

  • Added Josantonius\Asset\UnifyFilesTest->testUnify() method.

  • Added Josantonius\Asset\UnifyFilesTest->testUnifySpecifyingDifferentUrlPaths() method.

  • Added Josantonius\Asset\UnifyFilesTest->testUnifyAndMinify() method.

  • Added Josantonius\Asset\UnifyFilesTest->testUnifyAndMinifySpecifyingDifferentUrlPaths() method.

  • Added Josantonius\Asset\UnifyFilesTest->testAddStylesAndScripts() method.

  • Added Josantonius\Asset\UnifyFilesTest->testIfStylesAndScriptsAddedCorrectly() method.

  • Added Josantonius\Asset\UnifyFilesTest->testOutputStylesAndScripts() method.

  • Added Josantonius\Asset\UnifyFilesTest->testIfUnifiedFilesWasCreated() method.

1.1.4

10 Sep 21:59
Compare
Choose a tag to compare
  • Unit tests supported by PHPUnit were added.

  • The repository was synchronized with Travis CI to implement continuous integration.

  • Type attributes were deleted from HTML tags. Since HTML5 doesn't longer necessary.

  • Added Asset/src/bootstrap.php file

  • Added Asset/tests/bootstrap.php file.

  • Added Asset/phpunit.xml.dist file.

  • Added Asset/_config.yml file.

  • Added Asset/.travis.yml file.

  • Deleted Josantonius\Asset\Tests\AssetTest class.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddOneCssFile() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddMultipleCssFile() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddOneJsFile() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddMultipleJsFile() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddOneJsFileAttr() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddMultipleJsFileAttr() method.

  • Deleted Josantonius\Asset\Tests\AssetTest::testAddMultipleJsFileSameAttr() method.

  • Added Josantonius\Asset\Test\AssetTest class.

  • Added Josantonius\Asset\Test\AssetTest::testAddOneCssFile() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddMultipleCssFile() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddOneJsFile() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddMultipleJsFile() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddOneJsFileAttr() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddMultipleJsFileAttr() method.

  • Added Josantonius\Asset\Test\AssetTest::testAddMultipleJsFileSameAttr() method.

1.1.3

15 Jul 21:43
Compare
Choose a tag to compare
  • Deleted Josantonius\Asset\Exception\AssetException class.
  • Deleted Josantonius\Asset\Exception\Exceptions abstract class.
  • Deleted Josantonius\Asset\Exception\AssetException->__construct() method.

1.1.2

18 Mar 02:41
Compare
Choose a tag to compare
  • Some files were excluded from download and comments and readme files were updated.