Changelog – TypeRocket Pro
v5.0.54
April, 11th 2022
- Fix the timezone bug with
wp_timezone_string()
.
v5.0.53
April, 8th 2022
- Fix doc blocks.
- Add more field helper methods.
- Bug fixes.
v5.0.52
April, 7th 2022
- Add
#[\ReturnTypeWillChange]
for appliedJsonSerializable
methods for PHP 8.1 support. - Bypass user_login model exception in WPUser::update if
user_login
remains the same. - Add more DateTime functions.
- Add meta box and custom forms to the attachment edit screen.
- Bug fixes.
v5.0.51
March, 17th 2022
- Add Page Builder Plus extension: builder revisions, reusable blocks system, save component as a block, and more.
- Add table helper
exclude_search_select
. - Add timezone conversion helpers.
- Fix TypeRocket UI views bug when switching template engine to twig.
- Add new search and URL field method
setSearchConfig()
. The only option iskeepSearch
. Setting this option totrue
will keep the search results listed after an item is selected. - Add hooks for controller
onValidate
andonAction
. - Add new
TypeRocket\Utility\DateTime
class. - Add support for
URLSearchParams
towindow.typerocketHttp.send()
. - Bug fixes.
v5.0.50
January, 26th 2022
- Fix bugs.
- Add the ability to have multiple
GROUP BY
columns. - Update the ORM
delete()
method. Note, when you get a list of models and then usedelete()
the method will work as expected for most uses cases moving forward when the ID is numeric. There is also a newwp-config.php
flagTYPEROCKET_QUERY_DELETE_ANY
you can add to allow deletes to work on any ID value.
v5.0.49
December, 3rd 2021
- Fix bugs.
v5.0.48
November, 13th 2021
- Suppress migration error when no migrations are found after running the migrate command.
- Add PHP 7.3 cookie feature support.
- Add PHP 8 support to class resolver.
- Add
saveAndGet()
method to the model class. - Update how
Model::save()
works. You can now tell if an update or create was called when using save by checking the return type. Update will now return a model orbool
instead of a model orint
. Create will return a model orwpdb::insert_id
. - Fix bugs.
v5.0.47
October, 1st 2021
- Add new base taxonomy models to the app folder.
- Fix bugs.
v5.0.46
September, 20th 2021
- Fix bugs.
v5.0.45
September, 16th 2021
- Add
Form::fileUpload()
field. - Add migration options
path
andwp_option
to migrate command. - Add subfield validation feature.
- Add
Arr:only()
andArr::pluck()
. - Add
ArrayReplaceRecursiveValues
trait all models. - Add
Arr::replaceRecursivePreferNew
. - Add
DisplayPermissions
to many places like fields, forms, and tables. - Add sanitization helpers.
- Add HTML5
datetime-local
validator. - Add new hide controls for repeater and matrix fields.
- Fix major
Model::getCast
issues that was casting blank values like"0"
,0
,[]
, and""
tonull
. - Add
Arr::isEmptyArray
. - Improve design.
- Fix bugs.
v5.0.44
September, 8th 2021
- Improve required validation.
- Add
Arr::indexBy
. - Add migration options
path
andwp_option
to migrate command.
v5.0.43
September, 3rd 2021
- Add weak validation rule by appending
?
to rule key (now allows blank strings). - Fix gallery field bug.
- Fix bugs and code cleanup.
v5.0.42
August, 17th 2021
- Add new
required:strong
validation option. This option trims the value before checking for emptiness. - Add the ability to set
full
andfield
on custom messages for validations. - Display the first failed validation rule as the error message instead of the last.
- Add SVG support to image fields when WordPress allows SVGs.
- Add weak validation rule by appending
?
to rule key. - Fix bugs and code cleanup.
v5.0.41
August, 13th 2021
- Add
appendRawOrderBy
to query and ORM. - Add
setResultsPaged()
toTable
.
v5.0.40
July, 19th 2021
- Add new
savePostNameAs
andsaveFieldAs
methods toPostType
class. - Flash errors when WP controllers throw exceptions.
- Block saving of post types when the status is
trash
. - Add HTTP
Fields
class support toForm
class. - Update reserve list for post types and taxonomies.
- Fix bugs.
v5.0.39
July, 1st 2021
- Change edit image link behavior.
v5.0.38
June, 28th 2021
- Add edit media button to image and gallery field.
- Fix minor migration bug.
v5.0.37
June, 22th 2021
- Fix bugs.
v5.0.36
May, 30th 2021
- Fix radio button field bug.
- Enhance timezone field.
- Fix galaxy CLI bug.
v5.0.35
May, 28th 2021
- Remove helper functions from core classes.
- Add WordPress timezone field.
- Add
includeIf()
toTachyonTemplateEngine
. - Add migration retry to
BasePlugin
. - Add hooks list to dev toolbar.
v5.0.34
May, 19th 2021
- Add filters
typerocket_component_options
andtyperocket_component_class
. - Add name to Views class.
- Add conditional field modes.
- Fix
MailgunMailDriver
bug. - Remove ability to have return/enter value in
textexpand
field. The intention of this field is to act as a text input field.
v5.0.33
May, 18th 2021
- Add
with_front
options to post types and taxonomy. - Update TypeRocket UI with new options.
- Add current template file to dev toolbar.
v5.0.32
May, 13th 2021
- Make default cache folder for views
views
instead of the defaultapp
folder. - Add migration exit code.
- Fix page views bug when a long string is used.
- Fix theme updater bug.
v5.0.31
April, 30th 2021
- Add PHP class migrations.
- Improve validation and field errors.
- Add typerocket_controller_after_{type} and typerocket_model_after_{action}.
- Add ENV support for CLI commands.
- Add option to disable WP in Galaxy command using
TYPEROCKET_GALAXY_LOAD_WP=no php galaxy
. - Add support for database transactions in SQL migrations.
- Add bulk delete warnings to models that do not allow them.
- Minor improvements to the core WP models.
- Add
maybeBack()
to the redirect class. - Update redactor to v3.4.11.
- Remove SEO scheme analysis tool because Google is dropping the tool.
- Improve table links system.
- Fix bugs.
v5.0.30
April, 28th 2021
- Minor improvements to the core WP models.
- Add
maybeBack()
to the redirect class. - Improve table links system.
- Fix bugs.
v5.0.29
April, 26th 2021
- Improve validation system.
- Improve base controllers.
- Improve error response system.
- Add
ResultsCollection
class. - Allow policy additions from a TypeRocket plugin.
v5.0.28
April, 21th 2021
- Add model lookup from the registry in form class.
v5.0.27
April, 20th 2021
- Add
onAction
method to main controller class. - Update return value for
WPComment
andWPUser
create methods. - Allow relationship fields in post type columns without sorting.
- Add new methods to Model class.
- Fix
WPComment
not throwing error bug. - Fix label field bug.
- Fix
onDependencyInjection
Model bug. - 🚨 IMPORTANT: The Query class now ` ticks SQL when compiling if they are not yet present, allowing you to use column names reserved as SQL keywords. This change may introduce errors, but it is unlikely.
v5.0.26
April, 14th 2021
- Fix bugs.
- Improve
make:plugin
command.
v5.0.25
April, 14th 2021
- Improve views.
- Improve
make:plugin
command. - Improve migration and file system.
- Upgrade Galaxy CLI (if you are using a custom galaxy script be sure to update this file).
v5.0.24
- Add
make:plugin
command. - Show all registered migrations to dev tools.
- Improve migration and file system.
- Bug fixes.
v5.0.23
- Fix file spacing issues.
- Add
depreciated
errors to config.
v5.0.22
- Fix casting object type bug.
- Add localization to validators.
v5.0.21
- Add more
Migrate
class methods. - Add better console migration warnings.
v5.0.20
- Remove
CanQueryDB
trait class. - Allow migrations outside the galaxy console.
- Add better
Table
class errors. - Fix bugs.
v5.0.19
- Add
QueryCaster
utility class. - Fix bugs.
v5.0.18
- Add
setLabels()
to taxonomy class.
v5.0.17
- 🚨 [IMPORTANT] For GET requests only. Previously TypeRocket redirected GET requests to the trailing slash version of the request URL. The TypeRocket custom routing system has been updated to detect if the WordPress rewrites have a trailing slash or not automatically. Routes will now automatically detect how best to redirect GET requests based on your permalink settings. This means your custom routes will look the same as the rest of WordPress. This update might impact how your WordPress project functions but is a patch version because breaking changes are not expected.
- Add new helper
tr_roles()
. If you are using a composer install update yourhelpers.php
file manually. - Bug fixes.
v5.0.16
- Bug fixes.
v5.0.15
- Bug fixes.
v5.0.14
- Add
first()
andlast()
methods to Results class. - Bug fixes.
v5.0.13
- Allow passing of misc data in a component’s template loop.
v5.0.12
- Add
TYPEROCKET_OVERRIDE_PATH
.
v5.0.11
- Fix minor bugs.
- Add
tr_dd
andtr_dump
.
v5.0.10
- Fixes TypeRocket free version compatibility issues.
v5.0.9
- Enhancements.
- Bug fixes.
v5.0.8
- Http class bug fixes.
v5.0.7
- Bug fixes.
v5.0.6
- Bug fixes.
v5.0.5
- Add composers.
- Bug fixes.
v5.0.4
- Add
make:rule
command. - Add
tr_route_template()
.
v5.0.3
- Fix the
Textexpand
field bug.
v5.0.2
- Fix mail bug.
v5.0.1
- Bug fixes.
v5.0.0
- Initial release.