Skip to content

Latest commit

 

History

History
176 lines (98 loc) · 7.41 KB

File metadata and controls

176 lines (98 loc) · 7.41 KB

Unreleased

Bug Fixes

  • Allow multiple event handlers for the same type with data-wp-on-document and data-wp-on-window. (#61009)

5.6.0 (2024-05-02)

5.5.0 (2024-04-19)

Enhancements

  • Improve data-wp-context debugging by validating it as a stringified JSON Object. (#61045)

Bug Fixes

  • Hooks useMemo and useCallback should return a value. (#60474)

5.4.0 (2024-04-03)

5.3.0 (2024-03-21)

Bug Fixes

  • Prevent non-objects from being set in store state. (#59886)
  • Ensure that stores are available for subscription before hydration. (#59842)
  • Ensure scope is restored when catching exceptions thrown in async generator actions. (#59708)

5.2.0 (2024-03-06)

Bug Fixes

  • Prevent passing state proxies as receivers to deepSignal proxy handlers. (#57134)
  • Keep the same references to objects defined inside the context. (#59553)

5.1.0 (2024-02-21)

Bug Fixes

  • Only add proxies to plain objects inside the store. (#59039)
  • Improve context merges using proxies. (59187)

5.0.0 (2024-02-09)

New Features

  • Export getConfig() to retrieve the server-defined configuration for the passed namespace. (58749)

Breaking changes

  • Remove the style prop (key) and class name arguments the data-wp-style and data-wp-class directives. (#58835).
  • Remove the data-wp-body directive. (#58835)

Enhancements

  • Break up init with yielding to main to prevent long task from hydration. (#58227)
  • Support setting the namespace using a string in data-wp-interactive, like data-wp-interactive="myPlugin". (#58743)

Bug Fixes

  • Avoid initializing private stores as public when they have initial state. (#58754)

Bug fixes

  • Interactivity API: Remove non default suffix data wp context processing. (#58664)

4.0.1 (2024-01-31)

Bug Fixes

  • Ensure Preact is used in published packages (58258.

4.0.0 (2024-01-24)

Enhancements

  • Prevent the usage of Preact components in wp-text. (#57879)
  • Update preact, @preact/signals and deepsignal dependencies. (#57891)
  • Export withScope() and allow to use it with asynchronous operations. (#58013)
  • Add block supports for clientNavigation and interactive properties on block.json schema.(#58132)

New Features

  • Add the data-wp-run directive along with the useInit and useWatch hooks. (#57805)
  • Add wp-data-on-window and wp-data-on-document directives. (#57931)
  • Add the data-wp-each directive to render lists of items using a template. (57859)

Breaking Changes

  • Remove data-wp-slot and data-wp-fill. (#57854)
  • Remove wp-data-navigation-link directive. (#57853)
  • Remove unused state and rename props to attributes in getElement(). (#57974)
  • Convert navigate and prefetch function to actions of the new core/router store, available when importing the @wordpress/interactivity-router module. (#57924)

Bug Fix

  • Prevent wp-data-on="" from creating onDefault handlers. (#57925)

3.2.0 (2024-01-10)

Bug Fix

  • Fix namespaces when there are nested interactive regions. (#57029)

3.1.0 (2023-12-13)

3.0.0 (2023-11-29)

Breaking Change

  • Implement the new store() API as specified in the proposal. (#55459)

2.7.0 (2023-11-16)

2.6.0 (2023-11-02)

Bug Fix

  • Update the title when using enhanced pagination. (#55446)

2.5.0 (2023-10-18)

2.4.0 (2023-10-05)

2.3.0 (2023-09-20)

Enhancements

  • Improve navigate() to render only the result of the last call when multiple happen simultaneously. (#54201)

Bug Fix

  • Remove role attribute when set to null in data-wp-bind. (#54608)
  • Add timeout option to navigate(), with a default value of 10000 milliseconds. (#54474)

2.2.0 (2023-08-31)

Enhancements

  • Support keys using data-wp-key. (#53844)
  • Merge new server-side rendered context on client-side navigation. (#53853)
  • Support region-based client-side navigation. (#53733)
  • Improve data-wp-bind hydration to match Preact's logic. (#54003)

New Features

  • Add new directives that implement the Slot and Fill pattern: data-wp-slot-provider, data-wp-slot and data-wp-fill. (#53958)

2.1.0 (2023-08-16)

New Features

  • Allow passing optional afterLoad callbacks to store calls. (#53363)

Bug Fix

  • Add support for underscores and leading dashes in the suffix part of the directive. (#53337)
  • Add an asynchronous short circuit to useSignalEffect to avoid infinite loops. (#53358)

Enhancements

  • Add JSDoc comments to store() and directive() functions. (#52469)

2.0.0 (2023-08-10)

Breaking Change

  • Remove the wp-show directive until we figure out its final implementation. (#53240)

1.2.0 (2023-07-20)

New Features

  • Runtime support for the data-wp-style directive. (#52645)