![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.
@atomist/sdm-pack-api-usage-fingerprint
Advanced tools
Extension pack for API usage fingerprints
Extension pack for aspect support for fingerprinting usage of APIs
This pack contains an aspect to add API usage detection to your fingerprinting arsenal.
For example:
export const Guava19DeprecatedApiAspect = createApiUsageFingerprintAspect("guava-19-deprecated", Guava19DeprecatedApi);
The API definitions are defined in a structure like this:
export const Guava19DeprecatedApi: ApiDefinition = {
methods: [
...
classes: [
...
],
annotations: [
...
],
};
Each element in the definition will be a fully qualified signature or classname, i.e. com.google.common.collect.ImmutableList.addAll(int, java.util.Collection)
.
The fingerprint produced by the aspect will give you the exact locations of that API being used.
This aspect requires a tool to be present on your SDM's machine, in addition to a working JDK 8 or higher. This
tool can be found here.
You'll need to set the sdm.aspect.apiusage.scanner.location
variable in your client configuration file or the
API_USAGE_SCANNER_LOCATION
environment variable to the location of this JAR file.
This pack also contains a way to transform APIs in an existing codebase, for example to remove deprecations.
For example, to remove known and automatically fixable deprecations in Guava 19, you can define a transform like this:
export const Guava19DeprecationTransform: CodeTransform = async (p, papi) => {
const script = `
val transformers = listOf(
replaceMethodOnSameClass("com.google.common.base.Converter.apply(A)", "convert"),
replaceMethodOnSameClass("com.google.common.collect.Range.apply(C)", "contains"),
replaceMethodOnSameClass("com.google.common.base.CharMatcher.apply(Character)", "matches"),
replaceMethodOnSameClass("com.google.common.cache.LoadingCache.apply(K)", "getUnchecked"),
replaceMethodOnSameClass("com.google.common.hash.BloomFilter.apply(T)", "mightContain"),
replaceMethodOnSameClass("com.google.common.collect.ArrayTable.remove(Object, Object)", "erase")
)
ExecuteTransformCommand(transformers).main(args)
`;
await (await createRefactoringKotlinScriptTransform(script))(p, papi);
return p;
};
This transforms has 2 requirements to be present on the SDM machine:
Both can be installed with the instructions found here.
This transform also requires 2 base scripts to be available:
You'll need to copy these scripts to a folder and either set the configuration value sdm.aspect.deprecation.guava.basescript.dir
or the environment variable API_USAGE_TRANSFORM_SCRIPT_DIR
to this folder.
FAQs
Extension pack for API usage fingerprints
The npm package @atomist/sdm-pack-api-usage-fingerprint receives a total of 2 weekly downloads. As such, @atomist/sdm-pack-api-usage-fingerprint popularity was classified as not popular.
We found that @atomist/sdm-pack-api-usage-fingerprint 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.