Skip to content

Latest commit

 

History

History
747 lines (496 loc) · 48.2 KB

CHANGELOG.md

File metadata and controls

747 lines (496 loc) · 48.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

v0.0.86 - 2024-08-07

💥 BREAKING CHANGES

  • due to a1a54e3 - Provide @template for JsonResource $resource for better type safe (commit by @pionl):

    PHPStan will now throw an error if you pass incorrect value to __construct or Resource::collection

    • made setContainer/getContainer/resourceArray/instance final

✨ New Features

  • a1a54e3 - PHPStan: Provide @template for JsonResource $resource for better type safe (commit by @pionl)

v0.0.85 - 2024-08-06

🐛 Bug Fixes

v0.0.84 - 2024-07-30

✨ New Features

  • 7468a7c - SqlTestEnable: add fake connector for sql lite (commit by @h4kuna)
  • 52fc7fa - Testing: use native hooks instead of method overwrite (commit by @h4kuna)
  • c6384f8 - Database: add ChunkWriteService (commit by @h4kuna)
  • 7709c76 - serialize: add dependency on h4kuna/serialize (commit by @h4kuna)

v0.0.83 - 2024-07-29

💥 BREAKING CHANGES

  • due to d9e2469 - Fix deleting cache in context and drop tags usage by default (commit by @pionl):

    Drop default tag for context cache - Laravel offical recommendation is not to use tags with redis

🐛 Bug Fixes

  • d9e2469 - Context: Fix deleting cache in context and drop tags usage by default (commit by @pionl)

v0.0.82 - 2024-03-08

✨ New Features

  • 64d2322 - Database: Improve phpstan support for scopes (commit by @pionl)

v0.0.81 - 2024-02-28

✨ New Features

  • 3429635 - Queue: Add _preHook closure to RunJobActionContractExpectation (commit by @pionl)

v0.0.80 - 2024-02-28

🐛 Bug Fixes

  • e1d93a3 - Queue: Improve RunJobActionContract $method signature (nullable) (commit by @pionl)

v0.0.79 - 2024-02-28

🐛 Bug Fixes

  • 28cfde8 - Queue: Add missing $method parameter to RunJobActionContract (commit by @pionl)

v0.0.78 - 2024-02-28

✨ New Features

  • 046a9e3 - Queue: Add ability to dispatch job in testable way (commit by @pionl)

v0.0.77 - 2024-02-06

✨ New Features

  • e2eb679 - CacheMeService: ttl defined like seconds instead of minutes (commit by @pionl)

v0.0.76 - 2023-12-11

✨ New Features

  • 9a1ddb6 - ServiceProvider: Add ability to get tagged classes of given implementation (commit by @pionl)

v0.0.75 - 2023-12-10

💥 BREAKING CHANGES

  • due to 7804785 - Improve PHPStan support for ContextEventsService (commit by @pionl):

    Dropped Closure event due the bad type usage

✨ New Features

  • 7804785 - Context: Improve PHPStan support for ContextEventsService (commit by @pionl)

v0.0.74 - 2023-11-22

💥 BREAKING CHANGES

  • due to dcb79f3 - OrderByValuesScope is now from ASC to DESC order of given values (commit by @pionl):

    Values must be ordered from prefered order to last wanted order (now it was incorrectly used)

🐛 Bug Fixes

  • dcb79f3 - Database: OrderByValuesScope is now from ASC to DESC order of given values (commit by @pionl)

v0.0.73 - 2023-11-16

🐛 Bug Fixes

  • c644785 - Testing: Internal variables for generated assert has prefix underscore (commit by @h4kuna)

v0.0.72 - 2023-11-11

🐛 Bug Fixes

  • 942323d - Testing: Fix assert listener when closure listener is registered (commit by @pionl)

v0.0.71 - 2023-10-12

✨ New Features

  • e20cea1 - Core: Add contract for sleep service with no sleep implementation in tests (commit by @pionl)

v0.0.70 - 2023-09-05

