Releases: jolicode/castor
Release v0.18.2
Release v0.18.1
What's Changed
Fixes
- Fix BC layer for
fingerprint()
function by @lyrixx in #514 - Fix repack command work without
.castor
folder by @arnolem in #513
Full Changelog: v0.18.0...v0.18.1
Release v0.18.0
What's Changed
Features
- Introduce CommandBuilderInterface to allow writing a command with a better DX by @joelwurtz in #486
- Add Context::toInteractive() by @lyrixx in #491
- Add context created event by @joelwurtz in #474
- Allow to execute a phar without conflicts by @joelwurtz in #478
- Add id for fingerprint to avoid wrong bad cache hit by @joelwurtz in #494
- Add sane defaults for composer init by @joelwurtz in #502
Fixes
- Fix completion when update is available (issues/475) by @arnolem in #476
- Force including .castor directory in repack by @joelwurtz in #485
Deprecations
- Deprecate parameters in run function that are in context by @joelwurtz in #483
- Deprecate suggestedValues property in favor of autocomplete by @pyrech in #508
Internal
- Update phpstan and remove useless ignore by @joelwurtz in #479
- Update spc by @joelwurtz in #484
- Update SPC version by @lyrixx in #492
- Update PHP Vendor by @lyrixx in #490 and #499
- Update vendor + some fixes by @lyrixx in #504
- Fix building amd64 binary for macos by @joelwurtz in #493
- Fix CS by @lyrixx in #501
- Update qa tools and run them by @joelwurtz in #497
- Prepare release v0.18.0 by @pyrech in #510
Documentation
- Add doc about using setup castor in github action by @joelwurtz in #480
- Document CASTOR_CONTEXT env var by @pyrech in #487
- Add --since 0 to wait_for_docker_container_task example by @YannCharlou-CleverAge in #498
- Fix --since to wait_for_docker_container_task example by @YannCharlou-CleverAge in #500
- Fix return type in example by @dantleech in #505
New Contributors
- @arnolem made their first contribution in #476
- @YannCharlou-CleverAge made their first contribution in #498
- @dantleech made their first contribution in #505
Full Changelog: v0.17.1...v0.18.0
Release v0.17.1
Release v0.17.0
What's Changed
Features
- Add SplFileInfo to the stubs by @lyrixx in #466
- Add
Castor\Event\AfterBootEvent
to perform action when the application is ready by @lyrixx in #468
Fixes
Full Changelog: v0.16.0...v0.17.0
Release v0.16.0
What's Changed
Features
-
SSH
-
Add
context()
function in expression language to enable a task by @lyrixx in #389 -
Notification
-
Display downloader progress when running list command in txt format by @pyrech in #435
-
Enable 'filter' extension by default when compiling by @lyrixx in #420
-
Add http_download function to simplify downloading files by @tigitz in #433
-
Generate stubs in same location where
castor.php
is located by default by @TheoD02 in #457 -
Totally reworked the import feature. Castor now use special castor.composer.json file to handle imports. This fixes many bugs and issues with the previous:
- Import and load task from remote import automatically by @lyrixx in #383
- Allow to use imported class in task from remote import by @lyrixx in #403
- Use composer as deps instead of looking for the phar by @joelwurtz in #406
- Use a composer file directly by @joelwurtz in #419
- Fix castor composer init by @lyrixx in #425
- Require autoload after composer install and before import by @joelwurtz in #426
- Use composer.lock hash to know if we should install packages or not by @lyrixx in #427
- Fixed import of remote packages when a file is specified by @lyrixx in #455
- Fix import of task when remote import used by @TheoD02 in #394
- Fix(composer): remove self update command from composer when added by @joelwurtz in #429
- Add
--no-interaction
flag to composer run method by @TheoD02 in #411
Fixes
- Fix multiple remote imports with default version by @pyrech in #386
- Fix phar by @lyrixx in #402
- Fix deprecation message about context->path by @pyrech in #401
- Fix imported package on repack by @joelwurtz in #438
- Fix root location when repacking application by @lyrixx in #450
Deprecations
- Deprecate Castor\GlobalHelper class. There are no replacements. Use raw functions instead
- Deprecate AfterApplicationInitializationEvent event. Use FunctionsResolvedEvent instead
- Deprecate request() in favor of http_request() for consistency with newly introduced http_* function
Internal
- Add symfony/dependency-injection to manage the DI by @lyrixx in #376
- Clean application boot by @lyrixx in #378
- Clean the DI layer by @lyrixx in #379
- Fix our test suite by @lyrixx in #384
- random fix by @lyrixx in #392
- Tests stuff by @pyrech in #393
- Make some tests less sensible to user environment by @joelwurtz in #399
- Refactor the whole application kernel by @lyrixx in #396
- Add a flag to reset vendor for some tests if needed by @joelwurtz in #407
- Use a different cache directory for tests by @pyrech in #408
- Fix macos static builds by @tucksaun in #413
- Upgrade
php-cs-fixer
to3.54.0
for following CI version by @TheoD02 in #423 - Use a fixed version for spc, allow to choose which version to use by @joelwurtz in #421
- Code grooming by @lyrixx in #424
- Do not boot the kernel when using composer command by @lyrixx in #428
- Update JoliNotif and vendors by @pyrech in #451
- Update all the things by @lyrixx in #454
- Update tools (
php-cs-fixer
andphpstan
) and fixes errors by @TheoD02 in #458 - Fix GA static build by @pyrech in #459
- Update spatie/ssh package by @pyrech in #387
Documentation
- Fix typo in context doc by @pyrech in #391
- Tweak real-world examples in documentation by @pyrech in #415
- Group installation instructions in tabs by @pyrech in #417
- Rework the changework by @lyrixx in #431
- Fix typo in documentation by @pyrech in #434
- Highlight io() function from the documentation beggining by @pyrech in #436
- Highlight fs() function from the documentation beggining by @pyrech in #437
- Add monsieurbiz/SyliusPluginMaker to the examples by @pyrech in #439
- Add jolitypo demo build tasks to the examples by @pyrech in #440
- Ensure reference documentation is up to date by @pyrech in #452
- Update real-world examples by @pyrech in #460
Full Changelog: v0.15.0...v0.16.0
v0.15.0
What's Changed
Features
- Add support for importing remote functions and tasks by @pyrech in #297
- Add a bash installer to ease installation by @tucksaun in #352
- Distribute static binaries
castor.darwin-arm64
automatically with the release by @tucksaun in #355 - Add support for running Castor on Linux arm64 and distribute the binary
castor.linux-arm64.phar
automatically with the release by @tucksaun in #353 - Add support for mounting another castor app by @lyrixx in #367
- Add an option
ignoreValidationErrors
onAsTask
attribute to ignore parameters & options validation errors by @lyrixx in #322 - Add support for dynamic autocomplete task arguments/options by @pyrech in #343
- Add support for merging an application
box.json
config file used bycastor:repack
command by @SebLours in #318 - Find root directory by looking for a
.castor/castor.php
file by @lyrixx in #361 - Allow stub file to be in
.castor/.castor.stub.php
by @lyrixx in #362
Fixes
- Fix issue on SymfonyTask creation by @lyrixx in #374
- Fix issue when finding root dir on windows by @lyrixx in #370
- Fix issue with PTY on windows, it's now always disabled by @lyrixx in #374
Deprecations
- Deprecate loading all PHP files from
[ROOT_DIR]/castor
- Deprecate
Context::withPath()
in favor ofContext::withWorkingDirectory()
by @lyrixx in #316 - Deprecate
path
argument incapture()
,exit_code()
,run()
,with()
in favor ofworkingDirectory
by @lyrixx in #316 - Deprecate
Castor\TaskDescriptorCollection
in favor ofCastor\Descriptor\TaskDescriptorCollection
- Deprecate
Castor\HasherHelper
in favor ofCastor\Castor\HasherHelper
- Deprecate
Castor\PathHelper
in favor ofCastor\Castor\PathHelper
Documentation
- Add note on installation inside WSL by @pyrech in #334
- Avoid suggesting echo in documentation and examples by @pyrech in #324
- Fix fingerprint documentation by @pyrech in #333
- Fix remote import documentation by @pyrech in #365 and #368
- Replace path argument occurrences in run() documentation by @pyrech in #325
- Reword install documentation and mention static binaries by @pyrech in #323
- Tweak the autocomplete documentation by @pyrech in #350
- Fix dotenv doc by @pyrech in #329
New Contributors
- @SebLours made their first contribution in #318
- @drupol made their first contribution in #320
- @tucksaun made their first contribution in #353
Full Changelog: v0.14.0...v0.15.0
v0.14.0
What's Changed
Features
- Add a
yaml_parse()
+yaml_dump()
functions by @joelwurtz in #299 - Add an
open()
function by @JorickPepin in #310 - Allow
fingerprint()
function to return execution status by @TheoD02 in #303 - Add possibility to recursive merge data in Context by @TheoD02 in #307
- Remove the default timeout of 60s by @damienalexandre in #300
Documentation
New Contributors
- @JorickPepin made their first contribution in #310
Full Changelog: v0.13.1...v0.14.0
v0.13.1
Release v0.13.0
What's Changed
- Add command to build standalone binary by @tigitz in #260
- Rework how the compile command works by @lyrixx in #281
- Build watcher for AMD64 + ARM64 on macOS by @ruudk in #284
- Add console events and new events for processes by @joelwurtz in #290
- Set the process title according to the current application name and task name by @lyrixx in #274
- Rework the way one can programatically add more context generator by @lyrixx in #286
- Fix section output to work on Windows by @pyrech in #275
- Ignore argc & argv env vars in log runnable commands by @pyrech in #271
- Fix
wait_for_http_status
helper throw exception on first response check by @TheoD02 in #272
Documentation changes
- Add a website documentation by @pyrech in #287 - https://castor.jolicode.com/
- Some more documentation stuff by @pyrech in #289
- Update PHP attribute syntax in the documentation by @pyrech in #277
- Sort functions by @lyrixx in #280
- Update watch.md by @ruudk in #285
- Reformulate index note by @Nispeon in #288
- Tweak documentation by @pyrech in #273
- Remove support for installing castor with docker by @lyrixx in #282
- Fix MD link in console-and-io.md by @welcoMattic in #279
- Fix installation link for latest version by @pyrech in #294
Tooling changes
- Do not use pty for more stability in tests by @lyrixx in #276
- Simplify github action cache for compile command by @lyrixx in #278
- Refactor GHA workflow by @lyrixx in #292
- Add support for static binary in GHA by @lyrixx in #291
New Contributors
Full Changelog: v0.12.1...v0.13.0