Skip to content

v19.0.0

Compare
Choose a tag to compare
@clydin clydin released this 19 Nov 16:14
· 156 commits to main since this release

19.0.0 (2024-11-19)

@angular/cli

Commit Description
feat - 201b60e1d handle string key/value pairs, e.g. --define
fix - b847d4460 recommend optional application update migration during v19 update
perf - f249e7e85 enable Node.js compile code cache when available
perf - ecc107d83 enable Node.js compile code cache when available

@schematics/angular

Commit Description
feat - a381a3db1 add option to export component as default
feat - 755f3a07f add option to setup new workspace or application as zoneless mode
feat - cfca5442e integrate withEventReplay() in provideClientHydration for new SSR apps
feat - 292a4b7c2 update app-shell and ssr schematics to adopt new Server Rendering API
fix - b1504c3bc component spec with export default
fix - 4b4e000dd don't show server routing prompt when using browser builder
fix - 4e2a5fe15 enable opt-in for new @angular/ssr feature
fix - fcf7443d6 explicitly set standalone:false
fix - 7992218a9 remove declaration and sourceMap from default tsconfig
fix - 9e6ab1bf2 use default import for express

@angular-devkit/schematics-cli

Commit Description
feat - 37693c40e add package manager option to blank schematic

@angular-devkit/architect

Commit Description
feat - 78f76485f merge object options from CLI

@angular-devkit/build-angular

Commit Description
feat - 0a4ef3026 karma-coverage w/ app builder
feat - dcbdca85c karma+esbuild+watch
feat - 54594b5ab support karma with esbuild
fix - ea5ae68da bring back style tags in browser builder
fix - 476f94f51 fix --watch regression in karma
fix - 25d928b4f fix hanging terminal when browser-sync is not installed
fix - 2ec877dd0 handle basename collisions
fix - ab6e19e1f handle main field
fix - 43e7aae22 remove double-watch in karma
fix - 1e37b5939 serve assets
fix - 9d7613db9 zone.js/testing + karma + esbuild
refactor - e40384e63 remove deprecated browserTarget
refactor - 62877bdf2 remove Protractor builder and schematics

@angular-devkit/core

Commit Description
refactor - 0d8a1006d remove deprecated fileBuffer function in favor of stringToFileBuffer

@angular/build

Commit Description
feat - b6951f448 add sass to stylePreprocessorOptions in application builder
feat - efb434136 Auto-CSP support as a part of angular.json schema
feat - 816e3cb86 enable component stylesheet hot replacement by default
feat - 3b00fc908 introduce outputMode option to the application builder
feat - 7d883a152 introduce ssr.experimentalPlatform option
feat - c48d6947e set development/production condition
feat - f63072668 utilize ssr.entry during prerendering to enable access to local API routes
feat - bbc290133 utilize ssr.entry in Vite dev-server when available
fix - 5a7a2925b add missing redirect in SSR manifest
fix - 06e5176c2 add warning when --prerendering or --app-shell are no-ops
fix - ecaf870b5 always clear dev-server error overlay on non-error result
fix - f8677f6a9 always record component style usage for HMR updates
fix - 099e477a8 avoid hashing development external component stylesheets
fix - 3602bbb77 avoid overwriting inline style bundling additional results
fix - 71534aadc check referenced files against native file paths
fix - fed31e064 correctly use dev-server hmr option to control stylesheet hot replacement
fix - b86bb080e disable dev-server websocket when live reload is disabled
fix - 7c50ba9e2 ensure index.csr.html is always generated when prerendering or SSR are enabled
fix - efb2232df ensure accurate content size in server asset metadata
fix - 18a8584ea ensure SVG template URLs are considered templates with external stylesheets
fix - 7502fee28 Exclude known --import from execArgv when spawning workers
fix - 2551df533 fully disable component style HMR in JIT mode
fix - c41529cc1 handle APP_BASE_HREF correctly in prerendered routes
fix - 87a90afd4 incomplete string escaping or encoding
fix - 1bb68ba68 move lmdb to optionalDependencies
fix - a995c8ea6 prevent prerendering of catch-all routes
fix - 1654acf0f relax constraints on external stylesheet component id
fix - 0d4558ea5 set ngServerMode during vite prebundling
fix - 55d7f01b6 simplify disabling server features with --no-server via command line
fix - cf0228b82 skip wildcard routes from being listed as prerendered routes
fix - af52fb49b synchronize import/export conditions between bundler and TypeScript
fix - 6c618d495 update logic to support both internal and external SSR middlewares
fix - bfa8fec9b use named export reqHandler for server.ts request handling
fix - c8e1521a2 workaround Vite CSS ShadowDOM hot replacement
refactor - d6a34034d remove automatic addition of @angular/localize/init polyfill and related warnings

