![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.
@adguard/diff-builder
Advanced tools
A tool for generating differential updates for filter lists.
yarn add @adguard/diff-builder
diff-builder build [-c] [-d <seconds>] [-r <resolution>] [-v] -n <name> -t <expirationPeriod> <old_filter> <new_filter> <path_to_patches>
Where:
<old_filter>
— the relative path to the old filter.<new_filter>
— the relative path to the new filter.<path_to_patches>
— the relative path to the directory with patches.-n <name>
or --name=<name>
— name of the patch file, an arbitrary string to identify the patch.
Must be a string of length 1-64 with no spaces or other special characters.-r <timestampResolution>
or --resolution=<timestampResolution>
— is an optional flag,
that specifies the resolution for both expirationPeriod
and epochTimestamp
(timestamp when the patch was generated).
Possible values:
h
— hours (used if resolution
is not specified)m
— minutess
— seconds-t <expirationPeriod>
or --time=<expirationPeriod>
— expiration time for the diff update
(the unit depends on resolution
parameter).-d <seconds>
or --delete-older-than-sec=<seconds>
— an optional parameter,
this time in seconds will be used when scanning the <path_to_patches>
folder to remove patches
whose mtime
is older than the specified time. By default, it will be 604800
(7 days).-v
or --verbose
— verbose mode.-c
or --checksum
— an optional flag, indicating whether it should calculate the SHA sum for the filter
and add it to the diff
directive with the filter name and the number of changed lines,
following this format: diff name:[name] checksum:[checksum] lines:[lines]
:
name
— the name of the corresponding filter list.
This key-value pair is optional — it will be included only if there is a Diff-Name
tag in the <old_filter>
.checksum
— the expected SHA1 checksum of the file after the patch is applied.
This is used to validate the patch.lines
— the number of lines that follow, making up the RCS diff block.
Note that lines
are counted using the same algorithm as used by wc -l
, essentially counting \n
.const { DiffBuilder } = require('@adguard/diff-builder');
const { DiffUpdater } = require('@adguard/diff-builder/diff-updater');
await DiffBuilder.buildDiff({
oldFilterPath,
newFilterPath,
patchesPath,
name,
time,
resolution,
verbose: true,
});
const updatedFilter = await DiffUpdater.applyPatch({
filterUrl,
filterContent,
verbose: true,
});
import { DiffBuilder } from '@adguard/diff-builder/es';
import { DiffUpdater } from '@adguard/diff-builder/diff-updater/es';
await DiffBuilder.buildDiff({
oldFilterPath,
newFilterPath,
patchesPath,
name,
time,
resolution,
verbose: true,
});
const updatedFilter = await DiffUpdater.applyPatch({
filterUrl,
filterContent,
verbose: true,
});
[1.0.7] - 2023-12-29
FAQs
A tool for generating differential updates for filter lists.
The npm package @adguard/diff-builder receives a total of 0 weekly downloads. As such, @adguard/diff-builder popularity was classified as not popular.
We found that @adguard/diff-builder demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.