Skip to content
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

Pin variable name for global key #143

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Pin variable name for global key #143

merged 1 commit into from
Feb 22, 2024

Conversation

zikaari
Copy link
Contributor

@zikaari zikaari commented Feb 7, 2024

Previous release of snippet introduced a new variable named globalAnalyticsKey, which after getting mangled by minifier became i. Unfortunately, all the documentation now refers to this variable as i. It is possible that the when next version of snippet is released, the same variable gets a different mangled name, say b. This means that the documentation will be voided. To prevent this, we're now locking the variable name to i forever. We can't change it now since the documentation is already in the wild.

Previous release of snippet introduced a new variable named `globalAnalyticsKey`, which after
getting mangled by minifier became `i`. Unfortunately, all the documentation now refers to this
variable as `i`. It is possible that the when next version of snippet is released, the same variable
gets a different mangled name, say `b`. This means that the documentation will be voided. To prevent
this, we're now locking the variable name to `i` forever. We can't change it now since the documentation
is already in the wild.
@zikaari zikaari requested a review from silesky February 7, 2024 23:33
@silesky silesky merged commit bcc9fdf into master Feb 22, 2024
3 checks passed
@silesky silesky deleted the pin_var_name_key branch February 22, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants