no-mistakes 0.16.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
package/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import type {
5
5
  DependencyResult,
6
6
  FetchesOptions,
7
7
  GraphEdge,
8
+ LockfileDiffEntry,
9
+ LockfileDiffOptions,
8
10
  PlaywrightOptions,
9
11
  PlaywrightRelatedOptions,
10
12
  ProjectOptions,
@@ -53,4 +55,5 @@ export function serverRouteEdges(options?: ProjectOptions): Promise<GraphEdge[]>
53
55
  export function serverRouteRelated(options: ProjectOptions): Promise<GraphEdge[]>;
54
56
  export function reactAnalyze(options?: ProjectOptions): Promise<ReactComponentFacts[]>;
55
57
  export function reactCheck(options?: ProjectOptions): Promise<ReactViolation[]>;
58
+ export function lockfileDiff(options: LockfileDiffOptions): Promise<LockfileDiffEntry[]>;
56
59
  export function version(): Promise<string>;
package/index.js CHANGED
@@ -114,6 +114,10 @@ async function reactCheck(options) {
114
114
  return callJson(native.reactCheckJson, options);
115
115
  }
116
116
 
117
+ async function lockfileDiff(options) {
118
+ return callJson(native.lockfileDiffJson, options);
119
+ }
120
+
117
121
  async function version() {
118
122
  return native.version();
119
123
  }
@@ -124,6 +128,7 @@ module.exports = {
124
128
  dependencies,
125
129
  dependents,
126
130
  fetches,
131
+ lockfileDiff,
127
132
  playwrightCheck,
128
133
  playwrightEdges,
129
134
  playwrightRelated,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "description": "Static codebase analysis tools for TS/JS dependencies, dependents, and symbols",
5
5
  "license": "MIT",
6
6
  "repository": {
package/test-types.d.ts CHANGED
@@ -96,3 +96,18 @@ export interface TestGraph {
96
96
  nodes: Array<{ name: string; type: "changed" | "test" | "intermediate" }>;
97
97
  edges: Array<{ from: string; to: string; via: string }>;
98
98
  }
99
+
100
+ export interface LockfileDiffOptions {
101
+ root?: string;
102
+ base: string;
103
+ head?: string;
104
+ lockfile?: string;
105
+ }
106
+
107
+ export interface LockfileDiffEntry {
108
+ lockfile: string;
109
+ manager: "npm" | "pnpm" | "yarn" | "bun";
110
+ added: string[];
111
+ removed: string[];
112
+ changed: string[];
113
+ }