@angular/ssr

Commit Description
feat - 92209dd2e add createRequestHandler and createNodeRequestHandler utilities
feat - 41fb2ed86 Add getHeaders Method to AngularAppEngine and AngularNodeAppEngine for handling pages static headers
feat - f346ee8a8 add isMainModule function
feat - d66aaa3ca add server routing configuration API
feat - bca568389 dynamic route resolution using Angular router
feat - 30c25bf68 export AngularAppEngine as public API
feat - 455b5700c expose writeResponseToNodeResponse and createWebRequestFromNodeRequest in public API
feat - 9692a9054 improve handling of aborted requests in AngularServerApp
feat - 576ff604c introduce AngularNodeAppEngine API for Node.js integration
feat - 3c9697a8c introduce new hybrid rendering API
feat - 4b09887a9 move CommonEngine API to /node entry-point
fix - d43180af5 add missing peer dependency on @angular/platform-server
fix - 74b3e2d51 add validation to prevent use of provideServerRoutesConfig in browser context
fix - 2640bf7a6 correct route extraction and error handling
fix - 44077f54e designate package as side-effect free
fix - df4e1d360 enable serving of prerendered pages in the App Engine
fix - 0793c78cf ensure wildcard RenderMode is applied when no Angular routes are defined
fix - 65b6e75a5 export RESPONSE_INIT, REQUEST, and REQUEST_CONTEXT tokens
fix - 4ecf63a77 export PrerenderFallback
fix - 50df63196 improve handling of route mismatches between Angular server routes and Angular router
fix - 3cf7a5223 initialize the DI tokens with null to avoid requiring them to be set to optional
fix - 85df4011b resolve bootstrap is not a function error
fix - e9c9e4995 resolve circular dependency issue from main.server.js reference in manifest
fix - 64c52521d show error when multiple routes are set with RenderMode.AppShell
fix - 280ebbda4 support for HTTP/2 request/response handling
fix - fb05e7f0a use wildcard server route configuration on the '/' route when the app router is empty
perf - 12ff37adb cache generated inline CSS for HTML
perf - 1d70e3b46 cache resolved entry-points
perf - f460b91d4 integrate ETags for prerendered pages
perf - e52ae7f6f prevent potential stampede in entry-points cache

Breaking Changes

@schematics/angular

  • The app-shell schematic is no longer compatible with Webpack-based builders.

@angular-devkit/build-angular

@angular-devkit/core

  • The deprecated fileBuffer function is no longer available. Update your code to use stringToFileBuffer instead to maintain compatibility.

    Note: that this change does not affect application developers.

@angular/build

  • The @angular/localize/init polyfill will no longer be added automatically to projects. To prevent runtime issues, ensure that this polyfill is manually included in the "polyfills" section of your "angular.json" file if your application relies on Angular localization features.

@angular/ssr

  • The CommonEngine API now needs to be imported from @angular/ssr/node.

    Before

    import { CommonEngine } from '@angular/ssr';

    After

    import { CommonEngine } from '@angular/ssr/node';