@automattic/newspack-blocks 4.14.6-alpha.1 → 4.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,10 @@
1
- ## [4.14.6-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v4.14.5...v4.14.6-alpha.1) (2025-07-17)
1
+ ## [4.14.6](https://github.com/Automattic/newspack-blocks/compare/v4.14.5...v4.14.6) (2025-07-28)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
6
  * Fix/author list roles and exclusion ([#2166](https://github.com/Automattic/newspack-blocks/issues/2166)) ([f2dfe4d](https://github.com/Automattic/newspack-blocks/commit/f2dfe4d1297740d483e25ef680f4cf5735ba2a28))
7
+ * remove current page deduplication from logic when deduplication is disabled ([#2169](https://github.com/Automattic/newspack-blocks/issues/2169)) ([4000d85](https://github.com/Automattic/newspack-blocks/commit/4000d858b6931137d883e06b2b6c1200a420dfa7))
7
8
 
8
9
  ## [4.14.5](https://github.com/Automattic/newspack-blocks/compare/v4.14.4...v4.14.5) (2025-07-14)
9
10
 
package/composer.lock CHANGED
@@ -282,16 +282,16 @@
282
282
  },
283
283
  {
284
284
  "name": "dealerdirect/phpcodesniffer-composer-installer",
285
- "version": "v1.1.1",
285
+ "version": "v1.1.2",
286
286
  "source": {
287
287
  "type": "git",
288
288
  "url": "https://github.com/PHPCSStandards/composer-installer.git",
289
- "reference": "6e0fa428497bf560152ee73ffbb8af5c6a56b0dd"
289
+ "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1"
290
290
  },
291
291
  "dist": {
292
292
  "type": "zip",
293
- "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/6e0fa428497bf560152ee73ffbb8af5c6a56b0dd",
294
- "reference": "6e0fa428497bf560152ee73ffbb8af5c6a56b0dd",
293
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1",
294
+ "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1",
295
295
  "shasum": ""
296
296
  },
297
297
  "require": {
@@ -374,7 +374,7 @@
374
374
  "type": "thanks_dev"
375
375
  }
376
376
  ],
377
- "time": "2025-06-27T17:24:01+00:00"
377
+ "time": "2025-07-17T20:45:56+00:00"
378
378
  },
379
379
  {
380
380
  "name": "doctrine/instantiator",
@@ -3622,13 +3622,13 @@
3622
3622
  ],
3623
3623
  "aliases": [],
3624
3624
  "minimum-stability": "stable",
3625
- "stability-flags": [],
3625
+ "stability-flags": {},
3626
3626
  "prefer-stable": false,
3627
3627
  "prefer-lowest": false,
3628
- "platform": [],
3629
- "platform-dev": [],
3628
+ "platform": {},
3629
+ "platform-dev": {},
3630
3630
  "platform-overrides": {
3631
3631
  "php": "8.0"
3632
3632
  },
3633
- "plugin-api-version": "2.3.0"
3633
+ "plugin-api-version": "2.6.0"
3634
3634
  }
@@ -636,9 +636,7 @@ class Newspack_Blocks {
636
636
  $args['orderby'] = 'post__in';
637
637
  } else {
638
638
  $args['posts_per_page'] = $posts_to_show;
639
- if ( ! self::should_deduplicate_block( $attributes ) ) {
640
- $args['post__not_in'] = [ get_the_ID() ]; // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in
641
- } else {
639
+ if ( self::should_deduplicate_block( $attributes ) ) {
642
640
  if ( count( $newspack_blocks_all_specific_posts_ids ) ) {
643
641
  $args['post__not_in'] = $newspack_blocks_all_specific_posts_ids; // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in
644
642
  }
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.com/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 4.14.6-alpha.1
10
+ * Version: 4.14.6
11
11
  *
12
12
  * @package Newspack_Blocks
13
13
  */
@@ -15,7 +15,7 @@
15
15
  define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
16
16
  define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
17
17
  define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
18
- define( 'NEWSPACK_BLOCKS__VERSION', '4.14.6-alpha.1' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.14.6' );
19
19
 
20
20
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
21
21
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/newspack-blocks",
3
- "version": "4.14.6-alpha.1",
3
+ "version": "4.14.6",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.12.0",
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
22
 
23
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
24
 
25
- return ComposerAutoloaderInite6c2bd229e5e446e8f96e79ddc8b6026::getLoader();
25
+ return ComposerAutoloaderInitc0bb775d4d0e9c9da224b917a9e345d9::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInite6c2bd229e5e446e8f96e79ddc8b6026
5
+ class ComposerAutoloaderInitc0bb775d4d0e9c9da224b917a9e345d9
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInite6c2bd229e5e446e8f96e79ddc8b6026
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInite6c2bd229e5e446e8f96e79ddc8b6026', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInitc0bb775d4d0e9c9da224b917a9e345d9', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInite6c2bd229e5e446e8f96e79ddc8b6026', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitc0bb775d4d0e9c9da224b917a9e345d9', 'loadClassLoader'));
28
28
 
29
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInite6c2bd229e5e446e8f96e79ddc8b6026::getInitializer($loader));
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitc0bb775d4d0e9c9da224b917a9e345d9::getInitializer($loader));
31
31
 
32
32
  $loader->register(true);
33
33
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace Composer\Autoload;
6
6
 
7
- class ComposerStaticInite6c2bd229e5e446e8f96e79ddc8b6026
7
+ class ComposerStaticInitc0bb775d4d0e9c9da224b917a9e345d9
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInite6c2bd229e5e446e8f96e79ddc8b6026
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInite6c2bd229e5e446e8f96e79ddc8b6026::$classMap;
16
+ $loader->classMap = ComposerStaticInitc0bb775d4d0e9c9da224b917a9e345d9::$classMap;
17
17
 
18
18
  }, null, ClassLoader::class);
19
19
  }
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-trunk',
5
5
  'version' => 'dev-trunk',
6
- 'reference' => '56df0b728d71661992915ad80266bba42193908b',
6
+ 'reference' => '509bafe49999287b30cf4eaba93e600808dbe0d1',
7
7
  'type' => 'wordpress-plugin',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -13,7 +13,7 @@
13
13
  'automattic/newspack-blocks' => array(
14
14
  'pretty_version' => 'dev-trunk',
15
15
  'version' => 'dev-trunk',
16
- 'reference' => '56df0b728d71661992915ad80266bba42193908b',
16
+ 'reference' => '509bafe49999287b30cf4eaba93e600808dbe0d1',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),