npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@atlaskit/dependency-version-analytics

v1.6.7

Published

Tool to pull atlaskit version history from a repo

Downloads

103

Readme

@atlaskit/dependency-version-analytics

This is a tool that sends dependency version upgrade analytics to the GASv3 pipeline by running inside a product codebase and analysing git history.

Install

yarn add --dev @atlaskit/dependency-version-analytics @atlassiansox/analytics-node-client

The @atlassiansox/analytics-node-client package is a peer dependency as it is a private package and so must be installed alongside the tool.

Commands

Commands are exposed via both the CLI and programatically.

populate-product <product>

Sends analytics events of atlaskit dependency changes to package.json that have occurred since the tool was last run.

Run yarn dependency-version-analytics --help for more info.

Example

$ atlaskit-version-analytics populate-product jira

Description

Reads the git history of changes to package.json in the current branch (assumed to be master) since the tool was last run, tracks changes to dependencies and sends analytics in the format specified by http://go.atlassian.com/dataportal/analytics/registry/17058.

This command is intended to be used in product CI pipelines to record dep changes over time.

Dependency versions are compared to the versions when the tool was last run, which is marked by a git tag that the tool creates and updates on each run.

For initial publishing of historical events, the --reset flag can be used to send changes that have occurred since the start of history.

For supported package scopes refer

populate-package <package>

Sends analytics events for published versions of the specified package.

Run yarn dependency-version-analytics --help for more info.

Example

$ atlaskit-version-analytics populate-package @atlaskit/button

Description

Reads the version history of the package from npm and sends events for versions published since the time specified by --since, or all versions if not specified.

This command will be used to record when new versions of the supported packages are published in this repo https://bitbucket.org/atlassian/atlaskit-version-analytics.

Local development

1) Use yarn link

This will run the 'dev' mode of the tool and compile typescript on the fly. Any changes made to the source will instantly reflect in the product repo.

  1. Run yarn link inside the package
  2. cd to the root of the alassian-frontend repo then run yarn build @atlaskit/dependency-version-analytics
  3. Run yarn link '@atlaskit/dependency-version-analytics' inside the product repo of your choosing or in the atlaskit-version-analytics repo to test your changes

Make dev changes + save.

2) Use yalc publish

This will run the built version of the tool that will be published to npm. It will use the compiled typescript output and will not allow 'hot module reload'.

  1. Install yalc globally - yarn global add yalc

After each dev change,

  1. Run yarn build @atlaskit/dependency-version-analytics outside the package
  2. Run yalc publish inside the package
  3. Run yalc add '@atlaskit/dependency-version-analytics' inside the product repo of your choosing