@angular/cli 19.0.0-next.9 → 19.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -409,7 +409,6 @@
409
409
  "@angular-devkit/build-angular:prerender",
410
410
  "@angular-devkit/build-angular:jest",
411
411
  "@angular-devkit/build-angular:web-test-runner",
412
- "@angular-devkit/build-angular:protractor",
413
412
  "@angular-devkit/build-angular:server",
414
413
  "@angular-devkit/build-angular:ssr-dev-server"
415
414
  ]
@@ -699,28 +698,6 @@
699
698
  }
700
699
  }
701
700
  },
702
- {
703
- "type": "object",
704
- "additionalProperties": false,
705
- "properties": {
706
- "builder": {
707
- "const": "@angular-devkit/build-angular:protractor"
708
- },
709
- "defaultConfiguration": {
710
- "type": "string",
711
- "description": "A default named configuration to use when a target configuration is not provided."
712
- },
713
- "options": {
714
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersProtractorSchema"
715
- },
716
- "configurations": {
717
- "type": "object",
718
- "additionalProperties": {
719
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersProtractorSchema"
720
- }
721
- }
722
- }
723
- },
724
701
  {
725
702
  "type": "object",
726
703
  "additionalProperties": false,
@@ -929,6 +906,15 @@
929
906
  "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
930
907
  "type": "boolean",
931
908
  "default": false
909
+ },
910
+ "serverRouting": {
911
+ "description": "Creates a server application using the Server Routing and App Engine APIs (Developer Preview).",
912
+ "type": "boolean"
913
+ },
914
+ "experimentalZoneless": {
915
+ "description": "Create an application that does not utilize zone.js.",
916
+ "type": "boolean",
917
+ "default": false
932
918
  }
933
919
  }
934
920
  },
@@ -1656,6 +1642,15 @@
1656
1642
  "ssr": {
1657
1643
  "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
1658
1644
  "type": "boolean"
1645
+ },
1646
+ "serverRouting": {
1647
+ "description": "Creates a server application using the Server Routing and App Engine APIs (Developer Preview).",
1648
+ "type": "boolean"
1649
+ },
1650
+ "experimentalZoneless": {
1651
+ "description": "Create an application that does not utilize zone.js.",
1652
+ "type": "boolean",
1653
+ "default": false
1659
1654
  }
1660
1655
  }
1661
1656
  },
@@ -1803,7 +1798,18 @@
1803
1798
  },
1804
1799
  "server": {
1805
1800
  "type": "string",
1806
- "description": "The full path for the server entry point to the application, relative to the current workspace."
1801
+ "description": "The full path for the server entry point to the application, relative to the current workspace.",
1802
+ "oneOf": [
1803
+ {
1804
+ "type": "string",
1805
+ "description": "The full path for the server entry point to the application, relative to the current workspace."
1806
+ },
1807
+ {
1808
+ "const": false,
1809
+ "type": "boolean",
1810
+ "description": "Indicates that a server entry point is not provided."
1811
+ }
1812
+ ]
1807
1813
  },
1808
1814
  "polyfills": {
1809
1815
  "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
@@ -1822,6 +1828,33 @@
1822
1828
  "type": "string",
1823
1829
  "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
1824
1830
  },
1831
+ "security": {
1832
+ "description": "Security features to protect against XSS and other common attacks",
1833
+ "type": "object",
1834
+ "additionalProperties": false,
1835
+ "properties": {
1836
+ "autoCsp": {
1837
+ "description": "Enables automatic generation of a hash-based Strict Content Security Policy (https://web.dev/articles/strict-csp#choose-hash) based on scripts in index.html. Will default to true once we are out of experimental/preview phases.",
1838
+ "default": false,
1839
+ "oneOf": [
1840
+ {
1841
+ "type": "object",
1842
+ "properties": {
1843
+ "unsafeEval": {
1844
+ "type": "boolean",
1845
+ "description": "Include the `unsafe-eval` directive (https://web.dev/articles/strict-csp#remove-eval) in the auto-CSP. Please only enable this if you are absolutely sure that you need to, as allowing calls to eval will weaken the XSS defenses provided by the auto-CSP.",
1846
+ "default": false
1847
+ }
1848
+ },
1849
+ "additionalProperties": false
1850
+ },
1851
+ {
1852
+ "type": "boolean"
1853
+ }
1854
+ ]
1855
+ }
1856
+ }
1857
+ },
1825
1858
  "scripts": {
1826
1859
  "description": "Global scripts to be included in the build.",
1827
1860
  "type": "array",
@@ -1913,6 +1946,34 @@
1913
1946
  "type": "string"
1914
1947
  },
1915
1948
  "default": []
