# Changelog

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [4.7.1]- 11 June, 2025

### Fixed

- Fixed Future Actions missing in post editor (Issue #1372).

## [4.7.0] - 10 June, 2025

### Added

- Add new workflow trigger "On custom action" that allows workflows to be triggered by custom WordPress action hooks, enabling integration with other plugins and custom code - PRO feature (Issue #1222).
- Add new workflow step "Do action" that executes custom action hooks with arguments, enabling integration with other plugins and custom code - PRO feature (Issue #1222).
- Add diagnostic check for Spatie Ray debugging tool in the Diagnostics and Tools settings tab, clarifying debugging capabilities.
- Add a "Copy" button to workflows (Issue #1183).
- Add a "Cancel Scheduled Actions" button to workflows lists (Issue #1326).
- Add a new step for interactive delay that allows workflows to pause and wait for user interaction - PRO feature (Issue #1257).
- Add new workflow engine action hooks for enhanced extensibility:
  - `publishpressfuture_workflow_engine_initialize_workflow`: Fires when a workflow is being initialized
  - `publishpressfuture_workflow_engine_setup_trigger`: Fires when configuring a workflow trigger
  - `publishpressfuture_workflow_engine_setup_step`: Fires when setting up a workflow step
  - `publishpressfuture_workflow_engine_execute_scheduled_step`: Fires when executing a scheduled workflow step
  - `publishpressfuture_workflow_engine_execute_step`: Fires when executing a workflow step
  - `publishpressfuture_workflow_engine_workflows_initialized`: Fires when all workflows are initialized
  - `publishpressfuture_workflow_engine_start_engine`: Fires when the workflow engine starts
  - `publishpressfuture_workflow_engine_run_workflows`: Fires when workflows begin execution
- Add Trigger action `publishpressfuture_workflow_engine_execute_event_driven_step` when an event-driven step starts running - PRO feature.
- Add new  "Duplicate Post" workflow action - PRO feature (Issue #1170).
- Add a loco.xml file to support translation of the free version from within the Pro plugin using Loco Translate - PRO (Issue #1352).
- Add a way to sort / filter / search the in-site notifications - PRO feature (Issue #1367).

### Changed

- Stick and Unstick Post workflow steps can now be used anywhere in workflows, not just within Schedule branches (Issue #1204).
- Clarify the "Metadata" description by including table name for each metadata (Issue #1247).
- Stop automatic cancelation of scheduled actions when a workflow is disabled in support of manual button, (Issue #1326).
- Upgrade woocommerce/action-scheduler from 3.7.0 to 3.9.2, fixing PHP 8.4 compatibility.
- Consolidated JavaScript translations into the main .pot file and corresponding .po files, streamlining the translation workflow.

### Fixed

- Settings Controller processes form submissions on every admin page load (Issue #1310).
- Fixed validation issue in the workflow editor where selecting "Remove all terms" not removing required error (Issue #1244).
- Fixed issue where Pro-only workflow triggers were incorrectly executing subsequent workflow steps in the free version of the plugin.
- Fixed PHP compatibility by replacing arrow functions with anonymous functions for PHP 7.3 support.
- Fixed PHP Warning: Trying to access array offset on null when opening new post, (Issue #1311).
- Update pt-BR translations - PRO (Issue #1339).
- Enhanced workflow auto-layout algorithm to prevent connection line crossings by implementing source handle-based ordering instead of creation order, improving visual clarity and readability of complex workflows.

### Removed

- Remove site metadata from the execution context on workflows (Issue #1332).

### Developers

- Remove unused InitineLoopPreventer trait from some classes, replacing it with the service "future.free/workflow-execution-safeguard".
- Add `convertDynamicHandlesToStatic` method to WorkflowModel for improved handle management in workflow processing.
- Enhanced workflow editor components with new InteractiveCustomOptions component for better option management.
- Update workflow editor CSS to increase max-width for react-flow nodes from 170px to 210px for better layout flexibility.
- Implement options validation in NodeValidator component to ensure workflow step configuration integrity.
- Enhanced workflow runner infinite loop prevention by implementing ExecutionContextInterface and adding execution ID tracking for improved detection accuracy.
- Implemented a unified i18n system for JavaScript translations that consolidates all script-specific translations into the main .pot files, streamlining the translation workflow.

## [4.6.0] - 7 May, 2025

### Added

- Added notification center icon to the admin topbar for in-site notifications - PRO feature (Issue #1290).
- Added SendInSiteNotification step for in-site notifications - PRO (Issue #1290).
- Added Scrollbar to Workflow Editor left sidebar (Issue #1281).

### Changed

- Change Action Workflows Editor Modals "X" to "OK" and move the button to the bottom (Issue #1182).
- Move Metabox, Future Actions Column and Editor "Future Actions" fields from Display to New "Admin" tab (Issue #1215).
- Move Export and Import to first tabs in Settings (Issue #1213).
- Update Workflow Action "Update post" label and description (Issue #1283).
- Update Workflow Action "Post Name" to "Post Slug" (Issue #1282).
- Update Action Workflows post action and bulk edit messages (Issue #1219).
- Upgrade woocommerce/action-scheduler from 3.7.0 to 3.9.2, fixing PHP 8.4 compatibility.

### Fixed

- Fixed editor error when editing a reuseable block (Issue #1324).
- Update ES, FR, and IT translations (Issue #1270).
- Fixed REST API request detection to workflow engine execution environment identification (Issue #1290).
- Fixed duplicate FILTER_REGISTER_REST_ROUTES constant (Issue #1290).
- Fixed workflow editor filter area autocomplete dropdown overlapping content (Issue #1303).
- Fixed PHP Warning: Trying to access array offset on null when opening new post, (Issue #1311).
- Fixed DB tables that were not created after fresh install unless we visit the admin (Issue #1319).
- Fixed support for caching during post insertion and status transition (Issue #1311).

### Removed

- Remove the option to compact scheduled actions data (Issue #1233).

### Developers

- Remove unused InitineLoopPreventer trait from some classes, replacing it with the service "future.free/workflow-execution-safeguard".
- Refactored workflow hooks replacing ACTION_ASYNC_EXECUTE_STEP with ACTION_SCHEDULED_STEP_EXECUTE for better semantic clarity.
- Added getId method to UserModel for retrieving user ID;
- Refactor WorkflowScheduledStepModel to simplify argument handling by removing compression logic and directly decoding uncompressed arguments.
- Replace methods ``getCachedPermalink` and `getCachedPosts` with a unified method: `getCacheForPostId` on the class `PostCache` and interface `PostCacheInterface`. Retrieves cached post and permalink data, including both postBefore and postAfter states.
- All triggers now emit the hook `publishpressfuture_workflow_trigger_executed` after execution.

## [4.5.0] - 7 Apr, 2025

### Added

- Added the `global.engine_execution_id` variable to the workflows.
- Added the "After all repetitions" output branch to the "Schedule delay" step and "On schedule" trigger when repetition is enabled - PRO (Issue #1245).
- Added the variables "repeat_count" and "repeat_limit" to the "Schedule delay" step - PRO.
- Added more detailed debug messages when sending emails, helping to troubleshoot email sending errors (Issue #1232).

### Changed

- Restored Post ID variables for post related triggers.
- Removed the `global.run_id` global variables and moved it to the workflow global variable as `global.workflow.execution_id`.
- Renamed workflow variable helpers, to workflow value processors.
- Changed default action unique ID by including the current timestamp, making it more unique by default.
- Changed the label "Next" to "At time" in the output of the "Schedule delay" step in the workflow editor.
- Removed not useful fields from the Quick Edit panel for Workflows: date, password, and others (Issue #1178).
- Allow editing custom post field selection expression for adding variable processor (e.g. date) and formatting the used value. Singlevariables expression builder is editable instead of readonly (Issue #1238).
- Implemented default sorting of scheduled actions by most recent first, providing better visibility of upcoming tasks (Issue #1242).
- Changed the default setup interval to 60 seconds in the trigger "On schedule" that used to look for the scheduled action for the workflow (Issue #1245).

### Removed

- Removed the "Allow duplicate scheduling" option in the Schedule delay step in the workflow editor. To prevent a duplicated action, specify a custom Unique Action Identified after enabling Advanced settings in the workflow editor.

### Fixed

- Fixed false positive results for invalid JSON logic on post query input validation (Issue #1228).
- Fixed scheduled delay tasks registration to not require a custom unique task identifier (Issue #1165).
- Fixed detection of completed scheduled actions for single tasks, now properly allowing the same action to be scheduled multiple times (Issue #1165).
- Fixed the action that unschedules completed recurring actions - PRO (Issue #1165).
- Fixed issue with "On Schedule" trigger that was incorrectly scheduling recurring actions every few seconds instead of respecting the configured interval when repetition was enabled (Issue #1245).
- Fixed incorrect execution count display in the Scheduled Actions page for repeating workflows that have a limit on number of executions (Issue #1249).
- Improved text on the overdue action message in the posts list, removing red icon (#Issue 1193).
- Fixed false positive error on step validation for steps connected to the Query Posts step, saying the variable "....posts" do not exists (Issue #1255).
- Updated translations for ES, FR and IT languages (Issues #1256, #1225).
- Fixed default workflows (samples), updating the trigger conditions for the new conditional query builder (Issue #1243).
- Fixed uncaught exceptions adding error handling to some hook callbacks.
- Fixed fatal error generated on posts lists when an invalid default future action date offset is configured for the post type (Issue #1224).
- Fixed wrong repetition inverval for the "On schedule" trigger (Issue #1259).
- Fixed wrong error message on database schema check when an index is missed (Issue #1236).
- Fixed the display of scheduled actions for posts when workflows are manually enabled using the checkbox (Issue #1230).
- Fixed error message "Schedule step is required for this workflow" on any repeating scheduled step in the Scheduled Actions list (Issue #1229).
- Fixed step validation error message about the field "Post" containing an invalid variable (Issue #1210).
- Fixed wrong redirection after selecting custom number of debug logs to display (Issue #1264).
- Fixed wrong repetition interval for "On Schedule" trigger (Issue #1259).
- Fixed pt-BR translation (Issue #1223).

### Developers

- Added new method `isLogic` to `JsonLogicEngineInterface`.
- Removed arguments from `compact` and `getVariable` methods on `PostMetaResolver` class.
- Added new method `getWorkflowEngine` to the interface `StepProcessorInterface`.
- Added new method `getWorkflowExecutionId` to the interface `StepProcessorInterface`.
- Removed the service `WORKFLOW_VARIABLES_HANDLER`, replacing it with the `WORKFLOW_VARIABLES_HANDLER_FACTORY`.
- Removed the method `getVariablesHandler` from the `WorkflowEngine` class.
- Renamed "Runtime Variables Handler" to "Workflow Execution Context".
- Added new columns to the table `_ppfuture_workflow_scheduled_steps`: `post_id` and `repetition_number`.

## [4.4.0] - 13 Mar, 2025

### Added

- Added new action: Update Post - PRO (Issue #1143).
- Added new trigger: Manual run via posts row action - PRO (Issue #1168).
- Added new trigger: Post Author Changed - PRO (Issue #1144).
- Added support for "date" helper on runtime variables in the workflow editor (Issue #1160).
- Added step slug/name to the top of each step node in the workflow editor.
- Added form to customize workflow and settings import from JSON files (Issue #1152).
- Added new field in post query step settings to query posts by author.
- Added new field in post query step settings to query posts by terms.
- Added time selection to the Schedule step (Issue #1124).
- Added new filter `publishpressfuture_workflow_route_variable` to customize variable names in workflow runtime (Issue #1126).
- Added posts query builder to post-related triggers (Issue #1131).
- Added "update" variable to the Post is Saved step (Issue #1147).
- Added validation to prevent empty placeholders in expression builder.
- Added validation to prevent unclosed placeholders in expression builder.
- Added loading message during workflow load.

### Changed

- Moved Export / Import tabs to Settings page and removed respective admin menu (Issue #1127).
- Changed description field in workflow steps to use a popover within the inspector card, saving sidebar space.
- Removed left padding from workflow step details panel.
- Removed attributes table from inspector card in developer mode (data still visible in Developer Info panel)
- Improved debug panel in workflow editor by separating node data and settings into distinct items.
- Renamed `global.trace` variable label to "Workflow Step Trace" (Issue #1126).
- Renamed `global.execution_id` to `global.run_id` and its label to "Workflow Run ID" (Issue #1126).
- Removed the "Task Execution Order" field from Schedule Delay step settings (Issue #1180).
- Renamed "Auto-enable" setting to "Automatically create actions" for clarity (Issue #1157).
- Updated text in Permissions settings for better clarity (Issue #1136).
- Renamed "postId" property to "post_id" in node data type variables for consistency (with backward compatibility).
- Replaced Post Query fields with a query builder for post-related triggers and actions (Issue #1131).
- Changed post type selection in Settings page from tabs to a select box (Issue #1188).
- Added selected post type name as title in Post Types settings (Issue #1191).
- Added the step's name to the list of variables, distinguishing among similar variables (Issue #1205).
- Sorted the list of variables moving less important variables to the bottom of the list (Issue #1207).
- Changed the description of the "Is Update" variable in the "Post is saved" trigger (Issue #1206).
- Updated the text of the promobox highlighting workflow editor features (Issue #1164).

### Fixed

- Fix compatibility with WebToffee Import/Export for WooCommerce products - PRO (Issue #1181).
- Fixed fatal error when selecting multiple steps or connections in workflow editor (Issue #1162).
- Fixed default data in "Send Ray" step to send all input values instead of blank message.
- Fixed "Restore" and "Delete Permanently" actions for trashed workflows (Issue #1175).
- Fixed node validation rules for variables (Issue #1177).
- Fixed scroll behavior in variables list within query builder.
- Fixed column height in variables list within query builder.
- Fixed the top header in the right sidebar, hiding it (Issue #1195).
- Fixed the expressions validation in the workflow editor for "Send to Ray" step, accepting the `{{input}}` expression (Issue #1197).
- Fixed the order post related trigger activation to correctly retrieve posts before and after state, and making sure post meta is saved.
- Fixed the workflow step execution avoiding duplicate processing of post related triggers, adding a threshold time of 2 seconds.
- Fixed messages displayed after manually running scheduled actions (Issue #1202).
- Fixed post author change detection on Workflow trigger - PRO.
- Fixed post schedule change, also considering now when the post date changed for a post already scheduled - PRO.
- Fixed post status change detection on Workflow trigger - PRO.
- Fixed "Post is published" trigger to also activate for new posts, not only updates - PRO (Issue #1194).

### Developers

- Added new method `resolveExpressionsInArray` to `RuntimeVariablesHandler` class.
- Added new method `resolveExpressionsInText` to `RuntimeVariablesHandler` class.
- Added new method `extractExpressionsFromText` to `RuntimeVariablesHandler` class.
- Deprecated methods `replacePlaceholdersInText` and `extractPlaceholdersFromText` in favor of new methods `resolveExpressionsInText` and `extractExpressionsFromText` in `RuntimeVariablesHandlerInterface` and `RuntimeVariablesHandler` class.
- Added new data field to workflow editor for querying users by role and ID.
- Added new model for user roles.
- Refactored data types schema: renamed "type" to "primitiveType" and added "itemsType" to array.
- Added new data types: post_status, post_type, url, user_roles, meta.
- Refactored workflow editor utility functions for clearer naming.
- Added step-scoped variables definition for configuring step runner behaviors in editor.
- Added new filter `publishpressfuture_future_actions_tabs` for filtering future actions admin page tabs.
- Deprecated the `InfinityLoopPreventer` trait.
- Added `WorkflowExecutionSafeguard` service to centralize infinite loop and duplicate execution prevention.
- Introduced priority property to variables, allowing to sort the variables list according to importance.

## [4.3.3] - 03 Feb, 2025

### Fixed

- Fix the overdue actions check in the Scheduled Actions list screen (Issue #1155).
- Fix the `ConditionalRunner` class on the new structure.
- Fix the "Send Email" step to handle the recipients correctly (Issue #1153).
- Update translations (Issue #1156).

### Changed

- Removed the classes from namespace `PublishPress\FuturePro\Modules\Workflows\Domain\Engine\NodeRunners\` and moved to a new structure under `PublishPress\FuturePro\Modules\Workflows\Domain\Steps\Actions\Runners\`.

## [4.3.2] - 30 Jan, 2025

### Fixed

- Fix typo in the `WorkflowEngine` class.
- Fix reference to deprecated classes and interfaces.
- Fix translation of shortcode settings in the Display settings page.

## [4.3.1] - 30 Jan, 2025

### Added

- Add new option to the Schedule workflow step to select the behavior when a duplicate scheduled action is found (Issue #956).
- Add daily check and notification for past-due actions, with settings to enable/disable and customize the email addresses (Issue #229).
- Add check for overdue actions in the Scheduled Actions list screen (Issue #232).
- Add new validation rule to check if the expression is valid in the workflow editor (Issue #742).
- Add new validation rule to check if the value of a field has invalid variable references (Issue #969).

### Changed

- Change the workflow step custom label to be a step description and still display the original step label (Issue #1114).
- Changed text and description of fields in the Settings page (Issues #1097, #1103, #1104, #1105).
- Changed the field description in the Post Query step (Issue #1100).
- Changed the label of the "Schedule" workflow step to "Schedule delay" (Issue #1122).
- Changed the label of the "On Cron Schedule" trigger to "On schedule" (Issue #1122).
- Changed the label of the "Conditional split" workflow step to "Conditional" (Issue #1117).
- Changed the color of the "False" branch in the "Conditional" workflow step to a slightly darker color.
- Changed the "Not" field in the "Conditional" workflow step to only be displayed when there are rules (Issue #1118).
- Changed the description of the "Conditional" workflow step conditions modal (Issue #1118).
- Changed the validation rule message of the "Stick" and "Unstick" workflow steps (Issue #1101).
- Changed the message in the Scheduled Actions list screen when a scheduled action is missing its original Schedule step (Issue #971).
- Removed the "Single variable mode" from the text in the expression builder (Issue #1118).
- Automatically select post-related settings and defaults in workflow steps that interact with posts (Issue #969).
- Removed the screenshot feature from the workflow editor (Issue #1135).
- Changed the label and description of some workflow steps for making it more intuitive (Issue #1101).
- Changed the default duplicate handling on workflow stepsto "Replace existing task" (Issue #956).
- Step "Ray - Debug" renamed to "Send to Ray" (Issue #1143).
- Step "Debug Log" renamed to "Append to debug log" (Issue #1143).
- Step "Conditional" renamed to "Conditional Delay".
- Changed the default step's slug to reflect the new step name and classes.
- Changed the Schedule Delay step settings to be more intuitive.
- Changed some text in the workflow editor to be more user friendly.

### Fixed

- Fix SQL syntax error in MariaDB lower than 11.6 when deleting orphan scheduled steps (Issue #1087).
- Update translations (Issue #1113).
- Fix extra line (empty value character) on some post in the future action column (Issue #1106).
- Fix error when the step being executed is not found (Issue #1123).
- Fix the space on right margin of the workflow editor nodes.
- Fix queries in the `ScheduledActionsModel` to use the group ID.
- Fix infinite loop detection in post related triggers when fired by a bulk edit action (Issue #943).
- Fix space on the outputs of the workflow steps in the Scheduled Actions list screen.
- Fix performance issue when validating the workflow editor nodes (Issue #1137).
- Fix the constructor of some workflow triggers (Issue 1141).
- Fix the error related to wrong arguments passed to sprintf on nl_NL language (Issue #1138).
- Fix the JS error when the expression builder is opened with an expression containing only numbers (Issue #1142).
- Fix specific text stripping tags from translated string.
- Fix pt-BR translations (Issue #1088).

### Developers

- Refactor the method `deleteExpiredScheduledSteps` in the class `ScheduledActionsModel` renaming it to `deleteExpiredDoneActions`.
- Add new method `getExpiredPendingActions` to the class `ScheduledActionsModel`.
- Deprecated the method `isInfinityLoopDetected` in the trait `InfiniteLoopPreventer` and use the method `isInfiniteLoopDetected` instead.
- Add new argument `$uniqueId` to the method `isInfiniteLoopDetected` in the trait `InfiniteLoopPreventer` (Issue #943).
- Remove the methods `convertLegacyScreenshots`, `setScreenshotFromBase64`, `setScreenshotFromFile` and `getScreenshotUrl` from the class `WorkflowModel` (Issue #1135).
- Remove the methods `convertLegacyScreenshots`, `setScreenshotFromBase64`, `setScreenshotFromFile` and `getScreenshotUrl` from the interface `WorkflowModelInterface` (Issue #1135).
- Remove the methods `getWorkflowScreenshotStatus`, and `setWorkflowScreenshotStatus` from the class `SettingsFacade` (Issue #1135).
- Refactored step types and step runners moving files to new folder structure (Issue #1143).
- Refactored most of the code renaming "Node" to "Step", "NodeRunner" to "StepRunner", and so on (Issue #1148).


## [4.3.0] - 08 Jan, 2025

### Added

- Add new variables selector and an expression builder (Issue #976).
- Add support to metadata in the variables resolvers and post type variables (Issue #1069, #939).
- Add the site ID to the site data type schema.
- Add the post author property to the post data type schema in the workflow editor (Issue #947).
- Add the post slug property to the post data type schema in the workflow editor.
- Add new trigger: Post is Published - PRO (Issue #944).
- Add new trigger: Post Status Changes - PRO (Issue #945).
- Add new trigger: Post is Scheduled - PRO (Issue #946).
- Add new trigger: Post Meta Changed - PRO (Issue #1059).
- Add new action: Post Meta Add - PRO (Issue #732).
- Add new action: Post Meta Delete - PRO (Issue #732).
- Add new action: Post Meta Update - PRO (Issue #732).
- Add the option to change manually enabled workflows in the bulk edit screen (Issue #942).
- Add the "Save as current status" shortcut to the workflow editor (CTRL/CMD + S) (Issue #1084).
- Add new display settings to customize the shortcode output (Issue #203).
- Add new step setting field to customize the step label in the workflow editor (Issue #1090).
- Add Future Action data support in the workflow editor, allowing to reference future actions in expressions (Issue #948).

### Changed

- Replace text fields and input/variables selectors on step settings with the new expression builder (Issue #976).
- Changed the border of selected steps to dashed line.
- Moved the panel "Step Data Flow" to the developer mode.
- Removed the arrow indicator from the workflow title and added a new Status column to the workflows list screen (Issue #970).
- Post's variable resolver now also accept a property without `post_` prefix.
- User's variable resolver now also accept a property without `user_` prefix.
- Changed the options in the "Debug Data" field to be more intuitive allowing a custom data expression to be selected.
- The conditional step now uses the new expression builder.
- Improved the UI in the conditional step settings.
- Added field descriptions to the post query step settings panel (Issue #1081).
- Only display the bulk edit option "Update Future Action from Post Metadata" if feature is enabled (Issue #622).
- Updated language files.
- Remove focus from the toolbar Delete button when workflow step is selected (Issue #1083).
- Improved the text in the variables selector modal.

### Fixed

- Fix error when the date or time format is empty in the settings page (Issue #212).
- Fix empty title and label in the future action panel when custom title and label are not set (Issue #1075).
- Fix the width of the checkbox in the future action panel (#1076).
- Fix the permalink in the Post Updated trigger for the post before variable.
- Fix the variable names in the "Add extra terms to post" step (Issue #1079).
- Fix the validation message for the recipient field in the Send Email step (Issue #1078).
- Fix the date format in the shortcode.
- Fix loading a workflow that doesn't have a specific step type (Issue #883).
- Fix the first save of a workflow to transit from auto-saved to draft (Issue #1086).
- Fix warning about deprecated jQuery click() method in the workflow editor.
- Fix the auto-layout algorithm to avoid overlapping edges and correctly dimension each node and spacing between nodes (Issue #1102).
- Fix the warning about deprecated method `next` in the class `ActionScheduler_Schedule` (Issue #1107).

## [4.2.0] - 09 Dec, 2024

### Added

- Add new admin page to export and import workflows and plugin settings (Issue #704).
- Add global variable `global.execution_id` to the workflow engine to identify the current execution of the workflow.
- Add setting fields to customize the metabox title and checkbox label (Issue #227).
- Add method `disableExpiration` to the class `PublishPress\Future\Modules\Expirator\Models\ExpirablePostModel`.
- Add `*` to indicate required fields in the workflow editor (Issue #974).
- Add new setting to disable/enable the screenshot feature in the workflow editor (Issue #1066).
- Add new Custom Data option to "Ray - Debug step" to debug custom expressions on workflows (Issue #1067).
- Add support to metadata when evaluating expressions in a workflow. Post, site, user and workflow (post) metadata are now available when evaluating expressions (Issue #1069).
- Add support to custom email addresses using the post metadata when sending emails in a workflow (Issue #939).

### Changed

- Move notification settings to a specific tab (Issue #190).
- Disable the workflow screenshot feature by default (Issue #1066).
- Changed the Message field in the "Log - Add" step displaying a textarea instead of a text field (Issue #1068).
- Changed the Custom Email Addresses field in the Send Email step to be a textarea (Issue #939).
- Changed the Subject field in the Send Email step to be a textarea (Issue #939).
- Set the default value of Email Recipient on Send Email step to Site Admin (Issue #1071).

### Fixed

- Do not remove expiration post meta when clearing the scheduled action (Issue #1053).
- Fix DB error when deleting orphan scheduled steps (Issue #1060).
- Potential fix for DOM text reinterpretation as HTML issue.
- Fix error when a trigger node type is not found.
- Fix warning PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string on the Scheduled Actions table.
- Fix error on table ScheduledActionsTable refactoring calls to `next` instead of `get_date`.
- Fix displaced labels for checkboxes in the Future Actions metabox and manual workflow activation checkbox (Issue #1057).
- Fix translations for user roles in the plugin settings page (Issue #1050).
- Fix error on Post Status filter in the Post Updated trigger (Issue #1074).
- Fix support to metadata scheduling for WooCommerce products (Issue #1070).

## [4.1.3] - 22 Nov, 2024

### Added

- Add check for the constant `PUBLISHPRESS_FUTURE_FORCE_DEBUG` to force debug mode.

### Fixed

- Fix error on fresh install about missing table (Issue #1051).
- Fix error when using custom metadata mapping with uppercase letters (Issues #1053, #1055).

## [4.1.2] - 21 Nov, 2024

### Fixed

- Fix translations (Issues #1003, #1006, #1007, #1026).
- Updated pt-BR translations (Issue #10018).
- Updated es, it, fr translations (Issue #1047).
- Fix zombie auto-drafts appearing in the future when auto-enable is activated (Issue #1024).
- Fix call to undefined function `error_log` (Issue #1036).
- Fix the page title in the workflow editor (Issue #1027).
- Fix the page title on admin pages of 3rd party plugins (Issue #1037).
- Updated the pt-BR translations.
- Fix the size of Pro badge on step inserter in the workflow editor.

## [4.1.1] - 12 Nov, 2024

### Fixed

- Fix the layout of inserter in the workflow editor for WP 6.7 (Issue #1025).
- Fix the layout of the top toolbar in the workflow editor for WP 6.7 (Issue #1028).

### Changed

- Minimum required version of WordPress is now 6.7.
- Minimum required version of PHP is now 7.4.

## [4.1.0] - 11 Nov, 2024

### Added

- Add more detailed debug logs to the workflow engine (Issue #724).
- Add button to copy the debug logs to the clipboard (Issue #724).
- Add "Published" status to the legacy expiration statuses (Issue #1023).
- Add new workflow step to write a log message (Issue #690).

### Fixed

- Fixed the timezone in the default date applied from default action time (Issue #1005).
- Fixed the timezone in the date preview (Issue #1004).

### Changed

- Improved the debug log viewer adding text to a textarea (Issue #724).
- Improve the debug log viewer adding a button to download the entire log or copy it to the clipboard (Issue #724).
- The debug log viewer now automatically scrolls to the bottom when the page loads (Issue #724).
- Deprecate the class `PublishPress\Future\Modules\Debug\Debug` and use the logger facade instead.
- Better handling of the exceptions and errors thrown by the plugin.
- Removed the admin submenu item "Scheduled Actions" and added a button in the workflows list screen (Issue #1022).
- Removed the "post-expirator-debug.php" file which is no longer used.

### Developers

- Add new class `PublishPress\Future\Framework\System\DateTimeHandler` to handle date and time operations.
- Change the REST API `/settings/validate-expire-offset` endpoint return value renaming `preview` to `calculatedTime`.
- Change the REST API `/settings/validate-expire-offset` endpoint to log an error message when the offset is invalid.
- Add `DateTimeHandlerInterface` as dependency to the class `PublishPress\Future\Modules\Expirator\Models\PostTypeDefaultDataModel`.
- Add `LoggerInterface` as dependency to the class `PublishPress\Future\Modules\Expirator\Module`.
- Add `DateTimeHandlerInterface` as dependency to the class `PublishPress\Future\Modules\Expirator\Module`.
- Deprecated the constant `PublishPress\Future\Core::ACTION_ADMIN_ENQUEUE_SCRIPT` in favor of `PublishPress\Future\Core::ACTION_ADMIN_ENQUEUE_SCRIPTS`.
- Remove the action `publishpressfuture_workflow_engine_running_step` from the workflow engine.
- Add new methods to the class `PublishPress\Future\Framework\Logger\Logger` to retrieve the log count, the log size, and to fetch the latest logs.
- Node runner processors now accept a branch argument to get the next steps and run the next steps.

## [4.0.4] - 24 Oct, 2024

### Fixed

- Fix the workflows list screen to be shown only to users with `manage_options` capability (Issue #998).
- Fix compatibility with the "WP Remote User Sync" plugin (Issue #999).
- Update the language files (Issue #1000).

## [4.0.3] - 22 Oct, 2024

### Changed

- Add the banner notice to the workflows list screen.

### Fixed

- Fix PHP warning when post attribute is empty in the workflow model (Issue #987, #988).
- Fix error when`manage_posts_columns` filter do not receive a post type (Issue #990).
- Fix error about undefined index: date (Issue #991).

## [4.0.2] - 21 Oct, 2024

### Fixed

- Fix error when the filter `the_title` is called without an ID (Issue #984).

## [4.0.1] - 21 Oct, 2024

### Fixed

- Fix the database schema check for version 4.0.0 on fresh installations, (Issue #928).

## [4.0.0] - 21 Oct, 2024

### Added

- New workflow trigger "On Cron Schedule" for running workflows on a specific date and interval (Issue #914).
- New inline workflow actions to activate and deactivate workflows, in the workflow list table (Issues #921, #920).
- New setting field in the Schedule step to allow setting a custom Unique UID Expression (Issue #921).
- New plugin's advanced setting to allow compressing the scheduled workflow data in the database (Commit f3ee2e6).
- New automatically scheduled action to clean up the scheduled actions arguments table (Commit f3ee2e6).
- New custom table `ppfuture_workflow_scheduled_steps` to store the arguments of the scheduled steps (Commit f3ee2e6).
- New Conditional Split step to allow splitting the workflow execution based on a condition.

### Changed

- The list of scheduled actions now displays the repetition count/date limits (Issue #928).
- Update language files.
- Updated the UI in the advanced settings page.
- Move some advanced settings to the "Display" tab (Issue #952)
- Add title to the future action panel for UI consistency (Issue #965)
- Renamed the PublishPress Future metabox to Future Actions for UI consistency (Issue #965)
- Arguments of scheduled workflow steps are now stored in a custom table `ppfuture_workflow_scheduled_steps` (Pro Commit f3ee2e6).
- The advanced settings to enable experimental features was changed from checkbox to radio buttons (Pro Commit f3ee2e6).
- Changed the title of scheduled actions, replacing "action" with "step" (Pro Commit 40e2706).
- New information added to the Recurrence column in the Scheduled Actions list table related to the limit of recurrences (Issue #928).
- If a workflow is updated after tasks are scheduled, the changes in the routine tree are applied to the scheduled tasks (Issue #927).
- When a workflow is published, there is a delay of a few seconds until cron actions are scheduled.

### Fixed

- Update post model to update post date when setting post status to publish.
- Prevent error when the current_post->ID is empty for unknown reasons, usually related to 3rd party plugins.
- Fix an issue where the default schedule for "As soon as possible" was not set correctly (PRO PR #51).
- Fix infinity loop in the workflow engine when using a post based trigger firing actions that update the post (Issue #922).
- Fix an issue in the posts list detecting scheduled steps arguments when the length of the arguments is lower than 191 characters, for manually enabled workflow for posts (Pro Commit f3ee2e6).
- When a workflow is unpublished, all the currently scheduled steps are canceled (Pro Commit f3ee2e6).
- Fix issue related to not be able to schedule actions from different workflows (Issue #921).
- Fix scheduled actions for exeecuting them when set to run "As soon as possible" (Issue #913).

### Developers

- ADDED: New node runner processor for cron based steps runners, `CronStep` (Pro Commit 7ea77bd).
- ADDED: New interfaces:
  - `...Modules\Workflows\Interfaces\AsyncNodeRunnerInterface` (Pro Commit 7ea77bd)
  - `...Modules\Workflows\Interfaces\AsyncNodeRunnerProcessorInterface` (Pro Commit 7ea77bd)
- ADDED: Tests for the `CoreSchedule` action runner (Pro Commit 7ea77bd).
- ADDED: New filter: `publishpressfuturepro_ignore_save_post_event` (Pro Commit 50eacab).
- ADDED: New filter `publishpressfuture_migrations` (Pro Commit 210953a).
- ADDED: New action `publishpressfuture_fix_db_schema` (Pro Commit 210953a).
- ADDED: New filter `publishpressfuture_schema_is_healthy` (Pro Commit 210953a).
- ADDED: New action `publishpressfuture_upgrade_plugin` (Pro Commit 210953a).
- ADDED: New controller `PublishPress\FuturePro\Modules\Workflows\Controllers\Migrations` (Pro Commit f3ee2e6).
- ADDED: New action `publishpressfuturepro_migrate_steps_scheduler_args_schema` (Pro Commit f3ee2e6).
- ADDED: New action `publishpressfuturepro_cleanup_orphan_workflow_args` (Pro Commit f3ee2e6).
- ADDED: New filter `publishpressfuturepro_orphan_workflow_args_cleanup_interval` (Pro Commit f3ee2e6).
- ADDED: New interface `PublishPress\FuturePro\Modules\Workflows\Interfaces\ScheduledActionModelInterface` (Pro Commit f3ee2e6).
- ADDED: New class `PublishPress\FuturePro\Modules\Workflows\Models\ScheduledActionModel` (Pro Commit f3ee2e6).
- ADDED: Tests for the new db table schema `WorkflowScheduledStepsSchema` (Pro Commit f3ee2e6).
- ADDED: New filter `publishpressfuturepro_cron_schedule_runner_transient_timeout` to allow filtering the transient timeout for the cron schedule runner.
- CHANGED: React component data field DateOffset now receives field settings as a prop and supports `settings.hideDateSources` (Pro Commit 7ea77bd).
- CHANGED: Renamed classes on namespace `PublishPress\FuturePro\Modules\Workflows\Domain\Engine\NodeRunnerProcessors`:
  - `GeneralAction` to `GeneralStep` (Pro Commit 7ea77bd)
  - `PostAction` to `PostStep` (Pro Commit 7ea77bd)
- CHANGED: Updated `PublishPress\Future\Core\HookableInterface` with new methods: `removeFilter` and `removeAction` (Pro Commit 50eacab).
- CHANGED: Updated `PublishPress\Future\Framework\WordPress\Facade\HooksFacade` with new methods (Pro Commit 50eacab).
- CHANGED: Updated `PublishPress\Future\Framework\WordPress\Models\PostModel` with new `publish` method (Pro Commit 50eacab).
- CHANGED: The controller `PublishPress\FuturePro\Modules\Workflows\Controllers\ScheduledActions` now receives a cron interface in the constructor (Pro Commit f3ee2e6).
- CHANGED: Fixed data type of return value for `scheduleRecurringAction` and `scheduleAsyncAction` methods in `CronInterface` (Pro Commit 53c5e17).
- CHANGED: The variable resolver `PostResolver` now returns the post ID if no property is passed to `getValue` method (Pro Commit f3ee2e6).
- CHANGED: The variable resolver `SiteResolver` now returns the site name if no property is passed to `getValue` method (Pro Commit f3ee2e6).
- CHANGED: The variable resolver `UserResolver` now returns the user ID if no property is passed to `getValue` method (Pro Commit f3ee2e6).
- CHANGED: The interface `PublishPress\FuturePro\Modules\Workflows\Interfaces\ScheduledActionsModelInterface` was refactored to handle multiple schedules. To handle one schedule, use new interface `PublishPress\FuturePro\Modules\Workflows\Interfaces\ScheduledActionModelInterface` (Pro Commit f3ee2e6).
- CHANGED: The class `PublishPress\FuturePro\Modules\Workflows\Models\ScheduledActionsModel` was refactored to handle multiple schedules. To handle one schedule, use new class `PublishPress\FuturePro\Modules\Workflows\Models\ScheduledActionModel` (Pro Commit f3ee2e6).
- Interface `PublishPress\Future\Core\HookableInterface`: Add new method `removeFilter` to remove a hooked filter.
- Interface `PublishPress\Future\Core\HookableInterface`: Add new method `removeAction` to remove a hooked action.
- Class `PublishPress\Future\Framework\WordPress\Facade\HooksFacade`: Add new method `removeFilter` to remove a hooked filter.
- Class `PublishPress\Future\Framework\WordPress\Facade\HooksFacade`: Add new method `removeAction` to remove a hooked action.
- New method to publish posts using the class PublishPress\Future\Framework\WordPress\Models\PostModel.
- Add new filter 'publishpressfuture_migrations' to filter the list of migrations that will be executed.
- Call the action 'publishpressfuture_fix_db_schema' when a DB fix is executed from the settings page.
- Call the action 'publishpressfuture_upgrade_plugin' when the plugin is upgraded.
- Change the data type from void to int for the method 'PublishPress\Future\Modules\Expirator\Interfaces\CronInterfac::scheduleRecurringAction'.
- Change the data type from void to int for the method 'PublishPress\Future\Modules\Expirator\Interfaces\CronInterfac::scheduleAsyncAction'.
- Add new filter 'publishpressfuture_schema_is_healthy' to check if the DB schema is healthy.
- The method 'PublishPress\Future\Modules\Workflows\Models\WorkflowModel::getStepFromRoutineTreeRecursively' now always returns an array.
- Add new filter 'action_scheduler_list_table_column_recurrence' to filter the recurrence column in the scheduled actions list.
- Add new method 'getNodeById' to the class 'PublishPress\Future\Modules\Workflows\Models\WorkflowModel'.

## [3.4.4] - 22 Aug, 2024

### Fixed

- Improve notice message when scheduled action runs after pressing "run" (PR #896).
- Fixed support for the Event Espresso plugin (PR #900).
- Fixed React warning about createRoot being deprecated.
- Fixed empty fieldset displayed when the bos is disabled for the post type (Issue #792).
- Update language files.
- Fixed support for the WPForms' Post Submission addon (PRO PR #48).
- Fixed duplicated action workflow panels (PRO PR #49).
- Fixed workflow and future action checkboxes allowing to disable the future action checkbox (PRO PR #44).
- Fixed the Trigger Workflow legacy action to not be displayed if no workflows are available (Issue #910).

### Changed

- Add tabs for post types in the post types settings page (PR #895).

### Added

- Added computed date preview to the general settings page (PR #897).
- Added option to hide the calendar by default in the future action panel (PR #899).
- Added new filter `publishpressfuture_posts_future_action_column_output` to the Future Action column.
- Added date preview to the Date Offset setting field on workflows (PRO PR #47).
- Added new workflow step "Deactivate Workflow for Post".

## [3.4.3] - 06 Aug, 2024

### Added

- Add new date source for using the current step running time, #39
- Add notice when auto layout starts, #41
- Add option to enable experimental features in the settings (requires a constant to be defined)
- Improve debugging by adding support to send queries, emails, and errors to Ray after the trigger is called

### Changed

- Removed icon from the "PublishPress Future" metabox in the block editor, #821
- Changed the title of the "Workflow Manual Trigger" metabox to "Action Workflows", #821
- Remove workflow screenshots from post attachments, #42

### Fixed

- Categories sometimes appears as number in the workflow editor, #789
- Custom code to move posts to a custom status do not work using legacy expireType, #877
- Fix legacy expireType param values for custom statuses when using custom code to schedule actions, #38
- Unselect any previously selected steps in the workflow editor when loading a workflow
- Fix the source of the date used in the Schedule step by utilizing the value stored in the global variables. This enhancement enables referencing the original trigger date, #39
- Remove the workflow post type from the Post Types settings tab, #838
- Update translation files
- Only load the quick-edit script if in the post list screen
- Fix quick edit action box to use the filter to hide action box when deactivated for the post type, #884
- Fixed the database schema check to also check the debug log table, #887
- Fixed the database schema check to check the table indexes, #887

## [3.4.2] - 15 Jul, 2024

### Added

- Add the current date and time to date preview in the date/time offset setting field, #840
- Add new tips to the inserter in the workflow editor
- Add double-click behavior to the steps in a workflow to load the settings sidebar

### Fixed

- Fix the UserResolver to accept empty user when a user is not logged in, #832
- Remove deprecated constant FILTER_SANITIZE_STRING
- Optimized the date/time offset validation requests in the Post Types settings, #840
- Fix error message in the date/time offset setting field, #841
- Fix translations for ES, FR, and IT, #699, #859
- Fix user capabilities check in the block editor, #727
- Fix error when selecting Query Posts step in the workflow editor and Advanced Settings is not enabled, #850
- Fix inserter and sidebar in the workflow editor, ensuring they are not visible at the same time, #740
- Fix the vertical size of the inserter and scroll on small screens, #740
- Fix the scroll position in the settings sidebar when it opens, #855
- Fix step description for the Future Actions trigger, #31
- Fix the workflow editor layout for WordPress 6.6, #863

## [3.4.1] - 02 Jul, 2024

### Added

- Implement the post_id attribute to the futureaction shortcode, #814
- Add post permalink variable in the workflow and implement variable resolvers
- Display the data flow panel for selected nodes in the advanced mode in the workflow editor
- Add notices to the workflow editor when the workflow is saved
- Add the list of available properties to the data flow panel in the workflow editor when hovering over a input/output in the panel
- Add the trigger's name in the Scheduled Actions list, #829
- Add the title and link to the post in the Scheduled Actions list for actions added by a workflow and triggered by a post, #829
- Add the trigger's slug to the global variables in a workflow

### Fixed

- Fix some translations in ES, FR, and IT languages, #798
- Fix “no future actions” message in the scheduled actions list, #788
- Try to avoid fatal error for wrong argument counting
- Minor issues pointed by PHPCS
- Escape an exception message
- Fix warning in the args column on scheduled actions list
- Fix marker end on edges in the workflow to show the arrow
- Remove broken connections when the workflow is loaded
- Fix the vertical position of the workflow editor loading message
- Fix text
- Fix bug on scheduling action based on post date

### Changed

- Improve loading message for the workflow editor
- Improve text of many strings in the workflow editor
- Improve text for the "Schedule" step fields
- Improve the help text for the priority field
- Update the help text of the "Prevent duplicate scheduling" setting
- Update language files
- Update composer files for dev dependencies
- Improve the exception message when the date/time offset is invalid
- Optimize the workflow editor script size by removing unused validation libs
- Moved the Step Data Flow panel from the developer mode to the advanced mode
- Improve visualization of available variables on the selected step
- Moved the global variables to the Step Data Flow panel
- Change the method signature of `parseNestedVariableValue` in the `PublishPress\FuturePro\Modules\Workflows\Interfaces\WorkflowVariablesHandlerInterface` interface to accept mixed in the second argument

## [3.4.0.1] - 20 Jun, 2024

### Fixed

- Fix fatal error for low level users when PublishPress menu is not available, #803
- Fix wrong action date on the future action panel, #802

### Changed

- The interface `PublishPress\Future\Modules\Expirator\Interfaces\ActionArgsModelInterface` has changed:
  - Method `setCronActionId` now returns void instead of `ActionArgsModelInterface`
  - Method `setPostId` now returns void instead of `ActionArgsModelInterface`
  - Method `setArgs` now returns void instead of `ActionArgsModelInterface`
  - Method `setArg` now returns void instead of `ActionArgsModelInterface`
  - Method `setCreatedAt` now returns void instead of `ActionArgsModelInterface`
  - Method `setEnabled` now returns void instead of `ActionArgsModelInterface`
  - Method `setScheduledDate` now returns void instead of `ActionArgsModelInterface`
  - Method `setScheduledDateFromISO8601` now returns void instead of `ActionArgsModelInterface`
  - Method `setScheduledDateFromUnixTime` now returns void instead of `ActionArgsModelInterface`
  - Method `convertUnixTimeDateToISO8601` is now public
  - Method `convertISO8601DateToUnixTime` is now public

## [3.4.0] - 20 Jun, 2024

### Added

- Add action workflow editor and engine, #687
- In the JS context, implemented a way to extend the future action panel using SlotFill `FutureActionPanelAfterActionField` and setting extra fields to the panel, right after the action field
- Add a new filter to allow filtering the options of the future action being scheduled: `publishpressfuture_prepare_post_expiration_opts`
- Add method `scheduleRecurringAction` to the `CronToWooActionSchedulerAdapter` to schedule recurring action
- Add method `scheduleAsyncAction` to the `CronToWooActionSchedulerAdapter` to schedule async action
- In the JS context, added the slot `FutureActionPanelTop` to the beginning of the future panel

### Changed

- Added `$unique` and `$priority` arguments to the `scheduleSingleAction` method in the `CronToWooActionSchedulerAdapter` class
- Method `scheduleRecurringAction` renamed to `scheduleRecurringActionInSeconds` in the `CronToWooActionSchedulerAdapter` class
- Added argument `$clearOnlyPendingActions` to the method signature `clearScheduledAction` to the `CronInterface` interface
- Changed the method `clearScheduledAction` in the class `CronToWooActionSchedulerAdapter` adding new argument `$clearOnlyPendingActions`, allowing to remove running actions
- The plugin activation and deactivation callback functions were moved from the main file to independent files
- Change the admin menu names for clarity
- Update the promo sidebar for mentioning the Actions Workflow feature

### Fixed

- Fix error when quick-edit data is not available, #730
- Fix dependency of the enqueued scripts for the future action box. Add 'wp-i18n', 'wp-components', 'wp-url', 'wp-data', 'wp-api-fetch', 'wp-element', 'inline-edit-post', 'wp-html-entities', 'wp-plugins' as dependencies
- Updated ES, FR and IT translations, #698
- Redirects to the settings page after activating the plugin, #764
- Fix access to the View Debug settings tab when debug is disabled
- Fix the position of the "Upgrade to Pro" and "Settings" menu items in the admin bar

## [3.3.1] - 19 Mar, 2024

### Added

- Add validation for the date and time offset in the settings page, #683
- Add form validation to the settings panel
- Add form validation to the metabox panel
- Add a date preview to the date/time offset setting field
- Add translation comments strings with arguments

### Changed

- The actions to move posts to another status were grouped in a single action, with a dropdown to select the status, #668
- The actions "draft", "private" and "trash" are deprecated in favor of "change-status", #668
- The metadata hash key has now a prefix "_" marking it as a private key, #695
- Improved the name of some actions
- Change the label of the field to select terms when "Replace all terms" is selected, #664
- Block editor script now loads in the footer

### Fixed

- Make it impossible to choose dates in the past, #443
- Enter key submits quick-edit panel when selecting a taxonomy term, #586
- The name of the taxonomy in the actions field is now updated in the settings panel when the taxonomy is changed, #676
- Possible to add an action using an empty category setting, #587
- Fix language files for ES, IT, FR, #685
- Fix inconsistent text in the filter for "Pending" actions, #673
- Improve the message when no actions are found: "No Future Actions", #666
- Escape string in an exception message

## [3.3.0] - 29 Feb, 2024

### Added

- Add new filter for filtering the list of post types supported by the plugin: `publishpressfuture_supported_post_types`, #677
- Add new filter for choosing to hide or not the Future Action in the post editors: `publishpressfuture_hide_metabox`, #69
- Add new filter for filtering the post metakeys in the post model: `publishpressfuture_action_meta_key`, #69
- Add new method `medataExists` to the `PublishPress\Future\Framework\WordPress\Models\PostModel` class
- Add support to a hash in the post meta `pp_future_metadata_hash`, to identify if the future action's post meta has changed or was scheduled by metadata (fully available only on PRO)
- Add metadata support for the future action data, allowing to schedule actions based on metadata (support for ACF, Pods, and other plugins), #69
- Add metadata mapping for allowing integrating with 3rd party plugins, #69
- Add a setting for hiding the Future Action metabox on the post edit screen and keeping the future actions enabled, #69
- New Gutenberg Block for displaying the future action date, #171
- Add new action `publishpressfuturepro_process_metadata` for triggering the future actions scheduling based on metadata, #69

### Changed

- Deprecated the filter `postexpirator_unset_post_types` in favor of the new filter `publishpressfuture_supported_post_types`, allowing not only removing but adding new post types to the list of supported post types, #677
- The list of post types in the settings page now also shows the non-public post types that are not built-in on WordPress, #677
- Remove the X and Facebook icons from the footer in the admin pages, #667
- Updated the URLs on the plugin's footer, #667
- Minor change in the description of the setting that controls the activation/deactivation future action for the post type
- The metadata `_expiration-date-status` now can be specified as `1` or `'1'` and not only `'saved'`, #69
- The action `publishpress_future/run_workflow` is now deprecated in favor of `publishpressfuture_run_workflow`
- When metadata support is enabled, a future action enabled is recognized by the presence of the date metadata field, ignoring the status field, #69
- Added support for other date formats in the date metadata field, not only unix timestamp, #69
- Minor changes to the layout of some settings pages
- Change the default settings tab to "Post Types" instead of "General"
- Change the links and items in the footer on the plugin's admin pages, #667

### Fixed

- Fix language files for ES, IT, FR, #665
- Fix error when a term does not exist, #675
- Add new interface for `NoticeFacade`: `NoticeInterface`
- Fatal error: Declarations of `PostStatusToCustomStatus::getLabel()` must be compatible with the interface, #674

### Removed

- Remove the legacy action `postExpiratorExpire`. This action will not trigger the future actions anymore
- Remove the legacy action `publishpressfuture_expire`. This action will not trigger the future actions anymore

## [3.2.0] - 25 Jan, 2024

### Added

- Add new advanced setting to choose the base date for the future actions: current date or post publishing date, #530
- Add the possibility to use non-hierarchical taxonomies, #285
- Add new future action to remove all taxonomy terms of a post, #652
- Add new action hook `publishpressfuture_saved_all_post_types_settings` to allow developers to trigger an action when the Post Types settings are saved

### Changed

- Deprecate the constant `PublishPress\Future\Modules\Settings\SettingsFacade::DEFAULT_CUSTOM_DATE` and replaced it with `DEFAULT_CUSTOM_DATE_OFFSET`
- Moved the date and time format settings fields to the Display tab, #605
- Added description to the taxonomy setting field in the Post Types tab, #641
- Moved the Post Types settings tab to the first position, #619
- Simplify the name of actions on taxonomy related actions, adding the actual name of the taxonomy, #294
- Change the text on the Status column in the Future Actions list, from "Pending" to "Scheduled", #661
- Fixed typos and improved the text in the Post Types settings tab, #659

### Fixed

- Fix consistency on radio buttons alignment on the settings page
- Hides the legacy cron event field from Diagnostics and Tools settings tab if no legacy cron event is found
- Fix the "Change Status to Trash action" on custom post types, #655
- Added back support for reusable blocks, #200
- Updated the language files, #653
- Fix error 404 when activating future action on a post type that has no taxonomy registered, #662

## [3.1.7] - 04 Jan, 2024

### Fixed

- Fix compatibility with plugins like "Hide Categories and Products for WooCommerce", making sure terms are not hidden in the taxonomy field, #639
- Fix the terms select field in the settings page, expanding it on focus, #638
- Fix the fatal error when hook `add_meta_boxes` didn't receive a `WP_Post` instance as parameter, #640
- Fix issue with the "NaN" categories in the classic editor, #647
- Fix issue with accents on the taxonomy field in the settings, #642

## [3.1.6] - 20 Dec, 2023

### Added

- Add a new setting to select the time format in the date picker component, #626

### Changed

- Stick the library woocommerce/action-scheduler on version 3.7.0, so we don't force WP min to 6.2
- Min WP version is now 6.1, #627
- The field to select terms now expands when the user focuses on it, not requiring to type a search text, #633
- Increase the limit of items displayed in the field to select terms. It shows up to 1000 items now, #633

### Fixed

- Fix support for WP between 6.1 and 6.4, #625
- Fix the search of posts in the posts lists, #620
- Fix classic meta box when using Classic Editor plugin with the classic editor as default, #624
- Fix default date for new posts, #623
- Fix the quick edit form and future action column for pages, #618
- Fix support for custom taxonomies that are not shown in the Rest API, #629
- Fix compatibility with PublishPress Statuses' custom statuses, #632

## [3.1.5] - 14 Dec, 2023

### Fixed

- Fix `array_map()`: Argument must be of type array, string given, #606
- Remove broken and invalid setting to use classic metabox, #604
- Prevent a PHP warning in the posts screen if the selected term does not exist anymore, #612
- Update the ES, IT, and FR translations, #609

### Changed

- Limit the version of the library woocommerce/action-scheduler to 3.7.0, until we can set WP 6.2 as the minimum version

## [3.1.4] - 13 Dec, 2023

### Added

- Taxonomy term field now supports adding a new term by typing a new value
- Add a button to toggle the calendar on the future action panels. Quick/Bulk edit are collapsed by default, #583
- Display the taxonomy name in the future action panels instead of showing "Taxonomy", #584

### Changed

- Refactor all the future action panels to use the same React components, fixing the inconsistency between the panels, #572
- Removed external dependency of the React Select library, using now the WordPress internal library
- In the Action field on Post Type settings, the taxonomy related actions are only displayed if the post type has any term registered
- Change the order of fields in the future action panels, moving action and taxonomy at the beginning
- The method `ExpirationScheduler::schedule` now automatically converts the date to UTC before scheduling the action
- The action `publishpressfuture_schedule_expiration` now receives the date in the local site timezone
- Update the library woocommerce/action-scheduler from 3.6.4 to 3.7.0
- Future action data stored in the args column on the table _ppfuture_action_args is now camelCase
- Change the Database Schema check to verify and display multiple errors at once. The Fix Database should fix them all

### Deprecated

- Deprecate the class `Walker_PostExpirator_Category_Checklist`
- Deprecate the function `postexpirator_get_post_types`, moving the logic to the model `PostTypesModel`

### Fixed

- Fix plugin deactivation, #579
- Fix fatal error when clicking on "Post Types" tab in the settings when using PT-Br language, #567
- Stop hardcoding the DB engine when creating the table for action arguments, #565 [Thanks to @dave-p]
- Simple quotes were not being removed from the future action date offset setting, #566
- Update Spanish, French and Italian translations, #551
- Improved data sanitization on the plugin, #571
- Fix consistency on data saved on post meta from different editors, quick-edit and bulk-edit. Especially related to the post meta `_expiration-date-options`, #573
- Strange years value in the date selection, #568
- Fix the action "Remove selected term" for authors role, #550
- Fix the post type settings page not loading the saved settings after a page refresh triggered by the save button, #576


## [3.1.1] - 11 Oct, 2023

### Added

- Add new bulk action for posts to update future action scheduler based on post's metadata, #538

### Deprecated

- Deprecate class `PublishPress\Future\Core\DI\ContainerNotInitializedException`
- Deprecate class `PublishPress\Future\Core\DI\ServiceProvider`
- Deprecate interface `PublishPress\Future\Core\DI\ServiceProviderInterface`

### Fixed

- Fix compatibility with 3rd party plugins that import posts, #538
- Fix JS error when admin user has no permissions, #533 (Thanks to @raphaelheying)
- Fix missed post link on the email notification, or actions log, when the post is deleted, #507
- Fix plugin activation hook not running on plugin activation, #539

### Removed

- Remove tooltip from the "Expires" column in the posts list, #511

## [3.1.0] - 06 Sep, 2023

### Changed

- Updated base plugin to 3.1.0
- Change min PHP version to 7.2.5. If not compatible, the plugin will not execute
- Change min WP version to 5.5. If not compatible, the plugin will not execute
- Internal dependencies moved from `vendor` to `lib/vendor`, #522
- Replaced Pimple library with a prefixed version of the library to avoid conflicts with other plugins, #522
- Replaced Psr/Container library with a prefixed version of the library to avoid conflicts with other plugins, #522
- Updated internal libraries to the latest versions
- Changed the priority of the hook `plugins_loaded` on the main plugin file to 8, #522
- Changed the priority of `plugins_loaded` callback from 12 to 8
- Update `.pot` and `.mo` files

### Fixed

- Fix compatibility with Composer-based installations, using prefixed libraries, #522
- Update translations for IT, #524
- Fix some calls to the deprecated namespace `PublishPressFuture`, refactoring to the new namespace `PublishPress\Future`

## [3.0.6] - 26 Jul, 2023

### Changed

- Updated base plugin to 3.0.6

## [3.0.5] - 25 Jul, 2023

### Changed

- Updated base plugin to 3.0.5

### Fixed

- Updated .pot file, #493
- Updated translations for es_ES, fr_FR, it_IT, #493

## [3.0.4] - 04 Jul, 2023

### Changed

- Updated base plugin to 3.0.4

## [3.0.3] - 20 Jun, 2023

### Changed

- Updated base plugin to 3.0.3

## [3.0.2] - 19 Jun, 2023

### Changed

- Updated base plugin to 3.0.2

## [3.0.1] - 15 Jun, 2023

### Changed

- Updated base plugin to 3.0.1

## [3.0.0] - 13 Jun, 2023

### Changed

- Updated base plugin to 3.0.0

## [2.9.2] - 01 Mar, 2023

### Fixed

- List of actions in the post type settings is not filtered by post types, #400
- Include Statuses as a Default option, #395
- Remove legacy screenshots from the plugin root dir
- Fix i18n issues, #401
- Fix data sanitization and security issues in the log screen
- Fix PHP warning saying the method `WorkflowLogModel::countAll` returned NULL instead of an integer

## [2.9.1] - 23 Feb, 2023

### Fixed

- Fix issue with WordPress banners CSS file being missed, #393
- Fix support to delete all settings when uninstalling the plugin
- Stop automatically adding settings register if not existent and settings page is visited

## [2.9.0] - 14 Feb, 2023

### Added

- Add support for custom statuses, #224
- Add improved logs for past expiration dates, #233
