fix(deps): update dependency require-in-the-middle to v7 #1494
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.0.0
->^7.0.0
Release Notes
elastic/require-in-the-middle
v7.1.0
Compare Source
https://github.com/elastic/require-in-the-middle/pull/67l/67)
v7.0.1
Compare Source
Fix hooking of 'http2' with Node.js versions [8.0, 8.8) where the 'http2'
built-in module was behind the
--expose-http2
flag.https://github.com/elastic/require-in-the-middle/pull/68l/68)
Release v7.0.0 introduced a bug with this case where the process would crash with:
v7.0.0
Compare Source
Change the suggested require usage to be a
Hook
field on the exports,rather than the default export:
This is to avoid the need for users to use a default export
which can get confusing or problematic with TypeScript. https://github.com/open-telemetry/opentelemetry-js/issues/3701ues/3701 for some
details.
Change the suggested usage to
new Hook(...)
instead ofHook(...)
, butboth are supported.
Use the Node.js
require.cache
for caching the exports returned from aHook's
onrequire
. This allows users to delete entries fromrequire.cache
to trigger a re-load (and re-run of the hook's
onrequire
) of a module thenext time it is required -- as mentioned at
https://nodejs.org/docs/latest/api/all.html#all_modules_requir[https://github.com/elastic/require-in-the-middle/issues/61](https://togithub.com/elastic/require-in-the-middle/issues/61)le/issues/61)
(SEMVER-MAJOR) Remove the
hook.cache
field. In earlier versions this wasavailable and some tests used it. However it was never a documented field.
If resolving the filename for a
require(...)
fails, defer to the wrappedrequire implementation rather than failing right away. This allows a
possibly-monkey-patched
require
to do its own special thing.https://github.com/elastic/require-in-the-middle/pull/59l/59)
Configuration
📅 Schedule: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.