1949
+ },
1950
+ "sass": {
1951
+ "description": "Options to pass to the sass preprocessor.",
1952
+ "type": "object",
1953
+ "properties": {
1954
+ "fatalDeprecations": {
1955
+ "description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
1956
+ "type": "array",
1957
+ "items": {
1958
+ "type": "string"
1959
+ }
1960
+ },
1961
+ "silenceDeprecations": {
1962
+ "description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
1963
+ "type": "array",
1964
+ "items": {
1965
+ "type": "string"
1966
+ }
1967
+ },
1968
+ "futureDeprecations": {
1969
+ "description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
1970
+ "type": "array",
1971
+ "items": {
1972
+ "type": "string"
1973
+ }
1974
+ }
1975
+ },
1976
+ "additionalProperties": false
1916
1977
  }
1917
1978
  },
1918
1979
  "additionalProperties": false
@@ -2289,7 +2350,6 @@
2289
2350
  },
2290
2351
  "prerender": {
2291
2352
  "description": "Prerender (SSG) pages of your application during build time.",
2292
- "default": false,
2293
2353
  "oneOf": [
2294
2354
  {
2295
2355
  "type": "boolean",
@@ -2326,6 +2386,14 @@
2326
2386
  "entry": {
2327
2387
  "type": "string",
2328
2388
  "description": "The server entry-point that when executed will spawn the web server."
2389
+ },
2390
+ "experimentalPlatform": {
2391
+ "description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules. Additionally, it is experimental, and the schematics may undergo changes in future versions.",
2392
+ "default": "node",
2393
+ "enum": [
2394
+ "node",
2395
+ "neutral"
2396
+ ]
2329
2397
  }
2330
2398
  },
2331
2399
  "additionalProperties": false
@@ -2334,8 +2402,7 @@
2334
2402
  },
2335
2403
  "appShell": {
2336
2404
  "type": "boolean",
2337
- "description": "Generates an application shell during build time.",
2338
- "default": false
2405
+ "description": "Generates an application shell during build time."
2339
2406
  },
2340
2407
  "outputMode": {
2341
2408
  "type": "string",
@@ -4611,62 +4678,6 @@
4611
4678
  }
4612
4679
  }
4613
4680
  },
