Skip to content

Migrate From V1 to V2

Mat Lipe edited this page May 19, 2020 · 2 revisions

There are many breaking changes when going from V1 to V2. While this list likely will not cover all of them, here are some tips for updating existing projects from V1 to V2.

Meta Repository Changes

This has been completely re-imagined to remove the 4 levels of abstracts and complex data retrieval in favor of automatic registering and data retrieval.

  1. There is no more Lipe\Lib\Meta\Meta_Class_Abstract class.
  2. There is no more Lipe\Lib\Meta\Meta_Repo class.
  3. No more need for get_keys in meta classes.
  4. No more need for get_meta_data or get_meta in meta classes.
  5. Continued use of Lipe\Lib\Post_Type\Post_Object_Trait will automatically pull from the new Lipe\Lib\Meta\Repo class.
  6. Any massaging of returned data from the meta classes is now handled on a case by case based outside of the meta repo.

Util Changes

Some Util classes have been moved to more appropriate namespaces and/or been refactored. This solves the long term issue with Util becoming a dumping namespace.

  1. Lipe\Lib\Util\CSS_Modules has been moved to Lipe\Lib\Theme\CSS_Modules.
  2. Lipe\Lib\Util\Class_Names has been moved to Lipe\Lib\Theme\Class_Names.
  3. Lipe\Lib\Util\Api has been moved to Lipe\Lib\Api\Api