0.6.8 • Published 1 year ago

@arethetypeswrong/history v0.6.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@arethetypeswrong/history

This package provides @arethetypeswrong/core analysis for every npm-high-impact package at the latest version available on the first of every month since January 2022.

The analysis is saved as a 1.2 GB newline-delimited JSON file, cached in Azure Storage for incremental updates going forward, compressed down to 34 MB for shipping to npm, and accessible in Node as a JavaScript object via a small programmatic interface.

Usage

import { getAllDataAsObject, getVersionsByDate } from "@arethetypeswrong/history";

const dates = await getVersionsByDate();
const data = await getAllDataAsObject();

function getPackagesWithFalseCJSProblems(date) {
  const packages = dates[date];
  const result = [];
  for (const { packageName, packageVersion } of packages) {
    const analysis = data[`${packageName}@${packageVersion}`];
    // `analysis` is undefined if the package doesn't contain types
    if (analysis?.problems.some((p) => p.kind === "FalseESM")) {
      result.push(analysis);
    }
  }
  return result;
}

const mayFalseESMProblems = getPackagesWithFalseCJSProblems("2023-05-01").length;
const juneFalseESMProblems = getPackagesWithFalseCJSProblems("2023-06-01").length;
console.log({ mayFalseESMProblems, juneFalseESMProblems });
0.6.8

1 year ago

0.6.7

1 year ago

0.6.6

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago