Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Version 2.2.0 #134

Merged
merged 26 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2a1b540
Revert multiple reusable validation error notice
thomasplevy Jul 13, 2021
cc73053
build assets
thomasplevy Jul 13, 2021
97f9996
Ensure block editor assets are not enqueued on the blockified widgets…
thomasplevy Jul 14, 2021
0f08f0d
docs
thomasplevy Jul 14, 2021
ed944dc
Merge pull request #133 from gocodebox/wp-58-widgets-compat
Jul 14, 2021
d26e17e
Remove unused imports
thomasplevy Jul 15, 2021
9efa986
Fix incremented id, name, etc... when converting field blocks to grou…
thomasplevy Jul 15, 2021
16bf85a
Build assets
thomasplevy Jul 15, 2021
6e2bda8
Set name, id, and match attributes during block creation
thomasplevy Jul 16, 2021
4bc68d4
Remove debounce and timeouts & all previous compat code that was maki…
thomasplevy Jul 16, 2021
3bf389e
Don't define match attribute
thomasplevy Jul 19, 2021
dd6b0ce
Add e2e test utils
thomasplevy Jul 19, 2021
e7e57b1
Add various transformation tests and improve existing tests with snap…
thomasplevy Jul 19, 2021
1f77b78
update deps, namely @wordpress/e2e-test-utils
thomasplevy Jul 19, 2021
67ed459
Build assets
thomasplevy Jul 19, 2021
ba70756
Add tests for voucher code
thomasplevy Jul 19, 2021
f8099a6
Replace label entirely during tests
thomasplevy Jul 19, 2021
d80a484
eslint
thomasplevy Jul 19, 2021
58a644b
handle reusable block creation on WP < 5.8
thomasplevy Jul 19, 2021
42eb19f
Docs
thomasplevy Jul 19, 2021
d0d3a19
Use describe.each() instead of a for loop
thomasplevy Jul 19, 2021
d17bece
exclude conditional tests and ignore entire file via config
thomasplevy Jul 19, 2021
778b509
Merge pull request #132 from gocodebox/revert-multiple-in-reusable-va…
Jul 19, 2021
e031913
Bump min supported WP to 5.4 & tested to WP 5.8
thomasplevy Jul 19, 2021
26a7a78
merge
thomasplevy Jul 19, 2021
2778421
Build 2.2.0
thomasplevy Jul 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
LifterLMS Blocks Changelog
==========================

v2.2.0 - 2021-07-19
-------------------

##### Updates

+ **Increases minimum WordPress Core version requirement to version 5.4!**.
+ Tested and compatible with WordPress core 5.8
+ Don't load block editor assets on the "blockified" widgets screen.
+ Remove timeouts and subscription debouncing used by blocks watcher which handles the `llms/user-info-fields` redux store.
+ Stop debouncing the blocks watcher.

##### Bug fixes

+ Confirm group blocks now configure the block's id, name, and match attributes instead of being configured in the block render via the `blocks/form-fields/group-data` module.
+ Don't define the `match` attribute during creation of a user password block.


v2.1.1 - 2021-07-08
-------------------

Expand Down
2 changes: 1 addition & 1 deletion assets/js/llms-blocks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jquery', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '7da9cd4b25b86379776362117f69a32c');
<?php return array('dependencies' => array('jquery', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '0773d67df4d1030cde2039d836bef065');
16 changes: 8 additions & 8 deletions assets/js/llms-blocks.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions i18n/lifterlms-blocks.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the LifterLMS Blocks plugin.
msgid ""
msgstr ""
"Project-Id-Version: LifterLMS Blocks 2.1.1\n"
"Project-Id-Version: LifterLMS Blocks 2.2.0\n"
"Report-Msgid-Bugs-To: https://lifterlms.com/my-account/my-tickets\n"
"Last-Translator: Team LifterLMS <[email protected]>\n"
"Language-Team: Team LifterLMS <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-07-08T14:12:40-06:00\n"
"POT-Creation-Date: 2021-07-19T17:22:34-06:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: llms-dev 1.0.0\n"
"X-Domain: lifterlms\n"
Expand Down Expand Up @@ -562,10 +562,6 @@ msgstr ""
msgid "Stacked"
msgstr ""

#: assets/js/llms-blocks.js:17
msgid "The reusable block cannot be added because it contains one or more blocks which can only be used once per page."
msgstr ""

#. Translators: %s label of the controller field.
#: assets/js/llms-blocks.js:22
msgid "Confirm %s"
Expand Down
8 changes: 7 additions & 1 deletion includes/class-llms-blocks-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package LifterLMS_Blocks/Main
*
* @since 1.0.0
* @version 2.0.0
* @version 2.2.0
*/

defined( 'ABSPATH' ) || exit;
Expand Down Expand Up @@ -137,11 +137,17 @@ protected function define_bc() {
* @since 1.8.0 Update asset paths and improve script dependencies.
* @since 1.10.0 Use `LLMS_Assets` class methods for asset enqueues.
* @since 2.0.0 Maybe load backwards compatibility script.
* @since 2.2.0 Only load assets on post screens.
*
* @return void
*/
public function editor_assets() {

$screen = get_current_screen();
if ( $screen && 'post' !== $screen->base ) {
return;
}

if ( $this->use_bc_assets() ) {
$this->assets->enqueue_script( 'llms-blocks-editor-bc' );
}
Expand Down
8 changes: 4 additions & 4 deletions lifterlms-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
* Plugin Name: LifterLMS Blocks
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
* Version: 2.1.1
* Version: 2.2.0
* Author: LifterLMS
* Author URI: https://lifterlms.com/
* Text Domain: lifterlms
* Domain Path: /i18n
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Requires at least: 5.3
* Tested up to: 5.7
* Requires at least: 5.4
* Tested up to: 5.8
*/

// Restrict Direct Access.
defined( 'ABSPATH' ) || exit;

// Define Constants.
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
define( 'LLMS_BLOCKS_VERSION', '2.1.1' );
define( 'LLMS_BLOCKS_VERSION', '2.2.0' );
}

/**
Expand Down
Loading