Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@schematics/update
Advanced tools
@schematics/update is a package used for updating dependencies and managing migrations in Angular projects. It provides a set of tools to automate the process of updating dependencies and applying necessary code changes.
Update Dependencies
This feature allows you to update the version of a dependency in the package.json file and install the updated packages.
const { NodePackageInstallTask } = require('@angular-devkit/schematics/tasks');
const { updateJsonFile } = require('@schematics/update');
function updateDependencies() {
return (tree, context) => {
updateJsonFile(tree, 'package.json', json => {
json.dependencies['some-package'] = '^2.0.0';
});
context.addTask(new NodePackageInstallTask());
return tree;
};
}
Apply Migrations
This feature allows you to apply code migrations to your project, ensuring that your codebase is compatible with the updated dependencies.
const { chain } = require('@angular-devkit/schematics');
const { runSchematic } = require('@schematics/update');
function applyMigrations() {
return chain([
runSchematic('migration-schematic', {}),
]);
}
npm-check-updates is a utility that automatically adjusts a package.json with the latest version of all dependencies. It is similar to @schematics/update in that it helps manage dependency updates, but it does not provide migration capabilities.
Renovate is a tool for automating dependency updates. It creates pull requests for updates and can be configured to handle complex update scenarios. Unlike @schematics/update, Renovate focuses on automating the entire update process, including CI/CD integration.
Greenkeeper is a service that keeps your npm dependencies up to date. It monitors your dependencies and creates pull requests when updates are available. Similar to @schematics/update, it helps manage dependency updates but does not handle migrations.
@schematics/update
This package is deprecated and will not be updated beyond Angular v11 (0.1102.x
). It should no
longer be used.
FAQs
Schematics specific to updating packages
The npm package @schematics/update receives a total of 245,073 weekly downloads. As such, @schematics/update popularity was classified as popular.
We found that @schematics/update demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.