Releases: angular/universal
v12.0.0-rc.0
Features
- @nguniversal/builders: add static page generator builder using Angular SSR Clover (2066f18)
- @nguniversal/builders: add support for proxy configuration in ssr-dev-server (6ef0de8), closes #1757
- @nguniversal/common: add experimental SSR project Clover (c4b7be3)
- @nguniversal/common: add ng-add schematic (dcb1438)
- @nguniversal/common: expose common engine public api (7e8fcec)
v12.0.0-next.1
commit e0a401c
Author: Alan Agius [email protected]
Date: Wed Mar 17 20:46:49 2021 +0100
fix(@nguniversal/common): update helper scripts use production by default
commit e6124bf
Author: Alan Agius [email protected]
Date: Thu Mar 11 15:50:46 2021 +0100
feat(@nguniversal/common): update schematics to use `defaultConfiguration`
https://github.com/angular/angular-cli/pull/20194
v12.0.0-next.0
commit dbad8e9
Author: Alan Agius [email protected]
Date: Fri Feb 26 20:48:41 2021 +0100
fix(@nguniversal/common): inline critical font-face rules when using critical css inlining
When critical font rules are not inlined it will cause blinking as during first render the fallback font will be rendered.
Closes #2002
commit 9808791
Author: Alan Agius [email protected]
Date: Mon Feb 8 17:53:22 2021 +0100
fix(@nguniversal/builders): fix development mode ignored stdout message
commit fb43b82
Author: Alan Agius [email protected]
Date: Mon Feb 8 14:24:12 2021 +0100
build: update Angular versions to v11.2
commit f27be11
Author: Alan Agius [email protected]
Date: Mon Feb 8 14:26:01 2021 +0100
feat(@nguniversal/builders): add SSL support for dev-server
With this change we add SSL support to the SSR dev-server. We expose 3 new options;
- `ssl`: Turn on/off HTTPs
- `sslKey`: SSL key to use for serving HTTPS
- `sslCert`: SSL certificate to use for serving HTTPS
Closes #1633
commit 68b392a
Author: Alan Agius [email protected]
Date: Mon Feb 8 11:49:04 2021 +0100
fix(@nguniversal/builders): bundle critters in common engine.
critters is shipped with ES2015 this that we cannot extend it when we use the UMD because a downlevelled class cannot extend an ES2015 class as it will cause `cannot be invoked without 'new'`
With this change, critters will be included in the UMD bundle and downelevelled which would result in us being able to extend it.
Closes #1970
commit 0404faf
Author: Alan Agius [email protected]
Date: Mon Feb 8 09:19:54 2021 +0100
build: set minimum Node.js version to 12.13
BREAKING CHANGE:
Node.js version 10 will become EOL on 2021-04-30.
Angular CLI 12 will require Node.js 12.13+ or 14.15+. Node.js 12.13 and 14.15 are the first LTS releases for their respective majors.
v11.2.1
commit cecd5bd
Author: Alan Agius [email protected]
Date: Fri Feb 26 20:48:41 2021 +0100
fix(@nguniversal/common): inline critical font-face rules when using critical css inlining
When critical font rules are not inlined it will cause blinking as during first render the fallback font will be rendered.
Closes #2002
(cherry picked from commit dbad8e971b484df81a941884306d4a9c912f6236)
v11.2.0
commit 053e69a
Author: Keen Yee Liau [email protected]
Date: Tue Feb 16 10:59:56 2021 -0800
release: v11.2.0
commit f7802d3
Author: Alan Agius [email protected]
Date: Fri Feb 12 11:26:57 2021 +0100
build: update Angular packages to version 11.2
commit b8aac7f
Author: Alan Agius [email protected]
Date: Fri Feb 12 09:51:26 2021 +0100
build: update critters to version 0.0.7
(cherry picked from commit ca282eb4aff35f9fd958b0edb7ef4ab209943da9)
commit 5262abb
Author: Renovate Bot [email protected]
Date: Fri Feb 12 07:03:00 2021 +0000
build: update critters to version 0.0.7
(cherry picked from commit e44fcf31d8f7b9265731cf78f4218e7cfc06ec79)
commit 63babeb
Author: Renovate Bot [email protected]
Date: Mon Feb 8 18:11:33 2021 +0000
build: update to version
(cherry picked from commit 00997b2cc708a3eea3ea3a7e101f0b0091f9e694)
commit f9d1ed4
Author: Alan Agius [email protected]
Date: Mon Feb 8 20:31:24 2021 +0100
ci: disable differential loading in integration tests
(cherry picked from commit 21417718134cb7ed8fef60f740018fbf8187f2dd)
commit 2be1c3c
Author: Alan Agius [email protected]
Date: Mon Feb 8 20:13:44 2021 +0100
test(@nguniversal/common): update e2e test
(cherry picked from commit e1fa4e5c874b9c81a34896df86786cb34ec84462)
commit b990c82
Author: Alan Agius [email protected]
Date: Mon Feb 8 17:53:22 2021 +0100
fix(@nguniversal/builders): fix development mode ignored stdout message
(cherry picked from commit 9808791e3e416f2d6c5925fd1851592288a504de)
commit 7eb52ed
Author: Alan Agius [email protected]
Date: Mon Feb 8 14:24:12 2021 +0100
build: update Angular versions to v11.2
(cherry picked from commit fb43b8268ef44a6caab34561b014672a4ed559e9)
commit 03285c9
Author: Alan Agius [email protected]
Date: Mon Feb 8 11:49:04 2021 +0100
fix(@nguniversal/builders): bundle critters in common engine.
critters is shipped with ES2015 this that we cannot extend it when we use the UMD because a downlevelled class cannot extend an ES2015 class as it will cause `cannot be invoked without 'new'`
With this change, critters will be included in the UMD bundle and downelevelled which would result in us being able to extend it.
Closes #1970
(cherry picked from commit 68b392a61ec0a37148cf6b71dfb9e8e3c4171f55)
commit 92ea3e6
Author: Alan Agius [email protected]
Date: Mon Feb 8 10:25:27 2021 +0100
test(@nguniversal/builders): add E2E for critical css inlining
(cherry picked from commit d9a8a4f4757dd8252afe88b691cb4c168b045605)
commit 09207ad
Author: Alan Agius [email protected]
Date: Fri Feb 5 17:17:04 2021 +0100
fix(@nguniversal/common-engine): ReferenceError: URL is not defined
Closes #1974
commit 0d0254a
Author: Renovate Bot [email protected]
Date: Thu Feb 4 11:15:25 2021 +0000
build: update puppeteer to version 7.0.1
commit fdaef71
Author: Renovate Bot [email protected]
Date: Thu Feb 4 06:28:43 2021 +0000
build: update puppeteer to version 7.0.0
commit 7b5ed97
Author: Alan Agius [email protected]
Date: Wed Feb 3 18:26:21 2021 +0100
fix(@nguniversal/hapi-engine): fix incorrect peer dependency on hapi
Closes #1969
commit 1b60dfc
Author: Renovate Bot [email protected]
Date: Wed Feb 3 06:22:22 2021 +0000
build: update karma to version 6.1.0
commit 4655d46
Author: Alan Agius [email protected]
Date: Tue Feb 2 14:16:23 2021 +0100
build: update puppeteer to version 6
commit c8e891a
Author: Alan Agius [email protected]
Date: Tue Feb 2 14:24:34 2021 +0100
build: update to bazel 4
commit 3ddd7f9
Author: Alan Agius [email protected]
Date: Tue Feb 2 15:13:33 2021 +0100
build: delete `@nguniversal/module-map-ngfactory-loader`
commit b1f53a9
Author: Renovate Bot [email protected]
Date: Tue Feb 2 07:33:19 2021 +0000
build: update karma to version 6.0.4
commit f33ca12
Author: Renovate Bot [email protected]
Date: Mon Feb 1 09:33:07 2021 +0000
build: update to version
commit 6fd38d8
Author: Alan Agius [email protected]
Date: Thu Jan 28 16:59:33 2021 +0100
ci: add commit message validation
commit dc2f025
Author: Renovate Bot [email protected]
Date: Thu Jan 28 06:03:44 2021 +0000
build: update karma to version 6.0.3
commit 40fbcc4
Author: Renovate Bot [email protected]
Date: Tue Jan 26 19:01:08 2021 +0000
build: update karma to version 6.0.2
commit e30b693
Author: Renovate Bot [email protected]
Date: Mon Jan 25 09:51:54 2021 +0000
build: update to version
commit d807d4c
Author: Alan Agius [email protected]
Date: Fri Jan 22 19:04:35 2021 +0100
test: remove extra dependency
commit 0e5bfc1
Author: Renovate Bot [email protected]
Date: Fri Jan 22 10:31:52 2021 +0000
build: update @angular/dev-infra-private to version
commit 8bda041
Author: Alan Agius [email protected]
Date: Fri Jan 22 11:10:54 2021 +0100
fix(@nguniversal/aspnetcore-engine): correctly set publicPath
commit 65679da
Author: Alan Agius [email protected]
Date: Fri Jan 22 11:19:47 2021 +0100
build: setup ng-dev tooling to perform merges
commit 68fc0c0
Author: Renovate Bot [email protected]
Date: Thu Jan 21 06:38:44 2021 +0000
build: update karma to version 6.0.1
v11.1.2
commit 0b128ab (HEAD -> 11.1.x, tag: v11.1.2, upstream/11.1.x)
Author: Keen Yee Liau [email protected]
Date: Fri Feb 5 09:16:36 2021 -0800
release: v11.1.2
commit 0dd378a
Author: Alan Agius [email protected]
Date: Fri Feb 5 17:17:04 2021 +0100
fix(@nguniversal/common-engine): ReferenceError: URL is not defined
Closes #1974
commit b6fa8f5
Author: Alan Agius [email protected]
Date: Wed Feb 3 18:26:21 2021 +0100
fix(@nguniversal/hapi-engine): fix incorrect peer dependency on hapi
Closes #1969
(cherry picked from commit 7b5ed9722f2919519b5a9bfe75f3c6b2e5a97317)
commit 621b5b5
Author: Alan Agius [email protected]
Date: Tue Feb 2 14:24:34 2021 +0100
build: update to bazel 4
(cherry picked from commit c8e891a5edb5ce8f3a157689966ff6b74d4f4cd8)
v11.1.1
commit 936248e (HEAD -> 11.1.x, tag: v11.1.1, upstream/11.1.x)
Author: Keen Yee Liau [email protected]
Date: Thu Jan 28 11:32:52 2021 -0800
release: v11.1.1
commit 3a0c38b
Author: Alan Agius [email protected]
Date: Fri Jan 22 11:10:54 2021 +0100
fix(@nguniversal/aspnetcore-engine): correctly set publicPath
(cherry picked from commit 8bda0417221d638ed8dced2e72f8b234a264d717)
v11.1.0
commit 3926698
Author: Keen Yee Liau [email protected]
Date: Wed Jan 20 15:24:21 2021 -0800
release: v11.1.0
commit 16c7c84
Author: Alan Agius [email protected]
Date: Wed Jan 13 09:49:18 2021 +0100
feat(aspnetcore-engine): support .NET Core version 3
.NET Core version 3 users use the `completeHTML` property instead of `html` to avoid the below error.
```
InvalidOperationException: Globals is not supported when prerendering via UseSpaPrerendering().
Instead, your prerendering logic should return a complete HTML page, in which you embed any information you wish to return to the client.
```
.NET Core 3 usage examples
```
export default createServerRenderer(async params => {
// Platform-server provider configuration
const setupOptions: IEngineOptions = {
appSelector: '<app-root></app-root>',
ngModule: AppServerModule,
document: params.data.originalHtml,
request: params,
providers: [
...
]
};
const { completeHTML } = await ngAspnetCoreEngine(setupOptions);
return { html: completeHTML };
});
```
commit adbab25
Author: Alan Agius [email protected]
Date: Wed Jan 13 09:39:49 2021 +0100
feat(aspnetcore-engine): fixes for delaying platform destruction
With this change we replace the aspnet-engine to use the common engine to fix a number of problems.
1) Injector has already been destroyed. Error: Injector has already been destroyed.
2) Mismatching HTML snapshots.
This does come with a drawback, that we needed to remove `moduleRef` from the `IEngineRenderResult` this however shouldn't cause any problem since this couldn't be used because the platform would have already been destroyed.
Fixes #1808
Fixes #1404
commit 0f23806
Author: Alan Agius [email protected]
Date: Fri Dec 11 09:48:01 2020 +0100
fix(builders): add missing peerDependencies to @angular-devkit/build-angular
commit b41a3fb
Author: Alan Agius [email protected]
Date: Thu Dec 10 12:55:17 2020 +0100
feat: enable inlining of critical CSS optimizations
This is another feature that we mentioned in the Eliminate Render Blocking Requests RFC (https://github.com/angular/angular-cli/issues/18730)
**Prerendering**
To enable critical css inlining for prerendering set the `inlineCritical` to true under the Browser Builder options.
Example:
```json
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": {
"styles": {
"minify": true,
"inlineCritical": true,
}
},
```
**Express Engine**
Update server.ts
```ts
server.engine('html', ngExpressEngine({
bootstrap: AppServerModule,
inlineCriticalCss: true,
}));
```
**Hapi Engine**
Update server.ts
```ts
server.route({
method: 'GET',
path: '/{path*}',
handler: (req: Request) => ngHapiEngine({
bootstrap: AppServerModule,
documentFilePath,
publicPath: distFolder,
inlineCriticalCss: true,
req,
})
});
```
Inlining of critical CSS is turned off by default. In a future versions of the Angular CLI and Universal inline critical CSS will be enabled by default.
Closes #974
commit d538993
Author: Juri [email protected]
Date: Tue Dec 1 15:23:10 2020 +0100
fix(hapi-engine): ng-add schematic
v11.1.0-next.0
commit a0187c3
Author: Keen Yee Liau [email protected]
Date: Fri Dec 11 08:37:35 2020 -0800
release: v11.1.0-next.0
commit a2e40b0
Author: Keen Yee Liau [email protected]
Date: Fri Dec 11 08:56:48 2020 -0800
build: rename target of pkg_npm from .publish to .publish.sh
https://github.com/bazelbuild/rules_nodejs/commit/bc36519086536e1576c7b0657437dccced397782
renamed the publish output of `pkg_npm` from `{name}.publish` to
`{name.publish.sh}`.
commit 0f23806
Author: Alan Agius [email protected]
Date: Fri Dec 11 09:48:01 2020 +0100
fix(builders): add missing peerDependencies to @angular-devkit/build-angular
commit b41a3fb
Author: Alan Agius [email protected]
Date: Thu Dec 10 12:55:17 2020 +0100
feat: enable inlining of critical CSS optimizations
This is another feature that we mentioned in the Eliminate Render Blocking Requests RFC (https://github.com/angular/angular-cli/issues/18730)
**Prerendering**
To enable critical css inlining for prerendering set the `inlineCritical` to true under the Browser Builder options.
Example:
```json
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": {
"styles": {
"minify": true,
"inlineCritical": true,
}
},
```
**Express Engine**
Update server.ts
```ts
server.engine('html', ngExpressEngine({
bootstrap: AppServerModule,
inlineCriticalCss: true,
}));
```
**Hapi Engine**
Update server.ts
```ts
server.route({
method: 'GET',
path: '/{path*}',
handler: (req: Request) => ngHapiEngine({
bootstrap: AppServerModule,
documentFilePath,
publicPath: distFolder,
inlineCriticalCss: true,
req,
})
});
```
Inlining of critical CSS is turned off by default. In a future versions of the Angular CLI and Universal inline critical CSS will be enabled by default.
Closes #974
commit 61409d1
Author: Alan Agius [email protected]
Date: Thu Dec 10 18:58:03 2020 +0100
ci: update remaining reference to old pr targeting system
commit 7783de3
Author: Renovate Bot [email protected]
Date: Thu Dec 10 08:50:41 2020 +0000
build: update to version
commit 6f1edba
Author: Renovate Bot [email protected]
Date: Tue Dec 8 06:06:38 2020 +0000
build: update ts-node to version 9.1.1
commit 1636b13
Author: Alan Agius [email protected]
Date: Thu Dec 10 09:08:10 2020 +0100
build: update to TypeScript 4.1.0
commit bec293d
Author: Alan Agius [email protected]
Date: Mon Dec 7 09:07:20 2020 +0100
build: update angular dependencies to v11.1 pre-release
commit d024942
Author: Renovate Bot [email protected]
Date: Thu Dec 3 08:04:56 2020 +0000
build: update ts-node to version 9.1.0
commit d538993
Author: Juri [email protected]
Date: Tue Dec 1 15:23:10 2020 +0100
fix(hapi-engine): ng-add schematic
commit d04a235
Author: Renovate Bot [email protected]
Date: Mon Nov 30 08:05:42 2020 +0000
build: update to version
commit 32c56ff
Author: Renovate Bot [email protected]
Date: Wed Nov 25 06:05:47 2020 +0000
build: update @bazel/jasmine to version 2.3.1
commit a549811
Author: Renovate Bot [email protected]
Date: Mon Nov 16 11:48:35 2020 +0000
build: update to version
commit 3fb1572
Author: Renovate Bot [email protected]
Date: Tue Nov 17 06:04:29 2020 +0000
build: update puppeteer to version 5.5.0
commit 698e72b
Author: Renovate Bot [email protected]
Date: Wed Nov 11 06:18:56 2020 +0000
build: update @bazel/jasmine to version 2.3.0
v11.0.1
commit 328e316 (HEAD -> 11.0.x, tag: v11.0.1, upstream/11.0.x)
Author: Keen Yee Liau [email protected]
Date: Thu Dec 3 16:47:38 2020 -0800
release: v11.0.1
commit f8c6191
Author: Juri [email protected]
Date: Tue Dec 1 15:23:10 2020 +0100
fix(hapi-engine): ng-add schematic
(cherry picked from commit d5389930768eefc89cfa038afd7433a2ab53899e)