Update dependency @nguniversal/express-engine to ^11.1.0 - autoclosed #69

Closed
renovate-bot wants to merge 1 commit from renovate/nguniversal-express-engine-11.x into develop
Collaborator

This PR contains the following updates:

Package Type Update Change
@nguniversal/express-engine dependencies minor ^11.0.1 -> ^11.1.0

Release Notes

angular/universal

v11.1.0

Compare Source

commit 3926698
Author: Keen Yee Liau mailto:kyliau@google.com
Date: Wed Jan 20 15:24:21 2021 -0800

release: v11.1.0

commit 16c7c84
Author: Alan Agius mailto:alan.agius4@​gmail.com
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 mailto:alan.agius4@&#8203;gmail.com
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 #&#8203;1808
Fixes #&#8203;1404

commit 0f23806
Author: Alan Agius mailto:alan.agius4@&#8203;gmail.com
Date: Fri Dec 11 09:48:01 2020 +0100

fix(builders): add missing peerDependencies to @&#8203;angular-devkit/build-angular

commit b41a3fb
Author: Alan Agius mailto:alan.agius4@&#8203;gmail.com
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 #&#8203;974

commit d538993
Author: Juri mailto:juri.strumpflohner@gmail.com
Date: Tue Dec 1 15:23:10 2020 +0100

fix(hapi-engine): ng-add schematic

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@nguniversal/express-engine](https://github.com/angular/universal) | dependencies | minor | [`^11.0.1` -> `^11.1.0`](https://renovatebot.com/diffs/npm/@nguniversal%2fexpress-engine/11.0.1/11.1.0) | --- ### Release Notes <details> <summary>angular/universal</summary> ### [`v11.1.0`](https://github.com/angular/universal/releases/v11.1.0) [Compare Source](https://github.com/angular/universal/compare/v11.0.1...v11.1.0) commit [`3926698`](https://github.com/angular/universal/commit/39266987ae1d66ff193514ed795d0cb4e307d61b) Author: Keen Yee Liau <mailto:kyliau@google.com> Date: Wed Jan 20 15:24:21 2021 -0800 release: v11.1.0 commit [`16c7c84`](https://github.com/angular/universal/commit/16c7c84b7c370ba64999cf50a7bc5a194f95584b) Author: Alan Agius <mailto:alan.agius4@&#8203;gmail.com> 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`](https://github.com/angular/universal/commit/adbab25698af7ce6858de1b2f62aae589b4dee73) Author: Alan Agius <mailto:alan.agius4@&#8203;gmail.com> 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 #&#8203;1808 Fixes #&#8203;1404 commit [`0f23806`](https://github.com/angular/universal/commit/0f2380616709ea7b014b6c5e08c8ed1dcf77d9c4) Author: Alan Agius <mailto:alan.agius4@&#8203;gmail.com> Date: Fri Dec 11 09:48:01 2020 +0100 fix(builders): add missing peerDependencies to @&#8203;angular-devkit/build-angular commit [`b41a3fb`](https://github.com/angular/universal/commit/b41a3fbbfb6a4aa0a1fb0d1f111d5fb1b33269b8) Author: Alan Agius <mailto:alan.agius4@&#8203;gmail.com> 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 #&#8203;974 commit [`d538993`](https://github.com/angular/universal/commit/d5389930768eefc89cfa038afd7433a2ab53899e) Author: Juri <mailto:juri.strumpflohner@gmail.com> Date: Tue Dec 1 15:23:10 2020 +0100 fix(hapi-engine): ng-add schematic </details> --- ### Renovate configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate-bot added 1 commit 2021-01-20 23:47:39 +00:00
Update dependency @nguniversal/express-engine to ^11.1.0
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
dbc49e4279
samuel-p was assigned by renovate-bot 2021-01-20 23:47:39 +00:00
renovate-bot changed title from Update dependency @nguniversal/express-engine to ^11.1.0 to Update dependency @nguniversal/express-engine to ^11.1.0 - autoclosed 2021-01-25 21:03:44 +00:00
renovate-bot closed this pull request 2021-01-25 21:03:44 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: samuel-p/universal-statuspage#69
No description provided.