Skip to content

Remove `register*` Methods

Choose a tag to compare

@blakeembrey blakeembrey released this 02 May 05:03
· 51 commits to master since this release

Changed

  • Remove old register* methods b506c8b
    • Everything can be done using a singular registerStyle going forward, simplifies the API interface and removes even more bytes in production!
    • If you need to provide backward-compatible interfaces (e.g. you're a library wrapping free-style), the commit above shows how it backward compatibility was maintained in 3.x - you'll just need to implement it yourself now
    • The entire bundle of free-style is down to 1.7kB https://bundlephobia.com/result?p=free-style@4.0.0