PostHog / plugin-server

Service to process and save PostHog events, supporting JS/TS plugins at that
https://posthog.com
8 stars 5 forks source link

Add meta utils, cursor ops #543

Closed yakkomajuri closed 3 years ago

yakkomajuri commented 3 years ago

Changes

Tests incoming.

Adds a new object to the plugin meta: utils. This way meta doesn't need to grow out of control and we can more neatly let utils grow as much as it needs to adding helper functions for plugin devs.

This also adds the first layer of generalized utils stemming from #535: cursors.

Checklist

yakkomajuri commented 3 years ago

I'd get this in without a version bump, then let the update in plugin-scaffold trigger the update, after which I'll remove the type here.

yakkomajuri commented 3 years ago

Also would love to get this in and merge into #535