Skip to content
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

Feature/match pipe #107

Merged
merged 15 commits into from
Oct 5, 2018
Merged

Conversation

dxinteractive
Copy link
Collaborator

@dxinteractive dxinteractive commented Oct 2, 2018

dataparcels

  • BREAKING CHANGE Removed Parcel.addModifier()
  • BREAKING CHANGE Removed Parcel.addDescendantModifier()
  • Added Parcel.matchPipe()
    • Similar to Parcel.pipe() but automatically applies the updaters to new parcels whenever they are created and when the provided match rule is matched.
    • matchPipe(match: string, ...updaters: Array<(parcel: Parcel) => Parcel>): Parcel
    • Match string examples:
      • Match current parcel location only: .
      • Match child parcels only .*
      • Match child parcels with a key of "abc": .abc
      • Match child parcels whose key ends with "date": .*date
      • Match grandchild parcels only: .*.*
      • Match any descendant parcels with a key of "def": **.def
      • Match child parcels which are indexed: .*:Indexed
      • Match child parcels which are not indexed: .*:!Indexed
      • Match any descendant parcels which are elements": **:Element
      • Match either child parcels called "abc" or "def": .abc|.def
    • You must escape ., |, # or : with a preceding %. e.g. {"dot.key"} would be matched with .dot%.key
    • Matching is always relative to the depth at which matchPipe was called.
  • Fix: export a more correct and complete set of types

react-dataparcels

  • Fix: export a more correct and complete set of types

@dxinteractive dxinteractive merged commit 3fd63b9 into release/playful-python Oct 5, 2018
@dxinteractive dxinteractive deleted the feature/match-pipe branch October 8, 2018 00:00
@dxinteractive dxinteractive mentioned this pull request Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants