Skip to content

Latest commit

 

History

History
86 lines (49 loc) · 3.36 KB

Changelog.md

File metadata and controls

86 lines (49 loc) · 3.36 KB

Release History

3.1.1 ( 2024-03-15 )

  • Update: Using @peter.naydenov/notice v.2.3.1: Fix: Callback stop will stop the wildcard callbacks as well;

3.1.0 ( 2024-03-14 )

  • Using @peter.naydenov/notice v.2.3.0: If action function returns a string 'stop' and execution of followed action functions will be stopped. Option to build a chain of conditional action functions before the main action function;

3.0.1 ( 2024-03-06 )

  • Fix: Library works again;

3.0.0 ( 2024-03-05 )

  • Mouse events don't have preventDefault by default anymore. Handle it in the action function if needed. Take a look on Mouse Action Function argument description. Object event is available;
  • Plugin system where plugins role is to convert DOM events to shortcut strings, then the core part will trigger the action functions related to the shortcut.
  • Plugin can be enable/disable;
  • Plugin can be mute/unmute;
  • Plugin prefix in shortcut description is required. Keyboard plugin will take care for events started with ‘key:’ for example. Required because we should know the plugin that will handle the event;
  • Start a plugin: enablePlugin ( pluginCode, pluginOptions );
  • Function to destroy(remove) a plugin - disablePlugin();
  • Mute/unmute a plugin. It’s like disable all events for a specific plugin;
  • Plugin system documentation;
  • Plugin interface: getPrefix, shortcutName, contextChange, mute, unmute, destroy;
  • Plugin options - specific for each plugin;
  • Bug: Can't start the library

2.2.0 ( 2024-02-10 )

  • Folder 'dist' was added to the project. Includes commonjs, umd and esm versions of the library;
  • Package.json: "exports" section was added. Allows you to use package as commonjs or es6 module without additional configuration;
  • Rollup was added to the project. Used to build the library versions;

2.1.0 ( 2023-10-17 )

  • Method setDependencies to add more external objects available in all action functions;
  • Method getDependencies to look at existing dependencies list;

2.0.0 ( 2023-10-16 )

  • HTML attribute data-quick-click is available to speed up single click response;
  • Documentation on methods pause and resume;
  • Method listShortcuts to get names of all shortcuts defined;
  • Arguments for onShortcut and streamKeys converted to named arguments;
  • Method setDependencies to add objects to the "dependencies" object available as named argument in all action functions;
  • Method getDependencies to look at existing dependencies list;
  • Methods onShortcut and streamKeys have a new argument dependencies to pass dependencies to the callback;
  • Dependencies are aviailable for emit method as well as first argument;
  • JSdoc type description for public methods;
  • Tag is always a target, regardless of argument 'data-click'. Tag is always a data-quick-click target also;

1.1.1 (2023-09-30)

  • Mouse faster response when maxClicks achived. (maxClicks is automatically calculated according shortcut definitions);

1.1.0 (2023-09-30)

  • Method emit was added. Not documented yet;

1.0.1 (2023-09-23)

  • Mouse click: preventDefault();
  • Dependencies update: @peter.naydenov/notice - v.2.2.1

1.0.0 (2023-08-14)

  • Initial code;
  • Test package;
  • Documentation;