Releases: trustedlogin/client
Releases · trustedlogin/client
1.9.0
1.9.0 (August 25, 2024)
- Added a minimum
vendor/namespacelength of five characters to help prevent collisions with other instances - Fixed a flash of un-styled content on the Grant Access screens by outputting CSS earlier
- Addressed potential error when the
WP_Filesystemclass is not found - Moved TrustedLogin images to inline CSS to simplify the build process
- Removed need for
--relative_images_dirflag inbuild-sassscript - Removed
src/assets/loading.svg - Removed
src/assets/lock.svg
- Removed need for
- Improved coding standards and documentation
1.8.0
1.8.0 (July 18, 2024)
- Implemented many speed enhancements
- Moved logging directory creation into own private method:
Logging::setup_logging_directory()to clean up theLogging::setup_klogger()method - Now compliant with WordPress PHPCS
- Use
gmdate()instead ofdate()for log files and for users registration dates - Moved
SecurityChecks::get_ip()toUtils::get_ip() - Added
Utils::get_user_agent()to generate a user agent string with an optional max length - Improved handling of potential errors
- Security enhancements
- Escaped all error messages
- Removed usage of
$_REQUESTin favor of$_POSTand$_GET
- Implemented PHPCS and PHPStan checks (thanks, Daniel)
1.7.0
1.7.0 (January 29, 2024)
- Added Utils class to handle common utility functions
- Converted usage of
get_site_transient()andset_site_transient()to usingUtils::get_transient()andUtils::set_transient().- Scopes the storage to each blog instead of per-network, preventing potential issues with multisite
- Fixes potential issues with object caching plugins that don't support transients, while allowing for auto-expiring data to be stored in the database
- Prevents data from being "cleaned up" by site optimization plugins that remove expired transients
1.6.2
1.6.1
1.6.1 (September 22, 2023)
- Improved error logging:
- Added error data to the logging, in addition to the code & message
- Now returns the full API response when the response body is invalid
- Switched to just-in-time creation of logging directory and log file
- Added "Learn more" link to the logging directory
index.html - Renamed the log files to
client-{namespace}-{Y-m-d}-{hash}.logto be easier to distinguish and less verbose
- Fixed AJAX status code not being properly set when encountering an error
1.6.0
1.6.0 (September 7, 2023)
- Added
clone_roleconfiguration setting to allow the support user to be created with an existing role, rather than a clone of a role - Added a
trustedlogin_{ns}_support_rolecapability to the cloned support user role in order to better identify that the role is created by TrustedLogin - Added
terms_of_service/urlsetting to allow linking to a custom terms of service page- If not defined, the Terms of Service text and link will not be shown
- Converted CSS generation to use SCSS mixins to allow easier overrides by themes and plugins
- Removed borders around the role descriptions in the Grant Access form
- Clarified the language surrounding user roles in the Grant Access form
- Moved the admin toolbar link to next to the "Howdy, {username}" menu
- Relabeled the link from "Revoke TrustedLogin" to "Revoke Access"
- Improved user creation flow to prevent errors when creating a user with an existing email address
- Fixed error when using PHP in strict mode
- Fixed error creating the Support User when the
vendor/websiteconfiguration exceeded 100 characters in length
1.5.1
1.5.0
- Added the ability for users to create support tickets when granting access—to enable, set
webhook/create_tickettotruein the configuration array- Added second parameter,
$ticket_datatoClient::grant_access()method - Added
ticketto the webhook data, with the following keys:message(string)
- Added second parameter,
- Added
Config::get_settings()public method to get all settings - Added
Encryption::get_remote_encryption_key_url()public method to get the final URL used to fetch the vendor public key - Added
Logging::get_log_file_path()public method to get the full path to the log file - Added a bin file
build-sassto namespace the CSS file usingscssphp(see thecomposer.jsonconfiguration) - Filtered the
$_POSTrequest that generates access to allow only defined fields - Created new
Form.phpfile andFormclass to handle form rendering- Moved form-related methods from
AdmintoForm
- Moved form-related methods from
- Modified
auth.scssto support new ticket fields, admin debugging rendering, and improve styling
1.4.0
- Added ability to send debug data, generated using the WordPress Site Health report, via webhook
- Modified the
webhook_urlconfiguration setting to be an array. Now,webhookis an array ofurlanddebug_datakeys.- Set
debug_datatotrueto send Site Health data with the webhook - Passing
webhook_urlis still supported for backwards compatibility
- Set
- Added
Client::get_debug_data()private method - The SDK will no longer load on sites that lack Sodium, which is bundled with PHP 7.2+ and WordPress 5.2+, and available as a PECL extension for PHP 7.0 and 7.1
- Added a public
Encryption::meets_requirements()method to check whether the site meets the requirements for encryption - Removed all Composer package dependencies
- Added our own logging class
- Fixed typo in
trustedlogin/{namespace}/license_keyfilter name
1.3.7
- Improved styling of the authorization form
- Fixed
php-scopersupport by setting the root namespace for\WP_Errorand\WP_User - Fixed the role message always showing "similar" to a role when it was the same role
- Fix docblock to prevent Strauss from namespacing it