
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@storybook/telemetry
Advanced tools
@storybook/telemetry is a package used to collect anonymous usage data from Storybook instances. This data helps the Storybook team understand how the tool is being used and improve it accordingly.
Telemetry Initialization
Initializes the telemetry system for a Storybook project, allowing it to start collecting usage data.
const telemetry = require('@storybook/telemetry');
telemetry.init({
project: 'my-storybook-project',
version: '1.0.0'
});
Sending Custom Events
Sends a custom event to the telemetry system, which can be used to track specific actions or occurrences within the Storybook instance.
telemetry.sendEvent({
eventType: 'custom-event',
payload: {
key: 'value'
}
});
Disabling Telemetry
Disables the telemetry system, stopping any further data collection from the Storybook instance.
telemetry.disable();
Analytics-node is a package for sending data to Segment, a customer data platform. It allows you to track events and user actions, similar to @storybook/telemetry, but is more general-purpose and not specific to Storybook.
Amplitude-js is a JavaScript SDK for Amplitude, a product analytics service. It provides similar functionality to @storybook/telemetry in terms of tracking user interactions and events, but is designed for broader application analytics.
Mixpanel is an analytics platform that helps you understand how users interact with your application. The Mixpanel JavaScript library allows you to track events and user actions, similar to @storybook/telemetry, but is more focused on product analytics.
8.2.0
Hold onto your hats! Storybook 8.2 has dropped, packed with a treasure trove of new features and bug fixes:
beforeAll
play
functiontocbot
- #28318, thanks @shilman!--no-dev
option to init
- #26918, thanks @fastfrwrd!--dev
and --no-dev
options to storybook init
CLI - #26918, thanks @fastfrwrd!@storybook/addon-svelte-csf
when initializing new projects - #27070, thanks @benmccann!beforeAll
hook - #28255, thanks @ghengeveld!pkg-dir
to fd-package-json
- #28270, thanks @43081j!loading
-> rendering
-> playing
- #28431, thanks @kasperpeulen!.stories.mdx
handling - #25973, thanks @JReinhold!CJS
for core/components
- #28440, thanks @ndelangen!preview.js
globals
to initialGlobals
- #27517, thanks @shilman!markdown-to-jsx
to v7.4.5 - #26694, thanks @xyy94813!webpack-virtual-modules
to 0.6.0 - #27102, thanks @fyodorovandrei!read-pkg-up
to fd-package-json
- #28272, thanks @43081j!doctrine
with jsdoc-type-pratt-parser
- #26305, thanks @43081j!Stories
block, error when referenced in MDX - #28434, thanks @kasperpeulen!Typeset
Doc block fontSizes
type - #26475, thanks @noranda!env.bugfixes
in SWC so destructuring is never transpiled - #28363, thanks @kasperpeulen!mount
in react, svelte, and vue renderers - #28385, thanks @kasperpeulen!CompatibleString
- #27180, thanks @sni-J!FAQs
Telemetry logging for crash reports and usage statistics
The npm package @storybook/telemetry receives a total of 1,732,811 weekly downloads. As such, @storybook/telemetry popularity was classified as popular.
We found that @storybook/telemetry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.