![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.
@pioug/ng-dependencies
Advanced tools
> Analyze javascript code using [esprima](https://github.com/ariya/esprima) and return a list of objects representing the module dependencies in the code.
Analyze javascript code using esprima and return a list of objects representing the module dependencies in the code.
This is based on gulp-angular-filesort. I extracted the module dependency code because I need to find a way to dynamically generate a root angular module that depends on a list of angular modules as Bower packages.
var fs = require('fs');
var ngDeps = require('ng-dependencies');
var deps = ngDeps(fs.readFileSync('./someNgModule.js'));
console.log(deps);
If the content of ./someNgModle.js
is as following:
angular.module('test', ['one']).run(function () {
// run some logic
});
angular.module('another', []);
angular.module('another').Controller('Ctrl', ['$scope', function ($scope) {
// some controller logic
}]);
angular.module('useThis').run(function () {
// ...
});
This will output:
{
dependencies: ['one', 'useThis'],
modules: {
'test': ['one'],
'another': []
}
}
If multiple declarations of the same module is encountered, (according to Angular Doc), the later declaration will overwrite any existing module that is declared with the same module name.
For example, the following content:
angular.module('test', ['one']);
angular.module('test', ['another']);
will output:
{
dependencies: ['another'],
modules: {
'test': ['another']
}
}
2.0.0 - use Babel parser; handle rest and spread properties
1.0.1 - update Esprima; handle JSX syntax
0.1.1 - fixing repo url in package.json
and removing unnecessary dependency.
0.1.0 - simplified output format; added detection for angular.js itself.
FAQs
> Analyze javascript code using [esprima](https://github.com/ariya/esprima) and return a list of objects representing the module dependencies in the code.
The npm package @pioug/ng-dependencies receives a total of 1 weekly downloads. As such, @pioug/ng-dependencies popularity was classified as not popular.
We found that @pioug/ng-dependencies 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.