✨ New Features

  • 60da0a8 - Testing: GateAssert->authorize now throws exception if false response is returned (commit by @pionl)
  • 872fe0c - Testing: CreateRequest now accept user parameter that is passed to request (commit by @pionl)

v0.0.69 - 2023-07-24

💥 BREAKING CHANGES

  • due to ecbd60b - Add ability to create request without Laravel container (commit by @pionl):

    createPostRequest has been renamed to createAndValidateRequest

✨ New Features

  • ab64cfa - Testing: Move MockModels to Testing/Concerns namespace (commit by @pionl)
  • ecbd60b - Testing: Add ability to create request without Laravel container (commit by @pionl)

v0.0.68 - 2023-07-24

✨ New Features

  • 1d55e84 - Testing: Add AssertProviderPolicies for testing policies (commit by @pionl)

v0.0.67 - 2023-07-24

✨ New Features

  • e99a21e - Database: Add ability to force null values to 0.0 when using FloatCast (commit by @pionl)

v0.0.66 - 2023-07-08

✨ New Features

  • 0583ac8 - Database: Add OrderByValuesScope for ordering by values in given order (commit by @pionl)

v0.0.65 - 2023-06-30

✨ New Features

  • 62869c3 - Testing: ModelResourceTestCase allows entity in resource (commit by @pionl)

v0.0.64 - 2023-06-30

💥 BREAKING CHANGES

  • due to 780f59a - ResourceTestCase $object supports mixed type or closure (commit by @pionl):

    Update createResource typehint to mixed.

  • due to e3bf3ec - Add support for setting container to collection of resources (commit by @pionl):

    If you pass container and do not use JsonResource exception will be thrown.

  • due to 20b1ff4 - Move mockery to ModelResourceTestCase (commit by @pionl):

    ResourceTestCase does not include Mockery. Use this if needed

        use MockeryPHPUnitIntegration;  
        use MockeryTestCaseSetUp;  
        protected function mockeryTestSetUp(): void  
        {  
            $this->mockModels();  
        }  
        protected function mockeryTestTearDown(): void  
        {  
        }  
  • due to 99006bf - PHPStorm run for ResourceTestCase with single data entry test (commit by @pionl):

    to allow running single data test in PHPStorm, test function was removed.
    To run tests add this method when extending the TestCase.

        /**  
         * @param \Closure(static):void $assert  
         * @dataProvider data  
         */  
        public function test(\Closure $assert): void  
        {  
            $assert($this);  
        }  

✨ New Features

  • 3e7b7e9 - Http: Update MessageResource to use own JsonResource (commit by @pionl)
  • 780f59a - Testing: ResourceTestCase $object supports mixed type or closure (commit by @pionl)
  • e3bf3ec - Http: Add support for setting container to collection of resources (commit by @pionl)
  • 20b1ff4 - Testing: Move mockery to ModelResourceTestCase (commit by @pionl)
  • 34af3f0 - Http: Add resourceArray to JsonResource/ResourceTestCase (commit by @pionl)

🐛 Bug Fixes

  • 99006bf - Testing: PHPStorm run for ResourceTestCase with single data entry test (commit by @pionl)

✅ Tests

v0.0.63 - 2023-06-28

✨ New Features

  • 2573fce - Http: Add JsonResource that can create instances (with unit testing) (commit by @pionl)
  • 882c3b5 - Testing: Add a unit test case for quick testing of resources (commit by @pionl)
  • 6e9a475 - Testing: Add ability to test models without Laravel framework (commit by @pionl)

v0.0.62 - 2023-06-27

🐛 Bug Fixes

  • c30fc9c - Testing: Upgrade Laravel assert (construct, nullable, remove array_values) (commit by @pionl)

v0.0.61 - 2023-06-27

💥 BREAKING CHANGES

  • due to acc90a9 - AssertExpectations automatically checks if expectations were called (commit by @pionl):

Due the changes the expectation logic has been changed and you need to update your code. How to migrate in PR #40

