Alan Agius
3c41e74fdd
fix(localize): validate locale in getOutputPathFn to prevent path traversal
...
The `localize-translate` CLI tool uses the `locale` field from translation files to expand the `{{LOCALE}}` placeholder in the output directory. It failed to sanitize `locale` input, allowing malicious translations to write files outside of the configured output directory.
This change mitigates this issue by combining.
Closes #67906
(cherry picked from commit 7871093822 )
2026-03-30 12:15:31 +02:00
Angular Robot
11767cabe4
build: update Jasmine to 6.0.0
...
Jasmine enables `forbidDuplicateNames: true` by default. So we also need to desambiguate duplicate spec names.
2026-02-09 12:15:57 -08:00
Angular Robot
15c71fba43
build: update all non-major dependencies
...
See associated pull request for more information.
2026-02-06 09:44:52 -08:00
Charles Lyding
1c3b1cf18d
fix(localize): add support for unit-test builder in ng-add schematic
...
This commit updates the @angular/localize ng-add schematic to support
the @angular/build:unit-test builder. It ensures that @angular/localize
is added to the types array in the TypeScript configuration file
associated with the unit-test target. If no tsConfig is specified in
the target options, it defaults to tsconfig.spec.json in the project root.
2026-01-29 12:17:15 -08:00
Kristiyan Kostadinov
d9c980a958
build: initial test of TypeScript 6
...
Resolves some initial test failures after updating to TypeScript 6.
2026-01-15 13:41:01 -08:00
Angular Robot
ebc52ff434
build: update all non-major dependencies
...
See associated pull request for more information.
2026-01-15 10:52:48 -08:00
Matthieu Riegler
6270bba056
ci: reformat files
...
This is after we've slightly changed a rule in #66056
2025-12-16 14:44:19 -08:00
Alan Agius
2a5c6919d0
build: remove API doc generation for localize/init and add mnemonic to API rendering rule.
...
The removed target was not used and was generating an empty output which causes `java.io.IOException: mandatory output packages/localize/init/localize_docs_html was not created`
2025-12-15 11:41:43 -08:00
Jessica Janiuk
37092d00b7
Revert "refactor(compiler-cli): remove deep imports from compiler-cli ( #64732 )"
...
This reverts commit 05938c1054 .
2025-11-06 13:09:01 -08:00
Matthieu Riegler
05938c1054
refactor(compiler-cli): remove deep imports from compiler-cli ( #64732 )
...
Accessed symbols are grouped into dedicated `private` entries
PR Close #64732
2025-11-06 20:01:26 +00:00
Alan Agius
26fed34e0e
build: format md files
...
This commit configures prettier to format markdown files.
2025-11-06 10:03:05 -08:00
Angular Robot
1acc0bcef5
build: update all non-major dependencies to v7.28.5
...
See associated pull request for more information.
2025-10-24 18:47:48 +02:00
Angular Robot
7569da13b7
build: update all non-major dependencies ( #63661 )
...
See associated pull request for more information.
Closes #63504 as a pr takeover
PR Close #63661
2025-09-10 07:11:54 -07:00
Joey Perrott
2fcafb65c5
build: rename defaults2.bzl to defaults.bzl ( #63383 )
...
Use defaults.bzl for the common macros
PR Close #63383
2025-08-25 15:45:01 -07:00
Joey Perrott
3df1dccebe
refactor: various build and import specificer fixes for strict deps ( #63323 )
...
Change direct deps in bazel targets and import specifiers within files to maintain strict deps requirements ahead of enabling strict deps tests in the repo
PR Close #63323
2025-08-22 14:45:00 -07:00
Angular Robot
d733c69ce9
build: update all non-major dependencies ( #62935 )
...
See associated pull request for more information.
PR Close #62935
2025-08-14 22:09:29 +02:00
Joey Perrott
c4dcfdf644
build: update to the latest version of devinfra and rename npm2 workspace ( #63093 )
...
Rename the npm2 workspace to npm and use the latest version of devinfra which drops rules_nodejs
PR Close #63093
2025-08-11 10:35:32 -07:00
Joey Perrott
fa8d8b8396
build: migrate all npm packages to use new rules_js based npm_package rule ( #62954 )
...
Use a common rule for all npm_packages
PR Close #62954
2025-08-05 19:08:45 +00:00
Joey Perrott
cbc258eec8
build: remove ts_project_interop infrastructure ( #62908 )
...
Remove the interop macros and final usages
PR Close #62908
2025-07-31 09:12:58 +00:00
Joey Perrott
49b7729e88
build: remove usages of rules_nodejs ( #62885 )
...
Remove rules_nodejs usages with direct migrations to rule_js alternatives
PR Close #62885
2025-07-30 08:51:27 +00:00
Joey Perrott
29195f1710
build: use ts_project based extract_types ( #62875 )
...
Use the extract_types that pulls from ts_project deps
PR Close #62875
2025-07-29 17:14:26 +00:00
Joey Perrott
793ff35602
build: move http_server and generate_api_docs into defaults2.bzl ( #62878 )
...
Move http_server and generate_api_docs into defaults2.bzl as they are rules_js compliant
PR Close #62878
2025-07-29 16:53:54 +00:00
Joey Perrott
caee6ff8e7
build: remove all usages of @bazel/runfiles ( #62804 )
...
Remove usages of @bazel/runfiles throughout the repository
PR Close #62804
2025-07-25 10:04:55 +02:00
Joey Perrott
8bf97d1370
build: remove all usages of the interop_deps attr for ts_project and ng_project ( #62732 )
...
Remove all of the usages of interop_deps as attributes in the repo
PR Close #62732
2025-07-21 13:03:09 -04:00
Joey Perrott
23d58777b4
build: migrate to new toolchain usage for api goldens ( #62688 )
...
Migrate api golden usage to be based on rules_js toolchain implementation
PR Close #62688
2025-07-17 18:13:42 -04:00
Joey Perrott
15bb25805f
build: use esbuild from aspect rules ( #62568 )
...
Use the esbuild ruleset from aspect rules instead of via @bazel/esbuild
PR Close #62568
2025-07-10 13:45:15 -07:00
Joey Perrott
b2714243d8
build: use tsc from @npm2// instead of @npm// ( #62558 )
...
Use tsc from the new node_modules layout
PR Close #62558
2025-07-10 10:25:36 -07:00
Joey Perrott
49813c5d85
build: migrate esbuild usages to aspect_rules_esbuild esbuild rule ( #62529 )
...
Migrate more usages of esbuild to new toolchain
PR Close #62529
2025-07-09 12:41:27 -07:00
Paul Gschwendtner
bd6d043767
refactor(compiler-cli): ensure mock file system can be loaded in the browser ( #62493 )
...
The mock file system currently relies on some NodeJS logic. This blocks
the convenient use of the mock file system in the browser. The file
system is useful for creating tests to verify e.g. that our transforms
can work in the browser.
PR Close #62493
2025-07-07 12:59:25 +02:00
Angular Robot
d0b7439313
build: update all non-major dependencies ( #62419 )
...
See associated pull request for more information.
PR Close #62419
2025-07-02 14:20:48 +00:00
Angular Robot
df1a61fea2
build: update all non-major dependencies ( #62323 )
...
See associated pull request for more information.
Closes #62317 as a pr takeover
PR Close #62323
2025-06-27 08:35:22 +00:00
Kristiyan Kostadinov
223279eaf5
refactor(compiler): remove TranslationParseError ( #62160 )
...
Replaces the `TranslationParseError` with `ParseError` since it wasn't adding much on top of `ParseError`.
PR Close #62160
2025-06-23 14:25:28 +02:00
Joey Perrott
557ac51c32
build: migrate to using new jasmine_test ( #62131 )
...
Migrate additional targets to jasmine_test
PR Close #62131
2025-06-19 10:06:27 +02:00
Joey Perrott
3a0cfd544d
build: migrate to using new jasmine_test ( #62086 )
...
Use the new jasmine_test based on rules_js instead of jasmine_node_test from rules_nodejs
PR Close #62086
2025-06-18 08:27:26 +02:00
Matthieu Riegler
2e3925a65c
refactor(localize): add tripleslash type of Application builder ( #62037 )
...
Prior to this change, the triple slash directive was only added on the angular-devkit application builder.
Fixes #61968
PR Close #62037
2025-06-15 12:39:36 +02:00
Angular Robot
ab5b7df073
build: update all non-major dependencies ( #61700 )
...
See associated pull request for more information.
PR Close #61700
2025-06-05 10:14:17 +02:00
Paul Gschwendtner
7f1c2b758e
build: migrate packages/localize/schematics to ts_project ( #61843 )
...
Migrates `packages/localize/schematics` to `ts_project`.
PR Close #61843
2025-06-04 09:13:41 +00:00
Paul Gschwendtner
d081ef9b06
build: replace all ng_package with new rule from rules_angular ( #61843 )
...
Replaces all `ng_package` rule with the new rule from `rules_angular`.
PR Close #61843
2025-06-04 09:13:41 +00:00
Angular Robot
667a600607
build: update dependency yargs to v18 ( #61767 )
...
See associated pull request for more information.
PR Close #61767
2025-06-03 07:34:08 -04:00
Paul Gschwendtner
9d7768ccd6
build: rework benchmarks and examples in modules/ to new optimization rule ( #61566 )
...
We are dropping the custom ESBuild and Terser pipeline from dev-infra
and instead leverage the Angular CLI directly. This commit adjusts
the benchmarks to use this new rule.
PR Close #61566
2025-05-29 14:39:11 -04:00
Alan Agius
67a0576598
build: exclude esbuild metadata files from distributable packages ( #61636 )
...
Prevents esbuild generated metadata files from being included in build artifacts. This reduces package size and avoids shipping unnecessary internal build data.
PR Close #61636
2025-05-26 08:57:41 +00:00
Joey Perrott
b478a43804
build: migrate localize package to use rules_js ( #61613 )
...
Use ts_project to build localize package
PR Close #61613
2025-05-26 08:53:55 +00:00
Alan Agius
6899b27762
build: update all esbuild target to node20 ( #61606 )
...
This is the min supported node.js version
PR Close #61606
2025-05-22 13:02:03 -07:00
Alan Agius
8f65223bd8
fix(core): update min Node.js support to 20.19, 22.12, and 24.0 ( #61499 )
...
This is to match the versions of the Angular CLI.
See: https://github.com/angular/angular-cli/pull/30349
PR Close #61499
2025-05-20 14:15:13 +00:00
Angular Robot
d59ed604b5
build: update all non-major dependencies ( #61168 )
...
See associated pull request for more information.
PR Close #61168
2025-05-16 09:33:25 +00:00
Miles Malerba
c0e9fc103f
docs: rename @nodoc to @docs-private ( #61194 )
...
This aligns with how angular/components marks their hidden APIs.
`@nodoc` has been broken since the switch to adev, this change should
properly hide the APIs again.
PR Close #61194
2025-05-09 10:23:00 -07:00
Paul Gschwendtner
032b802f54
build: remove irrelevant madge circular deps tests ( #61156 )
...
We don't need this tooling anymore because we are already validating
that there are no circular dependencies via the `ng-dev` tooling that
checks `.ts` files directly.
Also these tests never actually failed to my knowledge.
PR Close #61156
2025-05-07 11:28:59 -07:00
Alan Agius
d5c6f2c4de
refactor: add Node.js 24 as supported version ( #61142 )
...
Node.js 24 has been released https://nodejs.org/en/about/previous-releases
Closes : #61140
PR Close #61142
2025-05-06 13:38:25 -07:00
Kristiyan Kostadinov
3a6e45f965
refactor(compiler): integrate new nodes into visitors ( #60724 )
...
Integrates the `Component` and `Directive` nodes into the various visitors.
PR Close #60724
2025-04-04 11:28:47 -07:00
Alan Agius
fe9b79b615
feat(core): update Node.js version support ( #60545 )
...
Node.js v18 will reach End-of-Life on April 30, 2025, and will no longer be supported in Angular v20.
Node.js Release Schedule: https://github.com/nodejs/release#release-schedule
BREAKING CHANGE:
- Angular no longer supports Node.js v18.
- Node.js versions 22.0 to 22.10 are also no longer supported.
Before upgrading to Angular v20, ensure the Node.js version is at least 20.11.1.
For the full list of supported versions, visit: https://angular.dev/reference/versions
PR Close #60545
2025-03-26 20:42:16 -07:00