@angular/ssr 19.0.3 → 19.1.0-next.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "19.0.3",
3
+ "version": "19.1.0-next.0",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/angular/angular-cli",
@@ -16,18 +16,23 @@
16
16
  "tslib": "^2.3.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": "^19.0.0",
20
- "@angular/core": "^19.0.0",
21
- "@angular/platform-server": "^19.0.0",
22
- "@angular/router": "^19.0.0"
19
+ "@angular/common": "^19.0.0 || ^19.1.0-next.0",
20
+ "@angular/core": "^19.0.0 || ^19.1.0-next.0",
21
+ "@angular/platform-server": "^19.0.0 || ^19.1.0-next.0",
22
+ "@angular/router": "^19.0.0 || ^19.1.0-next.0"
23
+ },
24
+ "peerDependenciesMeta": {
25
+ "@angular/platform-server": {
26
+ "optional": true
27
+ }
23
28
  },
24
29
  "devDependencies": {
25
- "@angular/common": "19.0.0",
26
- "@angular/compiler": "19.0.0",
27
- "@angular/core": "19.0.0",
28
- "@angular/platform-browser": "19.0.0",
29
- "@angular/platform-server": "19.0.0",
30
- "@angular/router": "19.0.0",
30
+ "@angular/common": "19.1.0-next.0",
31
+ "@angular/compiler": "19.1.0-next.0",
32
+ "@angular/core": "19.1.0-next.0",
33
+ "@angular/platform-browser": "19.1.0-next.0",
34
+ "@angular/platform-server": "19.1.0-next.0",
35
+ "@angular/router": "19.1.0-next.0",
31
36
  "@bazel/runfiles": "^5.8.1"
32
37
  },
33
38
  "sideEffects": false,
@@ -2003,26 +2003,39 @@ var hasRequiredNonSecure;
2003
2003
  function requireNonSecure () {
2004
2004
  if (hasRequiredNonSecure) return nonSecure;
2005
2005
  hasRequiredNonSecure = 1;
2006
+ // This alphabet uses `A-Za-z0-9_-` symbols.
2007
+ // The order of characters is optimized for better gzip and brotli compression.
2008
+ // References to the same file (works both for gzip and brotli):
2009
+ // `'use`, `andom`, and `rict'`
2010
+ // References to the brotli default dictionary:
2011
+ // `-26T`, `1983`, `40px`, `75px`, `bush`, `jack`, `mind`, `very`, and `wolf`
2006
2012
  let urlAlphabet =
2007
2013
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
2014
+
2008
2015
  let customAlphabet = (alphabet, defaultSize = 21) => {
2009
2016
  return (size = defaultSize) => {
2010
2017
  let id = '';
2011
- let i = size;
2018
+ // A compact alternative for `for (var i = 0; i < step; i++)`.
2019
+ let i = size | 0;
2012
2020
  while (i--) {
2021
+ // `| 0` is more compact and faster than `Math.floor()`.
2013
2022
  id += alphabet[(Math.random() * alphabet.length) | 0];
2014
2023
  }
2015
2024
  return id
2016
2025
  }
2017
2026
  };
2027
+
2018
2028
  let nanoid = (size = 21) => {
2019
2029
  let id = '';
2020
- let i = size;
2030
+ // A compact alternative for `for (var i = 0; i < step; i++)`.
2031
+ let i = size | 0;
2021
2032
  while (i--) {
2033
+ // `| 0` is more compact and faster than `Math.floor()`.
2022
2034
  id += urlAlphabet[(Math.random() * 64) | 0];
2023
2035
  }
2024
2036
  return id
2025
2037
  };
2038
+
2026
2039
  nonSecure = { nanoid, customAlphabet };
2027
2040
  return nonSecure;
2028
2041
  }