This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
RFC: uniform steps #377
Labels
Comments
tripodsan
added
question
Further information is requested
discussion
and removed
question
Further information is requested
labels
Jun 14, 2019
Let's do this. |
👍 This would simplify things quite a bit. |
rofe
added a commit
that referenced
this issue
Aug 13, 2019
rofe
added a commit
that referenced
this issue
Aug 19, 2019
rofe
added a commit
that referenced
this issue
Aug 22, 2019
BREAKING CHANGE: removed before(), once() and after() methods in favor of use() - added new uniform method pipe.use() - added new method pipe.attach.replace() to replace pipeline steps - pipe.attach() now public API, accepts object with before, replace and after keys - removed methods before(), once() and after()
adobe-bot
pushed a commit
that referenced
this issue
Aug 22, 2019
# [5.0.0](v4.1.0...v5.0.0) (2019-08-22) ### Features * **pipe:** uniform steps ([#377](#377)) ([7d9f701](7d9f701)) ### BREAKING CHANGES * **pipe:** removed before(), once() and after() methods in favor of use() - added new uniform method pipe.use() - added new method pipe.attach.replace() to replace pipeline steps - pipe.attach() now public API, accepts object with before, replace and after keys - removed methods before(), once() and after()
🎉 This issue has been resolved in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
rofe
added a commit
that referenced
this issue
Aug 29, 2019
BREAKING CHANGE: removed before(), once() and after() methods in favor of use() - added new uniform method pipe.use() - added new method pipe.attach.replace() to replace pipeline steps - pipe.attach() now public API, accepts object with before, replace and after keys - removed methods before(), once() and after()
rofe
pushed a commit
that referenced
this issue
Aug 29, 2019
# [5.0.0](v4.1.0...v5.0.0) (2019-08-22) ### Features * **pipe:** uniform steps ([#377](#377)) ([7d9f701](7d9f701)) ### BREAKING CHANGES * **pipe:** removed before(), once() and after() methods in favor of use() - added new uniform method pipe.use() - added new method pipe.attach.replace() to replace pipeline steps - pipe.attach() now public API, accepts object with before, replace and after keys - removed methods before(), once() and after()
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview
the current pipeline has a clear separation of
before
,once
andafter
pipeline functions.This allows to easily replace the
once
action, but requires the extension mechanism to inject other steps. this proposal tries to remove this distinction and make it easier to manipulate an existing pipeline.Proposal
1. Uniform steps
Deprecate (or remove):
before()
,once()
,after()
in favour of a singleuse()
method that constructs the pipeline. Since the old methods were used in sequence anyways, they can easily just be mapped to theuse()
method.Example:
just becomes:
2. Support replacing steps
Sometimes it might be convenient to modify an existing default pipeline. This is already marginally possible using
attach.before()
andattach.after()
. However, it should also be possible to replace existing steps.Example:
some where else...
The text was updated successfully, but these errors were encountered: