-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency plop to v3 #329
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: pnpm-lock.yaml
|
Deployment failed with the following error:
|
Pull Checklist Limit ReachedWe're sorry you've reached your plans limit of 10 Protected Pull Requests per month. If you find Pull Checklist valuable and would like to upgrade your plan please click here otherwise your limit will reset in 1 days. |
abbf61a
to
0c18fb6
Compare
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Renovate Ignore NotificationAs this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 3.x releases. However, if you upgrade to 3.x manually then Renovate will reenable minor and patch updates automatically. If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened. |
This PR contains the following updates:
^2.7.6
->3.0.1
Release Notes
plopjs/plop
v3.0.1
Compare Source
run
typing to be a promise, as was updated in Plop 3v3.0.0
Compare Source
The first major release of
plop
since 2018 is here!We've got a massive feature in this release: ESM Support. Read further to find out more!
Breaking Changes
^12.20.0
and^14.13.1
respectivelyWrapper CLI Breaking Changes
plop
(see below to learn more)Plop
object API has changed. Instead of:You need to do:
Features
ESM Support
The major feature of this release is support for ESM modules (https://github.com/plopjs/plop/issues/260)
This means that instead of:
You can now have the following code in your plopfile:
Going forward, plopfiles must either be:
.mjs
file withtype: "module"
inpackage.json
.js
file withtype: "module"
inpackage.json
.cjs
file withtype: "module"
inpackage.json
.js
file withtype: "commonjs"
inpackage.json
Any of these file extensions will be recognized and accepted with the default
plopfile
name, just like before.If you want to learn more about ESM usage in a library, here's some further reading provided by Sindre Sorhus.
These limitations will also be present for plop wrapper CLIs, so it's encouraged to read the above if you're doing so.
Async Plopfunctions
While previously a
plopfile.js
had to be a synchronous export - we now allow you to make an async function. We handle the rest!Bug Fixes
Internal Changes
The plop CLI itself now has a solid end-to-end tests. While this isn't done, it is very functional today. These tests have enabled us to be confident that this release should work for 99% of users without having to change much if anything at all on their end.
We even wrote our own testing library to support this
Admittedly, we have a low coverage rate, but are testing against most of the big stuff today. We welcome and encourage pull requests adding more tests to increase that rate.
We've also added CI to run those end-to-end tests against every PR against the main branch.
Looking Ahead
While this release is fun, there's more that we want to do internally sometime in the near future.
Namely:
node-plop
testsnode-plop
to usejest
instead ofava
node-plop
to monorepo in theplop
reponode-plop
andplop
master
tomain
plop
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.
This PR has been generated by WhiteSource Renovate. View repository job log here.