Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@angular/build

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/build - npm Package Compare versions

Comparing version 18.2.3 to 18.2.4

{
"name": "@angular/build",
"version": "18.2.3",
"version": "18.2.4",
"description": "Official build system for Angular",

@@ -26,3 +26,3 @@ "keywords": [

"@ampproject/remapping": "2.3.0",
"@angular-devkit/architect": "0.1802.3",
"@angular-devkit/architect": "0.1802.4",
"@babel/core": "7.25.2",

@@ -29,0 +29,0 @@ "@babel/helper-annotate-as-pure": "7.24.7",

@@ -22,2 +22,6 @@ /**

}
interface DevServerExternalResultMetadata extends Omit<ExternalResultMetadata, 'explicit'> {
explicitBrowser: string[];
explicitServer: string[];
}
export type BuilderAction = (options: ApplicationBuilderInternalOptions, context: BuilderContext, plugins?: Plugin[]) => AsyncIterable<Result>;

@@ -30,4 +34,4 @@ export declare function serveWithVite(serverOptions: NormalizedDevServerOptions, builderName: string, builderAction: BuilderAction, context: BuilderContext, transformers?: {

}): AsyncIterableIterator<DevServerBuilderOutput>;
export declare function setupServer(serverOptions: NormalizedDevServerOptions, outputFiles: Map<string, OutputFileRecord>, assets: Map<string, string>, preserveSymlinks: boolean | undefined, externalMetadata: ExternalResultMetadata, ssr: boolean, prebundleTransformer: JavaScriptTransformer, target: string[], zoneless: boolean, prebundleLoaderExtensions: EsbuildLoaderOption | undefined, extensionMiddleware?: Connect.NextHandleFunction[], indexHtmlTransformer?: (content: string) => Promise<string>, thirdPartySourcemaps?: boolean): Promise<InlineConfig>;
export declare function setupServer(serverOptions: NormalizedDevServerOptions, outputFiles: Map<string, OutputFileRecord>, assets: Map<string, string>, preserveSymlinks: boolean | undefined, externalMetadata: DevServerExternalResultMetadata, ssr: boolean, prebundleTransformer: JavaScriptTransformer, target: string[], zoneless: boolean, prebundleLoaderExtensions: EsbuildLoaderOption | undefined, extensionMiddleware?: Connect.NextHandleFunction[], indexHtmlTransformer?: (content: string) => Promise<string>, thirdPartySourcemaps?: boolean): Promise<InlineConfig>;
type EsbuildLoaderOption = Exclude<DepOptimizationConfig['esbuildOptions'], undefined>['loader'];
export {};

@@ -110,3 +110,4 @@ "use strict";

implicitServer: [],
explicit: [],
explicitBrowser: [],
explicitServer: [],
};

@@ -191,6 +192,8 @@ // Add cleanup logic via a builder teardown.

// Empty Arrays to avoid growing unlimited with every re-build.
externalMetadata.explicit.length = 0;
externalMetadata.explicitBrowser.length = 0;
externalMetadata.explicitServer.length = 0;
externalMetadata.implicitServer.length = 0;
externalMetadata.implicitBrowser.length = 0;
externalMetadata.explicit.push(...explicit);
externalMetadata.explicitBrowser.push(...explicit);
externalMetadata.explicitServer.push(...explicit, ...nodeJsBuiltinModules);
externalMetadata.implicitServer.push(...implicitServerFiltered);

@@ -200,3 +203,4 @@ externalMetadata.implicitBrowser.push(...implicitBrowserFiltered);

// See: https://github.com/vitejs/vite/blob/0873bae0cfe0f0718ad2f5743dd34a17e4ab563d/packages/vite/src/node/optimizer/index.ts#L1203-L1239
externalMetadata.explicit.sort();
externalMetadata.explicitBrowser.sort();
externalMetadata.explicitServer.sort();
externalMetadata.implicitServer.sort();

@@ -428,3 +432,3 @@ externalMetadata.implicitBrowser.sort();

// NOTE: If Vite adds direct support for externals, this can be removed.
preTransformRequests: externalMetadata.explicit.length === 0,
preTransformRequests: externalMetadata.explicitBrowser.length === 0,
},

@@ -435,3 +439,3 @@ ssr: {

// Exclude any Node.js built in module and provided dependencies (currently build defined externals)
external: externalMetadata.explicit,
external: externalMetadata.explicitServer,
optimizeDeps: getDepOptimizationConfig({

@@ -441,3 +445,3 @@ // Only enable with caching since it causes prebundle dependencies to be cached

// Exclude any explicitly defined dependencies (currently build defined externals and node.js built-ins)
exclude: externalMetadata.explicit,
exclude: externalMetadata.explicitServer,
// Include all implict dependencies from the external packages internal option

@@ -461,3 +465,3 @@ include: externalMetadata.implicitServer,

ssr,
external: externalMetadata.explicit,
external: externalMetadata.explicitBrowser,
indexHtmlTransformer,

@@ -467,3 +471,3 @@ extensionMiddleware,

}),
(0, id_prefix_plugin_1.createRemoveIdPrefixPlugin)(externalMetadata.explicit),
(0, id_prefix_plugin_1.createRemoveIdPrefixPlugin)(externalMetadata.explicitBrowser),
],

@@ -475,3 +479,3 @@ // Browser only optimizeDeps. (This does not run for SSR dependencies).

// Exclude any explicitly defined dependencies (currently build defined externals)
exclude: externalMetadata.explicit,
exclude: externalMetadata.explicitBrowser,
// Include all implict dependencies from the external packages internal option

@@ -478,0 +482,0 @@ include: externalMetadata.implicitBrowser,

@@ -13,3 +13,3 @@ "use strict";

/** Version placeholder is replaced during the build process with actual package version */
const VERSION = '18.2.3';
const VERSION = '18.2.4';
function hasCacheMetadata(value) {

@@ -16,0 +16,0 @@ return (!!value &&