4614
- "AngularDevkitBuildAngularBuildersProtractorSchema": {
4615
- "title": "Protractor Target",
4616
- "description": "Protractor target options for Build Facade.",
4617
- "type": "object",
4618
- "properties": {
4619
- "protractorConfig": {
4620
- "type": "string",
4621
- "description": "The name of the Protractor configuration file."
4622
- },
4623
- "devServerTarget": {
4624
- "type": "string",
4625
- "description": "A dev-server builder target to run tests against in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
4626
- "pattern": "^([^:\\s]+:[^:\\s]+(:[^\\s]+)?)?$"
4627
- },
4628
- "grep": {
4629
- "type": "string",
4630
- "description": "Execute specs whose names match the pattern, which is internally compiled to a RegExp."
4631
- },
4632
- "invertGrep": {
4633
- "type": "boolean",
4634
- "description": "Invert the selection specified by the 'grep' option.",
4635
- "default": false
4636
- },
4637
- "specs": {
4638
- "type": "array",
4639
- "description": "Override specs in the protractor config.",
4640
- "default": [],
4641
- "items": {
4642
- "type": "string",
4643
- "description": "Spec name."
4644
- }
4645
- },
4646
- "suite": {
4647
- "type": "string",
4648
- "description": "Override suite in the protractor config."
4649
- },
4650
- "webdriverUpdate": {
4651
- "type": "boolean",
4652
- "description": "Try to update webdriver.",
4653
- "default": true
4654
- },
4655
- "port": {
4656
- "type": "number",
4657
- "description": "The port to use to serve the application."
4658
- },
4659
- "host": {
4660
- "type": "string",
4661
- "description": "Host to listen on."
4662
- },
4663
- "baseUrl": {
4664
- "type": "string",
4665
- "description": "Base URL for protractor to connect to."
4666
- }
4667
- },
4668
- "additionalProperties": false
4669
- },
4670
4681
  "AngularDevkitBuildAngularBuildersPrerenderSchema": {
4671
4682
  "title": "Prerender Target",
4672
4683
  "type": "object",
@@ -104,6 +104,10 @@ export interface SchematicOptions {
104
104
  * Generates a new basic application definition in the "projects" subfolder of the workspace.
105
105
  */
106
106
  export interface AngularApplicationOptionsSchema {
107
+ /**
108
+ * Create an application that does not utilize zone.js.
109
+ */
110
+ experimentalZoneless?: boolean;
107
111
  /**
108
112
  * Include styles inline in the root component.ts file. Only CSS styles can be included
109
113
  * inline. Default is false, meaning that an external styles file is created and referenced
@@ -136,6 +140,11 @@ export interface AngularApplicationOptionsSchema {
136
140
  * Creates an application with routing enabled.
137
141
  */
138
142
  routing?: boolean;
143
+ /**
144
+ * Creates a server application using the Server Routing and App Engine APIs (Developer
145
+ * Preview).
146
+ */
147
+ serverRouting?: boolean;
139
148
  /**
140
149
  * Skip installing dependency packages.
141
150
  */
@@ -545,6 +554,10 @@ export interface AngularNgNewOptionsSchema {
545
554
  * The directory name to create the workspace in.
546
555
  */
547
556
  directory?: string;
557
+ /**
558
+ * Create an application that does not utilize zone.js.
559
+ */
560
+ experimentalZoneless?: boolean;
548
561
  /**
549
562
  * Include styles inline in the component TS file. By default, an external styles file is
550
563
  * created and referenced in the component TypeScript file.
@@ -579,6 +592,11 @@ export interface AngularNgNewOptionsSchema {
579
592
  * Enable routing in the initial project.
580
593
  */
581
594
  routing?: boolean;
595
+ /**
596
+ * Creates a server application using the Server Routing and App Engine APIs (Developer
597
+ * Preview).
598
+ */
599
+ serverRouting?: boolean;
582
600
  /**
583
601
  * Do not initialize a git repository.
584
602
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "19.0.0-next.9",
3
+ "version": "19.0.0-rc.0",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -25,19 +25,19 @@
25
25
  },
26
26
  "homepage": "https://github.com/angular/angular-cli",
27
27
  "dependencies": {
28
- "@angular-devkit/architect": "0.1900.0-next.9",
29
- "@angular-devkit/core": "19.0.0-next.9",
30
- "@angular-devkit/schematics": "19.0.0-next.9",
31
- "@inquirer/prompts": "6.0.1",
32
- "@listr2/prompt-adapter-inquirer": "2.0.16",
33
- "@schematics/angular": "19.0.0-next.9",
28
+ "@angular-devkit/architect": "0.1900.0-rc.0",
29
+ "@angular-devkit/core": "19.0.0-rc.0",
30
+ "@angular-devkit/schematics": "19.0.0-rc.0",
31
+ "@inquirer/prompts": "7.0.1",
32
+ "@listr2/prompt-adapter-inquirer": "2.0.17",
33
+ "@schematics/angular": "19.0.0-rc.0",
34
34
  "@yarnpkg/lockfile": "1.1.0",
35
35
  "ini": "5.0.0",
36
36
  "jsonc-parser": "3.3.1",
37
- "listr2": "8.2.4",
37
+ "listr2": "8.2.5",
38
38
  "npm-package-arg": "12.0.0",
39
39
  "npm-pick-manifest": "10.0.0",
40
- "pacote": "19.0.0",
40
+ "pacote": "20.0.0",
41
41
  "resolve": "1.22.8",
42
42
  "semver": "7.6.3",
43
43
  "symbol-observable": "4.0.0",
@@ -46,14 +46,14 @@
46
46
  "ng-update": {
47
47
  "migrations": "@schematics/angular/migrations/migration-collection.json",
48
48
  "packageGroup": {
49
- "@angular/cli": "19.0.0-next.9",
50
- "@angular/build": "19.0.0-next.9",
51
- "@angular/ssr": "19.0.0-next.9",
52
- "@angular-devkit/architect": "0.1900.0-next.9",
53
- "@angular-devkit/build-angular": "19.0.0-next.9",
54
- "@angular-devkit/build-webpack": "0.1900.0-next.9",
55
- "@angular-devkit/core": "19.0.0-next.9",
56
- "@angular-devkit/schematics": "19.0.0-next.9"
49
+ "@angular/cli": "19.0.0-rc.0",
50
+ "@angular/build": "19.0.0-rc.0",
51
+ "@angular/ssr": "19.0.0-rc.0",
52
+ "@angular-devkit/architect": "0.1900.0-rc.0",
53
+ "@angular-devkit/build-angular": "19.0.0-rc.0",
54
+ "@angular-devkit/build-webpack": "0.1900.0-rc.0",
55
+ "@angular-devkit/core": "19.0.0-rc.0",
56
+ "@angular-devkit/schematics": "19.0.0-rc.0"
57
57
  }
58
58
  },
59
59
  "packageManager": "yarn@4.5.0",
@@ -356,7 +356,7 @@ let SchematicsCommandModule = (() => {
356
356
  return 0;
357
357
  }
358
358
  getProjectName() {
359
- const { workspace, logger } = this.context;
359
+ const { workspace } = this.context;
360
360
  if (!workspace) {
361
361
  return undefined;
362
362
  }
@@ -25,5 +25,5 @@ class Version {
25
25
  }
26
26
  }
27
27
  // TODO(bazel): Convert this to use build-time version stamping after flipping the build script to use bazel
28
- // export const VERSION = new Version('19.0.0-next.9');
28
+ // export const VERSION = new Version('19.0.0-rc.0');
29
29
  exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);