-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0 release #155
Comments
The list of things to drop sounds good and I have nothing from the top of my head to add. Casing is something I'd fix. It's really weird to be inconsistent and have half of the methods be Regarding 2.0 in general, it might be cool to wait until PostHog 2.0 hits the shelves. We're at 1.19 with a bunch of cool things still in "beta" (session recording, plugins, new design). We haven't really discussed it, but it might be worth releasing a big |
Does this mean things like |
Thanks for the feedback @mariusandra
Sounds like a good plan - adding to the list.
That might make sense indeed, especially if we're dropping backwards compatibility for that version. I wonder though if we should then make the bundling improvements separately. Will bring this up during the standup.
That will still work. There's some weird code that allows including the posthog snippet multiple times on the site and for it to continue working. There's no real usecase for this though. |
I think we can just tackle this stuff (ex the naming changes) without waiting for any 2.0 releases. Most of these issues raised are not visible anyway. |
The only thing really tackleable without it being a breaking posthog-js change is rollup + console.log changes. Everything else in this list is breaking in the sense of either:
|
rollup support done here #434 |
We've wanted to remove LZ compression for c2 years. #155 it is 5%+ of the bundle size. Let's remove it compression options are provided by decide, decide returns a harcoded list, and the library prefers gzip if it is present. So this can only negatively affect people using very, very old self-hosted versions and the latest pothog-js. And even then it would mean they would switch from lz64 to base64 so things would carry on working.
Over the last months we've been adding a ton of new functionality to posthog-js and got the library under control testing-wise.
I think it's time to clear house - make the library smaller, remove things that are broken or we don't want to support any longer. However this is by definition a breaking change.
I've created a list of things I'd like to do for 2.0 release. Let me know if any of them are controversial or if you have ideas of your own.
xhr_headers
will cause CORS failures if posthog on a different domain #147posthog.set_config
methodposthog.capture_pageview
methodposthog.toString
methodExcept for packaging improvements all of this is just deleting code - should be easy to do.
We might also want to consider dropping base64 support - again, would help drop a few KB off the package.
@mariusandra I know you have opinions on the casing as well. Do you think it's time to make camelCase methods a thing? It might be too annoying of an update though - everything else above should require 0 action from users unless they're doing something weird.
cc @timgl
The text was updated successfully, but these errors were encountered: