![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.
glob-esm-graph
Advanced tools
Match files by glob pattern and generate their dependencies graph.
npm install glob-esm-graph
# or
yarn add glob-esm-graph
# or
pnpm install glob-esm-graph
type Options = {
/**
* The current working directory in which to search.
*/
cwd: string,
/**
* Glob patterns to match against.
*/
pattern: string | string[],
}
declare function globMatch (options: Options): string[]
Input the work dir and the glob pattern(s), returns the matched files in under dependent modules.
type DependenciesAnalysis = { module: string, dependencies: string[]}
declare function analyze(entries: string[], cwd: string): Promise<DependenciesAnalysis[]>
Input the esm format files as entries and the work dir, returns the analysis which contain the module info and their dependencies info.
type Graph = {
getNodes: () => string[],
getEdges: () => [from: string, to: string][],
getEntryNodes: () => string[],
getEndNodes: () => string[],
getPaths: () => string[][],
getCircular: () => string[][],
getSortedByDependencies: () => string[][],
}
declare function buildGraph (dependenciesAnalysis: DependenciesAnalysis[]): Graph
Input the dependencies analysis comes from
analyze
, returns the graph stats.
getPaths
doesn't contains circular pathsgetSortedByDependencies
will sort the dependencies which are related and keep the other's original order. The sorting priority accords to dependent depth in the graph.import { globMatch, analyze, buildGraph } from 'glob-esm-graph'
const cwd = `${__dirname}/foo-test`
const pattern = '**/*.module.ts'
const matched = globMatch({ cwd, pattern })
const dependenciesAnalysis = await analyze(matched, cwd)
const graph = buildGraph(dependenciesAnalysis)
FAQs
Generate ESM dependencies graph by glob-matching
The npm package glob-esm-graph receives a total of 0 weekly downloads. As such, glob-esm-graph popularity was classified as not popular.
We found that glob-esm-graph 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.