New matcher, sync ping
parcels
- Replaced
minimatchwith 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
**helloor**.abc - Keys with non word characters (e.g. "abc.:%")
abc%.%:%%
- Root
- 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
noopaction toping parcelsandparcels-reactnow exportActionclass andActionCreators- No breaking changes
parcels-react
PureParcelnow ignores debounce whenever aping(previouslynoop) action is presentparcelsandparcels-reactnow exportActionclass andActionCreators- No breaking changes
parcels-plugin-form
- No change