Open okejminja opened 2 weeks ago
Latest commit: ad0fa7f31dfb14bf33d8750f29387453211c8708
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
We recently had a client on our fork who still uses addRule & removeRule (bad practice, I know, but we had to support 'em)
This PR add support for deprecated methods addRule & removeRule
Instead of writing duplicate code to support these or make some sort of an abstraction I just "transpiled" the props from addRule to what insertRule accepts and called the original insertRule or deleteRule accordingly – let you guys' methods handle the rest
Also expanded the test for capturing stylesheets to test this
LMK what you think