✨ New Features

  • acc90a9 - Testing: AssertExpectations automatically checks if expectations were called (commit by @pionl)

v0.0.60 - 2023-06-23

✨ New Features

  • b35f53d - Testing: AssertEventListeners: Prevent other listeners to be fired (commit by @pionl)

v0.0.59 - 2023-06-23

✨ New Features

  • c7b8e75 - Database: Store database like value and add null support to FloatCast (commit by @pionl)

v0.0.58 - 2023-06-22

🐛 Bug Fixes

  • 21c5a53 - Testing: Fix missing UrlGenerator and add tests (commit by @pionl)

v0.0.57 - 2023-06-22

✨ New Features

  • d432f7b - Testing: Add ResponseFactoryAssert (commit by @pionl)

v0.0.56 - 2023-06-22

✨ New Features

  • b8636b8 - Testing: Add Cache RepositoryAssert (commit by @pionl)

v0.0.55 - 2023-06-21

✨ New Features

  • 8ae2d7a - Testing: Add ability to assert AppConfig (use AppConfigContract for implementation) (commit by @pionl)

🐛 Bug Fixes

  • b0874e8 - Testing: Fix MakeExpectationCommand with union returns in assert class (commit by @pionl)

v0.0.54 - 2023-06-09

🐛 Bug Fixes

  • 4d75907 - Database: Allow all Laravel 9 versions (Fix PHPStan warnings) (commit by @pionl)
  • 8f48750 - Cache: Add @template return type to CacheMeServiceContract::get

v0.0.53 - 2023-06-02

✨ New Features

  • 6d89f9a - Database: Add float cast that supports comma (commit by @h4kuna)

v0.0.52 - 2023-06-01

🐛 Bug Fixes

  • 4292a8a - Rules: Improve NumberRule range of supported int/float values (commit by @h4kuna)

v0.0.51 - 2023-05-25

🐛 Bug Fixes

  • a54eeb4 - Queue: Correctly ensure that queue is not overridden when using property (commit by @pionl)

v0.0.50 - 2023-05-25

🐛 Bug Fixes

  • 4844918 - Queue: Ensure that queue is not overridden when using property (commit by @pionl)

v0.0.49 - 2023-05-19

💥 BREAKING CHANGES

  • due to 1742fcf - Allow array arguments in queued command (commit by @pionl):

    low - ScheduleServiceService renamed to ScheduleService

🐛 Bug Fixes

  • 1742fcf - Schedule: Allow array arguments in queued command (commit by @pionl)

v0.0.48 - 2023-05-12

🐛 Bug Fixes

  • ec40840 - Database: Fix PHPStan with scopes parameter in missing methods (commit by @pionl)

v0.0.47 - 2023-05-11

🐛 Bug Fixes

  • 2e9e6fe - Database: Fix PHPStan with scopes parameter (commit by @pionl)

v0.0.46 - 2023-05-04

✨ New Features

  • 07ea6d0 - Log: Add extra line for line/debug (commit by @pionl)
  • 1eed371 - Log: Do not show debug lines if verbosity is normal, hide output on quiet (commit by @pionl)

v0.0.45 - 2023-05-02

🔧 Chores

  • 757942a - Console: Add extra space after writing context in twoDetailColumns (commit by @pionl)

v0.0.44 - 2023-05-02

💥 BREAKING CHANGES

  • due to 30e3a0c - Add ability to turn of log for get/set method (commit by @pionl):

    If you are extending CacheMeServiceContract then add new last parameter bool $log = true to set/get method.

  • due to 0b1d41d - Add ability to output LogInterface usage to console. (commit by @pionl):

    LogToOutputService and LoggerToOutputCommand removed (was not working).

✨ New Features

  • 30e3a0c - Cache: Add ability to turn of log for get/set method (commit by @pionl)
  • 449ba5c - Config: Add ability to set value (commit by @pionl)
  • 1c5c1c7 - Config: Add ability to provider app service provider config (commit by @pionl)
  • 1c5970b - Docker: Add proper docker support for schedule (needs to be enabled) (commit by @pionl)
  • 0b1d41d - Console: Add ability to output LogInterface usage to console. (commit by @pionl)

