Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

feat: provide plugin dependencies sorting #281

Merged
merged 19 commits into from
Oct 8, 2021

Conversation

Alex-Werner
Copy link
Contributor

@Alex-Werner Alex-Werner commented Jul 12, 2021

Issue being fixed or feature implemented

This PR provides the ability for plugins to be injected based on a sorting property (before, after).
User's defined plugins get sorted before the injection is being done.

What was done?

  • feat: provide property awaitOnInjection
  • feat: added injectionOrder before and after property.
  • feat: sort and prepare plugins based on order when specified

How Has This Been Tested?

  • Added relevant test in sortPlugins.spec.ts
  • test suite run

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Alex-Werner Alex-Werner added this to the v0.20 milestone Jul 12, 2021
@lgtm-com

This comment has been minimized.

@shumkov shumkov changed the base branch from v0.20-dev to v0.21-dev July 14, 2021 09:51
@Alex-Werner Alex-Werner modified the milestones: v0.20, v0.21.0 Sep 10, 2021
@Alex-Werner Alex-Werner force-pushed the feat/plugin-dependencies branch from d65a40a to 9de1030 Compare September 10, 2021 10:01
@Alex-Werner Alex-Werner requested a review from shumkov October 6, 2021 12:17
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

LGTM!

@Alex-Werner Alex-Werner merged commit f59ae83 into v0.21-dev Oct 8, 2021
@Alex-Werner Alex-Werner deleted the feat/plugin-dependencies branch October 8, 2021 12:05
shuplenkov pushed a commit that referenced this pull request Oct 25, 2021
* feat(Keychain): getHardenedDIP15AccountKey

* feat(Plugin): added ability to handle pluginDependency

* feat(sortPlugin): manage sorting based on before/after props

* fix: resolve plugins

* feat: add awaitOnInjection property

* Revert "feat(Keychain): getHardenedDIP15AccountKey"

This reverts commit f770f72.

* fix: removed unused required modules

* fix: removed unused required dependency

* fix: merge conflict

* doc: lint fix

* feat: optimisation of sequential insert

* test: fix undefined allowSensitiveOperations

* fix: multiple before cases

* doc: documents plugin injection order usage

* fix: lint extra spaces

* fix: correctly compare with future position on after case
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants