Skip to content

New matcher, sync ping

Choose a tag to compare

@dxinteractive dxinteractive released this 04 Jun 05:05
· 1035 commits to master since this release

parcels

  • Replaced minimatch with own matcher. It can match:
    • Root ^
    • By key abc
    • Grandchild by key abc.def
    • By key with wildcard abc.*
    • By key with partial wildcard abc.d*
    • By type *:Parent
    • By not type *:!Parent
    • By multiple type *:Parent|Element
    • By globstar **hello or **.abc
    • Keys with non word characters (e.g. "abc.:%") abc%.%:%%
  • Parcels also has a new key escaping scheme. Previously Parcels would not work with objects that contained colons or some other characters in a value's keys. Now it works with all characters. Match strings like the ones above should have all non-word characters escaped with a preceding %, so if you want to write a match string that matches a name that contains anything other than alphanumeric characters and underscores, then you'll have to escape the special characters in the match string.

Example

{
    ['abc']: 123, // match this with "abc"
    ['underscore_name']: 456, // match this with "underscore_name"
    ['hyphenated-name']: 789, // match this with "hyphenated%-name"
    ['weird%name*with:!)what!?']: 123, // match this with "weird%%name%*with%:%!%)what%!%?",
    ['foo']: {
        ['bar']: 789 // match this with "foo.bar"
    },
    ['foo.bar']: 456, // match this with "foo%.bar"
    ['foo%.bar']: 456 // match this with "foo%%%.bar"
}
  • Rename noop action to ping
  • parcelsand parcels-react now export Action class and ActionCreators
  • No breaking changes

parcels-react

  • PureParcel now ignores debounce whenever a ping (previously noop) action is present
  • parcelsand parcels-react now export Action class and ActionCreators
  • No breaking changes

parcels-plugin-form

  • No change