🔧 Chores

v0.0.43 - 2023-04-26

🔧 Chores

  • 575966f - Fix incorrect package repository/homepage/name + update checkout to v3 (commit by @pionl)

v0.0.42 - 2023-04-26

🔧 Chores

v0.0.41 - 2023-01-20

✨ New Features

v0.0.40 - 2023-01-18

✨ New Features

  • b0ec6a8 - Testing: Fix PHPStan warning when using null in multi function asserts (commit by @pionl)
  • c674c4b - Testing: Add TranslatorAssert for asserting translations (commit by @pionl)
  • e02c81b - Http: Add ability to return custom public message in json / views (commit by @pionl)

v0.0.39 - 2023-01-16

💥 BREAKING CHANGES

  • due to 1428244 - Add support for multiple listeners in assertEventListeners (commit by @pionl):

    assertEventListeners accepts list of contracts and their assert listener

✨ New Features

  • 1428244 - Testing: Add support for multiple listeners in assertEventListeners (commit by @pionl)

v0.0.38 - 2023-01-16

✨ New Features

  • 4d0e39e - Testing: Add ability to assert event listeners with assert class (commit by @pionl)

v0.0.37 - 2023-01-12

💥 BREAKING CHANGES

  • due to e69f381 - Add getOptional method to allow return null if translation is not set + support arrayable keys (commit by @pionl):

    AbstractTranslations: $key parameter in methods get/getChoice/getArray/getKey accepts string|array instead of string

✨ New Features

  • e69f381 - Translations: Add getOptional method to allow return null if translation is not set + support arrayable keys (commit by @pionl)

v0.0.36 - 2022-12-23

💥 BREAKING CHANGES

  • due to 022b496 - ContextServiceContractGetExpectation createState removed and add ability to assert passed $createState (commit by @pionl):

    ContextServiceContractGetExpectation createState removed and add ability to assert passed $createState

✨ New Features

  • 022b496 - Testing: ContextServiceContractGetExpectation createState removed and add ability to assert passed $createState (commit by @pionl)

v0.0.35 - 2022-12-23

✨ New Features

  • 7a942e0 - Testing: Context getExpectation createState property is optional due the fact its not needed (commit by @pionl)

v0.0.34 - 2022-12-22

💥 BREAKING CHANGES

  • due to 4f8557c - Add and use ContextServiceContract instead of a implementation class + improve phpstan support (commit by @pionl):

    AbstractContext uses ContextServiceContract instead of a class.

✨ New Features

  • a904884 - Core: Make ImplementsService a singleton (commit by @pionl)
  • 7dfab17 - Testing: Add ability to run call closures in TestingContainer (commit by @pionl)
  • 4f8557c - Context: Add and use ContextServiceContract instead of a implementation class + improve phpstan support (commit by @pionl)

v0.0.33 - 2022-12-19

💥 BREAKING CHANGES

  • due to 25b420d - Adjust convention for boot pipes - use Boot prefix (commit by @pionl):

    Low conflict - Renamed LoadProviderRoutes Pipe to BootProviderRoutesPipe,
    LoadProviderViewComponents Pipe to BootProviderViewComponents and
    RegisterProviderPoliciesPipe to BootProviderPoliciesPipe

✨ New Features

  • 550ac67 - Testing: Add asserts for View and View\Factory contracts (commit by @pionl)
  • 44d355e - Testing: Add assertCalled method for asserting if expectations were called (commit by @pionl)
  • d05eb61 - Provider: Add ability to boot view composers using HasViewComposers interface (commit by @pionl)

♻️ Refactors

  • 25b420d - Providers: Adjust convention for boot pipes - use Boot prefix (commit by @pionl)

v0.0.32 - 2022-12-15

🐛 Bug Fixes

  • e62f54a - Testing: Fix assert hook generation without method parameters (commit by @pionl)

v0.0.31 - 2022-12-14

🐛 Bug Fixes

  • 624eea0 - Testing: Fix generating hook parameters for no parameter method (commit by @pionl)

v0.0.30 - 2022-12-14

💥 BREAKING CHANGES

  • due to 84a913a - Pass method parameters to expectation hook. (commit by @pionl):

    hook closure now receives more properties (expectation is last).

✨ New Features

  • 84a913a - Testing: Pass method parameters to expectation hook. (commit by @pionl)

v0.0.29 - 2022-12-14

✨ New Features

  • d5b06d9 - Testing: Add ability to run hook on assert expectation (commit by @pionl)
  • 56e2e7e - Testing: Commit SimpleActionContract assert for tests (commit by @pionl)

v0.0.28 - 2022-12-13

✨ New Features

  • 5ea6f2c - Testing: Add assert / expectation for CacheMeService (commit by @pionl)

v0.0.27 - 2022-12-09

✨ New Features

  • 3b1984f - Testing: Add Bus dispatcher assert / expectation (commit by @pionl)

v0.0.26 - 2022-11-29

✨ New Features

  • 0ddebb8 - User: Add ability to auto login a user via Auto-Login header in local environment (commit by @pionl)

v0.0.25 - 2022-11-28

✨ New Features

  • e062fe4 - Database: Move getScopedQuery to AbstractQuery (commit by @pionl)

v0.0.24 - 2022-11-24

💥 BREAKING CHANGES

  • due to b5852d7 - Add ability to change queue for queued commands (commit by @pionl):

    minor impact, scheduleServiceContract contains new parameter string $queue = 'default'

✨ New Features

  • b5852d7 - Console: Add ability to change queue for queued commands (commit by @pionl)

v0.0.23 - 2022-11-22

✨ New Features

  • 8b2e816 - Testing: Add assert Illuminate\Contracts\Events\Dispatcher (commit by @pionl)

v0.0.22 - 2022-11-22

✨ New Features

  • e4068ca - Testing: Support passing files/cookies in CreateRequest concern (commit by @pionl)

v0.0.21 - 2022-11-22

✨ New Features

  • ff0ea2c - Testing: Add concern for testing Assert classes (commit by @pionl)
  • 5bcfe2b - Testing: Add assert for Illuminate\Contracts\Debug\ExceptionHandler (commit by @pionl)

v0.0.20 - 2022-11-22

✨ New Features

  • 443d42e - Testing: Support using $this->app in TestData concern (commit by @pionl)

v0.0.19 - 2022-11-21

✨ New Features

  • 66f9583 - Testing: Add TestData concern for simple test using dataProvider and type safe assert (commit by @pionl)
  • 47b1342 - Testing: Add AssertProviderSingletons for testing singletons (commit by @pionl)

v0.0.18 - 2022-11-16

✨ New Features

  • a9d1a29 - Testing: Ensure that CreateRequest return request with correct url and json accept header (commit by @pionl)

v0.0.17 - 2022-11-16

✨ New Features

  • 47fdcf2 - Http: Make $id public in CreatedResource (commit by @pionl)

v0.0.16 - 2022-11-15

✨ New Features

  • 1d95b3e - Testing: Add ability to generate test Assert for all contracts methods (commit by @pionl)
  • 1d95b3e - Testing: Add ability to test Illuminate\Contracts\Auth\Access\Gate using GateAssert.

🐛 Bug Fixes

  • 36197b4 - Testing: Fix artisan usage with larastrict commands (commit by @pionl)
  • 0cd12fe - Testing: Update dependencies and fix phpstan warnning on latest testbench version (commit by @pionl)

v0.0.15 - 2022-10-13

✨ New Features

  • 28b335a - Database: Delete/forceDelete will always return int (0 for no deletion was made) (commit by @pionl)
  • 066cdca - Testing: Add ability to create custom requests in tests (commit by @pionl)

💥 BREAKING CHANGES

  • due to 28b335a - Delete/forceDelete will always return int (0 for no deletion was made) (commit by @pionl):

    Delete/forceDelete will always return int (0 for no deletion was made)

v0.0.14 - 2022-10-11

✨ New Features

  • 9e178a0 - database: Set wasRecentlyCreated to true if setId is set for safe unique save action (commit by @pionl)

v0.0.13 - 2022-10-11

✨ New Features

  • 9f1eb6e - validation: Handle float with comma in NumberRule and improve overflow detection (commit by @pionl)

v0.0.12 - 2022-10-10

✨ New Features

  • 77e40a6 - database: Mimic save (timestamps, exists, generated id) for safe unique save action (commit by @pionl)

v0.0.11 - 2022-10-04

✨ New Features

  • a381428 - providers: Service provider refactoring to provider flexible pipe register/boot and separation (commit by @pionl)
  • 7d3cb75 - providers: Add ability to register views/translations/components for the provider (commit by @pionl)

💥 BREAKING CHANGES

  • due to a381428 - Service provider refactoring to provider flexible pipe register/boot and separation (commit by @pionl):

    Service provider refactoring to provider flexible pipe register/boot and separation

v0.0.10 - 2022-10-04

✨ New Features

  • 0a6deb6 - testing: Make service provider parameter in AssertProviderBinding/Routes null by default (commit by @pionl)
  • 50c7eb2 - translations: Allow changing default value for not found translation (commit by @pionl)

💥 BREAKING CHANGES

  • due to 0a6deb6 - Make service provider parameter in AssertProviderBinding/Routes null by default (commit by @pionl):

    $registerServiceProvider is now third parameter instead of second.

v0.0.9 - 2022-09-29

✨ New Features

  • 964a854 - testing: Allow larastrict maintainers use our artisan commands (commit by @pionl)
  • a776d5f - testing: Add ability to test RunInTransaction/SafeUniqueSave actions using assert/expectation classes (commit by @pionl)

💥 BREAKING CHANGES

  • due to 964a854 - Allow larastrict maintainers use our artisan commands (commit by @pionl):

    (low) LaraStrictTestServiceProvider renmaned to TestServiceProvider

v0.0.8 - 2022-09-28

✨ New Features

  • 9733d67 - testing: Add AssertProviderBindings for testing service provider bindings (commit by @pionl)

v0.0.7 - 2022-09-28

✨ New Features

  • 8f6ad8a - testing: Allow dynamically changing expectation call map (commit by @pionl)

🐛 Bug Fixes

  • bcf775d - testing: Fix container->make with a closure (commit by @pionl)

v0.0.6 - 2022-09-27

✨ New Features

  • d9a6287 - provider: Add ability to register Gate policies using contract (commit by @pionl)
  • 2765d84 - testing: Add TestingContainer and TestingApplicationRoutes (commit by @pionl)

🐛 Bug Fixes

  • 6f5a57e - provider: Call next in LoadProviderRoutesPipe (commit by @pionl)
  • 82fa307 - provider: Call next in SetFactoryResolvingProviderPipe (commit by @pionl)

✅ Tests

  • e30efbf - provider: Improve code coverage for LoadProviderRoutesPipe (commit by @pionl)

v0.0.5 - 2022-09-27

✨ New Features

  • 763b570 - testing: Improve ability to assert registered routes with only allowed routes (commit by @pionl)

v0.0.4 - 2022-09-27

✨ New Features

  • ab61bcb - provider: Add ability to provide custom route action with reusable file suffix (commit by @pionl)

v0.0.3 - 2022-09-27

🔧 Chores

  • 03618de - provider: CreateCustomRouteActionContract renamed to RegisterCustomRouteActionContract (commit by @pionl)

💥 BREAKING CHANGES

  • due to 03618de - CreateCustomRouteActionContract renamed to RegisterCustomRouteActionContract (commit by @pionl):

    CreateCustomRouteActionContract renamed to RegisterCustomRouteActionContract

v0.0.2 - 2022-09-27

✨ New Features

  • 428e83c - Add ablity to register custom route with action class for reusability (commit by @pionl)