2.8 KiB
slug | sidebar_position |
---|---|
/experiments/ | 5 |
Experiments
:::caution
All experimental features are subject to breaking changes and/or removal at any time. We strongly recommend that you do not use these features in a production environment. They are intended for testing and feedback only.
:::
In order to allow Task to evolve quickly, we roll out breaking changes to minor versions behind experimental flags. This allows us to gather feedback on breaking changes before committing to a major release. This document describes the current set of experimental features and the deprecated feature that they are intended to replace.
You can enable an experimental feature by:
- Using the
--x-{feature}
flag. This is intended for one-off invocations of Task to test out experimental features. You can also disable a feature by specifying a falsy value such as--x-{feature}=false
. - Using the
TASK_X_{FEATURE}=1
environment variable. This is intended for permanently enabling experimental features in your environment.
Flags will always override environment variables.
Current Experimental Features and Deprecations
Each section below details an experiment or deprecation and explains what the flags/environment variables to enable the experiment are and how the feature's behavior will change. It will also explain what you need to do to migrate any existing Taskfiles to the new behavior.
Version 2 Schema (#1197)
The Taskfile v2 schema was introduced in March 2018 and replaced by version 3 in August the following year. Users have had a long time to update and so we feel that it is time to tidy up the codebase and focus on new functionality instead.
This notice does not mean that we are immediately removing support for version 2 schemas. However, support will not be extended to future major releases and we strongly recommend that anybody still using a version 2 schema upgrades to version 3 as soon as possible.
A list of changes between version 2 and version 3 are available in the Task v3 Release Notes.