![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@melmacaluso/skadi
Advanced tools
A simple js class to send tracking events to your google analytics accounts
A simple js class to send tracking events to your google analytics account
Main Skadi.js class
Void
Name | Type | Description | |
---|---|---|---|
options | object | Sets the custom user defined arguments. |
Name | Type | Description | |
---|---|---|---|
options | object | Sets the custom user defined arguments. |
Void
Simple logger for the debug mode.
Name | Type | Description | |
---|---|---|---|
logItems | array | Items to be logged in the console | |
message | string | Arbitrary message that goes along the logItems |
Void
Updates the class propreties with user defined ones after the page has loaded and if there's a window.Skadi object in place.
Void
Filters the event types and gets the DOM node element clicked/focused. It also sets the class constructor's proprieties accordingly and filters out event types that are not allowed updating elementAllowed property accordingly. It also prevents registering continous events when the target is a input or textarea on keyup events that are not key === 'Tab'
Name | Type | Description | |
---|---|---|---|
event | object | Either the mousevent or keyevent event object. |
Void
Translates event types to human readable events.
string
The layman's terms event type.Parses the the GA action to be human readable.
string
The action's type and target.Gets the nearest data-skadi-context bubbling up until finding a context or to the user defined maxBubbling value.
string
The nearest context or "Default context" if nothing found.Gets and parses the the GA Label to be human readable assuming canonical html is being used for label tags.
string
The label parsed.Updates Skadi's constructor properties with the relevant parsed action, category and label and triggers GA function to send the GA event.
Name | Type | Description | |
---|---|---|---|
event | object | The click or keyboard event. |
Void
Sends the events to GA.
Void
Adds click and keyup listeners to the window global.
Void
Initialises Skadi bootstrapping the listeners. It prevents es module version of skadi to work if there's a CDN version embedded.
Name | Type | Description | |
---|---|---|---|
isCDN | boolean | Disables errors in CDN versions of skadi. |
Void
Documentation generated with doxdox.
FAQs
A simple js class to send tracking events to your google analytics accounts
We found that @melmacaluso/skadi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.