Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

feat(hapi): upgrade to Hapi v17 #1015

Merged
merged 4 commits into from
Jun 10, 2018
Merged

feat(hapi): upgrade to Hapi v17 #1015

merged 4 commits into from
Jun 10, 2018

Conversation

CaerusKaru
Copy link
Member

@CaerusKaru CaerusKaru commented Jun 9, 2018

  • fix RxJS globals
  • add Hapi and Express versions to auto-stamping
  • add unit tests
  • update README with instructions

Fixes #993

@CaerusKaru CaerusKaru added action: review comp: hapi-engine target: minor target: minor This PR is targeted for the next minor release labels Jun 9, 2018
@CaerusKaru CaerusKaru requested a review from vikerman as a code owner June 9, 2018 18:23
}).then(html => reply(html))
.then(err => reply(boom.wrap(err)));
}
handler: (req: Request) => ngHapiEngine({req, bootstrap: ServerAppModule})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it have to instantiate the whole engine per request? feels like a bit of overhead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, at least for now, because the argument for ngHapiEngine is RenderOptions, which has a mandatory req. And it's not instantiation. Remember: the engine is just a function wrapper around renderPlatformServer. It still does all the caching because that's handled in a constant external to the wrapper.

@Toxicable
Copy link

Just needs a rebase

@CaerusKaru CaerusKaru added PR state: LGTM action: merge PR author is ready for this to merge action: cleanup and removed action: cleanup action: merge PR author is ready for this to merge labels Jun 10, 2018
@CaerusKaru CaerusKaru merged commit 311b9fe into master Jun 10, 2018
@CaerusKaru CaerusKaru added action: merge PR author is ready for this to merge and removed action: cleanup labels Jun 10, 2018
@CaerusKaru CaerusKaru deleted the adam/hapi-17 branch June 10, 2018 22:23
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge PR author is ready for this to merge target: minor target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(hapi): update to Hapi v17
3 participants