chore(deps): update dependency esmock to v2.6.0 #437
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:
2.3.8
->2.6.0
Release Notes
iambumblehead/esmock (esmock)
v2.6.0
: typings <T = any> MockFunctionCompare Source
typings: make MockFunction generic, thanks @uwinkelvos
v2.5.9
: mock Array-type default exportCompare Source
v2.5.8
: catch yarn PnP exception @koshicCompare Source
catch yarn PnP exception @koshic
v2.5.7
: resolve critical errorCompare Source
mainly this issue resolves a critical error reported here https://github.com/iambumblehead/esmock/issues/260
v2.5.6
: increment resolverCompare Source
update resolver to latest version, resolves a resolution error that seems to have been introduced by a previous update from the past week.
v2.5.5
: support yarn PnP @koshicCompare Source
support yarn PnP @koshic
v2.5.4
: call resolver with builtin moduleIdsCompare Source
This change affects custom resolvers, which are supported from v2.5.2. Per the spec, resolvers will be called with the builtin moduleIds, such as "node:path" and "fs"
v2.5.3
: add support for custom resolverCompare Source
This release adds support for custom using a custom resolver. Specifically, a yarn PnP resolver can be passed to esmock, so that yarn PnP moduleIds can be resolved.
v2.5.2
: lookup export type based on package.json typeCompare Source
This release updates the resolver to improve module resolution. See resolvewithplus tags v2.0.6 and v2.0.7.
Essentially, the resolver is updated to lookup the export type based on package.json type. For example, if package.json type is "module", the "import" definition is resolved, else if package.json type is undefined or "commonjs", the "require" definition is resolved. Previous versions of esmock usually reslved commonjs/require when those were defined and because most packages are published as commonjs, the issues resolved at this release likely did not affect anyone,
v2.5.1
: improve ts resolutionCompare Source
resolve existing ".ts" files, rather than ".js" files, when typescript is detected, thanks @tpluscode
v2.5.0
: use initialize loader hookCompare Source
esmock
is updated to use the new "initialize" node loader hook https://nodejs.org/api/esm.html#initialize and, essentially,esmock
no longer requires --loader=esmock when used with current releases of nodev2.4.1
: detect null and undefined loader-returned sourcesCompare Source
Detects null AND undefined loader-returned source definitions
v2.4.0
: node v20.6 solutionsCompare Source
node v20.6 caused some issues. The primary issue was that the newest
import.meta.resolve
defined by node has significantly and suddenly changed. The newer import.meta.resolve is less useful and no longer supports the parent param as in the callimport.meta.resolve(moduleId, parent)
,Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.