Shopify / deprecation_toolkit

⚒Eliminate deprecations from your codebase ⚒
MIT License
454 stars 40 forks source link

Normalize paths in deprecation messages #60

Open sambostock opened 2 years ago

sambostock commented 2 years ago

Summary

This (tentatively) adds support for registering deprecation message normalizers, and provides built in normalization of paths by looking for the following strings:

Replacements are made to look like interpolation, so it is clear what they represent.

This should resolve #48.

⚠️ Before Merging